/* ===== CUSTOM STYLES ===== */

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

/* Scroll reveal base - content is visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Scroll reveal active state - applied by JS */
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll reveal hidden state - only active when JS runs and motion preferred */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero shapes animation */
@media (prefers-reduced-motion: no-preference) {
    .hero-shape {
        animation: float 6s ease-in-out infinite;
    }
    .hero-shape:nth-child(2) { animation-delay: -1s; animation-duration: 7s; }
    .hero-shape:nth-child(3) { animation-delay: -2s; animation-duration: 5s; }
    .hero-shape:nth-child(4) { animation-delay: -3s; animation-duration: 8s; }
    .hero-shape:nth-child(5) { animation-delay: -1.5s; animation-duration: 6s; }
    .hero-shape:nth-child(6) { animation-delay: -4s; animation-duration: 7s; }
    .hero-shape:nth-child(7) { animation-delay: -2.5s; animation-duration: 5.5s; }
    .hero-shape:nth-child(8) { animation-delay: -0.5s; animation-duration: 9s; }
    .hero-shape:nth-child(9) { animation-delay: -3.5s; animation-duration: 6.5s; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-12px) rotate(2deg); }
    66% { transform: translateY(6px) rotate(-1deg); }
}

/* Navbar scroll state */
.navbar-scrolled {
    background-color: rgba(26, 29, 35, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1A1D23;
}
::-webkit-scrollbar-thumb {
    background: #FF6B4A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #F04F2E;
}

/* Selection color */
::selection {
    background-color: #FF6B4A;
    color: white;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #FF6B4A;
    outline-offset: 2px;
}

/* Image placeholder fallback */
img {
    background: linear-gradient(135deg, #2F3340 0%, #3A3F4E 100%);
}
