/* ===== BASE & RESET ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: rgba(94, 234, 212, 0.25);
    color: #d4f3e6;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #1b3a5e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #214672;
}

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

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

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

/* ===== MOBILE MENU ===== */
.mobile-link {
    position: relative;
}

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

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

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion: content always visible, no transition */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===== BUTTON HOVER EFFECTS ===== */
button:hover,
a:hover {
    cursor: pointer;
}

/* ===== FORM FOCUS STATES ===== */
input:focus,
textarea:focus {
    outline: none;
}

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

/* ===== IMAGE SHIMMY (subtle hover) ===== */
img {
    display: block;
    max-width: 100%;
}

/* ===== DECO LINE ACCENTS ===== */
.deco-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #5eead4, transparent);
}
