/* Custom styles for Lightning Auto Care */

:root {
    --coral-500: #FF6B4A;
    --coral-400: #FF8566;
    --charcoal-900: #1a1d23;
    --charcoal-800: #2d3139;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Hero Animations */
.hero-line {
    display: inline-block;
    transform: translateY(100%);
    animation: slideUp 0.8s ease forwards;
}

.hero-line:nth-child(1) { animation-delay: 0.1s; }
.hero-line:nth-child(2) { animation-delay: 0.2s; }
.hero-line:nth-child(3) { animation-delay: 0.3s; }
.hero-line:nth-child(4) { animation-delay: 0.4s; }

.hero-subtitle {
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.3s;
}

.hero-fade {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.5s;
}

.hero-image {
    opacity: 0;
    transform: translateX(60px);
    animation: slideInRight 0.8s ease forwards;
    animation-delay: 0.4s;
}

@keyframes slideUp {
    to { transform: translateY(0); }
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    to { opacity: 1; transform: translateX(0); }
}

/* Section Labels */
.section-label {
    position: relative;
    display: inline-block;
}

.section-label::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 2px;
    background: var(--coral-500);
}

/* Stat Items */
.stat-item {
    opacity: 0;
    transform: translateY(20px);
}

.stat-item.visible {
    animation: fadeInUp 0.5s ease forwards;
}

/* Service Cards */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.5s ease, background-color 0.5s ease;
}

.service-card.visible {
    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; }

/* About Image */
.about-image {
    opacity: 0;
    transform: translateX(-40px);
}

.about-image.visible {
    animation: slideInLeft 0.7s ease forwards;
}

@keyframes slideInLeft {
    to { opacity: 1; transform: translateX(0); }
}

/* Review Cards */
.review-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.5s ease;
}

.review-card.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(26, 29, 35, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-scrolled #navbar {
    background: transparent !important;
}

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

/* Selection color */
::selection {
    background: var(--coral-500);
    color: white;
}

/* Smooth focus outlines */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--coral-400);
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--charcoal-900);
}

::-webkit-scrollbar-thumb {
    background: var(--charcoal-700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--coral-500);
}

/* Responsive adjustments */
@media (max-width: 1023px) {
    .hero-image {
        display: none;
    }
}

@media (max-width: 767px) {
    .section-label::before {
        display: none;
    }
}
