/* ─── Custom Properties ─── */
:root {
    --color-midnight-900: #0A1628;
    --color-midnight-800: #0F1F36;
    --color-midnight-700: #1A2D47;
    --color-midnight-600: #2A4060;
    --color-midnight-500: #3D5575;
    --color-midnight-400: #6B8299;
    --color-midnight-300: #9BAAB8;
    --color-midnight-200: #C8D3DC;
    --color-midnight-100: #E8EDF2;
    --color-mint-550: #3DD9BC;
    --color-mint-450: #5EEAD4;
    --color-mint-350: #7EDBC7;
    --color-mint-200: #C5F0E6;
    --color-mint-100: #E8FAF5;
    --color-mint-50: #F4FBF8;
    --color-mint-30: #F9FCFA;
}

/* ─── Reduce Motion ─── */
.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}

/* ─── Reveal Animations ─── */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal[data-state="hidden"] {
    opacity: 0;
    transform: translateY(32px);
}

.reveal[data-state="visible"] {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal-group > *:nth-child(1) { transition-delay: 0ms; }
.reveal-group > *:nth-child(2) { transition-delay: 100ms; }
.reveal-group > *:nth-child(3) { transition-delay: 200ms; }
.reveal-group > *:nth-child(4) { transition-delay: 300ms; }
.reveal-group > *:nth-child(5) { transition-delay: 400ms; }

/* ─── Card Hover ─── */
.card-hover {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -20px rgba(10, 22, 40, 0.15);
}

/* ─── Blob Animations ─── */
.blob {
    animation: blobFloat 20s ease-in-out infinite;
}

.blob-mint {
    background: radial-gradient(circle, #5EEAD4 0%, transparent 70%);
}

.blob-blue {
    background: radial-gradient(circle, #7EC8E3 0%, transparent 70%);
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(40px, 30px) scale(1.02); }
}

/* ─── Nav Link Underline ─── */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #5EEAD4;
    transition: width 0.3s ease, left 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 60%;
    left: 20%;
}

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

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

.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

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

/* ─── Hamburger Animation ─── */
#menu-btn.active .menu-line-top {
    transform: translateY(6px) rotate(45deg);
}

#menu-btn.active .menu-line-mid {
    opacity: 0;
    transform: scaleX(0);
}

#menu-btn.active .menu-line-bot {
    transform: translateY(-6px) rotate(-45deg);
}

/* ─── Selection ─── */
::selection {
    background: rgba(94, 234, 212, 0.3);
    color: #0A1628;
}

/* ─── Smooth Scroll ─── */
html {
    scroll-behavior: smooth;
}

/* ─── Focus Visible ─── */
:focus-visible {
    outline: 2px solid #5EEAD4;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ─── Input Autofill ─── */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #F4FBF8 inset !important;
    -webkit-text-fill-color: #0A1628 !important;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9BAAB8;
}

/* ─── Print ─── */
@media print {
    .fixed, .blob, #back-to-top { display: none; }
    body { color: #000; background: #fff; }
    a { color: #000; }
}
