﻿body {
    background: linear-gradient(135deg, #16213e, #1a1a2e, #0f3460) !important;
    color: #e0e0e0;
}

.section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(22, 33, 62, 0.8), rgba(15, 52, 96, 0.8));
    position: relative;
}

/* Animated SVG Text */
.svg-text text {
    font-family: 'Poppins', sans-serif;
    font-size: 90px;
    font-weight: 900;
    stroke: #4256a1; /* Primary Blue */
    stroke-width: 2;
    animation: draw 3.5s ease-out forwards;
}

@keyframes draw {
    0% {
        stroke-dasharray: 0 500;
        fill-opacity: 0;
    }

    70% {
        stroke-dasharray: 500 0;
        fill-opacity: 0;
    }

    100% {
        fill-opacity: 1;
        fill: #ffffff;
    }
}


/* Hero Buttons */
.btn-primary-hero {
    background-color: #4256a1;
    border-color: #4256a1;
    color: #fff;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(66, 86, 161, 0.5);
}

    .btn-primary-hero:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(66, 86, 161, 0.7);
    }

.btn-secondary-hero {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

    .btn-secondary-hero:hover {
        background-color: #fff;
        color: #1a1a2e;
    }

.scroll-down {
    position: absolute;
    bottom: 30px;
    color: #fff;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

/* --- About Section --- */
#about .fa-users {
    color: #ffd52d !important; /* Accent Yellow */
    text-shadow: 0 0 50px rgba(255, 213, 45, 0.4);
}

/* --- Glassmorphism Cards (Used for Features & News) --- */
.feature-card, .glass-card {
    background: rgba(22, 29, 46, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-align: center;
}

    .feature-card:hover {
        transform: translateY(-10px);
        border-color: rgba(66, 86, 161, 0.7);
        box-shadow: 0 12px 40px 0 rgba(66, 86, 161, 0.3);
    }

.feature-icon {
    font-size: 3rem;
    color: #4256a1; /* Primary Blue */
    margin-bottom: 1.5rem;
}

/* --- News & Top Performers Section --- */
.card-header-custom {
    background-color: rgba(66, 86, 161, 0.5); /* Primary Blue transparent */
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

/* Re-using Leaderboard styles for consistency */
.leaderboard-item {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1) !important;
    color: #e0e0e0;
    transition: background-color 0.3s ease;
}

    .leaderboard-item:last-child {
        border-bottom: none !important;
    }

    .leaderboard-item:hover {
        background-color: rgba(66, 86, 161, 0.2) !important;
    }

.rank-number {
    color: #ffd52d; /* Accent Yellow */
    font-weight: 700;
}

.score-badge {
    background-color: #4256a1 !important; /* Primary Blue */
    font-size: 0.9rem;
}

.rank-gold {
    border-left: 4px solid #ffd700;
}

.rank-silver {
    border-left: 4px solid #c0c0c0;
}

.rank-bronze {
    border-left: 4px solid #cd7f32;
}

/* --- CTA Section --- */
.cta-section {
    background-color: #0d1117;
}

    .cta-section .btn-dark {
        background-color: #df2e21; /* Accent Red */
        border-color: #df2e21;
        padding: 12px 30px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 20px rgba(223, 46, 33, 0.4);
    }

        .cta-section .btn-dark:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(223, 46, 33, 0.6);
        }

/* --- Animation JS Support --- */
.icon-bg { /* container for flying icons */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.icon-symbol {
    position: absolute;
    color: #fff;
    opacity: 0.15;
    animation-name: float;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes float {
    0% {
        transform: translateY(5vh) rotate(var(--rot));
    }

    100% {
        transform: translateY(-105vh) rotate(calc(var(--rot) + 180deg));
    }
}
.top-performers-card {
    background: rgba(13, 17, 23, 0.7);
    padding: 0;
}

.top-performers-header {
    background-color: rgba(66, 86, 161, 0.5);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

    .top-performers-header h5 {
        font-weight: 700;
    }

.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    padding: 2rem 1rem 1rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.podium-item {
    text-align: center;
    width: 30%;
}

.podium-rank {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.podium-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.podium-score {
    font-size: 0.9rem;
    opacity: 0.8;
}

.podium-item.rank-1 {
    order: 2;
    transform: scale(1.15);
}

.podium-item.rank-2 {
    order: 1;
}

.podium-item.rank-3 {
    order: 3;
}

.podium .rank-gold {
    color: #ffd700;
    text-shadow: 0 0 10px #ffd700;
}

.podium .rank-silver {
    color: #c0c0c0;
    text-shadow: 0 0 10px #c0c0c0;
}

.podium .rank-bronze {
    color: #cd7f32;
    text-shadow: 0 0 10px #cd7f32;
}

.leaderboard-list {
    max-height: 300px;
    overflow-y: auto;
}

.leaderboard-item {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--light-text);
    transition: background-color 0.3s ease;
    padding: 0.75rem 1.5rem;
}

    .leaderboard-item:last-child {
        border-bottom: none !important;
    }

    .leaderboard-item:hover {
        background-color: rgba(66, 86, 161, 0.2) !important;
    }

.rank-number {
    font-weight: 700;
    width: 30px;
    display: inline-block;
    text-align: center;
    color: var(--light-text);
    opacity: 0.7;
}

.score-badge {
    background-color: var(--primary-color) !important;
    font-size: 0.9rem;
    min-width: 80px;
    text-align: center;
}
/* In wwwroot/css/home.css */

/* --- HERO SECTION FIX --- */
.hero-section .container {
    position: relative; /* Ensure container is on top of the icon background */
    z-index: 2;
}

.icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1; /* Keep the icon background behind the content */
}

/* --- NEW SECTION: SEPARATED TOP PERFORMERS --- */
#top-performers {
    background-color: #0d1117; /* Darker background to make it stand out */
}

.podium-card {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    gap: 1rem;
    padding: 2rem 1rem;
    width: 100%;
}

.podium-item {
    text-align: center;
    width: 30%;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

    .podium-item.rank-1 {
        order: 2;
        transform: scale(1.1);
    }

    .podium-item.rank-2 {
        order: 1;
    }

    .podium-item.rank-3 {
        order: 3;
    }

.podium-rank {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.podium-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.podium-score {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Podium item specific styling */
.podium-item.rank-1 {
    background: rgba(255, 213, 45, 0.1);
    border: 1px solid rgba(255, 213, 45, 0.3);
}

.podium-item.rank-2 {
    background: rgba(192, 192, 192, 0.1);
    border: 1px solid rgba(192, 192, 192, 0.3);
}

.podium-item.rank-3 {
    background: rgba(205, 127, 50, 0.1);
    border: 1px solid rgba(205, 127, 50, 0.3);
}

.podium .rank-gold {
    color: #ffd700;
}

.podium .rank-silver {
    color: #c0c0c0;
}

.podium .rank-bronze {
    color: #cd7f32;
}

/* --- NEWS CARD ENHANCEMENTS --- */
.news-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    height: 100%;
    transition: all 0.3s ease;
}

    .news-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    }
.btn-outline-brand {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

    .btn-outline-brand:hover {
        background-color: var(--primary-color);
        color: var(--white-text);
        box-shadow: 0 4px 20px rgba(66, 86, 161, 0.4);
        transform: translateY(-2px);
    }