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

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(95, 191, 163, 0.3);
    color: #f0f4f8;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0f1a27;
}
::-webkit-scrollbar-thumb {
    background: #2e4b66;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3fa888;
}

/* ===== NAV SCROLLED STATE ===== */
.nav-scrolled {
    background: rgba(9, 15, 23, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(46, 75, 102, 0.3);
}

/* ===== MOBILE MENU ===== */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* ===== HERO ANIMATIONS ===== */
.hero-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease, transform 1s ease;
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* Default state: always visible for accessibility */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* ===== GALLERY SCROLL ===== */
@keyframes scroll-gallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: no-preference) {
    .animate-scroll {
        animation: scroll-gallery 40s linear infinite;
    }
    .animate-scroll:hover {
        animation-play-state: paused;
    }
}

/* ===== CARD HOVER ===== */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ===== FOCUS STYLES ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #5fbfa3;
    outline-offset: 2px;
}

/* ===== SMOOTH TRANSITIONS ===== */
a, button, input, textarea {
    transition: all 0.3s ease;
}

/* ===== IMAGE LAZY LOAD ===== */
img {
    max-width: 100%;
    height: auto;
}

/* ===== MAP INVERT FIX ===== */
iframe[style*="invert"] {
    background: #0f1a27;
}
