/* Custom styles — overrides and additions beyond Tailwind */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #020610;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4ECDC4;
}

/* Hero entrance animations */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s ease forwards;
}
.hero-anim:nth-child(2) { animation-delay: 0.15s; }
.hero-anim:nth-child(3) { animation-delay: 0.3s; }
.hero-anim:nth-child(4) { animation-delay: 0.45s; }

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-image-anim {
    opacity: 0;
    transform: translateX(40px);
    animation: heroSlideIn 0.9s ease forwards;
    animation-delay: 0.4s;
}

@keyframes heroSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll reveal — progressive enhancement, works without JS */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal[data-revealed="false"] {
    opacity: 0;
    transform: translateY(40px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-anim,
    .hero-image-anim,
    .reveal {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal[data-revealed="false"] {
        opacity: 1;
        transform: none;
    }
}

/* Image hover zoom container */
.rounded-2xl.overflow-hidden img {
    display: block;
}

/* Navbar glass effect when scrolled */
.nav-scrolled {
    background: rgba(2, 6, 16, 0.85) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile menu transitions */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* Selection color */
::selection {
    background: rgba(78, 205, 196, 0.3);
    color: #fff;
}
