/* Custom styles for DJ Automotive */

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Intersection Observer animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
/* ... more delays handled by JS */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #0F766E;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #042F2E;
}

/* Selection color */
::selection {
    background: #0F766E;
    color: white;
}

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

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

/* Service card hover tilt effect */
.group {
    will-change: transform;
}

/* Subtle pattern for hero background */
#hero {
    background-image: radial-gradient(circle at 20% 80%, rgba(15, 118, 110, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(15, 118, 110, 0.05) 0%, transparent 50%);
}
