:root {
    /*  ELITE MEDICAL PALETTE - منصة ميس فاتن — علوم متكاملة 2026 */
    --edu-primary: #dc2626; /* Deep Red from Logo */
    --edu-primary-glow: rgba(220, 38, 38, 0.4);
    --edu-secondary: #1e3a8a; /* Royal Navy from Logo */
    --edu-accent: #f59e0b;
    --edu-text-main: #ffffff;
    --edu-text-muted: rgba(255, 255, 255, 0.7);
    --edu-glass: rgba(255, 255, 255, 0.05);
    --edu-glass-border: rgba(255, 255, 255, 0.1);
    --edu-shadow-elite: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --grad-primary: linear-gradient(135deg, #dc2626, #991b1b);
}

/*  GLASS CARD MEDICAL */
.glass-card-medical {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card-medical:hover {
    transform: translateY(-15px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.bg-glass-dark {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
}

.divider-center {
    width: 100px;
    height: 4px;
    margin: 0 auto;
    border-radius: 10px;
}

.tracking-wider {
    letter-spacing: 0.1em;
}

.fw-black {
    font-weight: 900 !important;
}

.premium-bg-container {
    display: none; /* Hide old background logic as we use dr-ta7-bg now */
}

.premium-bg-image {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-image: url("../../img/landing-bg-1768750062.webp");
    /* WebP version for extreme performance (~13KB) */
    background-size: cover;
    background-position: center;
    opacity: 0.95;
    filter: saturate(0.9) contrast(0.95);
    transform: scale(1.05);
    transition: transform 10s ease-in-out;
}

.premium-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1), rgba(13, 148, 136, 0.1));
    background-size: 400% 400%;
    animation: gradientWave 15s ease infinite;
    backdrop-filter: brightness(1.02);
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

body {
    color: var(--edu-text-main) !important;
    background-color: transparent !important;
    font-family: 'Inter', 'Outfit', sans-serif;
    overflow-x: hidden;
    direction: ltr;
    -webkit-tap-highlight-color: transparent;
    /* Remove mobile tap flicker */
}

/* Remove default focus overlays that cause flickering on click */
a,
button,
[role="button"] {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

/* TYPOGRAPHY */
.section-title {
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #0f172a;
    /* Darker for better contrast */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.text-gradient {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* HERO SECTION - ULTRA MODERN */
.hero-wrap {
    padding: 180px 0 120px;
    position: relative;
    background: transparent;
}

.hero-h1 {
    font-size: clamp(1.6rem, 6vw, 2.8rem);
    margin-bottom: 30px;
    font-weight: 950;
    color: #000000 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    line-height: 1.3;
    /* Increased line-height for better wrapping readability */
}

.hero-p {
    font-size: 1.35rem;
    max-width: 850px;
    margin: 0 auto 50px;
    color: #000000 !important;
    /* Pure black for maximum readability */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    line-height: 1.7;
}

/* MOBILE SELECTIVE UTILS */
@media (max-width: 768px) {
    .hero-p {
        font-size: 1.15rem !important;
        margin-bottom: 30px !important;
    }

    .btn-edu {
        padding: 14px 30px !important;
        font-size: 1.05rem !important;
        width: 100%;
        justify-content: center;
    }

    .gap-4 {
        gap: 1rem !important;
    }
}

/* MODERN BORDERS & CONTAINERS */
.modern-img-frame {
    position: relative;
    border-radius: 48px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--edu-shadow-elite);
    overflow: hidden;
}

.hero-img-container img, .dr-hero-avatar {
    width: 100%;
    max-width: 650px;
    animation: floatImg 8s ease-in-out infinite;
    border-radius: 40px;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.2));
}

.modern-img-frame {
    position: relative;
    border-radius: 48px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.15); /* Semi-transparent for better blending */
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.lottie-glow-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, var(--edu-primary-glow) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    animation: pulseGlow 10s infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

/* PREMIUM BUTTONS */
.btn-edu {
    padding: 20px 50px;
    border-radius: 24px;
    font-weight: 900;
    font-size: 1.15rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.btn-edu-primary {
    background: var(--grad-primary);
    color: white;
    box-shadow: 0 15px 35px var(--edu-primary-glow);
    border: none;
}

.btn-edu-primary:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 25px 50px var(--edu-primary-glow);
    color: white;
}

.btn-pulse {
    animation: btnPulse 2s infinite;
}

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

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.btn-edu-secondary {
    background: var(--edu-bg);
    color: var(--edu-primary);
    border: 2px solid #e2e8f0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
}

.btn-edu-secondary:hover {
    border-color: var(--edu-primary);
    transform: translateY(-8px);
    background: #f8fbff;
}

.btn-edu-accent {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.4);
    border: none;
}

.btn-edu-accent:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 25px 50px rgba(245, 158, 11, 0.6);
    color: white;
}

/* SCROLL INDICATOR - CLARIFIED */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--edu-text-main);
    text-decoration: none;
    font-weight: 900;
    font-size: 1rem;
    z-index: 10;
    text-align: center;
}

.indicator-text {
    background: rgba(255, 255, 255, 0.6);
    padding: 6px 16px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.mouse-wheel {
    width: 32px;
    height: 50px;
    border: 3.5px solid var(--edu-primary);
    border-radius: 16px;
    position: relative;
}

.mouse-wheel::before {
    content: '';
    width: 5px;
    height: 8px;
    background: var(--edu-primary);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
}

/* UTILITY CLASSES */
.card-plain {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* SECTION CARDS - REFINED AIRY FEEL */
.glass-card {
    background: var(--edu-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 40px;
    border: 1px solid var(--edu-glass-border);
    box-shadow: var(--edu-shadow-elite);
    transition: all 0.5s ease;
}

.feature-hover-card {
    border: 1px solid transparent;
}

.feature-hover-card:hover {
    transform: translateY(-12px);
    background: white;
    border-color: var(--edu-primary-glow);
    box-shadow: 0 40px 80px rgba(37, 99, 235, 0.1);
}

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    position: relative;
    border-radius: 30px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-hover-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--edu-primary);
    color: white !important;
    box-shadow: 0 20px 40px var(--edu-primary-glow);
}

.icon-animated {
    transition: all 0.5s ease;
}

.icon-pulse-primary {
    color: var(--edu-primary);
    animation: iconPulse 3s infinite ease-in-out;
}

.icon-float-secondary {
    color: var(--edu-secondary);
    animation: iconFloat 4s infinite ease-in-out;
}

.icon-swing-accent {
    color: var(--edu-accent);
    animation: iconSwing 5s infinite ease-in-out;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 transparent);
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 15px var(--edu-primary-glow));
    }
}

@keyframes iconFloat {

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

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

@keyframes iconSwing {

    0%,
    100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

/*  RTL Typewriter Cursor Fix */
.typed-cursor {
    color: var(--edu-primary);
    opacity: 1;
    animation: typed-blink 0.7s infinite;
    margin-right: 5px;
    display: inline-block;
}

@keyframes typed-blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

#typed-text {
    display: inline-block;
}

.typed-small {
    font-size: 0.75em;
    opacity: 0.9;
    font-weight: 700;
}

.typed-small {
    font-size: 0.75em;
    opacity: 0.9;
    font-weight: 700;
}

.video-card {
    background: white;
    border-radius: 40px;
    padding: 30px;
    border: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.5s ease-out;
}

.video-card:hover {
    transform: translateY(-15px) rotate(1deg);
    border-color: var(--edu-primary);
    box-shadow: 0 40px 80px rgba(15, 23, 42, 0.08);
}

/* MODEL CARDS ENHANCEMENTS */
.model-card {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative;
    z-index: 1;
    cursor: pointer;
    border: 2px solid transparent !important;
}

.model-card:hover {
    transform: translateY(-15px) scale(1.02) !important;
    border-color: var(--edu-primary-glow) !important;
    box-shadow: 0 40px 80px rgba(37, 99, 235, 0.1) !important;
    background: white !important;
}

.model-card .icon-box {
    transition: all 0.5s ease;
}

.model-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
    background: var(--edu-primary) !important;
}

.model-card:hover .icon-box i {
    color: white !important;
}

.card-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--edu-primary);
    background: var(--edu-primary-glow);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.model-card:hover .card-cta {
    background: var(--edu-primary);
    color: white;
    padding: 10px 30px;
    box-shadow: 0 10px 20px var(--edu-primary-glow);
}

.card-cta i {
    transition: transform 0.3s ease;
}

.model-card:hover .card-cta i {
    transform: translateX(-5px);
}

.bg-purple-soft {
    background: rgba(139, 92, 246, 0.1);
}

.text-purple {
    color: #8b5cf6;
}

.glass-card-primary-border {
    border: 1px solid var(--edu-primary-glow) !important;
}

/* RESULTS ELITE SECTION */
.results-elite {
    padding: 140px 0;
    background: radial-gradient(circle at bottom left, #f8fafc 0%, #ffffff 100%);
}

.result-btn {
    padding: 24px;
    border-radius: 28px;
    font-weight: 900;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-size: 1.3rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-high {
    background: #fffbeb;
    color: #b45309;
    border: 2.5px solid #fef3c7;
}

.btn-prep {
    background: #f0f9ff;
    color: #0369a1;
    border: 2.5px solid #e0f2fe;
}

.result-btn:hover {
    transform: scale(1.06) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .hero-wrap {
        padding-top: 140px;
    }

    .hero-h1 {
        font-size: 3rem;
    }

    .results-elite {
        padding: 80px 0;
    }

    /*  MOBILE POLISH */
    @media (max-width: 768px) {
        .hero-h1 {
            font-size: clamp(1.2rem, 6vw, 1.8rem);
            line-height: 1.4;
        }

        .hero-wrap {
            padding: 100px 0 60px;
        }

        .result-btn {
            padding: 15px 20px;
            font-size: 1rem;
            width: 100%;
        }

        .typed-small {
            font-size: 0.6em !important;
        }

        .section-title {
            text-align: center;
            margin-bottom: 2rem;
        }
    }
}

/*  SMART HUB ALERT - PREMIUM 2026 */
.smart-hub-container {
    margin-bottom: 2.5rem;
    perspective: 1000px;
}

.smart-hub {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 6px 6px 6px 20px;
    border-radius: 50px;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
    animation: hubEntrance 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
    transform: translateY(20px) rotateX(-15deg);
}

@keyframes hubEntrance {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.hub-badge {
    background: var(--grad-primary);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.hub-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    position: relative;
}

.hub-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 50%;
    animation: dotPulse 2s infinite;
}

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

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

.hub-links {
    display: flex;
    gap: 15px;
    font-weight: 700;
    font-size: 0.95rem;
}

.hub-link {
    color: var(--edu-text-main);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 4px 0;
}

.hub-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--edu-primary);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.hub-link:hover {
    color: var(--edu-primary);
}

.hub-link:hover::after {
    width: 100%;
}

.hub-sep {
    color: #e2e8f0;
    user-select: none;
}

@media (max-width: 768px) {
    .smart-hub {
        padding: 5px 5px 5px 15px;
        gap: 10px;
        font-size: 0.85rem;
    }

    .hub-links {
        gap: 10px;
    }

    .hub-link {
        font-size: 0.85rem;
    }
}

/*  FLOATING PSYCHOLOGICAL BADGE - 2026 EDITION */
.exam-floating-widget {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 999999;
    direction: ltr;
    animation: badgeEntrance 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes badgeEntrance {
    from {
        transform: translateX(100px) rotate(30deg);
        opacity: 0;
    }

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

.floating-badge-link {
    text-decoration: none !important;
    display: block;
}

.badge-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 8px 8px 8px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.badge-text {
    color: var(--edu-text-main);
    font-weight: 800;
    font-size: 1.05rem;
    white-space: nowrap;
}

.badge-icon-wrap {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.7rem;
    position: relative;
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.badge-pulse {
    position: absolute;
    inset: -5px;
    background: rgba(245, 158, 11, 0.3);
    border-radius: 50%;
    z-index: -1;
    animation: badgePulse 2s infinite;
}

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

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

.badge-content:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 30px 60px rgba(245, 158, 11, 0.2);
    background: white;
}

.badge-content:hover .badge-text {
    color: #d97706;
}

/*  MOBILE RESPONSIVE BADGE */
@media (max-width: 768px) {
    .exam-floating-widget {
        bottom: 25px;
        right: 20px;
        left: 20px;
    }

    .badge-content {
        padding: 5px 5px 5px 15px;
        justify-content: center;
        width: 100%;
    }

    .badge-text {
        font-size: 0.95rem;
    }

    .badge-icon-wrap {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
}

/*  CSS AOS MOCK - 2026 EDITION */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition-property: opacity, transform;
    transition-duration: 0.8s;
    transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/*  PREMIUM APP DOWNLOAD BUTTON - 2026 */
.app-download-wrapper {
    margin-top: 2.5rem;
    display: inline-block;
    perspective: 1000px;
}

.btn-app-download {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 32px;
    border-radius: 50px;
    color: #0f172a !important;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(15, 23, 42, 0.1);
    background-color: var(--edu-accent);
}

.btn-app-download:hover {
    transform: translateY(-8px) scale(1.03) rotate(-1deg);
    background: #0f172a;
    color: white !important;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
    border-color: var(--edu-accent);
}

.btn-app-download .app-icon-badge {
    width: 45px;
    height: 45px;
    background: white;
    color: #0f172a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.btn-app-download:hover .app-icon-badge {
    transform: rotate(360deg) scale(1.1);
    background: var(--edu-accent);
    color: #0f172a;
}

.app-badge-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.app-badge-text .small-text {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 700;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.app-badge-text .main-text {
    font-size: 1.15rem;
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .btn-app-download {
        padding: 12px 25px;
        width: 100%;
        justify-content: center;
    }

    .app-download-wrapper {
        width: 100%;
        margin-top: 1.5rem;
    }
}

/*  LOTTIE ANIMATION HERO - 2026 */
.hero-lottie-col {
    position: relative;
}

.hero-lottie-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 480px;
    animation: lottieEntrance 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes lottieEntrance {
    from {
        opacity: 0;
        transform: translateX(-60px) scale(0.85);
    }

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

.hero-lottie-player {
    width: 100%;
    max-width: 460px;
    height: auto;
    min-height: 350px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 20px 60px rgba(37, 99, 235, 0.25));
}

/* Glowing ring behind the animation */
.lottie-glow-ring {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(13, 148, 136, 0.08) 50%, transparent 70%);
    z-index: 1;
    animation: glowPulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowPulse {

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

    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

/*  Mobile: Stack animation below text */
@media (max-width: 991px) {
    .hero-lottie-player {
        min-height: 260px;
        max-width: 340px;
    }

    .lottie-glow-ring {
        width: 260px;
        height: 260px;
    }

    .hero-wrap {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-lottie-player {
        min-height: 220px;
        max-width: 280px;
    }

    .lottie-glow-ring {
        width: 200px;
        height: 200px;
    }
}

/*  Refined hero text colors for premium light feel */
.hero-h1 {
    color: #000000 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.hero-p {
    color: #334155 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

/*  RESPONSIVE TYPOGRAPHY UTILS */
.fs-clamp-title {
    font-size: clamp(1.8rem, 6vw, 3.2rem) !important;
    line-height: 1.2 !important;
}

.fs-clamp-cta {
    font-size: clamp(1.5rem, 5vw, 2.8rem) !important;
    line-height: 1.3 !important;
}

.max-width-700-dark {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}