/* Custom styles for Slaats Auto Repair */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #2D1B33;
}
::-webkit-scrollbar-thumb {
    background: #6B3F71;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8B5291;
}

/* Selection color */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #FBBF24;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(45, 27, 51, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu active state */
.mobile-menu-active {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Mobile menu line animation */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 20px;
    margin-left: 0;
}

/* Service card hover glow */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: radial-gradient(ellipse at center, rgba(251, 191, 36, 0.08), transparent 70%);
}

.service-card {
    position: relative;
    overflow: hidden;
}

.service-card:hover::before {
    opacity: 1;
}

/* Intersection Observer animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Form focus styles */
input:focus, textarea:focus {
    outline: none;
}

/* Geometric pattern overlay for sections */
.pattern-grid {
    background-image: 
        linear-gradient(rgba(251, 191, 36, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(251, 191, 36, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Amber glow effect */
.amber-glow {
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.15);
}

/* Floating animation variants */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-2deg); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(-25px) rotate(45deg); }
}

/* Pulse animation for CTA elements */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(251, 191, 36, 0.3); }
    50% { box-shadow: 0 0 40px rgba(251, 191, 36, 0.6); }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .service-card {
        padding: 1.5rem !important;
    }
}

@media (max-width: 767px) {
    #mobile-menu {
        opacity: 0;
        pointer-events: none;
    }
    #mobile-menu.active {
        opacity: 1;
        pointer-events: all;
    }
}

/* Print styles */
@media print {
    nav, #mobile-menu-btn, .animate-float, .animate-float-delayed, .animate-float-slow {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
