/* ============================================
   SCROLL ANIMATIONS CSS
   ============================================ */

/* ===== Scroll Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation classes */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
}

.animate-fade-up {
    transform: translateY(40px);
}

.animate-fade-up.animated {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-left {
    transform: translateX(-40px);
}

.animate-slide-left.animated {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-right {
    transform: translateX(40px);
}

.animate-slide-right.animated {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-scale {
    transform: scale(0.9);
}

.animate-scale.animated {
    animation: scaleIn 0.6s ease-out forwards;
}

/* Stagger animation for grid items */
.fp__grid .prop,
.why__grid .whyCard,
.areas__grid .areaCard,
.luxServices__grid .luxCard {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fp__grid.animated .prop,
.why__grid.animated .whyCard,
.areas__grid.animated .areaCard,
.luxServices__grid.animated .luxCard {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay for grid items */
.fp__grid.animated .prop:nth-child(1) { transition-delay: 0.1s; }
.fp__grid.animated .prop:nth-child(2) { transition-delay: 0.2s; }
.fp__grid.animated .prop:nth-child(3) { transition-delay: 0.3s; }
.fp__grid.animated .prop:nth-child(4) { transition-delay: 0.4s; }
.fp__grid.animated .prop:nth-child(5) { transition-delay: 0.5s; }
.fp__grid.animated .prop:nth-child(6) { transition-delay: 0.6s; }

.why__grid.animated .whyCard:nth-child(1) { transition-delay: 0.1s; }
.why__grid.animated .whyCard:nth-child(2) { transition-delay: 0.2s; }
.why__grid.animated .whyCard:nth-child(3) { transition-delay: 0.3s; }

.areas__grid.animated .areaCard:nth-child(1) { transition-delay: 0.1s; }
.areas__grid.animated .areaCard:nth-child(2) { transition-delay: 0.2s; }
.areas__grid.animated .areaCard:nth-child(3) { transition-delay: 0.3s; }
.areas__grid.animated .areaCard:nth-child(4) { transition-delay: 0.4s; }
.areas__grid.animated .areaCard:nth-child(5) { transition-delay: 0.5s; }
.areas__grid.animated .areaCard:nth-child(6) { transition-delay: 0.6s; }
.areas__grid.animated .areaCard:nth-child(7) { transition-delay: 0.7s; }
.areas__grid.animated .areaCard:nth-child(8) { transition-delay: 0.8s; }

.luxServices__grid.animated .luxCard:nth-child(1) { transition-delay: 0.1s; }
.luxServices__grid.animated .luxCard:nth-child(2) { transition-delay: 0.2s; }
.luxServices__grid.animated .luxCard:nth-child(3) { transition-delay: 0.3s; }
.luxServices__grid.animated .luxCard:nth-child(4) { transition-delay: 0.4s; }

/* Smooth hover effects */
.prop,
.whyCard,
.areaCard,
.luxCard {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prop:hover,
.whyCard:hover,
.areaCard:hover,
.luxCard:hover {
    transform: translateY(-4px);
}

.prop:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,.4);
}

.areaCard:hover {
    box-shadow: 0 18px 44px rgba(0,0,0,.35);
}

/* Hero animation */
.hero h1,
.hero .subtitle,
.hero .search-card {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.hero h1 {
    animation-delay: 0.2s;
}

.hero .subtitle {
    animation-delay: 0.4s;
}

.hero .search-card {
    animation-delay: 0.6s;
}

