/* ==========================================================================
   Elite Estate - Animation Utilities
   ========================================================================== */

/* Hover Lift Effect for Luxury Cards */
.hover-lift {
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
                box-shadow 0.5s cubic-bezier(0.25, 1, 0.5, 1),
                border-color 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -15px rgba(17, 24, 39, 0.1);
    border-color: rgba(201, 162, 39, 0.4) !important;
}

/* Luxury Gold Shine Sweep Effect on Hover */
.gold-shine {
    position: relative;
    overflow: hidden;
}

.gold-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
}

.gold-shine:hover::after {
    left: 150%;
    transition: all 0.85s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Floating Animation for Action Buttons */
@keyframes luxuryFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.float-action {
    animation: luxuryFloat 4s ease-in-out infinite;
}

.float-action-delay {
    animation: luxuryFloat 4s ease-in-out infinite;
    animation-delay: 2s;
}

/* Preloader Spinning Gold Ring */
@keyframes spinGold {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-ring {
    border: 3px solid rgba(18, 125, 197, 0.1);
    border-top: 3px solid #127dc5; /* Brand Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spinGold 1s linear infinite;
}

/* Timeline Pulse Indicator */
@keyframes timelinePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(18, 125, 197, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(18, 125, 197, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(18, 125, 197, 0);
    }
}

.timeline-dot-active {
    animation: timelinePulse 2s infinite;
}

/* Accordion Smooth Height Transition Helper */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
    opacity: 0;
}

.accordion-item.active .accordion-content {
    max-height: 500px; /* arbitrary height to fit contents */
    opacity: 1;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-icon {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Journey Timeline Scroll Glow Effects */
.journey-card {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
                box-shadow 0.6s cubic-bezier(0.25, 1, 0.5, 1),
                border-color 0.6s cubic-bezier(0.25, 1, 0.5, 1),
                background-color 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.journey-card:hover, .journey-card-active {
    border-color: rgba(18, 125, 197, 0.6) !important; /* Brand Blue */
    box-shadow: 0 15px 35px -10px rgba(18, 125, 197, 0.2);
    background-color: rgba(255, 255, 255, 0.95) !important;
    transform: translateY(-6px);
}

.journey-card:hover .journey-number, .journey-card-active .journey-number {
    color: #127dc5 !important; /* Brand Blue */
    transform: scale(1.1);
}

/* Timeline Dot Scroll Link Animation */
.timeline-dot-scroll-active {
    background-color: #127dc5 !important; /* Brand Blue */
    border-color: #127dc5 !important;
    box-shadow: 0 0 12px 4px rgba(18, 125, 197, 0.4);
    animation: timelinePulse 2s infinite;
}
