/* ========================================
   CHEF D'ŒUVRE STUDIO — Animations V3 SMOOTH
   ======================================== */

/* ---- Keyframes ---- */
@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes expandLine {
    to { width: 200px; }
}
@keyframes particleFloat {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.12; }
    90% { opacity: 0.12; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}
@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}
@keyframes shapeDrift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(90deg); }
    50% { transform: translate(-20px, 20px) rotate(180deg); }
    75% { transform: translate(20px, 30px) rotate(270deg); }
}
@keyframes glitch1 {
    0%, 90%, 100% { clip-path: inset(0); transform: translate(0); }
    92% { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 2px); }
    94% { clip-path: inset(50% 0 20% 0); transform: translate(3px, -1px); }
    96% { clip-path: inset(10% 0 70% 0); transform: translate(-2px, 3px); }
    98% { clip-path: inset(40% 0 40% 0); transform: translate(2px, -2px); }
}
@keyframes glitch2 {
    0%, 90%, 100% { clip-path: inset(0); transform: translate(0); }
    91% { clip-path: inset(30% 0 50% 0); transform: translate(3px, -2px); }
    93% { clip-path: inset(60% 0 10% 0); transform: translate(-3px, 1px); }
    95% { clip-path: inset(15% 0 65% 0); transform: translate(2px, -3px); }
    97% { clip-path: inset(45% 0 35% 0); transform: translate(-2px, 2px); }
}
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes rippleAnim {
    to { transform: scale(4); opacity: 0; }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 0; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}
@keyframes textGlow {
    0%, 100% { text-shadow: 0 0 0 transparent; }
    50% { text-shadow: 0 0 15px rgba(184, 192, 203, 0.25); }
}
@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.2) rotate(-5deg); }
    70% { transform: scale(0.95); }
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes softPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ========================================
   REVEAL ANIMATIONS — GPU-friendly, no blur
   ======================================== */
.reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-rotate, .reveal-blur {
    will-change: transform, opacity;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

.reveal-rotate {
    opacity: 0;
    transform: rotate(-3deg) translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal-rotate.active {
    opacity: 1;
    transform: rotate(0) translateY(0);
}

.reveal-blur {
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal-blur.active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children — simple, smooth */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.stagger-children.active > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: none; }
.stagger-children.active > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: none; }
.stagger-children.active > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: none; }
.stagger-children.active > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: none; }
.stagger-children.active > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: none; }
.stagger-children.active > *:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: none; }
.stagger-children.active > *:nth-child(7) { transition-delay: 0.35s; opacity: 1; transform: none; }

/* ========================================
   HOVER EFFECTS — smooth transitions only
   ======================================== */
.service-card, .contact-card, .schedule-day, .stat-item {
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.45s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.45s ease !important;
    will-change: transform;
}
.service-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 0 1px rgba(184,192,203,0.15) !important;
}
.contact-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.25) !important;
}
.schedule-day:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2) !important;
}
.stat-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 14px 35px rgba(0,0,0,0.25) !important;
}
.service-card:hover .service-icon {
    animation: iconBounce 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
}
.contact-card:hover > i {
    animation: iconBounce 0.4s ease;
}

/* Nav links underline */
.nav-links a:not(.nav-cta):not(.nav-login):not(.nav-account)::after {
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1) !important;
    transform: scaleX(0);
}
.nav-links a:not(.nav-cta):not(.nav-login):not(.nav-account):hover::after {
    transform: scaleX(1) !important;
}

/* Buttons */
.hero-cta, .nav-cta, .btn-outline, .btn-gold {
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s ease, background 0.3s ease, color 0.3s ease !important;
    will-change: transform;
}
.hero-cta:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(184,192,203,0.2) !important;
}
.nav-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(184,192,203,0.15) !important;
}
.btn-outline:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(184,192,203,0.15) !important;
}

/* Footer socials */
.footer-socials a {
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s ease !important;
}
.footer-socials a:hover {
    transform: translateY(-3px) scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(184,192,203,0.15) !important;
}
.footer-links a {
    transition: color 0.3s ease, transform 0.3s ease !important;
}
.footer-links a:hover {
    transform: translateX(3px);
}

/* About image */
.about-image-wrap img {
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1) !important;
}
.about-image-wrap:hover img {
    transform: scale(1.05) !important;
}

/* Section label underline */
.section-label { position: relative; display: inline-block; }
.section-label::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}
.active .section-label::after,
.reveal.active .section-label::after,
.reveal-left.active .section-label::after,
.reveal-right.active .section-label::after,
.reveal-blur.active .section-label::after {
    width: 50px;
}

/* Title glow on hover */
.section-title em {
    transition: text-shadow 0.4s ease;
}
.section-title:hover em {
    text-shadow: 0 0 20px rgba(184, 192, 203, 0.2);
}

/* Hero */
.hero-title {
    animation: textGlow 5s ease-in-out infinite;
    animation-delay: 3s;
}
.hero-scroll {
    animation: float 2.5s ease-in-out infinite !important;
}

/* Marquee */
.marquee:hover .marquee-inner {
    animation-play-state: paused;
}
.marquee-item {
    transition: color 0.3s ease, transform 0.3s ease;
}
.marquee-item:hover {
    color: rgba(184, 192, 203, 0.5) !important;
    transform: scale(1.05);
}

/* Map */
.map-container {
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s ease !important;
}
.map-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.25) !important;
}

/* Schedule glow */
.schedule-day:hover .schedule-day-hours {
    animation: textGlow 1.5s ease infinite;
}

/* Nav logo */
.nav-logo-img {
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1) !important;
}
.nav-logo:hover .nav-logo-img {
    transform: scale(1.06) !important;
}

/* Loader */
#loader .loader-text span {
    animation: slideUp 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.loader-line {
    animation: expandLine 1.8s cubic-bezier(0.25, 1, 0.5, 1) 0.4s forwards !important;
    box-shadow: 0 0 10px rgba(184, 192, 203, 0.2);
}

/* Hamburger */
.hamburger:hover span { background: var(--gold) !important; }
.hamburger span { transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1) !important; }

/* Cursor trail dot — GPU-accelerated */
.cursor-trail-dot {
    position: fixed;
    width: 5px; height: 5px;
    background: rgba(184, 192, 203, 0.35);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99997;
    will-change: transform;
    transform: translate3d(0,0,0);
}

/* Utilities */
.hover-lift { transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease; }
.hover-lift:hover { transform: translateY(-6px); box-shadow: 0 16px 45px rgba(0,0,0,0.25); }
.glow-gold { box-shadow: 0 0 0 0 rgba(200,169,110,0); transition: box-shadow 0.4s ease; }
.glow-gold:hover { box-shadow: 0 0 25px rgba(200,169,110,0.15); }

/* Skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--dark-3) 25%, var(--dark-4) 50%, var(--dark-3) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease infinite;
    border-radius: var(--radius);
}

/* Page Transition */
.page-transition {
    position: fixed; inset: 0;
    background: var(--black);
    z-index: 99998;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.5s cubic-bezier(0.86, 0, 0.07, 1);
    pointer-events: none;
}
.page-transition.active {
    transform: scaleY(1);
    transform-origin: top;
}

/* Ripple */
.ripple { position: relative; overflow: hidden; }
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(184,192,203,0.15);
    transform: scale(0);
    animation: rippleAnim 0.6s linear;
    pointer-events: none;
}

/* ---- Accessibility ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
