/* ===== BASE & RESET ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: #a7f3d0;
    color: #064e3b;
}

/* ===== NAVBAR ===== */
#navbar {
    background: rgba(254, 253, 248, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    box-shadow: 0 4px 20px rgba(6, 78, 59, 0.08);
}

.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-link {
    transition: color 0.2s, padding-left 0.2s;
}

.mobile-link:hover {
    color: #059669;
    padding-left: 8px;
}

/* ===== HERO GEOMETRIC SHAPES ===== */
.hero-shape {
    position: absolute;
    pointer-events: none;
}

.shape-circle-1 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 243, 208, 0.4) 0%, rgba(167, 243, 208, 0) 70%);
    top: -100px;
    right: -100px;
    animation: float-slow 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 232, 163, 0.5) 0%, rgba(245, 232, 163, 0) 70%);
    bottom: 10%;
    left: 5%;
    animation: float-slow 10s ease-in-out infinite reverse;
}

.shape-rect-1 {
    width: 120px;
    height: 120px;
    background: #047857;
    opacity: 0.08;
    top: 20%;
    left: 3%;
    transform: rotate(45deg);
    animation: spin-slow 20s linear infinite;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(4, 120, 87, 0.1);
    top: 30%;
    right: 5%;
    animation: float-slow 6s ease-in-out infinite;
}

.shape-dots {
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, #047857 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    opacity: 0.2;
    bottom: 20%;
    right: 15%;
    animation: float-slow 7s ease-in-out infinite reverse;
}

/* ===== FLOATING STAT CARDS ===== */
.floating-card {
    animation: float-card 4s ease-in-out infinite;
}

.card-1 {
    animation-delay: 0s;
}

.card-2 {
    animation-delay: 1s;
}

.card-3 {
    animation-delay: 2s;
}

/* ===== ABOUT SECTION SHAPES ===== */
.about-shape {
    position: absolute;
    pointer-events: none;
}

.shape-circle-a {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 2px solid rgba(254, 253, 248, 0.1);
    top: -100px;
    left: -100px;
    animation: spin-slow 30s linear infinite;
}

.shape-circle-b {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(254, 253, 248, 0.05);
    bottom: 10%;
    right: 5%;
    animation: float-slow 8s ease-in-out infinite;
}

.shape-square {
    width: 100px;
    height: 100px;
    background: rgba(245, 232, 163, 0.15);
    bottom: 20%;
    left: 10%;
    transform: rotate(30deg);
    animation: spin-slow 25s linear infinite reverse;
}

/* ===== CTA SHAPES ===== */
.cta-shape {
    position: absolute;
    pointer-events: none;
}

.shape-rect-a {
    width: 300px;
    height: 300px;
    background: #047857;
    opacity: 0.06;
    top: -50px;
    right: -50px;
    transform: rotate(15deg);
    border-radius: 40px;
}

.shape-circle-c {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #d4c46a;
    opacity: 0.15;
    bottom: -60px;
    left: 10%;
    animation: float-slow 9s ease-in-out infinite;
}

/* ===== ANIMATIONS ===== */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes float-card {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-8px) rotate(1deg); }
    66% { transform: translateY(-4px) rotate(-1deg); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== SCROLL REVEAL (below fold only, progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 100ms; }
    .reveal-delay-2 { transition-delay: 200ms; }
    .reveal-delay-3 { transition-delay: 300ms; }
}

/* ===== SERVICE CARDS ===== */
.service-card {
    will-change: transform;
}

/* ===== FOCUS STYLES ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 767px) {
    .shape-circle-1 {
        width: 300px;
        height: 300px;
    }

    .shape-circle-2 {
        width: 180px;
        height: 180px;
    }

    .shape-rect-1 {
        width: 70px;
        height: 70px;
    }

    .shape-triangle {
        border-left: 40px solid transparent;
        border-right: 40px solid transparent;
        border-bottom: 69px solid rgba(4, 120, 87, 0.1);
    }

    .floating-card {
        display: none;
    }

    .about-shape {
        display: none;
    }

    .cta-shape {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .floating-card {
        display: none;
    }
}
