/* Custom styles for Underground Concepts_1 */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1A0819;
}
::-webkit-scrollbar-thumb {
    background: #4A1942;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #D4A843;
}

/* Selection color */
::selection {
    background: #D4A843;
    color: #1A0819;
}

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

#navbar.scrolled {
    background-color: rgba(26, 8, 25, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu */
#mobileMenu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Mobile menu hamburger animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menuToggle.active .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
#menuToggle.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menuToggle.active .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 20px;
}

/* Mobile link transitions */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }
#mobileMenu.open .mobile-link:nth-child(6) { transition-delay: 0.35s; }

/* Service cards stagger animation */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

/* Section reveal animations */
.service-reveal,
.about-reveal,
.why-reveal,
.testi-reveal,
.cta-reveal,
.contact-reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.service-reveal.revealed,
.about-reveal.revealed,
.why-reveal.revealed,
.testi-reveal.revealed,
.cta-reveal.revealed,
.contact-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Testimonial cards */
.testi-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.testi-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.testi-card:nth-child(1) { transition-delay: 0.1s; }
.testi-card:nth-child(2) { transition-delay: 0.2s; }
.testi-card:nth-child(3) { transition-delay: 0.3s; }

/* Why us items */
.why-reveal {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.why-reveal.revealed {
    opacity: 1;
    transform: translateX(0);
}

.why-reveal:nth-child(1) { transition-delay: 0.05s; }
.why-reveal:nth-child(2) { transition-delay: 0.15s; }
.why-reveal:nth-child(3) { transition-delay: 0.25s; }
.why-reveal:nth-child(4) { transition-delay: 0.35s; }

/* Contact items */
.contact-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.contact-reveal:nth-child(1) { transition-delay: 0.05s; }
.contact-reveal:nth-child(2) { transition-delay: 0.1s; }
.contact-reveal:nth-child(3) { transition-delay: 0.15s; }
.contact-reveal:nth-child(4) { transition-delay: 0.2s; }
.contact-reveal:nth-child(5) { transition-delay: 0.25s; }
.contact-reveal:nth-child(6) { transition-delay: 0.3s; }

/* CTA reveal */
.cta-reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.cta-reveal:nth-child(1) { transition-delay: 0.05s; }
.cta-reveal:nth-child(2) { transition-delay: 0.15s; }
.cta-reveal:nth-child(3) { transition-delay: 0.25s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .service-card,
    .service-reveal,
    .about-reveal,
    .why-reveal,
    .testi-reveal,
    .cta-reveal,
    .contact-reveal {
        opacity: 1;
        transform: none;
    }
}

/* Select dropdown styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D4A843' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

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

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #2A0D26 0%, #4A1942 100%);
    min-height: 100px;
}
