/* =========================================
   HOME PAGE SPECIFIC STYLES
   ========================================= */

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1.5s ease-in-out, transform 10s linear;
}

.hero-slide::after {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,1) 100%);
}

.hero-slide.active { opacity: 1; transform: scale(1); }

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-btn-group .btn-glow {
    background: white; color: var(--text-main);
}
.hero-btn-group .btn-glow:hover {
    background: var(--neon-cyan); color: white;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    animation: bounce 2s infinite;
}

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

/* About Section */
.section { padding: 120px 0; position: relative; background: var(--bg-void); }
.section-header { text-align: center; margin-bottom: 80px; }
.section-title { font-family: var(--font-display); font-size: 2.5rem; margin-bottom: 1rem; color: var(--text-main); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-img-box { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.15); }
.about-img-box img { width: 100%; display: block; transition: 0.5s; }
.about-img-box:hover img { transform: scale(1.05); }
.about-text h3 { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 1.5rem; color: var(--neon-cyan); }
.about-text p { margin-bottom: 1.5rem; color: var(--text-muted); font-size: 1.1rem; }
.stats-row { display: flex; gap: 3rem; margin-top: 2rem; }
.stat-item h4 { font-size: 3rem; font-weight: 800; color: var(--text-main); line-height: 1; }
.stat-item span { color: var(--text-muted); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* Leaderboard */
.leaderboard-section { background-color: var(--bg-deep); border-top: 1px solid rgba(0,0,0,0.05); border-bottom: 1px solid rgba(0,0,0,0.05); }
.lb-container { max-width: 1000px; margin: 0 auto; }
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 20px; margin-bottom: 60px; height: 380px; }
.podium-place { width: 100%; max-width: 220px; display: flex; flex-direction: column; align-items: center; position: relative; }
.avatar-glow { width: 80px; height: 80px; border-radius: 50%; background-size: cover; border: 4px solid; margin-bottom: 15px; position: relative; z-index: 2; box-shadow: 0 10px 20px rgba(0,0,0,0.1); background-color: white; }
.rank-1 .avatar-glow { border-color: var(--neon-gold); width: 110px; height: 110px; }
.rank-2 .avatar-glow { border-color: #94a3b8; }
.rank-3 .avatar-glow { border-color: #cd7f32; }
.crown { position: absolute; top: -35px; font-size: 2.5rem; color: var(--neon-gold); animation: float 3s ease-in-out infinite; filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1)); }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }
.podium-block { width: 100%; background: #ffffff; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-radius: 16px 16px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 30px; position: relative; border: 1px solid rgba(0,0,0,0.03); }
.rank-1 .podium-block { height: 240px; border-top: 6px solid var(--neon-gold); background: linear-gradient(180deg, #fffcf0 0%, #ffffff 100%); }
.rank-2 .podium-block { height: 180px; border-top: 6px solid #94a3b8; }
.rank-3 .podium-block { height: 150px; border-top: 6px solid #cd7f32; }
.p-name { font-weight: 700; font-size: 1.1rem; margin-bottom: 5px; text-align: center; color: var(--text-main); }
.p-score { font-family: var(--font-heading); color: var(--neon-cyan); font-weight: 700; font-size: 1.2rem; }
.p-rank { font-size: 4rem; font-weight: 900; color: #f1f5f9; position: absolute; bottom: 10px; font-family: var(--font-display); z-index: 0; }
.lb-list { display: flex; flex-direction: column; gap: 15px; }
.lb-item { display: flex; align-items: center; padding: 15px 30px; background: #ffffff; border: 1px solid rgba(0,0,0,0.05); border-radius: 12px; transition: 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.lb-item:hover { transform: scale(1.01); border-color: var(--neon-cyan); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.lb-rank { font-family: var(--font-display); font-size: 1.2rem; width: 50px; color: var(--text-muted); }
.lb-info { display: flex; align-items: center; gap: 15px; flex-grow: 1; }
.lb-avatar-sm { width: 40px; height: 40px; border-radius: 50%; background: #f1f5f9; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; color: var(--text-muted); font-weight: bold; }
.lb-points { font-family: var(--font-heading); font-weight: 700; color: var(--text-main); }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.feature-card-inner { padding: 3rem 2rem; text-align: center; }
.f-icon { font-size: 3rem; color: var(--neon-cyan); margin-bottom: 1.5rem; }
.feature-card-inner h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 1rem; color: var(--text-main); }
.feature-card-inner p { color: var(--text-muted); }

/* Updates */
.updates-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.update-card { background: #ffffff; border: 1px solid rgba(0,0,0,0.08); border-radius: 12px; padding: 30px; transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1); position: relative; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 5px 15px rgba(0,0,0,0.03); }
.update-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--neon-cyan); transform: scaleX(0); transform-origin: left; transition: 0.4s; }
.update-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); border-color: rgba(0, 124, 195, 0.2); }
.update-card:hover::before { transform: scaleX(1); }
.date-badge { font-size: 0.8rem; font-weight: 700; color: var(--neon-cyan); margin-bottom: 15px; display: inline-block; background: rgba(0, 124, 195, 0.08); padding: 6px 12px; border-radius: 4px; font-family: var(--font-heading); letter-spacing: 0.5px; }
.update-title { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; color: var(--text-main); line-height: 1.3; }
.update-desc { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 25px; flex-grow: 1; line-height: 1.6; }
.read-more { font-weight: 700; font-family: var(--font-heading); color: var(--neon-cyan); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: 0.3s; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }
.read-more:hover { gap: 12px; color: #005a8d; }

/* Gallery */
.gallery-wrapper { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 280px; gap: 25px; }
.g-item { position: relative; border-radius: 20px; overflow: hidden; cursor: pointer; box-shadow: 0 15px 35px rgba(0,0,0,0.1); background: #000; }
.g-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.g-item:nth-child(2) { grid-column: span 2; grid-row: span 1; }
.g-item:nth-child(3) { grid-column: span 1; grid-row: span 1; }
.g-item:nth-child(4) { grid-column: span 1; grid-row: span 1; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1), filter 0.5s; }
.g-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, transparent 100%); opacity: 0; display: flex; align-items: flex-end; padding: 30px; transition: all 0.4s ease-out; transform: translateY(20px); }
.g-overlay span { color: white; font-family: var(--font-heading); font-weight: 700; letter-spacing: 1.5px; font-size: 1.2rem; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.g-item:hover img { transform: scale(1.1); filter: brightness(1.1); }
.g-item:hover .g-overlay { opacity: 1; transform: translateY(0); }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-title { font-size: 3.5rem; }
    .about-grid { grid-template-columns: 1fr; }
    .gallery-wrapper { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 250px; }
    .g-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
    .g-item:nth-child(2) { grid-column: span 1; grid-row: span 1; }
    .g-item:nth-child(3) { grid-column: span 1; grid-row: span 1; }
    .g-item:nth-child(4) { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 768px) {
    .podium { align-items: center; flex-direction: column; height: auto; gap: 40px; }
    .podium-place { width: 100%; }
    .rank-1 { order: -1; }
    .stats-row { flex-wrap: wrap; gap: 1.5rem; }
    .gallery-wrapper { grid-template-columns: 1fr; }
    .g-item { grid-column: span 1 !important; grid-row: span 1 !important; height: 300px; }
}