/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
::selection { background: rgba(6, 95, 70, 0.15); }

/* ── Navbar ── */
.nav-logo-text { transition: color 0.3s ease; }
#navbar.scrolled .nav-logo-text { color: #065F46; }

.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #065F46;
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ── Mobile Menu ── */
#mobile-menu.open { opacity: 1; pointer-events: all; }
#mobile-menu.closed { opacity: 0; pointer-events: none; }
.menu-line { transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
#menu-toggle.active .menu-line:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
#menu-toggle.active .menu-line:nth-child(2) { opacity: 0; width: 0; }
#menu-toggle.active .menu-line:nth-child(3) { transform: translateY(-3.5px) rotate(-45deg); width: 1.25rem; }
.mobile-menu-link { transition: opacity 0.3s ease, transform 0.3s ease; }
#mobile-menu.open .mobile-menu-link { opacity: 1; transform: translateY(0); }
#mobile-menu.closed .mobile-menu-link { opacity: 0; transform: translateY(12px); }
#mobile-menu.open .mobile-menu-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-menu-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-menu-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-menu-link:nth-child(4) { transition-delay: 0.25s; }

/* ── Floating Cards ── */
.floating-card {
    animation: float 6s ease-in-out infinite;
}
.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: -2s; }
.card-3 { animation-delay: -4s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* ── Reveal Animations ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Progressive enhancement — animate only when JS is available and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #F7F4ED; }
::-webkit-scrollbar-thumb { background: #065F46; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #047857; }

/* ── Form Focus Styles ── */
input:focus, select:focus, textarea:focus {
    border-bottom-color: #059669 !important;
}

/* ── Selection ── */
::selection {
    background: rgba(6, 95, 70, 0.12);
    color: #064E3B;
}
</style>
