/* =========================================
   NEVILLE SION - LUXURY HOTEL INVESTMENTS
   Animations & Transitions
   ========================================= */

/* CSS Variables for Animations */
:root {
    --animation-duration: 0.8s;
    --animation-delay: 0.2s;
    --bounce-duration: 2s;
    --pulse-duration: 2s;
    --float-duration: 3s;
    --glow-duration: 1.5s;
}

/* Base Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp var(--animation-duration) ease-out forwards;
}

.fade-in-down {
    opacity: 0;
    transform: translateY(-30px);
    animation: fadeInDown var(--animation-duration) ease-out forwards;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInLeft var(--animation-duration) ease-out forwards;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInRight var(--animation-duration) ease-out forwards;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft var(--animation-duration) ease-out forwards;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight var(--animation-duration) ease-out forwards;
}

.slide-in-up {
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp var(--animation-duration) ease-out forwards;
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    animation: scaleIn var(--animation-duration) ease-out forwards;
}

/* Animation Delays */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1s; }

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    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 slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Bounce Animation for Scroll Indicator */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

/* Glow Animation */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
    }
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Shimmer Animation */
@keyframes shimmer {
    0% {
        background-position: -1200px 0;
    }
    100% {
        background-position: 1200px 0;
    }
}

/* Typing Animation */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--primary-gold);
    }
}

/* Advanced Hover Effects */

/* Button Hover Animations */
.subscribe-btn,
.submit-btn {
    position: relative;
    overflow: hidden;
}

.subscribe-btn::before,
.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.subscribe-btn:hover::before,
.submit-btn:hover::before {
    left: 100%;
}

/* Card Hover Effects */
.opportunity-card {
    position: relative;
    overflow: hidden;
}

.opportunity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(26, 54, 93, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.opportunity-card:hover::before {
    opacity: 1;
}

/* Service Card Hover Animation */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.service-card:hover::after {
    width: 300px;
    height: 300px;
}

/* Navbar Animation on Scroll */
.navbar {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    transform: translateY(-5px);
}

/* Form Input Animations */
.email-input,
.contact-form input,
.contact-form select,
.contact-form textarea {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.email-input:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    transform: translateY(-2px);
}

/* Loading Animation for Forms */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-top: 2px solid var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Text Animation Classes */
.text-glow {
    animation: glow var(--glow-duration) ease-in-out infinite alternate;
}

.text-float {
    animation: float var(--float-duration) ease-in-out infinite;
}

.text-pulse {
    animation: pulse var(--pulse-duration) infinite;
}

/* Progressive Enhancement Animations */
.hero-headline {
    background: linear-gradient(135deg, #ffffff 0%, #d4af37 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

/* ROI Number Animation */
.value.roi {
    position: relative;
}

.value.roi::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

/* Status Badge Animations */
.status-badge {
    position: relative;
    animation: pulse 3s infinite;
}

.status-badge.seller-motivated {
    animation: glow 2s ease-in-out infinite alternate;
}

/* Icon Animations */
.service-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon {
    animation: float 2s ease-in-out infinite;
}

/* Credential Item Stagger Animation */
.credential-item:nth-child(1) { animation-delay: 0.1s; }
.credential-item:nth-child(2) { animation-delay: 0.2s; }
.credential-item:nth-child(3) { animation-delay: 0.3s; }
.credential-item:nth-child(4) { animation-delay: 0.4s; }

/* Section Title Underline Animation */
.section-title::after {
    animation: slideInLeft 1s ease-out 0.5s forwards;
    transform: scaleX(0);
    transform-origin: left;
}

@keyframes slideUnderline {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* Intersection Observer Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Animation for Lists */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }

/* Advanced Gold Effect */
.gold-shine {
    background: linear-gradient(45deg, #d4af37, #f4e4a6, #d4af37, #c19b26);
    background-size: 400% 400%;
    animation: goldShine 3s ease-in-out infinite;
}

@keyframes goldShine {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Parallax Effect Classes */
.parallax {
    transition: transform 0.1s ease-out;
}

/* Smooth Reveal Animation */
.reveal-up {
    clip-path: inset(100% 0 0 0);
    animation: revealUp 1s ease-out forwards;
}

@keyframes revealUp {
    to {
        clip-path: inset(0 0 0 0);
    }
}

/* Counter Animation */
.counter {
    transition: all 0.3s ease;
}

/* Morphing Background */
.morphing-bg {
    background: linear-gradient(-45deg, #1a365d, #2d5a87, #1a365d, #142a47);
    background-size: 400% 400%;
    animation: gradientMorph 15s ease infinite;
}

@keyframes gradientMorph {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Particle Effect Simulation */
.particles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(212, 175, 55, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(212, 175, 55, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(212, 175, 55, 0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(212, 175, 55, 0.3), transparent);
    background-size: 200px 100px;
    animation: particleFloat 20s linear infinite;
    pointer-events: none;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
    }
    100% {
        transform: translateY(-100px) translateX(50px);
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .fade-in-up,
    .fade-in-down,
    .slide-in-left,
    .slide-in-right,
    .scale-in {
        animation-duration: 0.6s;
    }

    .hero-headline {
        animation: none;
        background: #ffffff;
        background-clip: initial;
        -webkit-background-clip: initial;
        -webkit-text-fill-color: initial;
    }

    .service-card:hover .service-icon {
        animation: none;
    }

    .text-float,
    .text-pulse {
        animation: none;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .fade-in-up,
    .fade-in-down,
    .fade-in-left,
    .fade-in-right,
    .slide-in-left,
    .slide-in-right,
    .slide-in-up,
    .scale-in {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .bounce,
    .float,
    .pulse,
    .glow,
    .shimmer,
    .goldShine,
    .gradientMorph,
    .particleFloat {
        animation: none;
    }

    .hero-headline {
        animation: none;
    }

    .scroll-arrow {
        animation: none;
    }

    .status-badge,
    .service-icon {
        animation: none;
    }
}

/* Print Styles for Animations */
@media print {
    * {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}