/* Cinematic Video Zoom */
@keyframes cinematicZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.video-zoom {
    animation: cinematicZoom 20s ease-in-out infinite alternate;
}

/* Hero Gradient Overlay */
.hero-gradient-overlay {
    background: linear-gradient(
        90deg,
        rgba(8, 18, 35, 0.82) 0%,
        rgba(8, 18, 35, 0.68) 45%,
        rgba(8, 18, 35, 0.45) 100%
    );
}

/* Staggered Fade Up Animations */
@keyframes fadeUpPremium {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up-sequence {
    opacity: 0;
    animation: fadeUpPremium 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }

/* Scroll Indicator Bounce */
@keyframes scrollBounceArrow {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-4px); }
    60% { transform: translateY(-2px); }
}

.animate-scroll-bounce-arrow {
    display: inline-block;
    animation: scrollBounceArrow 2s infinite;
}

/* Floating Particles (Tiny Green Circles) */
@keyframes particleFloat {
    0% { transform: translate(0, 0) scale(1); opacity: 0.1; }
    33% { transform: translate(30px, -50px) scale(1.2); opacity: 0.3; }
    66% { transform: translate(-20px, 20px) scale(0.8); opacity: 0.15; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.1; }
}
.hero-particle {
    position: absolute;
    border-radius: 50%;
    background-color: #4ade80; /* Secondary green */
    filter: blur(2px);
    animation: particleFloat 15s infinite ease-in-out alternate;
}

/* Apple-style Glass Floating Dock */
.apple-glass-dock {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
    /* No defined width, inline-flex takes care of fitting content */
}

/* Treatment Slider Track */
.treatment-slider-track {
    display: flex;
    gap: 0.25rem;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}
.treatment-slider-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
.treatment-slider-track:active {
    cursor: grabbing;
}

@media (min-width: 1024px) {
    .treatment-slider-track {
        overflow-x: hidden;
        scroll-snap-type: none;
        scroll-behavior: auto; /* Required for JS continuous scrolling */
    }
}

/* Apple Treatment Item */
.apple-treatment-item {
    scroll-snap-align: center;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-treatment-item:hover {
    background-color: #3F6F34; /* Secondary green */
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 20px -5px rgba(63, 111, 52, 0.4);
}

.apple-treatment-item:hover .apple-icon-circle {
    background-color: transparent;
    box-shadow: none;
}

.apple-treatment-item:hover .apple-icon-circle i {
    color: #ffffff;
    transform: rotate(10deg);
}

/* Primary Button Premium Glow */
.btn-primary-premium {
    position: relative;
    z-index: 1;
}
.btn-primary-premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    background: inherit;
    filter: blur(12px);
    opacity: 0.5;
    z-index: -1;
    transition: opacity 0.35s ease;
}
.btn-primary-premium:hover::before {
    opacity: 0.8;
}
.btn-primary-premium:hover {
    transform: scale(1.03);
}

/* Secondary Button Premium */
.btn-secondary-premium {
    transition: all 0.35s ease;
}
.btn-secondary-premium:hover {
    transform: translateY(-2px);
    color: #081223 !important; /* Navy text */
}

/* Ensure stats look clean */
.count-up {
    font-variant-numeric: tabular-nums;
}

/* ========================================= */
/* PREMIUM DOCTOR PORTRAIT ANIMATIONS        */
/* ========================================= */

.perspective-1000 {
    perspective: 1000px;
}

@keyframes portraitFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.animate-portrait-float {
    animation: portraitFloat 6s ease-in-out infinite;
    will-change: transform;
}

@keyframes slowSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.animate-slow-spin {
    animation: slowSpin 30s linear infinite;
}

@keyframes slowSpinReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

.animate-slow-spin-reverse {
    animation: slowSpinReverse 25s linear infinite;
}

/* Floating Glass Badges */
@keyframes floatDrift1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(5px, -10px); }
    66% { transform: translate(-5px, 5px); }
}

@keyframes floatDrift2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-8px, -5px); }
    66% { transform: translate(5px, 8px); }
}

@keyframes floatDrift3 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(6px, 8px); }
    66% { transform: translate(-6px, -8px); }
}

.animate-float-drift-1 { animation: floatDrift1 8s ease-in-out infinite; }
.animate-float-drift-2 { animation: floatDrift2 10s ease-in-out infinite reverse; }
.animate-float-drift-3 { animation: floatDrift3 9s ease-in-out infinite; }
