

/* Hero Section */
.hub-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: url('img/fx.png') center/cover no-repeat;
    position: relative;
    padding: 80px 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 87, 51, 0.5), rgba(255, 140, 75, 0.3));
    z-index: 1;
}

.hub-hero-text {
    position: relative;
    z-index: 2;
    max-width: 650px;
    color: #FFF;
}

.hub-hero-text h1 {
    font-family: 'Poppins', serif;
    font-size: 4rem;
    margin-bottom: 24px;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease-out;
}

.hub-hero-text p {
    font-size: 1.4rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

.hub-hero-image {
    max-width: 550px;
    border-radius: 24px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    z-index: 2;
    animation: fadeInRight 1s ease-out;
}

.action-btn {
    display: inline-block;
    padding: 16px 48px;
    background: #00C4B4;
    color: #FFF;
    border-radius: 50px;
    font-size:  1.3rem;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.action-btn:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
    background: #00A896;
}

/* Sections */
section {
    padding: 120px 0;
}

h2 {
    font-family: 'Poppins', serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 56px;
    color: #2A1B0A;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #FF5733;
    margin: 16px auto 0;
    border-radius: 2px;
}

.levels-grid, .upgrades-grid, .events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 48px;
}


.level-card, .upgrade-card, .event-card {
    background: #FFF;
    padding: 32px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.level-card:hover, .upgrade-card:hover, .event-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.level-card img, .event-card img {
    width: 100%;
    height: 300px;
    border-radius: 16px;
    margin-bottom: 16px;
    transition: transform 0.3s;
}

.level-card:hover img, .event-card:hover img {
    transform: scale(1.05);
}
.level-card p {
    margin-top: 20px;
    margin-bottom: 32px;
    font-size: 1.2rem;
    line-height: 1.5;
}

.upgrade-card i {
    font-size: 3rem;
    color: #FF5733;
    margin-bottom: 24px;
    transition: transform 0.3s;
}

.upgrade-card:hover i {
    transform: scale(1.2);
}
.upgrade-card p {
    margin-top: 20px;
    margin-bottom: 32px;
    font-size: 1.2rem;
    line-height: 1.5;
}

.level-btn, .upgrade-btn, .challenge-btn, .event-btn {
    padding: 12px 24px;
    background: #FF5733;
    color: #FFF;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.level-btn:hover, .upgrade-btn:hover, .challenge-btn:hover, .event-btn:hover {
    background: #E64A19;
    transform: translateY(-4px);
}

.challenges-carousel {
    display: flex;
    overflow-x: auto;
    gap: 32px;
    padding-bottom: 24px;
    scroll-snap-type: x mandatory;
}

.challenge-item {
    flex: 0 0 300px;
    background: #FFF;
    padding: 24px;
    border-radius: 24px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
    scroll-snap-align: start;
}

.challenge-item img {
    width: 100%;
    height: 280px;
    border-radius: 16px;
    margin-bottom: 16px;
}

.challenge-item p {
    margin-top: 16px;
    margin-bottom: 32px;
    font-size: 1.2rem;
    line-height: 1.5;
}
.leaderboard-table {
    background: #FFF;
    border-radius: 16px;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.leaderboard-table table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 16px;
    text-align: left;
}

.leaderboard-table th {
    background: #FF5733;
    color: #FFF;
    font-family: 'Poppins', serif;
}

.leaderboard-table tr:nth-child(even) {
    background: #FFD700;
}

.progression-timeline {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.progression-item {
    background: #FFF;
    padding: 24px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.progression-item img {
    width: 150px;
    height: 150px;
    border-radius: 16px;
}
.event-card p {
    margin-top: 20px;
    margin-bottom: 32px;
    font-size: 1.2rem;
    line-height: 1.5;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hub-hero .wrapper {
        flex-direction: column;
        text-align: center;
    }

    .hub-hero-text {
        max-width: 100%;
    }

    .hub-hero-image {
        max-width: 80%;
        margin-top: 32px;
    }

    .levels-grid, .upgrades-grid, .events-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .wrapper {
        padding: 0 16px;
    }

    .hub-hero-text h1 {
        font-size: 2.8rem;
    }

    .hub-hero-text p {
        font-size: 1.2rem;
    }

    .challenges-carousel {
        flex-direction: column;
    }

    .challenge-item {
        flex: 0 0 auto;
    }

    .progression-item {
        flex-direction: column;
        text-align: center;
    }

    .progression-item img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .hub-hero-text h1 {
        font-size: 2.2rem;
    }

    .hub-hero-text p {
        font-size: 1rem;
    }

    .action-btn, .level-btn, .upgrade-btn, .challenge-btn, .event-btn {
        padding: 12px 32px;
        font-size: 1.1rem;
    }

    h2 {
        font-size: 2.2rem;
    }
}