/* ===================================
   LEGGET TRUCK REPAIR - ANIMATIONS
   =================================== */

/* Fade In Up */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Fade In Left */
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Fade In Right */
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Scale In */
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Slide Down */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Number Count Animation */
@keyframes countUp {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Gradient Shift */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Shimmer Effect */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Truck Driving Animation */
@keyframes truckDrive {
    0% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    100% { transform: translateX(-10px); }
}

/* Red Line Animation */
@keyframes redLineGrow {
    from { width: 0; }
    to { width: 60px; }
}

/* Hero Text Animations */
.hero-badge { animation: fadeInUp 0.6s ease both; }
.hero-title { animation: fadeInUp 0.8s ease 0.2s both; }
.hero-subtitle { animation: fadeInUp 0.8s ease 0.4s both; }
.hero-actions { animation: fadeInUp 0.8s ease 0.6s both; }
.hero-stats { animation: fadeInUp 0.8s ease 0.8s both; }

/* Page Hero */
.page-hero-badge { animation: fadeInUp 0.6s ease both; }
.page-hero-title { animation: fadeInUp 0.8s ease 0.2s both; }
.page-hero-subtitle { animation: fadeInUp 0.8s ease 0.4s both; }
.page-hero-actions { animation: fadeInUp 0.8s ease 0.6s both; }

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* Animated Underline on Headings */
.animated-underline {
    position: relative;
    display: inline-block;
}
.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--red, #c0392b);
    transition: width 0.6s ease;
}
.animated-underline.in-view::after,
.animated-underline:hover::after { width: 100%; }

/* Card Hover Lift */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

/* Red Glow on Hover */
.hover-glow:hover {
    box-shadow: 0 0 30px rgba(192,57,43,0.3);
}

/* Stagger Children Animations */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-children.animated > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0s; }
.stagger-children.animated > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.stagger-children.animated > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.stagger-children.animated > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.stagger-children.animated > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.stagger-children.animated > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }

/* Header Scroll Effect */
.main-header.scrolled {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Button Shine Effect */
.btn-red::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}
.btn { position: relative; overflow: hidden; }
.btn-red:hover::before { left: 100%; }

/* Floating Animation for Cards */
@keyframes floatUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.float-animation { animation: floatUp 4s ease-in-out infinite; }

/* Rotating Badge */
@keyframes rotateBadge {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Progress Bar Animation */
.progress-bar {
    height: 4px;
    background: var(--border, #e0e0e0);
    border-radius: 2px;
    overflow: hidden;
    margin: 8px 0;
}
.progress-fill {
    height: 100%;
    background: var(--red, #c0392b);
    width: 0;
    border-radius: 2px;
    transition: width 1.5s ease;
}

/* Text Reveal Animation */
.text-reveal {
    overflow: hidden;
}
.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.7s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.text-reveal.revealed span { transform: translateY(0); }

/* Parallax Sections */
.parallax-section {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* Red Border Animation */
@keyframes borderPulse {
    0%, 100% { border-color: var(--red, #c0392b); }
    50% { border-color: transparent; }
}

/* Notification Badge Bounce */
@keyframes badgeBounce {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.05); }
}

/* Wave Animation */
@keyframes wave {
    0% { transform: translateX(-100%) skewX(-10deg); }
    100% { transform: translateX(200%) skewX(-10deg); }
}
.wave-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: rgba(255,255,255,0.08);
    transform: translateX(-100%) skewX(-10deg);
}
.wave-effect:hover::after { animation: wave 0.8s ease; }

/* ===================================
   CUSTOM SCROLLBAR
   =================================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--red, #c0392b); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--red-dark, #a93226); }

/* Mobile Drawer Scrollbar */
.mobile-drawer::-webkit-scrollbar { width: 3px; }
.mobile-drawer::-webkit-scrollbar-thumb { background: #ddd; }

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .main-header, .footer-cta-section, .floating-call-btn, .mobile-toggle { display: none !important; }
    body { font-size: 12pt; color: #000; }
    a { color: #000; text-decoration: underline; }
    .hero-section { min-height: auto; padding: 40px 0; background: #fff; }
    .hero-title, .hero-subtitle { color: #000; }
}
