:root {
    --primary-color: #ff0080;
    /* Hot Pink */
    --secondary-color: #ff00ff;
    /* Electric Magenta */
    --bg-dark: #0a0a12;
    --bg-card: #151520;
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --font-main: 'Outfit', sans-serif;
    --font-display: 'Rajdhani', sans-serif;
    --glow-primary: 0 0 20px rgba(255, 0, 128, 0.5);
    --glow-secondary: 0 0 20px rgba(255, 0, 255, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Language Switcher */
.lang-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bgm-btn {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--secondary-color);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
}

.bgm-btn:hover {
    background: rgba(255, 0, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.6);
    transform: scale(1.1);
}

.music-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 2px var(--secondary-color));
}

#lang-select {
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-main);
    border: 1px solid var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-family: var(--font-main);
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

#lang-select:hover {
    background: rgba(255, 0, 128, 0.1);
    box-shadow: 0 0 10px rgba(255, 0, 128, 0.5);
}

#lang-select option {
    background: var(--bg-dark);
    color: var(--text-main);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 30vh;
    /* Reduced further */
    display: flex;
    align-items: center;
    /* Center vertical */
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 40px;
    /* Reduced top padding */
    padding-bottom: 10px;
}

/* Scan Effect */
.hero::after {
    content: '';
    position: absolute;
    top: -100%;
    /* Start from above */
    left: 0;
    width: 100%;
    height: 100%;
    /* Same height as container */
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(255, 0, 128, 0.15) 40%,
            rgba(255, 0, 255, 0.4) 50%,
            rgba(255, 0, 128, 0.15) 60%,
            transparent 100%);
    animation: scan 4s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes scan {
    0% {
        top: -100%;
    }

    100% {
        top: 100%;
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/hero-bg.png');
    background-size: cover;
    background-position: 25% 40%;
    /* Moved down from 55% to bring dino back */
    z-index: -2;
    transform: scale(1.1);
    /* For parallax */
    transition: transform 0.1s ease-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 18, 0.3), rgba(10, 10, 18, 0.9));
    z-index: -1;
}

.hero-content {
    z-index: 1;
    padding: 20px;
    animation: fadeInUp 1s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.hero-logo {
    width: 80px;
    /* Adjust size as needed */
    height: auto;
    filter: drop-shadow(0 0 15px rgba(255, 0, 128, 0.8));
    animation: float 3s ease-in-out infinite;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0;
    /* Removed margin since wrapper handles gap */
    text-shadow: 0 0 30px rgba(255, 0, 128, 0.8), 0 0 60px rgba(255, 0, 255, 0.4);
}

.hero-title .highlight {
    color: rgba(255, 0, 128, 0.2);
    -webkit-text-stroke: 1px var(--primary-color);
    position: relative;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 1px;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-weight: 700;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.6), 0 0 40px rgba(255, 0, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(255, 0, 128, 0.8), 0 0 60px rgba(255, 0, 255, 0.5);
}

/* Games Section */
.games-section {
    padding: 20px 20px 80px 20px;
    /* Reduced top padding */
    background: var(--bg-dark);
}

.community-games-section {
    padding: 0 20px 80px 20px;
    background: var(--bg-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    box-shadow: var(--glow-primary);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Game Card */
.game-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .card-overlay {
    opacity: 1;
}

.btn-play {
    padding: 10px 30px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-play:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: var(--glow-primary);
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-main);
}

.game-tag {
    font-size: 0.8rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.game-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Placeholder Card */
.placeholder-bg {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
}

.lock-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.coming-text {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 2px;
}

.coming-soon {
    opacity: 0.7;
}



/* Branding Section */
.branding-section {
    padding: 80px 20px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(255, 0, 128, 0.1) 0%, var(--bg-dark) 70%);
}

.dino-logo-img {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 0, 128, 0.8)) drop-shadow(0 0 30px rgba(255, 0, 255, 0.4));
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.branding-content h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 10px;
}

.branding-content p {
    color: var(--secondary-color);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Footer */
footer {
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 600px) {
    .games-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
}

.hero-recruit {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1.5rem;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #ff00cc, #3333ff, #00ccff, #ff00cc);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientFlow 5s linear infinite, pulseScale 2s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255, 0, 204, 0.3);
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

@keyframes pulseScale {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Response Design Adjustments */
@media (max-width: 768px) {
    .hero-recruit {
        font-size: 1.1rem;
    }
}