/* Custom styles for Metro PCS Dealer */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #2d3748;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4a5568;
}

/* Selection color */
::selection {
    background: rgba(201, 147, 26, 0.3);
    color: #f0f4f8;
}

/* Service card stagger animation - progressive enhancement */
.service-card {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .service-card {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .service-card.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Stagger delays */
    .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; }
}

/* About section image reveal */
#about img {
    opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
    #about .aspect-\[4\/5\] {
        opacity: 0;
        transform: translateX(-20px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    #about .aspect-\[4\/5\].revealed {
        opacity: 1;
        transform: translateX(0);
    }
    
    #about > div > div:last-child {
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
    }
    #about > div > div:last-child.revealed {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Why us cards reveal */
@media (prefers-reduced-motion: no-preference) {
    #why-us .text-center.group {
        opacity: 0;
        transform: translateY(15px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }
    #why-us .text-center.group.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    #why-us .text-center.group:nth-child(1) { transition-delay: 0s; }
    #why-us .text-center.group:nth-child(2) { transition-delay: 0.1s; }
    #why-us .text-center.group:nth-child(3) { transition-delay: 0.2s; }
    #why-us .text-center.group:nth-child(4) { transition-delay: 0.3s; }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(7, 13, 26, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #c9931a, #edc95f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle hover glow on gold elements */
.btn-gold:hover {
    box-shadow: 0 0 30px rgba(201, 147, 26, 0.3);
}

/* Form select arrow */
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='%236b798e' 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;
    padding-right: 2.5rem;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
#mobile-menu.open {
    max-height: 400px;
}

/* 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;
    }
}
