/* ========== BASE & RESET ========== */
*, *::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;
}

::selection {
    background: rgba(126, 212, 176, 0.3);
    color: #0A2342;
}

/* ========== NAVBAR ========== */
.nav-link {
    position: relative;
}

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

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

/* ========== MOBILE MENU ========== */
#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

#mobile-menu.open .mobile-menu-link {
    animation: slideIn 0.3s ease forwards;
}

#mobile-menu .mobile-menu-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu .mobile-menu-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu .mobile-menu-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu .mobile-menu-link:nth-child(4) { animation-delay: 0.2s; }

@keyframes slideIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== SCROLL ANIMATIONS ========== */
.scroll-animate {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* When JS is disabled, these are already visible — progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .scroll-animate {
        opacity: 0;
        transform: translateY(24px);
    }

    .scroll-animate.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    .scroll-animate:nth-child(2) { transition-delay: 0.1s; }
    .scroll-animate:nth-child(3) { transition-delay: 0.2s; }
    .scroll-animate:nth-child(4) { transition-delay: 0.3s; }
    .scroll-animate:nth-child(5) { transition-delay: 0.4s; }
    .scroll-animate:nth-child(6) { transition-delay: 0.5s; }
}

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

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

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

.animate-float-slow {
    animation: float-slow 5s ease-in-out infinite;
}

.animate-float-medium {
    animation: float-medium 4s ease-in-out infinite;
}

.animate-float-fast {
    animation: float-fast 3.5s ease-in-out infinite;
}

/* ========== DECORATIVE ELEMENTS ========== */
.ornament {
    display: inline-block;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, #7ED4B0, transparent);
}

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

/* ========== RESPONSIVE TWEAKS ========== */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.2;
    }
}

/* ========== PRINT ========== */
@media print {
    header, footer, #contact-form, .scroll-animate { display: none; }
    body { color: #000; background: #fff; }
}
