/* ============================================
   LA PETALS - Premium Animation System
   ============================================ */

/* Import Premium Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ── Scroll Reveal Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delay classes */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ── Floating Particles Canvas ── */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* ── Hero Text Shimmer Animation ── */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.text-shimmer {
    background: linear-gradient(
        90deg,
        #D4AF37 0%,
        #F3E5AB 25%,
        #D4AF37 50%,
        #F3E5AB 75%,
        #D4AF37 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}

/* ── Glowing Gold Border Pulse ── */
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(212, 175, 55, 0.15), 0 0 20px rgba(212, 175, 55, 0.05); }
    50% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.35), 0 0 40px rgba(212, 175, 55, 0.1); }
}
.glow-card:hover {
    animation: glow-pulse 2s ease-in-out infinite;
}

/* ── Floating Animation for Elements ── */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.float-anim {
    animation: float 4s ease-in-out infinite;
}
.float-anim-slow {
    animation: float 6s ease-in-out infinite;
}

/* ── Rotating Glow Ring (for hero accents) ── */
@keyframes rotate-glow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.rotate-ring {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-top-color: rgba(212, 175, 55, 0.6);
    animation: rotate-glow 12s linear infinite;
    pointer-events: none;
}

/* ── Typewriter Cursor ── */
@keyframes blink-cursor {
    0%, 100% { border-right-color: #D4AF37; }
    50% { border-right-color: transparent; }
}
.typewriter-cursor {
    border-right: 3px solid #D4AF37;
    animation: blink-cursor 0.8s step-end infinite;
    padding-right: 4px;
}

/* ── Counter Animation ── */
.counter-value {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* ── Button Ripple Effect ── */
.btn-ripple {
    position: relative;
    overflow: hidden;
}
.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    opacity: 0;
}
.btn-ripple:hover::after {
    width: 300px;
    height: 300px;
    opacity: 1;
}

/* ── Magnetic Hover Effect for Cards ── */
.magnetic-card {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.3s ease;
    will-change: transform;
}

/* ── Gradient Border Animation ── */
@keyframes gradient-border {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.gradient-border-anim {
    background: linear-gradient(90deg, #D4AF37, #F3E5AB, #D4AF37, #F3E5AB);
    background-size: 300% 300%;
    animation: gradient-border 4s ease infinite;
    padding: 2px;
    border-radius: 12px;
}

/* ── Parallax Background Accent ── */
.parallax-bg {
    transition: transform 0.1s linear;
    will-change: transform;
}

/* ── Smooth Page Load Fade-In ── */
@keyframes page-fade-in {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}
body {
    animation: page-fade-in 0.6s ease-out;
}

/* ── Progress Bar on Scroll ── */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #D4AF37, #F3E5AB, #D4AF37);
    z-index: 9999;
    transition: width 0.15s linear;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* ── Back to Top Button ── */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0B2B26, #163E36);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}
#back-to-top:hover {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4), 0 4px 20px rgba(0,0,0,0.3);
    border-color: #D4AF37;
}
#back-to-top svg {
    width: 22px;
    height: 22px;
    color: #D4AF37;
}

/* ── Smooth Scroll ── */
html {
    scroll-behavior: smooth;
}

/* ── Image Reveal on Scroll ── */
.img-reveal {
    overflow: hidden;
    position: relative;
}
.img-reveal::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #FAF6EE;
    transform-origin: right;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}
.img-reveal.revealed::after {
    transform: scaleX(0);
}

/* ── Tooltip Gold Underline Animation ── */
.gold-underline {
    position: relative;
    display: inline-block;
}
.gold-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #D4AF37;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gold-underline:hover::after {
    width: 100%;
}

/* ── Section Divider Animation ── */
@keyframes divider-grow {
    0% { width: 0; }
    100% { width: 80px; }
}
.section-divider {
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
    margin: 0 auto;
}
.section-divider.revealed {
    animation: divider-grow 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── Testimonial Cards Hover Lift ── */
.testimonial-lift {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease;
}
.testimonial-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08), 0 0 30px rgba(212, 175, 55, 0.1);
}

/* ── Nav Link Hover Glow ── */
nav a {
    position: relative;
}
nav a:not(.text-gold)::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #D4AF37;
    transition: width 0.3s ease, left 0.3s ease;
}
nav a:not(.text-gold):hover::before {
    width: 100%;
    left: 0;
}

/* ── FAQ Accordion Smooth Open ── */
details {
    transition: all 0.3s ease;
}
details[open] {
    box-shadow: 0 8px 30px rgba(0,0,0,0.06), 0 0 15px rgba(212, 175, 55, 0.08);
}
details summary {
    transition: color 0.3s ease;
}
details[open] summary {
    color: #D4AF37;
}

/* ── Leaf/Petal decoration floating ── */
@keyframes petal-float {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.7; }
    90% { opacity: 0.7; }
    100% { transform: translate(100px, 100vh) rotate(360deg); opacity: 0; }
}

.petal {
    position: fixed;
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
    animation: petal-float linear infinite;
    opacity: 0;
}

/* ── Reduce Motion for Accessibility ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal, .reveal-left, .reveal-right, .reveal-scale {
        opacity: 1;
        transform: none;
    }
    #particles-canvas, .petal {
        display: none;
    }
}
