/* Gaming Hero Section */
.gaming-hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    /* Hero background image */
    background-image: url('../images/bg/bg2.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding-top: 80px;
}

/* Full-width dark overlay using pseudo-element to ensure consistent darkening */
.gaming-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    position: relative;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    z-index: 2;
}

/* Disable container-scoped overlay to avoid double darkening and vertical edge */
.hero-overlay { display: none; }

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 3;
}

.hero-text {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(45deg, #ff6b35, #ff8c42, #ff9e53);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    font-family: 'Black Ops One', cursive;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
    letter-spacing: 1px;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 90%;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
}

.cta-btn.primary {
    background: linear-gradient(45deg, #ff6b35, #ff8c42);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.6);
}

.cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: 'Teko', sans-serif;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 2px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

.hero-character {
    position: relative;
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Desktop layout: 55% text / 45% character */
@media (min-width: 993px) {
  .hero-text { flex: 0 0 55%; max-width: 55%; }
  .hero-character { flex: 0 0 45%; max-width: 45%; }
}

.character-model {
    position: relative;
    width: 100%;
    max-width: 500px;
    animation: float 6s ease-in-out infinite;
}

.character-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    filter: drop-shadow(0 0 30px rgba(255, 107, 53, 0.5));
}

.character-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 107, 53, 0.2) 0%, transparent 60%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse-glow 4s infinite alternate;
}

.character-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.10);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.stat-bar {
    margin-bottom: 1rem;
}

.stat-bar:last-child {
    margin-bottom: 0;
}

.stat-name {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.3rem;
}

.stat-fill {
    height: 100%;
    border-radius: 3px;
    position: relative;
    width: 0;
    animation: fillWidth 1.5s ease-out forwards;
}

.stat-value {
    float: right;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Floating Items */
.floating-items {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.floating-item {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    animation: float-item 6s ease-in-out infinite;
    animation-delay: var(--delay);
}

.floating-item .item-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

/* Countdown Timer */
.countdown-container {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem 2rem;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.countdown-label {
    font-size: 1rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Teko', sans-serif;
    color: white;
    line-height: 1;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.8);
}

.countdown-unit {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
}

.countdown-separator {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0 0.5rem;
    line-height: 1;
    position: relative;
    top: -5px;
    animation: blink 1s infinite;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    margin-bottom: 0.5rem;
}

.wheel {
    width: 6px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 3px;
    animation: scroll 2s infinite;
}

.scroll-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
    }
}

@keyframes pulse-glow {
    0% {
        opacity: 0.3;
    }
    100% {
        opacity: 0.7;
    }
}

@keyframes float-item {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(var(--distance)) rotate(5deg);
    }
}

@keyframes fillWidth {
    from {
        width: 0;
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}

/* Responsive Design */
@media (min-width: 1200px) {
    /* Slightly smaller hero image on large screens */
    .character-model { max-width: 350px; }
}
@media (max-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: 4rem;
    }
    
    .hero-text {
        max-width: 100%;
        margin-bottom: 3rem;
    }
    
    .hero-title { font-size: 3.2rem; line-height: 1.05; letter-spacing: 1px; }
    .hero-subtitle { font-size: 1.3rem; }
    .hero-description { font-size: 1.05rem; margin-bottom: 2rem; }
    .hero-cta { justify-content: center; gap: 1rem; }
    .cta-btn { padding: 0.9rem 1.4rem; }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-character {
        width: 100%;
        margin-top: 2rem;
    }
    
    .character-model { max-width: 360px; }
}

@media (max-width: 768px) {
    .gaming-hero { height: auto; min-height: unset; padding-top: 72px; padding-bottom: 40px; }
    .hero-container { padding: 0 1rem; align-items: flex-start; }
    .hero-title { font-size: 2.6rem; white-space: nowrap; line-height: 1.05; letter-spacing: 1px; }
    .hero-description { max-width: 100%; font-size: 1rem; }
    .hero-cta { flex-direction: column; align-items: center; gap: 0.75rem; }
    .cta-btn { padding: 0.85rem 1.25rem; }
    .floating-items { display: none; }
    .hero-character { width: 100%; margin-top: 1.25rem; }
    .character-model { max-width: 340px; margin: 0 auto; }
    .character-stats { position: static; margin-top: 0.75rem; }
    .hero-stats { gap: 0.75rem; padding: 0.75rem; flex-wrap: wrap; justify-content: center; }
    .stat-item { min-width: 120px; }
    .stat-divider { display: none; }
    .countdown-number { font-size: 2rem; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 1.9rem; white-space: nowrap; letter-spacing: 0.5px; line-height: 1.05; }
    .hero-subtitle { font-size: 1.1rem; }
    .cta-btn { padding: 0.8rem 1.1rem; }
    .character-model { max-width: 300px; }
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    .stat-item {
        min-width: 120px;
    }
    .stat-divider {
        display: none;
    }
    .stat-number {
        font-size: 1.6rem;
    }
    .stat-label {
        font-size: 0.8rem;
    }
    /* Hide stats under the image on small mobile */
    .character-stats { display: none; }
}
