*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

/* ── Hero Animations ── */
@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.3; }
    50% { transform: translateY(-20px) scale(1.2); opacity: 0.6; }
}

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

@keyframes heroScaleIn {
    from {
        opacity: 0;
        transform: scale(1.08);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-bg {
    animation: heroScaleIn 1.5s ease-out forwards;
}

.hero-overlay {
    animation: heroSlideUp 1s ease-out 0.3s both;
}

.hero-badge {
    animation: heroSlideUp 0.8s ease-out 0.5s both;
}

.hero-headline {
    animation: heroSlideUp 0.9s ease-out 0.7s both;
}

.hero-subtitle {
    animation: heroSlideUp 0.9s ease-out 0.9s both;
}

.hero-ctas {
    animation: heroSlideUp 0.9s ease-out 1.1s both;
}

.hero-scroll-indicator {
    animation: heroSlideUp 0.8s ease-out 1.5s both;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.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; }

/* ── Gallery Scroll ── */
@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.animate-scroll-left {
    display: flex;
    gap: 16px;
    animation: scroll-left 40s linear infinite;
}

.animate-scroll-left:hover {
    animation-play-state: paused;
}

/* ── Navbar ── */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 40px rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .nav-link {
    color: rgba(30, 41, 59, 0.75) !important;
}

#navbar.scrolled .nav-link:hover {
    color: #0d9488 !important;
}

#navbar.scrolled #nav-logo-text {
    color: #1e293b !important;
    text-shadow: none !important;
}

/* ── Mobile Menu ── */
#mobile-menu {
    animation: menuSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.mobile-menu-link {
    display: block;
}

/* ── Form Focus States ── */
input:focus, textarea:focus {
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.08);
}

/* ── Selection ── */
::selection {
    background-color: rgba(13, 148, 136, 0.15);
    color: #134e4a;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f8fafc;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
}
