/* Hood Cleaning Page - Modern Animations & Interactions */

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeZoom {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   ANIMATION UTILITIES
   ============================================ */

.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.visible {
    animation: fadeUp 0.8s ease-out forwards;
}

.animate-fade-in {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.animate-fade-in.in-view {
    opacity: 1;
}

.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-fade-left.in-view {
    opacity: 1;
    transform: translateX(0);
}

.animate-fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-fade-right.in-view {
    opacity: 1;
    transform: translateX(0);
}

.animate-zoom-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-zoom-in.in-view {
    opacity: 1;
    transform: scale(1);
}

/* Stagger effect for child elements */
.stagger-container > * {
    opacity: 0;
    animation: fadeUp 0.6s ease-out forwards;
}

.stagger-container.in-view > :nth-child(1) { animation-delay: 0.1s; }
.stagger-container.in-view > :nth-child(2) { animation-delay: 0.2s; }
.stagger-container.in-view > :nth-child(3) { animation-delay: 0.3s; }
.stagger-container.in-view > :nth-child(4) { animation-delay: 0.4s; }
.stagger-container.in-view > :nth-child(5) { animation-delay: 0.5s; }
.stagger-container.in-view > :nth-child(6) { animation-delay: 0.6s; }
.stagger-container.in-view > :nth-child(7) { animation-delay: 0.7s; }
.stagger-container.in-view > :nth-child(8) { animation-delay: 0.8s; }

/* ============================================
   STICKY IMAGE ANIMATIONS - REMOVED
   Images are now static blocks in the natural flow
   ============================================ */

/* ============================================
   PROCESS STEPS LAYOUT (Alternating Text & Images)
   ============================================ */

.process-steps-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.process-step-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 3rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.process-step-block.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Alternate layout: odd steps have image on right, even on left */
.process-step-block--2,
.process-step-block--4,
.process-step-block--6,
.process-step-block--8 {
    direction: rtl;
}

.process-step-block--2 > *,
.process-step-block--4 > *,
.process-step-block--6 > *,
.process-step-block--8 > * {
    direction: ltr;
}

.process-step-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.process-step-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.process-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(199, 5, 50, 0.2);
    flex-shrink: 0;
}

.process-step-content h3 {
    font-size: 1.4rem;
    color: var(--color-text-primary);
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
}

.process-step-content p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin: 0;
    font-size: 1rem;
}

.process-step-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(199, 5, 50, 0.15);
}

.process-step-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    object-fit: cover;
    transition: none;
}

/* Desktop responsiveness */
@media (max-width: 1024px) {
    .process-step-block {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2.5rem 0;
    }

    .process-step-block--2,
    .process-step-block--4,
    .process-step-block--6,
    .process-step-block--8 {
        direction: ltr;
    }

    .process-step-content h3 {
        font-size: 1.25rem;
    }
}

/* Tablet/Mobile responsiveness */
@media (max-width: 768px) {
    .process-steps-grid {
        padding: 1.5rem;
        gap: 0;
    }

    .process-step-block {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 0;
    }

    /* Always show content first, then image on mobile */
    .process-step-block {
        display: flex;
        flex-direction: column;
    }

    .process-step-block--2,
    .process-step-block--4,
    .process-step-block--6,
    .process-step-block--8 {
        direction: ltr;
    }

    .process-step-header {
        gap: 1rem;
    }

    .process-step-number {
        width: 45px;
        height: 45px;
        min-width: 45px;
        font-size: 1rem;
    }

    .process-step-content h3 {
        font-size: 1.15rem;
    }

    .process-step-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .process-step-image {
        border-radius: 12px;
    }

    .process-step-image img {
        border-radius: 12px;
    }
}

/* ============================================
   LEGACY STICKY SCROLL - COMPLETELY REMOVED
   Modern approach: static images in natural flow
   ============================================ */

/* ============================================
   IMAGE CAROUSELS - COMPLETELY REMOVED
   Each image is now a static block in the natural flow
   No dynamic image rotation, crossfades, or sliders
   ============================================ */

/* ============================================
   MICROANIMATIONS
   ============================================ */

/* Icon stagger animation */
.benefit-icon {
    transition: transform 0.3s ease, color 0.3s ease;
}

.benefit:hover .benefit-icon {
    transform: scale(1.15) rotate(-5deg);
    color: var(--color-secondary);
}

/* Timeline step animations */
.step-number {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-step:hover .step-number {
    transform: scale(1.2);
    box-shadow: 0 8px 20px rgba(199, 5, 50, 0.3);
}

.step-content h3,
.step-content p {
    transition: color 0.3s ease;
}

.timeline-step:hover .step-content h3 {
    color: var(--color-primary);
}

/* Gallery item hover effects */
.gallery-item {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease,
                filter 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.03);
    filter: brightness(1.05);
}

.gallery-item:hover .gallery-image-container img {
    transform: scale(1.08);
}

/* List item animation */
.what-includes li {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.what-includes li:hover {
    transform: translateX(8px);
    opacity: 1;
}

.what-includes li .bullet {
    transition: transform 0.3s ease;
}

.what-includes li:hover .bullet {
    transform: translateX(4px);
}


/* ============================================
   SECTION ANIMATIONS
   ============================================ */

.what-is-hood {
    overflow: hidden;
}

.what-is-image {
    transition: transform 0.6s ease-out;
}

.what-is-image.image-fade-in {
    animation: fadeLeft 0.8s ease-out forwards;
}

.what-is-text {
    transition: opacity 0.6s ease-out;
}

.what-is-text.text-fade-in {
    animation: fadeRight 0.8s ease-out forwards;
}

.what-is-text h2 {
    transition: color 0.3s ease;
}

.what-is-text h2.text-highlight {
    color: var(--color-primary);
}

/* Process section animations */
.process-timeline {
    position: relative;
}

.process-timeline::before {
    transition: background 0.6s ease;
}

.timeline-step {
    transition: opacity 0.6s ease;
    opacity: 0;
}

.timeline-step.step-visible {
    opacity: 1;
}

/* Benefits showcase animations */
.benefits-showcase {
    gap: 4rem;
}

.benefit {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.4s ease;
    opacity: 0;
}

.benefit.benefit-visible {
    opacity: 1;
}

.benefit:hover {
    transform: translateY(-6px);
}

/* Gallery section animations */
.gallery-showcase {
    position: relative;
}

.gallery-item {
    opacity: 0;
    transform: scale(0.95);
    animation: fadeZoom 0.6s ease-out forwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   SMOOTH TRANSITIONS
   ============================================ */

.transition-smooth {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-smooth-slow {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   LOADING STATES
   ============================================ */

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ============================================
   RESPONSIVE ANIMATIONS
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 768px) {
    .sticky-image-content {
        position: static;
    }

    .carousel-indicator {
        gap: 6px;
    }

    .carousel-indicator-dot {
        width: 8px;
        height: 8px;
    }

}
