/* Base Styles & CSS Variables */
:root {
    --bg-color: #0d1117; /* Very dark background */
    --text-primary: #ffffff;
    --text-secondary: #8b949e;
    --cyan-glow: #00f0ff;
    --cyan-glow-dim: rgba(0, 240, 255, 0.3);
    --cyan-glow-intense: rgba(0, 240, 255, 0.8);
    --font-primary: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

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

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

/* Teams Page Specific Styles */
.teams-main {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.player-presentation {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80vh;
}

.background-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.15) 0%, rgba(10, 10, 10, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.content-layer {
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 60%;
}

.player-info {
    position: relative;
}

.player-name-bg {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 10vw, 10rem);
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1;
    letter-spacing: -2px;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    white-space: nowrap;
    /* This creates the overlap effect */
    position: absolute;
    top: -50px;
    left: -5%;
    z-index: 1;
}

.roster-title {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-top: 8rem; /* Push down past the absolute positioned name */
    margin-bottom: 2rem;
    color: var(--text-primary);
    z-index: 2;
    position: relative;
}

.biography {
    margin-bottom: 2rem;
    max-width: 500px;
    z-index: 2;
    position: relative;
}

.biography h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.biography p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.player-stats {
    display: flex;
    gap: 2rem;
    z-index: 2;
    position: relative;
}

.stat {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.stat-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.stat-value {
    font-weight: 800;
    color: var(--text-primary);
}

.foreground-layer {
    position: absolute;
    right: 5%;
    bottom: 0;
    z-index: 3;
    height: 90vh; /* Adjust based on image aspect ratio */
    display: flex;
    align-items: flex-end;
}

.player-image {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    /* Optional: Add a subtle drop shadow to pop from background */
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.5));
}

/* Mobile Responsive adjustments */
@media (max-width: 1024px) {
    .player-presentation {
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 120px;
    }

    .content-layer {
        max-width: 100%;
        text-align: center;
        margin-bottom: 3rem;
    }

    .player-name-bg {
        position: relative;
        top: 0;
        left: 0;
        font-size: clamp(3rem, 12vw, 6rem);
    }

    .roster-title {
        margin-top: 1rem;
    }

    .biography {
        margin: 0 auto 2rem;
    }

    .player-stats {
        justify-content: center;
    }

    .foreground-layer {
        position: relative;
        right: 0;
        height: 50vh;
        width: 100%;
        justify-content: center;
    }
}

/* Navigation */
.navbar {
    width: 100%;
    padding: 1.5rem 0;
    background-color: rgba(13, 17, 23, 0.9);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.nav-links li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color var(--transition-speed) ease, text-shadow var(--transition-speed) ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--text-primary);
    text-shadow: 0 0 8px var(--cyan-glow-dim);
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 4rem 1rem;
    text-align: center;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--cyan-glow-dim) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
}

.logo-container {
    margin-bottom: 2rem;
}

.logo-placeholder {
    width: 120px;
    height: 120px;
    background: transparent;
    border: 2px solid var(--text-primary);
    border-radius: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--cyan-glow-dim);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--cyan-glow);
}

.headline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* Games Showcase Section */
.games-showcase {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 4px solid var(--cyan-glow);
}

.games-grid {
    display: flex;
    gap: 2rem;
    overflow-x: auto; /* Horizontal scroll on mobile */
    padding-bottom: 2rem; /* Space for scrollbar */
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--cyan-glow-dim) var(--bg-color);
}

/* Custom Scrollbar Webkit */
.games-grid::-webkit-scrollbar {
    height: 8px;
}
.games-grid::-webkit-scrollbar-track {
    background: var(--bg-color);
}
.games-grid::-webkit-scrollbar-thumb {
    background-color: var(--cyan-glow-dim);
    border-radius: 4px;
}

.game-card {
    flex: 0 0 85%; /* Mostly fill screen on mobile */
    max-width: 400px; /* Limit size on desktop */
    scroll-snap-align: center;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background-color: #161b22;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Base shadow */
    transition: transform var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1),
                border-color var(--transition-speed) ease;
}

/* Desktop Grid override */
@media (min-width: 768px) {
    .games-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        overflow-x: visible; /* Disable horizontal scroll on desktop */
        scroll-snap-type: none;
    }
    .game-card {
        flex: auto;
        max-width: none;
    }
}

/* Hover effects */
.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--cyan-glow);
    box-shadow: 0 0 25px var(--cyan-glow-intense), inset 0 0 10px var(--cyan-glow-dim);
}

.game-image-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Overlay gradient for text readability */
.game-image-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 17, 23, 0.9) 0%, transparent 60%);
}

.game-name {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    margin-top: auto;
    margin-bottom: 1rem;
}

/* Placeholder backgrounds */
.valorant-placeholder {
    background: linear-gradient(45deg, #1f2326, #ff4655); /* Valorant-ish colors */
}

.lol-placeholder {
    background: linear-gradient(45deg, #091428, #0ac8b9); /* LoL-ish colors */
}

.generic-placeholder {
    background: linear-gradient(45deg, #111, #333);
}

/* Parallax Animation Helpers */
.background-glow,
.content-layer,
.player-name-bg,
.foreground-layer {
    transition: transform 0.1s ease-out; /* Smooths out the raw mouse movement */
    will-change: transform;
}
