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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    overflow-x: hidden;
}

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

/* ========== NAVIGATION ========== */
#site-header {
    background: rgba(254, 249, 240, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(4, 120, 87, 0.08);
    transition: box-shadow 0.4s ease, background 0.4s ease;
}

#site-header.scrolled {
    background: rgba(254, 249, 240, 0.96);
    box-shadow: 0 4px 30px rgba(4, 120, 87, 0.08);
}

.nav-link {
    position: relative;
}

/* ========== MOBILE MENU ========== */
#mobile-menu {
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    opacity: 1;
}

#mobile-menu.closed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

#mobile-menu.open {
    max-height: 500px;
    opacity: 1;
    pointer-events: all;
}

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

/* ========== HERO ANIMATIONS ========== */
.hero-anim {
    opacity: 0;
    transform: translateY(40px);
    animation: heroSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-anim:nth-child(1) { animation-delay: 0.1s; }
.hero-anim:nth-child(2) { animation-delay: 0.25s; }
.hero-anim:nth-child(3) { animation-delay: 0.4s; }
.hero-anim:nth-child(4) { animation-delay: 0.55s; }
.hero-anim:nth-child(5) { animation-delay: 0.7s; }

@keyframes heroSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-img-anim {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    animation: heroImgUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-img-anim:nth-child(1) { animation-delay: 0.6s; }
.hero-img-anim:nth-child(2) { animation-delay: 0.75s; }
.hero-img-anim:nth-child(3) { animation-delay: 0.9s; }
.hero-img-anim:nth-child(4) { animation-delay: 1.05s; }

@keyframes heroImgUp {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.geo-circle-1 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(4, 120, 87, 0.06) 0%, transparent 70%);
    top: -100px;
    right: -150px;
    animation: floatShape 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    bottom: 10%;
    left: -80px;
    animation: floatShape 10s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(4, 120, 87, 0.05);
    top: 40%;
    left: 10%;
    animation: floatShape 6s ease-in-out infinite;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(245, 158, 11, 0.06);
    border-radius: 24px;
    top: 20%;
    left: 5%;
    transform: rotate(45deg);
    animation: rotateShape 12s linear infinite;
}

.geo-square-2 {
    width: 80px;
    height: 80px;
    background: rgba(4, 120, 87, 0.05);
    border-radius: 16px;
    bottom: 25%;
    right: 8%;
    transform: rotate(20deg);
    animation: rotateShape 15s linear infinite reverse;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(245, 158, 11, 0.06);
    top: 35%;
    right: 5%;
    animation: floatShape 7s ease-in-out infinite;
}

.geo-triangle-2 {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 69px solid rgba(4, 120, 87, 0.05);
    bottom: 30%;
    left: 15%;
    animation: floatShape 9s ease-in-out infinite reverse;
}

.geo-dot-grid {
    width: 200px;
    height: 200px;
    top: 15%;
    right: 15%;
    background-image: radial-gradient(circle, rgba(4, 120, 87, 0.15) 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    opacity: 0.6;
}

.geo-diamond-1 {
    width: 200px;
    height: 200px;
    background: rgba(245, 158, 11, 0.08);
    border-radius: 32px;
    top: 10%;
    right: -60px;
    transform: rotate(45deg);
    animation: rotateShape 20s linear infinite;
}

.geo-hex-1 {
    width: 160px;
    height: 160px;
    background: rgba(254, 249, 240, 0.04);
    border-radius: 24px;
    bottom: 10%;
    left: 5%;
    transform: rotate(30deg);
    animation: floatShape 11s ease-in-out infinite;
}

@keyframes floatShape {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

@keyframes rotateShape {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========== SCROLL REVEAL ========== */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ========== SECTION DIVIDER WAVES ========== */
.section-wave {
    display: block;
    width: 100%;
    height: 60px;
    margin-top: -1px;
}

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

/* ========== SELECTION ========== */
::selection {
    background: rgba(4, 120, 87, 0.2);
    color: #065f46;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
    .hero-anim {
        transform: translateY(30px);
    }

    @keyframes heroSlideUp {
        to { opacity: 1; transform: translateY(0); }
    }

    .hero-img-anim {
        transform: translateY(40px) scale(0.95);
    }

    @keyframes heroImgUp {
        to { opacity: 1; transform: translateY(0) scale(1); }
    }

    /* Hide decorative shapes on mobile for performance */
    .geo-dot-grid,
    .geo-triangle-1,
    .geo-triangle-2 {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .geo-circle-1 {
        width: 350px;
        height: 350px;
    }
}
