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

body {
    background-color: #020c1b;
    color: #f0fdf9;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #1a365a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #234e80;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-hidden {
    opacity: 0;
    transform: translateY(32px);
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .reveal-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero entrance - always visible, no JS gate */
.reveal-hero {
    opacity: 1;
    transform: translateY(0);
    animation: heroReveal 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

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

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

@media (prefers-reduced-motion: no-preference) {
    .reveal-hero {
        opacity: 0;
    }
}

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

#navbar.scrolled {
    background: rgba(2, 12, 27, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(20, 184, 166, 0.08);
}

/* Menu card hover */
.group:hover h4 {
    color: #5eead4;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery image hover */
.overflow-hidden img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Selection color */
::selection {
    background: rgba(20, 184, 166, 0.3);
    color: #f0fdf9;
}
