/* ── Reset & Base ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --midnight-900: #0a1628;
    --midnight-950: #060f1d;
    --mint-300: #5eead4;
    --mint-400: #2dd4bf;
    --mint-500: #14b8a6;
    --mint-600: #0d9488;
    --mint-700: #0f766e;
    --mint-50: #f0fdf9;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 300;
    color: var(--midnight-900);
    background: #ffffff;
    line-height: 1.6;
}

.font-serif {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.font-inter {
    font-family: 'Inter', system-ui, sans-serif;
}

::selection {
    background: var(--mint-400);
    color: var(--midnight-900);
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ── Tailwind Custom Colors ── */
.bg-mint-300 { background-color: #5eead4; }
.bg-mint-400 { background-color: #2dd4bf; }
.bg-mint-50 { background-color: #f0fdf9; }
.bg-midnight-900 { background-color: #0a1628; }
.bg-midnight-950 { background-color: #060f1d; }
.bg-midnight-100 { background-color: #f8fafc; }

.text-mint-300 { color: #5eead4; }
.text-mint-400 { color: #2dd4bf; }
.text-mint-500 { color: #14b8a6; }
.text-mint-600 { color: #0d9488; }
.text-mint-700 { color: #0f766e; }

.text-midnight-900 { color: #0a1628; }

/* ── Navbar ── */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

#navbar.scrolled .nav-link,
#navbar.scrolled a {
    color: white;
}

/* ── Hero Animations ── */
.hero-anim {
    opacity: 0;
    transform: translateY(24px);
    animation: heroReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-anim:nth-child(2) { animation-delay: 0.15s; }
.hero-anim:nth-child(3) { animation-delay: 0.3s; }
.hero-anim:nth-child(4) { animation-delay: 0.45s; }

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

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }

/* ── Mobile Menu ── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* ── Menu Item Hover ── */
.group:hover h4 {
    transition: color 0.3s ease;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal {
        opacity: 1;
        transform: none;
    }
    .hero-anim {
        opacity: 1;
        transform: none;
    }
    img { transition: none; }
}

/* ── Focus Styles ── */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--mint-400);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ── Mobile Menu Link ── */
.mobile-link {
    display: block;
    text-align: center;
}

/* ── Subtle Line Animations ── */
.w-10.h-px.bg-mint-400 {
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal:hover .w-10.h-px.bg-mint-400 {
    width: 2rem;
}
