/* ===============
   HERO SECTION
   =============== */
.hero {
    position: relative;
    padding: 140px 0 100px;
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.95), rgba(26, 26, 26, 0.9)), linear-gradient(45deg, var(--primary-color) 0%, #8b0000 100%);
    background-blend-mode: overlay;
    text-align: center;
    border-bottom: 3px solid var(--primary-color);
    overflow: hidden;
}

/* Floating background elements */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 59, 59, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero::before {
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.hero::after {
    bottom: -150px;
    right: -150px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-30px) translateX(20px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.hero-content img {
    max-width: 240px;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 0 60px rgba(255, 59, 59, 0.4), 0 20px 40px rgba(0, 0, 0, 0.6);
    transition: transform var(--transition-speed) ease;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 60px rgba(255, 59, 59, 0.4), 0 20px 40px rgba(0, 0, 0, 0.6);
    }
    50% {
        box-shadow: 0 0 80px rgba(255, 59, 59, 0.6), 0 20px 40px rgba(0, 0, 0, 0.6);
    }
}

.hero-content img:hover {
    transform: scale(1.08);
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4.2rem;
    font-weight: 800;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 4px;
    background: linear-gradient(90deg, var(--text-color), var(--primary-color), var(--text-color));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s linear infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0;
    line-height: 1.7;
    animation: fade-in-up 1s ease-out 0.3s both;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============
   SECTION HEADERS
   =============== */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin: 60px 0 40px;
    position: relative;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* ===============
   GAME FEATURE GRID
   =============== */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.game-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border: 1px solid var(--border-color);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

.game-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.game-card-content {
    padding: 20px;
}

.game-card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.game-card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===============
   LATEST NEWS SECTION
   =============== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 25px;
}

.news-card {
    display: flex;
    flex-direction: column;
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.news-card:hover h4 {
    color: var(--primary-color);
}

.news-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.news-meta {
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: bold;
}

.news-card h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 10px;
    transition: color var(--transition-speed);
}

.news-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===============
   RESPONSIVE
   =============== */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 70px;
    }

    .hero-content {
        gap: 20px;
    }

    .hero-content img {
        max-width: 180px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
        letter-spacing: 2px;
    }

    .section-title {
        font-size: 2rem;
        margin: 40px 0 30px;
    }

    .game-grid {
        gap: 20px;
        margin-bottom: 40px;
    }
}

/* ===============
   FEATURES SECTION
   =============== */
.features-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b0000 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-speed) ease;
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    color: var(--text-color);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===============
   GALLERY SECTION
   =============== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-speed) ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* ===============
   CTA SECTION
   =============== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b0000 100%);
    text-align: center;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    display: inline-block;
    padding: 16px 50px;
    background-color: var(--text-color);
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 30px;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.btn-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ===============
   TESTIMONIALS SECTION
   =============== */
.testimonials-section {
    padding: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--card-bg);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-speed) ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b0000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.author-name {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-color);
    font-size: 1.1rem;
}

.author-role {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===============
   STATS SECTION
   =============== */
.stats-section {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.1) 0%, rgba(139, 0, 0, 0.1) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary-color) 0%, #8b0000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===============
   HOW IT WORKS SECTION
   =============== */
.how-it-works-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 40px;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b0000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
}

.step-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-color);
}

.step-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* ===============
   RESPONSIVE
   =============== */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 70px;
    }

    .hero::before,
    .hero::after {
        width: 200px;
        height: 200px;
    }

    .hero-content {
        gap: 20px;
    }

    .hero-content img {
        max-width: 180px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
        letter-spacing: 2px;
    }

    .section-title {
        font-size: 2rem;
        margin: 40px 0 30px;
    }

    .game-grid {
        gap: 20px;
        margin-bottom: 40px;
    }

    .features-section {
        padding: 60px 0;
    }

    .features-grid {
        gap: 20px;
    }

    .testimonials-section {
        padding: 60px 0;
    }

    .testimonial-card {
        padding: 30px 20px;
    }

    .stats-section {
        padding: 50px 0;
    }

    .stats-grid {
        gap: 30px;
    }

    .stat-number {
        font-size: 2.8rem;
    }

    .how-it-works-section {
        padding: 60px 0;
    }

    .how-it-works-grid {
        gap: 30px;
    }

    .cta-section {
        padding: 70px 0;
    }

    .cta-content h2 {
        font-size: 2.2rem;
    }

    .cta-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0 60px;
    }

    .hero::before,
    .hero::after {
        width: 150px;
        height: 150px;
    }

    .hero-content {
        gap: 16px;
    }

    .hero-content img {
        max-width: 150px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
        gap: 15px;
    }

    .gallery-item img {
        height: 150px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .step-number {
        width: 65px;
        height: 65px;
        font-size: 2rem;
    }
}