/* ========================================
   ESWL — V2 Animations & Hero
   Light Medical Premium Theme
   ======================================== */

/* Keyframes */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: .5;
        transform: scale(1.5)
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes typingBounce {

    0%,
    60%,
    100% {
        transform: translateY(0)
    }

    30% {
        transform: translateY(-6px)
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 119, 230, 0.2)
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 119, 230, 0.4)
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(360deg)
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0
    }

    100% {
        background-position: 200% 0
    }
}

@keyframes waveExpand {
    0% {
        transform: scale(0);
        opacity: 0.8
    }

    100% {
        transform: scale(3);
        opacity: 0
    }
}

@keyframes particleFade {
    0% {
        opacity: 1;
        transform: scale(1)
    }

    100% {
        opacity: 0;
        transform: scale(0)
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 119, 230, 0.4)
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 119, 230, 0)
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 119, 230, 0)
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1)
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0)
}

.reveal-delay-1 {
    transition-delay: 0.1s
}

.reveal-delay-2 {
    transition-delay: 0.2s
}

.reveal-delay-3 {
    transition-delay: 0.3s
}

.reveal-delay-4 {
    transition-delay: 0.4s
}

.reveal-delay-5 {
    transition-delay: 0.5s
}

.reveal-delay-6 {
    transition-delay: 0.6s
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 160px;
    background: linear-gradient(160deg, rgba(230, 242, 255, 0.7) 0%, rgba(240, 247, 255, 0.6) 30%, rgba(255, 255, 255, 0.5) 70%, rgba(240, 255, 254, 0.6) 100%)
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 188, 212, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 119, 230, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse
}



.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, var(--surface-bg) 100%);
    z-index: 1
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center
}

.hero-content {
    max-width: 620px
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: white;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-500);
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 119, 230, 0.08);
    animation: fadeInUp 0.6s ease-out
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--neutral-900);
    animation: fadeInUp 0.6s ease-out 0.1s both
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary-500), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.hero-description {
    font-size: 1.125rem;
    color: var(--neutral-500);
    line-height: 1.8;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out 0.2s both
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.6s ease-out 0.3s both
}

.hero-stat-number {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--primary-500)
}

.hero-stat-label {
    font-size: 0.875rem;
    color: var(--neutral-500);
    margin-top: 0.25rem
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.4s both
}

.hero-animation {
    display: flex;
    align-items: center;
    justify-content: center
}

.hero-animation canvas {
    width: 100%;
    max-width: 500px;
    height: 500px;
    border-radius: var(--radius-2xl)
}

.hero-video {
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-2xl);
    box-shadow: 0 20px 60px rgba(0, 119, 230, 0.15);
    border: 1px solid rgba(0, 119, 230, 0.1);
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease
}

.hero-video:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 119, 230, 0.25)
}

.hero-video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease
}

.hero-video-overlay.active {
    opacity: 1;
    visibility: visible
}

.hero-video-overlay video {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius-2xl);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5)
}

/* ========== IMAGE LIGHTBOX ========== */
.image-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: zoom-out;
}

.image-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.image-lightbox-overlay img {
    max-width: 85vw;
    max-height: 80vh;
    border-radius: var(--radius-xl);
    box-shadow: 0 40px 100px rgba(0, 119, 230, 0.15);
    transform: scale(0.92);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.image-lightbox-overlay.active img {
    transform: scale(1);
}

.zoomable-image {
    cursor: zoom-in;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.zoomable-image:hover {
    filter: brightness(1.1);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-300));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 119, 230, 0.3);
    animation: pulseGlow 2s infinite
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 119, 230, 0.4);
    color: white
}

.btn-outline {
    border: 2px solid var(--primary-400);
    color: var(--primary-500);
    background: white
}

.btn-outline:hover {
    background: var(--primary-50);
    color: var(--primary-500);
    transform: translateY(-2px)
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-xl)
}

/* ========== GLASS CARD ========== */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-base)
}

.glass-card:hover {
    border-color: rgba(0, 119, 230, 0.25);
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover)
}

/* ========== APPLE-STYLE PREMIUM BACKGROUND ========== */
#medical-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background: #fbfbfd;
    /* Apple's off-white background color */
}

.med-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150%;
    will-change: transform;
}

/* Layer 1: Apple-inspired soft ambient gradients */
.med-bg-gradient {
    background:
        radial-gradient(circle at 80% 20%, rgba(0, 102, 204, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(0, 188, 212, 0.02) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, #ffffff 0%, #fbfbfd 100%);
}

/* Glassmorphism Global Styles */
.glass-effect {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: saturate(180%) blur(20px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Apply glassmorphism to common elements */
.navbar {
    background: rgba(251, 251, 253, 0.8) !important;
    backdrop-filter: saturate(180%) blur(20px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    z-index: 1000 !important;
}

/* Sections and Cards */
section,
.section-container,
.booking-card {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.footer {
    background: #d6e9ff !important;
    /* Even more distinct blue */
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border-top: 1px solid rgba(0, 102, 204, 0.15) !important;
}