/* ============================================
   TURANJ CAR CARE - ANIMATIONS
   ============================================ */

/* ============================================
   KEYFRAMES
   ============================================ */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255,107,0,0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255,107,0,0.6), 0 0 60px rgba(255,107,0,0.2);
    }
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-100px) rotate(720deg);
        opacity: 0;
    }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes borderPulse {
    0%, 100% { border-color: rgba(255,107,0,0.3); }
    50% { border-color: rgba(255,107,0,0.8); }
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   HERO ANIMATIONS
   ============================================ */
.hero-badge {
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-title .title-line:nth-child(1) {
    animation: fadeInUp 0.7s ease 0.5s both;
}

.hero-title .title-line:nth-child(2) {
    animation: fadeInUp 0.7s ease 0.65s both;
}

.hero-title .title-line:nth-child(3) {
    animation: fadeInUp 0.7s ease 0.8s both;
}

.hero-desc {
    animation: fadeInUp 0.7s ease 0.95s both;
}

.hero-buttons {
    animation: fadeInUp 0.7s ease 1.1s both;
}

.hero-stats {
    animation: fadeInUp 0.7s ease 1.25s both;
}

/* ============================================
   PARTICLES
   ============================================ */
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255,107,0,0.4);
    border-radius: 50%;
    animation: particleFloat linear infinite;
    pointer-events: none;
}

.particle:nth-child(1) { left: 10%; animation-duration: 12s; animation-delay: 0s; width: 2px; height: 2px; }
.particle:nth-child(2) { left: 20%; animation-duration: 15s; animation-delay: 2s; background: rgba(255,255,255,0.15); }
.particle:nth-child(3) { left: 35%; animation-duration: 10s; animation-delay: 4s; width: 4px; height: 4px; }
.particle:nth-child(4) { left: 50%; animation-duration: 18s; animation-delay: 1s; background: rgba(255,255,255,0.1); }
.particle:nth-child(5) { left: 65%; animation-duration: 13s; animation-delay: 3s; }
.particle:nth-child(6) { left: 75%; animation-duration: 16s; animation-delay: 5s; width: 2px; height: 2px; background: rgba(255,255,255,0.2); }
.particle:nth-child(7) { left: 85%; animation-duration: 11s; animation-delay: 2.5s; }
.particle:nth-child(8) { left: 90%; animation-duration: 14s; animation-delay: 0.5s; width: 4px; height: 4px; background: rgba(255,107,0,0.3); }

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0);
}

/* ============================================
   SECTION ENTRANCE ANIMATIONS
   ============================================ */
.section-header {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-8px) !important;
}

.why-feature {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.why-feature.visible {
    opacity: 1;
    transform: translateX(0);
}

.why-feature:hover {
    transform: translateX(6px) !important;
}

.process-step {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.process-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card:hover {
    transform: translateY(-6px) !important;
}

.benefit-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, background 0.3s ease, border-color 0.3s ease;
}

.benefit-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.benefit-card:hover {
    transform: translateY(-6px) !important;
}

.spec-card {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.spec-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.spec-card:hover {
    transform: translateY(-4px) !important;
}

.package-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.package-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.package-card.featured.visible {
    transform: scale(1.03);
}

.package-card:hover {
    transform: translateY(-8px) !important;
}

.package-card.featured:hover {
    transform: scale(1.03) translateY(-8px) !important;
}

.gallery-item {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

.team-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s ease;
}

.team-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.team-card:hover {
    transform: translateY(-6px) !important;
}

.highlight-item {
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.5s ease, transform 0.5s ease, background 0.3s ease;
}

.highlight-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.highlight-item:hover {
    transform: translateX(4px) !important;
}

.about-value {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.about-value.visible {
    opacity: 1;
    transform: translateY(0);
}

.faq-item {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   STAT COUNTER ANIMATION
   ============================================ */
.stat-num {
    animation: countUp 0.6s ease both;
}

/* ============================================
   LOGO ANIMATION
   ============================================ */
.logo-wrapper {
    animation: fadeIn 0.5s ease 0.1s both;
}

/* ============================================
   BADGE SECTION ANIMATION
   ============================================ */
.badge-content {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.badge-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   CTA SECTION ANIMATION
   ============================================ */
.cta-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.cta-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   ABOUT VISUAL ANIMATION
   ============================================ */
.about-visual-main {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-visual-main.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-stat-card {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.about-stat-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   WHY IMAGE ANIMATION
   ============================================ */
.why-img-frame {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.why-img-frame.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   INTRO VISUAL ANIMATION
   ============================================ */
.intro-visual-inner {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.intro-visual-inner.visible {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   COLOR SWATCH ANIMATION
   ============================================ */
.color-swatch {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.color-swatch.visible {
    opacity: 1;
    transform: scale(1);
}

.color-swatch:hover {
    transform: scale(1.05) !important;
}

/* ============================================
   CONTACT ANIMATIONS
   ============================================ */
.contact-info-item {
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s ease;
}

.contact-info-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.contact-info-item:hover {
    transform: translateX(4px) !important;
}

.contact-form-wrap {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-form-wrap.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   SHIMMER EFFECT (for loading states)
   ============================================ */
.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.1) 50%,
        rgba(255,255,255,0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ============================================
   HOVER GLOW EFFECTS
   ============================================ */
.btn-primary:hover {
    animation: none;
}

.logo-3m {
    position: relative;
    overflow: hidden;
}

.logo-3m::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.4s ease;
}

.logo-3m:hover::after {
    left: 150%;
}

/* ============================================
   PAGE TRANSITION
   ============================================ */
body {
    animation: fadeIn 0.4s ease;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    [data-aos],
    .section-header,
    .service-card,
    .why-feature,
    .process-step,
    .testimonial-card,
    .benefit-card,
    .spec-card,
    .package-card,
    .gallery-item,
    .team-card,
    .highlight-item,
    .about-value,
    .faq-item,
    .badge-content,
    .cta-content,
    .about-visual-main,
    .about-stat-card,
    .why-img-frame,
    .intro-visual-inner,
    .color-swatch,
    .contact-info-item,
    .contact-form-wrap {
        opacity: 1 !important;
        transform: none !important;
    }
}