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

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

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== NAVBAR ===== */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(6, 95, 70, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #065F46;
    transition: width 0.25s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-logo-text {
    transition: color 0.3s ease;
}

#navbar:not(.scrolled) .nav-logo-text {
    color: #FAF9F6;
}

#navbar.scrolled .nav-logo-text {
    color: #065F46;
}

#navbar:not(.scrolled) .nav-link {
    color: rgba(250, 249, 246, 0.85);
}

#navbar:not(.scrolled) .nav-link:hover {
    color: #FAF9F6;
}

#navbar:not(.scrolled) .nav-link::after {
    background: #FAF9F6;
}

/* ===== MOBILE MENU ===== */
.mobile-nav-link {
    border-bottom: 1px solid rgba(6, 95, 70, 0.1);
    padding-bottom: 0.75rem;
}

.mobile-nav-link:last-of-type {
    border-bottom: none;
}

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

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border: 3px solid #D1FAE5;
    border-radius: 50%;
    top: -100px;
    right: -80px;
    animation: floatSlow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    background: #6EE7B7;
    border-radius: 50%;
    bottom: 15%;
    left: 5%;
    animation: floatSlow 15s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 120px;
    height: 120px;
    border: 2px solid #A7F3D0;
    border-radius: 50%;
    top: 40%;
    right: 10%;
    animation: floatSlow 12s ease-in-out infinite;
}

.geo-square-1 {
    width: 100px;
    height: 100px;
    background: #FCD34D;
    opacity: 0.15;
    top: 20%;
    left: 8%;
    transform: rotate(45deg);
    animation: floatSlow 18s ease-in-out infinite;
}

.geo-square-2 {
    width: 60px;
    height: 60px;
    border: 2px solid #FCD34D;
    opacity: 0.2;
    bottom: 25%;
    right: 15%;
    transform: rotate(30deg);
    animation: floatSlow 14s ease-in-out infinite reverse;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(110, 231, 183, 0.15);
    top: 60%;
    left: 15%;
    animation: floatSlow 16s ease-in-out infinite;
}

.geo-diamond-1 {
    width: 80px;
    height: 80px;
    background: rgba(251, 211, 77, 0.12);
    top: 30%;
    right: 25%;
    transform: rotate(45deg);
    animation: floatSlow 22s ease-in-out infinite reverse;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(3deg); }
    50% { transform: translateY(-10px) rotate(-2deg); }
    75% { transform: translateY(-25px) rotate(2deg); }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Default state for reveal elements (visible when JS disabled) */
.reveal {
    transform: translateY(0);
    opacity: 1;
}

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

/* ===== CARD HOVER ===== */
.card-hover {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-6px);
}

/* ===== STAT ANIMATION ===== */
.stat-item {
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

/* ===== BUTTON FOCUS ===== */
a:focus-visible, button:focus-visible {
    outline: 2px solid #065F46;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== SELECTION ===== */
::selection {
    background: #065F46;
    color: #FAF9F6;
}

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

::-webkit-scrollbar-track {
    background: #FAF9F6;
}

::-webkit-scrollbar-thumb {
    background: #065F46;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 767px) {
    .geo-circle-1 {
        width: 250px;
        height: 250px;
    }
    
    .geo-circle-2 {
        width: 120px;
        height: 120px;
    }
    
    .geo-square-1 {
        width: 60px;
        height: 60px;
    }
    
    .geo-triangle-1 {
        border-left-width: 40px;
        border-right-width: 40px;
        border-bottom-width: 69px;
    }
}
