/* ===== Base & Typography ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --midnight-950: #020c13;
    --midnight-900: #051826;
    --midnight-800: #0a3450;
    --midnight-700: #14557c;
    --midnight-600: #1e76a8;
    --midnight-500: #2997d4;
    --midnight-200: #9fd1e4;
    --midnight-100: #c7e4ef;
    --midnight-50: #eef6fa;
    --mint-600: #0d936c;
    --mint-500: #14b888;
    --mint-400: #2cd3a1;
    --mint-300: #5fe8be;
    --mint-200: #99f6db;
    --mint-100: #ccfbef;
    --mint-50: #f0fdf9;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: color: var(--mint-500);
    transition: width 0.3s ease;
}

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

#site-header.scrolled {
    box-shadow: 0 1px 20px rgba(2, 12, 19, 0.08);
}

/* ===== Mobile Menu ===== */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

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

/* Menu icon animation */
.menu-line {
    transform-origin: center;
}

body.menu-open #menu-icon .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

body.menu-open #menu-icon .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

body.menu-open #menu-icon .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
}

/* ===== Scroll Reveal ===== */
.reveal-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ===== Hero Decorative Elements ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

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

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

::-webkit-scrollbar-track {
    background: var(--midnight-50);
}

::-webkit-scrollbar-thumb {
    background: var(--midnight-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--midnight-500);
}

/* ===== Focus Styles ===== */
*:focus-visible {
    outline: 2px solid var(--mint-500);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Utility ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
