/* ===== AC/DC Electric — Custom Styles ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #2e0f33;
}
::-webkit-scrollbar-thumb {
    background: #7B2D8E;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94397e;
}

/* Selection */
::selection {
    background: #D4880F;
    color: #2e0f33;
}

/* Base typography */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Nav scroll state */
.nav-scrolled {
    background: rgba(46, 15, 51, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(212, 136, 15, 0.15);
}

.nav-scrolled .nav-link {
    color: #f5e9f6 !important;
}

.nav-scrolled .font-serif.text-xl {
    color: #fff !important;
}

/* Mobile nav link transitions */
.nav-mobile-link {
    position: relative;
}
.nav-mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #D4880F;
    transition: width 0.3s ease;
}
.nav-mobile-link:hover::after {
    width: 100%;
}

/* Hero gradient animation */
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

#hero {
    background-size: 200% 200%;
    animation: gradient-shift 12s ease infinite;
}

/* Card hover glow */
.group:hover .group-hover\:shadow-plum-200\/40 {
    box-shadow: 0 20px 60px -15px rgba(123, 45, 142, 0.3);
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Image lazy-load fade */
img[loading="lazy"] {
    transition: opacity 0.4s ease;
}

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

/* Focus visible */
:focus-visible {
    outline: 2px solid #D4880F;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print styles */
@media print {
    nav, #hero, footer, .reveal-hidden {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
