/* ============================================
   PORSCHE STYLE - PARALLAX SCROLLING
   ============================================ */

/* --- Base Fade In --- */
.animate-on-scroll {
    opacity: 0;
    /* เริ่มต้นซ่อน เพื่อให้ fade เข้ามา */
    transform: translateY(40px);
    /* อยู่ต่ำลงมาหน่อย */
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Parallax Item (Move slower than scroll) --- */
.parallax-item {
    transition: transform 0.1s linear;
    /* Smooth movement */
    will-change: transform;
}

/* --- Hero Animation (On Load) --- */
@keyframes heroSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-animate {
    opacity: 0;
    animation: heroSlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Delays */
.hero-animate-delay-1 {
    animation-delay: 0.2s;
}

.hero-animate-delay-2 {
    animation-delay: 0.4s;
}

.hero-animate-delay-3 {
    animation-delay: 0.6s;
}

/* --- Gentle Hover Effects --- */
.card-hover-lift {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.5s ease;
}

.card-hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

/* --- Image Zoom --- */
.image-zoom-scroll {
    overflow: hidden;
    position: relative;
}

.image-zoom-scroll img {
    transform: scale(1.1);
    /* Zoomed in initially */
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-zoom-scroll.is-visible img {
    transform: scale(1);
    /* Zoom back to normal */
}

/* --- Footer --- */
.footer-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.footer-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}