/* ── Base & Typography ── */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #051424;
    color: #E0F5EE;
}

::selection {
    background-color: rgba(127, 191, 191, 0.3);
    color: #F0FBF9;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #051424;
}
::-webkit-scrollbar-thumb {
    background: rgba(127, 191, 191, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(127, 191, 191, 0.5);
}

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

#navbar.scrolled {
    background: rgba(5, 20, 36, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(127, 191, 191, 0.08);
}

#navbar.scrolled .nav-link {
    color: rgba(127, 191, 191, 0.8);
}

#navbar.scrolled .nav-link:hover {
    color: #BDE8DB;
}

/* ── Hero Animations ── */
.hero-subtitle {
    animation: slideUp 0.8s ease forwards 0.3s;
}

.hero-title-line {
    animation: slideUp 0.9s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.hero-title-line:nth-child(1) { animation-delay: 0.5s; }
.hero-title-line:nth-child(2) { animation-delay: 0.65s; }
.hero-title-line:nth-child(3) { animation-delay: 0.8s; }
.hero-title-line:nth-child(4) { animation-delay: 0.95s; }
.hero-title-line:nth-child(5) { animation-delay: 1.1s; }

.hero-body {
    animation: slideUp 0.8s ease forwards 1.3s;
    opacity: 0;
    transform: translateY(1rem);
}

.hero-cta {
    animation: slideUp 0.8s ease forwards 1.5s;
    opacity: 0;
    transform: translateY(1rem);
}

.hero-scroll-indicator {
    animation: fadeIn 0.8s ease forwards 2s;
    opacity: 0;
}

.hero-side-image {
    animation: fadeIn 1.2s ease forwards 1.8s;
    opacity: 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ── Section Reveal Animations ── */
.reveal {
    animation: revealUp 0.9s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.reveal-delay-1 { animation-delay: 0.1s; }
.reveal-delay-2 { animation-delay: 0.2s; }
.reveal-delay-3 { animation-delay: 0.3s; }
.reveal-delay-4 { animation-delay: 0.4s; }
.reveal-delay-5 { animation-delay: 0.5s; }

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Experience Cards ── */
.experience-card {
    transition: background-color 0.5s ease, transform 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-4px);
}

.experience-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(127, 191, 191, 0.03) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.experience-card:hover::before {
    opacity: 1;
}

/* ── Gallery Items ── */
.grounds-gallery-item {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.6s ease;
    cursor: pointer;
}

.grounds-gallery-item:hover {
    transform: scale(1.02);
    z-index: 2;
}

.grounds-gallery-item img {
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ── Input Focus States ── */
input:focus,
textarea:focus,
select:focus {
    border-color: rgba(127, 191, 191, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(127, 191, 191, 0.08);
}

/* ── Button Ripple Effect ── */
button[type="submit"]:active {
    transform: scale(0.98);
}

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

.mobile-link {
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

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

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

/* ── Responsive ── */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }
}

/* ── Print ── */
@media print {
    body {
        background: white;
        color: black;
    }
    nav, button, form {
        display: none;
    }
}
