/* Custom fonts and cricket stadium background */
body {
    font-family: 'Rajdhani', sans-serif;
    background-image: url('cricket-stadium-night.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
    position: relative;
}

/* Dark overlay for text readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 0, 20, 0.7) 0%, 
        rgba(10, 10, 40, 0.6) 25%,
        rgba(20, 20, 60, 0.5) 50%,
        rgba(15, 15, 45, 0.6) 75%,
        rgba(0, 0, 25, 0.7) 100%
    );
    z-index: -1;
    pointer-events: none;
}

/* Red lightning border animation */
.lightning-border {
    animation: lightning 2s infinite;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.8), inset 0 0 20px rgba(239, 68, 68, 0.4);
}

@keyframes lightning {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.8), inset 0 0 20px rgba(239, 68, 68, 0.4);
    }
    50% { 
        box-shadow: 0 0 40px rgba(239, 68, 68, 1), inset 0 0 40px rgba(239, 68, 68, 0.6);
    }
}

/* Animated stars background */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.stars, .stars2, .stars3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.stars {
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent);
    background-repeat: repeat;
    background-size: 200px 150px;
    animation: sparkle 3s linear infinite;
}

.stars2 {
    background-image: 
        radial-gradient(1px 1px at 10px 10px, #fff, transparent),
        radial-gradient(1px 1px at 50px 50px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 80px 20px, #eee, transparent);
    background-repeat: repeat;
    background-size: 180px 120px;
    animation: sparkle 4s linear infinite reverse;
}

.stars3 {
    background-image: 
        radial-gradient(1px 1px at 30px 60px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 70px 10px, #fff, transparent),
        radial-gradient(1px 1px at 100px 90px, rgba(255,255,255,0.5), transparent);
    background-repeat: repeat;
    background-size: 220px 180px;
    animation: sparkle 5s linear infinite;
}

@keyframes sparkle {
    from { transform: translateX(0); }
    to { transform: translateX(-200px); }
}

/* Cricket stadium background with full night scene */
.cricket-stadium-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Stadium floodlight towers */
        radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.15) 0.5%, transparent 2%),
        radial-gradient(circle at 85% 25%, rgba(255, 255, 255, 0.15) 0.5%, transparent 2%),
        radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.12) 0.8%, transparent 2.5%),
        radial-gradient(circle at 75% 30%, rgba(255, 255, 255, 0.12) 0.8%, transparent 2.5%),
        radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.1) 1%, transparent 3%),
        
        /* Stadium crowd silhouettes */
        linear-gradient(to bottom, transparent 0%, rgba(30, 30, 60, 0.4) 15%, transparent 25%),
        radial-gradient(ellipse at 20% 35%, rgba(40, 40, 80, 0.3) 0%, transparent 15%),
        radial-gradient(ellipse at 80% 35%, rgba(40, 40, 80, 0.3) 0%, transparent 15%),
        
        /* Stadium structure with tiers */
        linear-gradient(to top, 
            /* Ground level */
            rgba(0, 0, 0, 0.95) 0%, 
            rgba(15, 25, 35, 0.9) 8%,
            rgba(25, 35, 50, 0.8) 18%,
            /* Lower tier */
            rgba(35, 45, 65, 0.7) 28%,
            rgba(20, 30, 50, 0.6) 38%,
            /* Upper tier */
            rgba(10, 20, 40, 0.5) 48%,
            rgba(5, 15, 35, 0.4) 58%,
            /* Sky */
            rgba(0, 5, 20, 0.8) 75%,
            rgba(0, 0, 10, 0.95) 100%
        ),
        
        /* Cricket pitch and field */
        radial-gradient(ellipse at center 88%, rgba(34, 197, 94, 0.2) 0%, transparent 25%),
        radial-gradient(ellipse at center 92%, rgba(22, 163, 74, 0.15) 0%, transparent 35%),
        radial-gradient(ellipse at center 85%, rgba(16, 185, 129, 0.1) 0%, transparent 45%),
        
        /* Field boundary rope */
        radial-gradient(ellipse at center 82%, rgba(255, 255, 255, 0.05) 20%, transparent 22%);
    opacity: 0.9;
    pointer-events: none;
}

/* Profile container with live circle and fire ring */
.profile-container {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-circle-container {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-circle-ring {
    position: absolute;
    width: 180px;
    height: 180px;
    border: 4px solid transparent;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff0000, #ff4500, #ff6b00, #ffa500) border-box;
    background-clip: border-box;
    animation: live-circle-rotate 3s linear infinite;
    z-index: 1;
}

.live-circle-ring::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    padding: 4px;
    background: conic-gradient(from 0deg, #ff0000, #ff4500, #ff6b00, #ffa500, #ff0000);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: subtract;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: subtract;
    animation: live-circle-glow 2s ease-in-out infinite;
}

.profile-ring {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 3;
    border: 5px solid rgba(255, 255, 255, 1);
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.9),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 240, 240, 0.8) 100%);
    backdrop-filter: blur(10px);
    padding: 2px;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    z-index: 4;
    filter: brightness(1.2) contrast(1.3) saturate(1.1) drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
    background: rgba(255, 255, 255, 1);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.fire-ring-animation {
    position: absolute;
    top: -25px;
    left: -25px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, 
        rgba(255, 69, 0, 0.4), 
        rgba(255, 140, 0, 0.3), 
        rgba(255, 165, 0, 0.2), 
        rgba(255, 69, 0, 0.4));
    animation: fire-rotate-fast 1.5s linear infinite;
    z-index: 1;
    opacity: 0.4;
}

.fire-ring-animation::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 50%;
    background: conic-gradient(from 180deg, 
        rgba(255, 0, 0, 0.9), 
        rgba(255, 69, 0, 0.7), 
        rgba(255, 140, 0, 0.5), 
        rgba(255, 0, 0, 0.9));
    animation: fire-rotate-fast 2s linear infinite reverse;
}

@keyframes live-circle-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes live-circle-glow {
    0%, 100% { 
        filter: brightness(1) drop-shadow(0 0 10px rgba(255, 69, 0, 0.6));
    }
    50% { 
        filter: brightness(1.2) drop-shadow(0 0 20px rgba(255, 69, 0, 0.9));
    }
}

@keyframes fire-rotate-fast {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.live-indicator-pulse {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #ff0000, #ff4500);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    font-family: 'Orbitron', monospace;
    letter-spacing: 1px;
    animation: live-pulse 1.5s infinite;
    z-index: 4;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
}

@keyframes live-pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1;
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
    }
    50% { 
        transform: scale(1.15); 
        opacity: 0.9;
        box-shadow: 0 0 25px rgba(255, 0, 0, 1);
    }
}

/* 3D Main title with white text and red lighting */
.garud-title-3d {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 
        0 0 10px rgba(255, 0, 0, 1),
        0 0 20px rgba(255, 0, 0, 0.8),
        0 0 30px rgba(255, 0, 0, 0.6),
        0 0 40px rgba(255, 69, 0, 0.4),
        2px 2px 0px rgba(255, 0, 0, 0.8),
        4px 4px 0px rgba(255, 69, 0, 0.6),
        6px 6px 0px rgba(255, 140, 0, 0.4);
    animation: fire-text-3d 2.5s ease-in-out infinite;
    letter-spacing: 3px;
    position: relative;
    transform-style: preserve-3d;
    filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.9));
}

.garud-title-3d::before {
    content: 'GARUD FIXER';
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(45deg, rgba(255, 69, 0, 0.3), rgba(255, 140, 0, 0.2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateZ(-10px) translateX(3px) translateY(3px);
    z-index: -1;
}

@keyframes fire-text-3d {
    0%, 100% { 
        transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
        text-shadow: 
            0 0 10px rgba(255, 0, 0, 1),
            0 0 20px rgba(255, 0, 0, 0.8),
            0 0 30px rgba(255, 0, 0, 0.6),
            2px 2px 0px rgba(255, 0, 0, 0.8);
        filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.9));
    }
    25% {
        transform: perspective(1000px) rotateY(2deg) rotateX(1deg);
        text-shadow: 
            0 0 15px rgba(255, 0, 0, 1),
            0 0 25px rgba(255, 0, 0, 0.9),
            0 0 35px rgba(255, 69, 0, 0.7),
            3px 3px 0px rgba(255, 0, 0, 0.8);
        filter: drop-shadow(0 0 30px rgba(255, 0, 0, 1));
    }
    50% { 
        transform: perspective(1000px) rotateY(0deg) rotateX(-1deg);
        text-shadow: 
            0 0 20px rgba(255, 0, 0, 1),
            0 0 30px rgba(255, 0, 0, 0.9),
            0 0 40px rgba(255, 140, 0, 0.8),
            4px 4px 0px rgba(255, 69, 0, 0.8);
        filter: drop-shadow(0 0 35px rgba(255, 140, 0, 1));
    }
    75% {
        transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
        text-shadow: 
            0 0 15px rgba(255, 0, 0, 1),
            0 0 25px rgba(255, 0, 0, 0.9),
            0 0 35px rgba(255, 69, 0, 0.7),
            3px 3px 0px rgba(255, 0, 0, 0.8);
        filter: drop-shadow(0 0 30px rgba(255, 0, 0, 1));
    }
}

/* Enhanced animated zoom effects */
.animated-zoom-title {
    animation: zoom-pulse-3d 3s ease-in-out infinite;
}

@keyframes zoom-pulse-3d {
    0%, 100% { 
        transform: scale(1) perspective(1000px) rotateY(0deg);
    }
    50% { 
        transform: scale(1.08) perspective(1000px) rotateY(1deg);
    }
}

/* Telegram button */
.telegram-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #0088cc, #229ed9);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    font-size: 18px;
    box-shadow: 
        0 4px 15px rgba(0, 136, 204, 0.4),
        0 0 20px rgba(0, 136, 204, 0.3);
    transition: all 0.3s ease;
    border: 2px solid #0088cc;
}

.animated-zoom-btn {
    animation: zoom-button 2s ease-in-out infinite;
}

@keyframes zoom-button {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.telegram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(0, 136, 204, 0.6),
        0 0 30px rgba(0, 136, 204, 0.5);
}



/* Stats styling */
.stat-line {
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    margin: 4px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* Bhagwa flags */
.bhagwa-flag {
    width: 30px;
    height: 20px;
    background: linear-gradient(to bottom, 
        #ff9933 0%, #ff9933 33.33%, 
        #ffffff 33.33%, #ffffff 66.66%, 
        #138808 66.66%, #138808 100%);
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    position: relative;
}

.animated-flag {
    animation: flag-wave 2s ease-in-out infinite;
}

@keyframes flag-wave {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .garud-title-3d {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }
    
    .profile-container {
        width: 150px;
        height: 150px;
    }
    
    .live-circle-container {
        width: 150px;
        height: 150px;
    }
    
    .live-circle-ring {
        width: 150px;
        height: 150px;
    }
    
    .profile-ring {
        width: 110px;
        height: 110px;
    }
    
    .fire-ring-animation {
        width: 140px;
        height: 140px;
        top: -15px;
        left: -15px;
    }
    
    .telegram-btn {
        font-size: 16px;
        padding: 10px 20px;
    }
    
    .live-indicator-pulse {
        top: 10px;
        right: 10px;
        font-size: 9px;
        padding: 3px 8px;
    }
}

/* Timer styling */
.timer-container {
    display: flex;
    background: linear-gradient(45deg, #ff0000, #ff4500);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 20px rgba(255, 0, 0, 0.6),
        inset 0 0 20px rgba(255, 69, 0, 0.3);
    animation: timer-glow 1s ease-in-out infinite alternate;
    margin: 0 auto;
}

.timer-display {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes timer-glow {
    from { box-shadow: 0 0 20px rgba(255, 0, 0, 0.6), inset 0 0 20px rgba(255, 69, 0, 0.3); }
    to { box-shadow: 0 0 30px rgba(255, 0, 0, 0.9), inset 0 0 30px rgba(255, 69, 0, 0.5); }
}

/* FREE JOINING ENDS IN text styling */
.text-red-400 {
    color: #ff4444 !important;
    font-weight: 900 !important;
    text-shadow: 
        0 0 10px rgba(255, 68, 68, 0.8),
        0 0 20px rgba(255, 0, 0, 0.6);
    font-family: 'Orbitron', monospace !important;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Stadium atmosphere effects */
.stadium-atmosphere {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Moving spotlight effects */
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.02) 5%, transparent 10%),
        radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.02) 5%, transparent 10%),
        /* Distant crowd lights */
        radial-gradient(circle at 15% 50%, rgba(255, 200, 100, 0.01) 2%, transparent 4%),
        radial-gradient(circle at 85% 50%, rgba(255, 200, 100, 0.01) 2%, transparent 4%);
    animation: stadium-lights 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes stadium-lights {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Mobile 9:16 format optimization */
.mobile-9-16-container {
    max-width: 100vw;
    width: 100%;
    padding-top: 2rem;
    justify-content: space-evenly;
    gap: 1rem;
}

/* Ensure proper aspect ratio for mobile 9:16 */
@media (orientation: portrait) and (max-width: 480px) {
    body {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
    }
    
    .min-h-screen {
        min-height: 100vh;
    }
    
    .mobile-9-16-container {
        padding: 1rem 0.5rem;
        gap: 0.75rem;
        justify-content: space-between;
        height: 100vh;
    }
    
    /* Adjust spacing for mobile */
    .mobile-9-16-container > div {
        margin-bottom: 0.5rem;
    }
    
    .profile-container {
        margin-bottom: 1rem;
    }
    
    .garud-title-3d {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-line {
        font-size: 0.9rem;
        padding: 6px 12px;
        margin: 2px 0;
    }
    
    .timer-container {
        width: 60px;
        height: 60px;
    }
    
    .timer-display {
        font-size: 1.5rem;
    }
    
    .telegram-btn {
        font-size: 14px;
        padding: 8px 16px;
    }
    
    .bhagwa-flag {
        width: 25px;
        height: 17px;
    }
}