/* ===== Custom Styles for M & J Landscape & Hardscapes ===== */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #060f17;
}

/* ===== Geometric Decorative Shapes ===== */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.4;
}

.geo-circle-1 {
    top: 15%;
    right: 5%;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(74, 222, 128, 0.12);
    border-radius: 50%;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    bottom: 20%;
    left: 8%;
    width: 150px;
    height: 150px;
    border: 2px solid rgba(74, 222, 128, 0.08);
    border-radius: 50%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-triangle {
    top: 60%;
    right: 12%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(74, 222, 128, 0.06);
    animation: float-slow 18s ease-in-out infinite;
}

.geo-square {
    top: 30%;
    left: 6%;
    width: 60px;
    height: 60px;
    background: rgba(74, 222, 128, 0.05);
    transform: rotate(45deg);
    animation: float-slow 22s ease-in-out infinite reverse;
}

.geo-ring {
    bottom: 35%;
    right: 20%;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(74, 222, 128, 0.1);
    border-radius: 50%;
    animation: float-slow 16s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

/* ===== Hero Orbs ===== */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.hero-orb-1 {
    top: 10%;
    left: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(45, 212, 160, 0.15) 0%, transparent 70%);
    animation: orb-drift-1 25s ease-in-out infinite;
}

.hero-orb-2 {
    bottom: 10%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(26, 58, 92, 0.4) 0%, transparent 70%);
    animation: orb-drift-2 20s ease-in-out infinite;
}

.hero-orb-3 {
    top: 40%;
    right: 30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.08) 0%, transparent 70%);
    animation: orb-drift-3 30s ease-in-out infinite;
}

@keyframes orb-drift-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -40px) scale(1.1); }
}

@keyframes orb-drift-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, 30px) scale(1.05); }
}

@keyframes orb-drift-3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 20px); }
}

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(6, 15, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4ade80, #2dd4a0);
    transition: width 0.3s ease, left 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 60%;
    left: 20%;
}

/* ===== Service Cards ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #4ade80, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* ===== Scroll Reveal ===== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Mobile Menu ===== */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-link {
    display: block;
}

/* ===== Custom Select Styling ===== */
select option {
    background: #0b1926;
    color: #fff;
}

/* ===== Input Focus States ===== */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* ===== Button Hover Effects ===== */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ===== Selection Color ===== */
::selection {
    background: rgba(74, 222, 128, 0.3);
    color: #fff;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #060f17;
}

::-webkit-scrollbar-thumb {
    background: #1a3a5c;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2dd4a0;
}

/* ===== Responsive tweaks ===== */
@media (max-width: 768px) {
    .geo-shape {
        display: none;
    }
}
