/* 🚀 EPIC $100K HERO TRANSFORMATION - LUXURY DARK MODE WITH BREATHING EFFECTS 🚀 */

/* PREVENT FLASHING AND ENSURE SMOOTH DISPLAY */
.epic-hero {
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 1 !important;
}

/* ABSOLUTELY FORCE HERO TO NEVER FADE OR GO BLACK */
.epic-hero,
.epic-hero * {
    opacity: 1 !important;
    visibility: visible !important;
}

/* OVERRIDE ANY SCROLL-BASED OPACITY CHANGES */
.epic-hero[style*="opacity"] {
    opacity: 1 !important;
}

.epic-hero,
.epic-hero *:not(.star):not(.cosmic-particle):not(.breathing-icon) {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* FORCE HERO CONTENT TO STAY VISIBLE */
.epic-content-glass {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1) !important;
}

.epic-container {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ===== EPIC HERO CONTAINER ===== */
.epic-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #1a1510 0%, #000000 100%);
    overflow: visible;
    padding: 8rem 0 2rem;
}

/* ===== EPIC COSMIC BACKGROUND SYSTEM ===== */
.epic-cosmos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: visible;
}

/* TWINKLING STARS */
.star-field {
    position: absolute;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #ffffff;
    border-radius: 50%;
    animation: starTwinkle 4s ease-in-out infinite;
}

.star--1 { top: 10%; left: 15%; animation-delay: 0s; }
.star--2 { top: 20%; right: 20%; animation-delay: 0.5s; }
.star--3 { top: 35%; left: 8%; animation-delay: 1s; }
.star--4 { top: 50%; right: 12%; animation-delay: 1.5s; }
.star--5 { bottom: 40%; left: 25%; animation-delay: 2s; }
.star--6 { bottom: 25%; right: 30%; animation-delay: 2.5s; }
.star--7 { top: 15%; left: 60%; animation-delay: 3s; }
.star--8 { top: 70%; right: 45%; animation-delay: 3.5s; }
.star--9 { top: 25%; left: 75%; animation-delay: 0.7s; }
.star--10 { bottom: 60%; right: 15%; animation-delay: 1.2s; }
.star--11 { top: 45%; left: 40%; animation-delay: 1.8s; }
.star--12 { bottom: 35%; left: 70%; animation-delay: 2.3s; }
.star--13 { top: 60%; right: 25%; animation-delay: 2.8s; }
.star--14 { bottom: 15%; left: 50%; animation-delay: 0.3s; }
.star--15 { top: 80%; right: 60%; animation-delay: 1.3s; }
.star--16 { top: 30%; left: 30%; animation-delay: 1.9s; }
.star--17 { bottom: 50%; right: 55%; animation-delay: 2.4s; }
.star--18 { top: 75%; left: 20%; animation-delay: 0.9s; }
.star--19 { bottom: 80%; right: 40%; animation-delay: 3.2s; }
.star--20 { top: 40%; right: 70%; animation-delay: 2.7s; }

/* Make some stars bigger and brighter */
.star--3, .star--7, .star--12, .star--16 {
    width: 3px;
    height: 3px;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.star--5, .star--10, .star--18 {
    width: 4px;
    height: 4px;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
    background: #60a5fa;
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
        box-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
        box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
    }
}

/* FLOATING COSMIC PARTICLES */
.cosmic-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.cosmic-particle {
    position: absolute;
    width: 1px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: cosmicFloat 20s linear infinite;
}

.cosmic-particle--1 { left: 10%; animation-delay: 0s; }
.cosmic-particle--2 { left: 25%; animation-delay: 3s; }
.cosmic-particle--3 { left: 40%; animation-delay: 6s; }
.cosmic-particle--4 { left: 55%; animation-delay: 9s; }
.cosmic-particle--5 { left: 70%; animation-delay: 12s; }
.cosmic-particle--6 { left: 85%; animation-delay: 15s; }
.cosmic-particle--7 { left: 15%; animation-delay: 18s; }
.cosmic-particle--8 { left: 60%; animation-delay: 2s; }

@keyframes cosmicFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(-50px) rotate(360deg);
        opacity: 0;
    }
}

/* BREATHING NEBULA CLOUDS */
.nebula-clouds {
    position: absolute;
    width: 100%;
    height: 100%;
}

.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.1;
    animation: nebulaBreath 12s ease-in-out infinite;
}

.nebula--1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--premium-gold, #E9B537), transparent);
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.nebula--2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #10b981, transparent);
    top: 60%;
    right: 25%;
    animation-delay: 4s;
}

.nebula--3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #a855f7, transparent);
    bottom: 30%;
    left: 60%;
    animation-delay: 8s;
}

.nebula--4 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--premium-gold, #E9B537), transparent);
    top: 40%;
    right: 10%;
    animation-delay: 2s;
}

@keyframes nebulaBreath {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.05;
    }
    50% {
        transform: scale(1.3) rotate(180deg);
        opacity: 0.15;
    }
}

/* EPIC GRADIENT MESH */
.gradient-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        conic-gradient(from 0deg at 30% 20%, transparent, rgba(59, 130, 246, 0.03), transparent),
        conic-gradient(from 180deg at 70% 80%, transparent, rgba(16, 185, 129, 0.02), transparent),
        conic-gradient(from 90deg at 20% 70%, transparent, rgba(168, 85, 247, 0.02), transparent);
    animation: meshRotate 30s linear infinite;
}

@keyframes meshRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== BREATHING MEDICAL ICONS ===== */
.breathing-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.breathing-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.8);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: iconBreathe 8s ease-in-out infinite;
}

.breathing-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.3), transparent, rgba(16, 185, 129, 0.3), transparent);
    animation: iconBorder 6s linear infinite;
    z-index: -1;
}

.breathing-icon i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    animation: iconPulse 3s ease-in-out infinite;
}

.icon-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulseRing 4s ease-out infinite;
}

.breathing-icon--1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.breathing-icon--2 {
    top: 25%;
    right: 15%;
    animation-delay: 1.5s;
}

.breathing-icon--3 {
    bottom: 35%;
    left: 8%;
    animation-delay: 3s;
}

.breathing-icon--4 {
    bottom: 20%;
    right: 12%;
    animation-delay: 4.5s;
}

.breathing-icon--5 {
    bottom: 12%;
    left: 8%;
    top: auto;
    animation-delay: 6s;
}

.breathing-icon--6 {
    top: 45%;
    right: 8%;
    animation-delay: 7.5s;
}

@keyframes iconBreathe {
    0%, 100% {
        transform: scale(1) translateY(0);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.1) translateY(-10px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    }
}

@keyframes iconBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes iconPulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

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

/* ===== EPIC CONTAINER ===== */
.epic-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== EPIC GLASS MORPHISM CONTENT ===== */
.epic-content-glass {
    position: relative;
    background: linear-gradient(135deg,
        rgba(15, 23, 42, 0.4) 0%,
        rgba(30, 41, 59, 0.3) 50%,
        rgba(15, 23, 42, 0.4) 100%);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 4rem 3rem;
    text-align: center;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: glassBreath 10s ease-in-out infinite;
    overflow: hidden;
}

.glass-border {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 32px;
    background: linear-gradient(45deg,
        transparent,
        rgba(233, 181, 55, 0.05),  /* Much more subtle gold */
        transparent,
        rgba(245, 199, 87, 0.05),  /* Much more subtle gold */
        transparent,
        rgba(212, 164, 47, 0.05),  /* Much more subtle gold */
        transparent);
    background-size: 400% 400%;
    animation: borderFlow 8s ease-in-out infinite;
    opacity: 0.3;  /* Reduced from 0.6 to 0.3 */
    z-index: -1;
}

@keyframes glassBreath {
    0%, 100% {
        transform: scale(1);
        background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.4) 0%,
            rgba(30, 41, 59, 0.3) 50%,
            rgba(15, 23, 42, 0.4) 100%);
    }
    50% {
        transform: scale(1.02);
        background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.5) 0%,
            rgba(30, 41, 59, 0.4) 50%,
            rgba(15, 23, 42, 0.5) 100%);
    }
}

@keyframes borderFlow {
    0%, 100% {
        background-position: 0% 50%;
        opacity: 0.1;  /* Much more subtle */
    }
    50% {
        background-position: 100% 50%;
        opacity: 0.2;  /* Much more subtle instead of 0.8 */
    }
}

/* ===== EPIC 3D TITLE ===== */
.epic-title-container {
    margin-bottom: 3rem;
    position: relative;
}

.epic-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
    perspective: 1000px;
}

.epic-word {
    position: relative;
    display: inline-block;
    transform-style: preserve-3d;
    animation: wordFloat 8s ease-in-out infinite;
}

.epic-word--primary {
    animation-delay: 0s;
}

.epic-word--secondary {
    animation-delay: 1s;
}

.epic-word--accent {
    animation-delay: 2s;
}

.word-surface,
.word-depth,
.word-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.word-surface {
    position: relative;
    z-index: 3;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.word-depth {
    z-index: 1;
    color: rgba(15, 23, 42, 0.8);
    transform: translateZ(-10px) translateX(2px) translateY(2px);
}

.word-glow {
    z-index: 2;
    background: linear-gradient(135deg, var(--luxury-gold, #F5C757) 0%, var(--premium-gold, #E9B537) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(2px);
    opacity: 0.6;
    animation: glowPulse 4s ease-in-out infinite;
}

.epic-word--primary .word-surface {
    background: linear-gradient(135deg, var(--premium-gold, #E9B537) 0%, var(--luxury-gold, #F5C757) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.epic-word--primary .word-glow {
    background: linear-gradient(135deg, var(--premium-gold, #E9B537) 0%, var(--luxury-gold, #F5C757) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.epic-word--secondary .word-surface {
    background: linear-gradient(135deg, var(--premium-gold, #E9B537) 0%, var(--elite-gold, #D4A42F) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.epic-word--secondary .word-glow {
    background: linear-gradient(135deg, var(--luxury-gold, #F5C757) 0%, var(--premium-gold, #E9B537) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.epic-word--accent .word-surface {
    background: linear-gradient(135deg, var(--premium-gold, #E9B537) 0%, var(--elite-gold, #D4A42F) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.epic-word--accent .word-glow {
    background: linear-gradient(135deg, var(--luxury-gold, #F5C757) 0%, var(--premium-gold, #E9B537) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.epic-emoji {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    animation: emojiFloat 6s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transform-origin: center center;
}

@keyframes wordFloat {
    0%, 100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg);
    }
    25% {
        transform: translateY(-10px) rotateX(5deg) rotateY(-2deg);
    }
    50% {
        transform: translateY(5px) rotateX(-2deg) rotateY(3deg);
    }
    75% {
        transform: translateY(-5px) rotateX(3deg) rotateY(-1deg);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes emojiFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    33% {
        transform: translateY(-15px) rotate(12deg) scale(1.1);
    }
    66% {
        transform: translateY(8px) rotate(-8deg) scale(0.95);
    }
}

/* ===== EPIC DESCRIPTION ===== */
.epic-description {
    font-size: clamp(1.125rem, 3vw, 1.375rem);
    line-height: 1.7;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(226, 232, 240, 0.9);
    position: relative;
}

.text-flow {
    display: inline-block;
    background: linear-gradient(135deg,
        #e2e8f0 0%,
        #cbd5e1 25%,
        #94a3b8 50%,
        #cbd5e1 75%,
        #f1f5f9 100%);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textFlow 8s ease-in-out infinite;
}

.text-flow:nth-child(2) {
    animation-delay: 2s;
}

@keyframes textFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ===== EPIC BUTTONS ===== */
.epic-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.epic-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: btnBreathe 6s ease-in-out infinite;
    min-width: 200px;
    transform: translateZ(0);  /* Force hardware acceleration */
    backface-visibility: hidden;  /* Prevent flickering */
}

.btn-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;  /* Match the main button radius */
    z-index: 1;
    transition: all 0.4s ease;
    transform: translateZ(0);  /* Force hardware acceleration */
    backface-visibility: hidden;  /* Prevent flickering */
}

.btn-border {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 16px;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    transform: translateZ(0);  /* Force hardware acceleration */
    overflow: hidden;  /* Ensure content is clipped to border-radius */
}

.btn-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.btn-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;  /* Match button radius to prevent square appearance */
    pointer-events: none;
    z-index: 2;
    overflow: hidden;  /* Ensure particles don't extend beyond rounded corners */
}

/* Primary Button */
.epic-btn--primary .btn-bg {
    background: linear-gradient(135deg, var(--premium-gold, #E9B537) 0%, var(--elite-gold, #D4A42F) 50%, var(--luxury-gold, #F5C757) 100%);
    background-size: 200% 200%;
    animation: primaryBg 4s ease-in-out infinite;
}

.epic-btn--primary .btn-border {
    background: linear-gradient(45deg, var(--luxury-gold, #F5C757), var(--premium-gold, #E9B537), var(--elite-gold, #D4A42F), var(--luxury-gold, #F5C757));
    background-size: 400% 400%;
    animation: primaryBorder 6s linear infinite;
}

.epic-btn--primary .btn-content {
    color: #000000;  /* Black text on gold for contrast */
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
    font-weight: 700;
}

.epic-btn--primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(233, 181, 55, 0.5);  /* Logo gold glow */
}

.epic-btn--primary:hover .btn-border {
    opacity: 1;
}

/* Outline Button */
.epic-btn--outline .btn-bg {
    background: linear-gradient(135deg,
        rgba(15, 23, 42, 0.6) 0%,
        rgba(30, 41, 59, 0.4) 100%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.epic-btn--outline .btn-border {
    background: linear-gradient(45deg,
        rgba(255, 255, 255, 0.3),
        rgba(59, 130, 246, 0.3),
        rgba(255, 255, 255, 0.3));
    background-size: 400% 400%;
    animation: outlineBorder 8s ease-in-out infinite;
}

.epic-btn--outline .btn-content {
    color: rgba(255, 255, 255, 0.9);
}

.epic-btn--outline:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.1);
}

.epic-btn--outline:hover .btn-border {
    opacity: 1;
}

.epic-btn--outline:hover .btn-content {
    color: #ffffff;
}

@keyframes btnBreathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes primaryBg {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

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

@keyframes outlineBorder {
    0%, 100% {
        background-position: 0% 50%;
        opacity: 0.3;
    }
    50% {
        background-position: 100% 50%;
        opacity: 0.8;
    }
}

/* ===== EPIC BREATHING STATS ===== */
.epic-stats {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: vertical stack */
    gap: 2rem;
    margin-top: 3rem;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}

/* Tablet: 2x2 grid */
@media (min-width: 768px) {
    .epic-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 4x1 single row for balanced layout */
@media (min-width: 960px) {
    .epic-stats {
        grid-template-columns: repeat(4, 1fr);
        max-width: 900px;
    }
}

.epic-stat {
    position: relative;
    background: linear-gradient(145deg,
        rgba(15, 23, 42, 0.6) 0%,
        rgba(30, 41, 59, 0.4) 100%);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.9rem 1.2rem;
    text-align: center;
    overflow: visible;
    animation: statBreathe 8s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.epic-stat:nth-child(1) { animation-delay: 0s; }
.epic-stat:nth-child(2) { animation-delay: 2s; }
.epic-stat:nth-child(3) { animation-delay: 4s; }
.epic-stat:nth-child(4) { animation-delay: 6s; }

.stat-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 20px;
    background: linear-gradient(45deg,
        transparent,
        rgba(233, 181, 55, 0.08),  /* Much more subtle gold */
        transparent,
        rgba(245, 199, 87, 0.08),  /* Much more subtle gold */
        transparent);
    background-size: 400% 400%;
    animation: statGlow 10s ease-in-out infinite;
    opacity: 0;
    z-index: -1;
}

.stat-number {
    display: block;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 900;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1;
    animation: numberPulse 4s ease-in-out infinite;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(203, 213, 225, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.3;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
}

.stat-pulse {
    display: none; /* Hide yellow circles - user requested removal */
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(233, 181, 55, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: statPulseRing 6s ease-out infinite;
    opacity: 0;
}

.epic-stat:hover {
    transform: translateY(-5px) scale(1.02);  /* More subtle movement */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);  /* Softer shadow */
}

.epic-stat:hover .stat-glow {
    opacity: 0.15;  /* Much more subtle instead of fully opaque */
}

.epic-stat:hover .stat-pulse {
    opacity: 1;
}

@keyframes statBreathe {
    0%, 100% {
        transform: scale(1);
        background: linear-gradient(145deg,
            rgba(15, 23, 42, 0.6) 0%,
            rgba(30, 41, 59, 0.4) 100%);
    }
    50% {
        transform: scale(1.03);
        background: linear-gradient(145deg,
            rgba(15, 23, 42, 0.7) 0%,
            rgba(30, 41, 59, 0.5) 100%);
    }
}

@keyframes statGlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes numberPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.05);
        filter: brightness(1.2);
    }
}

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

/* ===== EPIC SCROLL INDICATOR ===== */
.epic-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.epic-scroll-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-text {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.8;
    letter-spacing: 0.05em;
}

.scroll-icon {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: rgba(15, 23, 42, 0.3);
    position: relative;
}

.scroll-pulse {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    animation: scrollPulseRing 3s ease-out infinite;
}

.epic-scroll-link:hover {
    color: #ffffff;
    transform: translateY(-5px);
}

.epic-scroll-link:hover .scroll-icon {
    border-color: rgba(59, 130, 246, 0.6);
    background: rgba(59, 130, 246, 0.1);
}

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

@keyframes scrollPulseRing {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .epic-hero {
        padding: 6rem 0 2rem;
    }

    .epic-content-glass {
        padding: 3rem 2rem;
        margin: 0 1rem;
    }

    .epic-title {
        font-size: clamp(2.5rem, 7vw, 4rem);
        gap: clamp(0.5rem, 2vw, 1rem);
    }

    .epic-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .epic-btn {
        width: 100%;
        max-width: 280px;
    }

    /* epic-stats grid rules moved to main definition above */

    .breathing-icon {
        width: 50px;
        height: 50px;
    }

    .breathing-icon i {
        font-size: 1.25rem;
    }

    .nebula {
        filter: blur(40px);
        opacity: 0.05;
    }
}

@media (max-width: 480px) {
    .epic-content-glass {
        padding: 2.5rem 1.5rem;
        border-radius: 24px;
    }

    .epic-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    /* epic-stats grid rules moved to main definition above */

    .epic-stat {
        padding: 1.5rem 1rem;
    }

    .breathing-icons {
        display: none; /* Hide on very small screens to avoid clutter */
    }
}

/* ===== FALLBACKS FOR OLDER BROWSERS ===== */
@supports not (backdrop-filter: blur(20px)) {
    .epic-content-glass {
        background: rgba(15, 23, 42, 0.9);
    }

    .breathing-icon {
        background: rgba(15, 23, 42, 0.9);
    }

    .epic-btn--outline .btn-bg {
        background: rgba(15, 23, 42, 0.8);
    }
}

@supports not (-webkit-background-clip: text) {
    .word-surface, .word-glow {
        color: #ffffff;
    }

    .epic-word--primary .word-surface { color: var(--premium-gold, #E9B537); }
    .epic-word--secondary .word-surface { color: var(--premium-gold, #E9B537); }
    .epic-word--accent .word-surface { color: var(--premium-gold, #E9B537); }

    .stat-number {
        color: #ffffff;
    }

    .text-flow {
        color: rgba(226, 232, 240, 0.9);
    }
}
/* Updated: Thu Nov 13 01:47:14 AM MST 2025 */
