/* ============================================
   LAKESIDE GAMES - STYLE.CSS
   Nature-Inspired Pixel Aesthetic | Earthy Tones
   ============================================ */

/* ============================================
   ROOT VARIABLES & ACCESSIBILITY
   ============================================ */
:root {
    /* Earthy Nature Color Palette - WCAG AA Compliant */
    --forest-dark: #0d1b1e;
    --forest-green: #1a3a2e;
    --moss-green: #2d5f4c;
    --sage-green: #5a8f7b;
    --lake-blue: #4a7c91;
    --mist-blue: #7ba5b5;
    --earth-brown: #8b6f47;
    --sand-beige: #c9b99b;
    --fog-gray: #b8c5c9;
    --pine-green: #3d5e4f;
    --accent-amber: #d4a574;
    --accent-moss: #6fa287;
    --text-light: #f0f4f0;
    --text-natural: #d4d9d4;
    --bg-dark: #0a1612;
    --bg-card: #1a2823;
    --nature-shadow: rgba(45, 95, 76, 0.4);

    /* Typography */
    --font-pixel: 'Press Start 2P', cursive;
    --font-retro: 'VT323', monospace;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s ease;

    /* Z-index layers */
    --z-header: 1000;
    --z-xp-bar: 1001;
    --z-achievement: 2000;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Natural wood grain texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(45, 95, 76, 0.03) 2px, rgba(45, 95, 76, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(45, 95, 76, 0.03) 2px, rgba(45, 95, 76, 0.03) 4px);
    pointer-events: none;
    z-index: 1;
}

/* Language Toggle */
.en, .gr {
    display: none;
}

body:not(.gr-active) .en {
    display: block;
}

body:not(.gr-active) .en.glitch,
body:not(.gr-active) .en.section-title,
body:not(.gr-active) .en.stat-label,
body:not(.gr-active) .en.link-label {
    display: inline-block;
}

body.gr-active .gr {
    display: block;
}

body.gr-active .gr.glitch,
body.gr-active .gr.section-title,
body.gr-active .gr.stat-label,
body.gr-active .gr.link-label {
    display: inline-block;
}

/* ============================================
   XP BAR - GAMIFICATION
   ============================================ */
.xp-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--forest-green);
    z-index: var(--z-xp-bar);
    border-bottom: 2px solid var(--moss-green);
    box-shadow: 0 0 10px var(--nature-shadow);
}

.xp-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--moss-green), var(--accent-moss));
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.xp-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.1) 10px,
        rgba(255, 255, 255, 0.1) 20px
    );
    animation: xp-shine 1s linear infinite;
}

@keyframes xp-shine {
    0% { transform: translateX(-20px); }
    100% { transform: translateX(20px); }
}

.xp-text {
    position: absolute;
    right: var(--spacing-sm);
    top: 6px;
    font-family: var(--font-retro);
    font-size: 0.9rem;
    color: var(--accent-moss);
    text-shadow: 0 0 5px var(--nature-shadow);
    letter-spacing: 1px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 4px;
    left: 0;
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(10, 22, 18, 0.85);
    backdrop-filter: blur(10px);
    z-index: var(--z-header);
    transition: all var(--transition-normal);
    border-bottom: 2px solid transparent;
}

.header.scrolled {
    background: rgba(10, 22, 18, 0.95);
    border-bottom-color: var(--moss-green);
    box-shadow: 0 4px 20px var(--nature-shadow);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    height: 150px;
    width: auto;
    filter: drop-shadow(0 0 10px var(--nature-shadow));
    transition: transform var(--transition-normal);
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px var(--moss-green));
}

.language-toggle {
    position: absolute;
    right: 0;
    display: flex;
    gap: var(--spacing-xs);
}

.lang-btn {
    background: var(--bg-card);
    border: 2px solid var(--moss-green);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    font-family: var(--font-retro);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    clip-path: polygon(
        0 0, calc(100% - 8px) 0, 100% 8px, 
        100% 100%, 8px 100%, 0 calc(100% - 8px)
    );
}

.lang-btn:hover {
    background: var(--moss-green);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px var(--nature-shadow);
}

.lang-btn.active {
    background: var(--moss-green);
    color: var(--text-light);
    box-shadow: 0 0 15px var(--nature-shadow);
}

/* ============================================
   HERO SECTION WITH COVER IMAGE
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-xl) var(--spacing-md);
    position: relative;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--forest-green) 100%);
    overflow: hidden;
}

/* Hero Background Image Layer */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/kastoria-lake-pixel-bg.jpg'); /* ADD YOUR COVER IMAGE HERE */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 1;
    filter: brightness(1) contrast(1.1);
}

/* Dark overlay for better text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10, 22, 18, 0.7) 0%,
        rgba(10, 22, 18, 0.85) 50%,
        rgba(10, 22, 18, 0.9) 100%
    );
    z-index: 2;
}

.hero-pixel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M30 0v60M0 30h60' stroke='%232d5f4c' stroke-width='0.5' opacity='0.15'/%3E%3C/svg%3E");
    animation: pixel-drift 20s linear infinite;
    opacity: 0.3;
    z-index: 3;
}

@keyframes pixel-drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.hero-content {
    max-width: 900px;
    text-align: center;
    z-index: 10;
    position: relative;
}

.hero h1 {
    font-family: var(--font-pixel);
    font-size: clamp(1.5rem, 5vw, 3rem);
    margin-bottom: var(--spacing-md);
    color: var(--accent-moss);
    text-shadow: 
        0 0 10px var(--nature-shadow),
        0 0 20px var(--nature-shadow),
        4px 4px 0 var(--earth-brown);
    letter-spacing: 0.1em;
}

/* Glitch Effect - Earthy */
.glitch {
    position: relative;
    animation: glitch-anim 3s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-before 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite reverse;
    color: var(--lake-blue);
    z-index: -1;
}

.glitch::after {
    animation: glitch-after 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    color: var(--earth-brown);
    z-index: -2;
}

@keyframes glitch-anim {
    0%, 90%, 100% { opacity: 1; }
    92% { opacity: 0.8; }
}

@keyframes glitch-before {
    0%, 90%, 100% { clip-path: inset(0 0 0 0); }
    92% { clip-path: inset(50% 0 0 0); }
}

@keyframes glitch-after {
    0%, 90%, 100% { clip-path: inset(0 0 0 0); }
    92% { clip-path: inset(0 0 50% 0); }
}

.typewriter p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    color: var(--text-natural);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.pixel-box {
    background: rgba(26, 40, 35, 0.9);
    border: 3px solid var(--moss-green);
    padding: var(--spacing-md);
    margin-top: var(--spacing-md);
    position: relative;
    box-shadow: 0 0 20px var(--nature-shadow);
    clip-path: polygon(
        0 0, calc(100% - 15px) 0, 100% 15px,
        100% 100%, 15px 100%, 0 calc(100% - 15px)
    );
}

.pixel-box::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, var(--moss-green), var(--lake-blue), var(--accent-moss));
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.pixel-box:hover::before {
    opacity: 0.3;
}

.tagline {
    font-family: var(--font-retro);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--accent-amber);
    letter-spacing: 0.05em;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    animation: bounce 2s infinite;
    z-index: 10;
    transition: all var(--transition-fast);
}

.scroll-indicator:hover {
    transform: translateX(-50%) scale(1.1);
}

.pixel-arrow {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 20px solid var(--accent-moss);
    filter: drop-shadow(0 0 10px var(--nature-shadow));
}

.scroll-indicator span {
    font-family: var(--font-retro);
    font-size: 1.2rem;
    color: var(--accent-moss);
    text-shadow: 0 0 10px var(--nature-shadow), 2px 2px 4px rgba(0, 0, 0, 0.8);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============================================
   ACHIEVEMENT TOAST - GAMIFICATION
   ============================================ */
.achievement-toast {
    position: fixed;
    top: 80px;
    right: -400px;
    background: var(--bg-card);
    border: 3px solid var(--accent-moss);
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    z-index: var(--z-achievement);
    box-shadow: 0 4px 20px var(--nature-shadow);
    transition: right 0.5s ease;
    clip-path: polygon(
        0 0, calc(100% - 10px) 0, 100% 10px,
        100% 100%, 10px 100%, 0 calc(100% - 10px)
    );
}

.achievement-toast.show {
    right: var(--spacing-md);
    animation: achievement-shake 0.5s ease;
}

@keyframes achievement-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.achievement-icon {
    font-size: 2rem;
    animation: achievement-pulse 1s infinite;
}

@keyframes achievement-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.achievement-text {
    display: flex;
    flex-direction: column;
}

.achievement-text strong {
    font-family: var(--font-retro);
    font-size: 1.1rem;
    color: var(--accent-moss);
}

.achievement-text span {
    font-size: 0.9rem;
    color: var(--text-natural);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: var(--spacing-xl) var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: var(--font-pixel);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--accent-moss);
    text-shadow: 0 0 15px var(--nature-shadow);
    letter-spacing: 0.1em;
}

.pixel-bracket {
    color: var(--earth-brown);
    margin: 0 var(--spacing-xs);
}

/* ============================================
   GAMES SECTION
   ============================================ */
.games-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--forest-green) 50%, var(--bg-dark) 100%);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.game-card {
    background: var(--bg-card);
    border: 3px solid var(--moss-green);
    border-radius: 0;
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    clip-path: polygon(
        0 0, calc(100% - 20px) 0, 100% 20px,
        100% 100%, 20px 100%, 0 calc(100% - 20px)
    );
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--moss-green), var(--lake-blue));
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 1;
    pointer-events: none;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px var(--nature-shadow);
}

.game-card:hover::before {
    opacity: 0.1;
}

.game-card-inner {
    position: relative;
    z-index: 2;
}

.game-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.game-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    filter: brightness(0.8);
}

.game-card:hover .game-img {
    transform: scale(1.1);
    filter: brightness(1);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 95, 76, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.play-btn {
    font-family: var(--font-pixel);
    font-size: 1.5rem;
    color: var(--text-light);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.game-info {
    padding: var(--spacing-md);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.game-info h3 {
    font-family: var(--font-retro);
    font-size: 1.5rem;
    color: var(--accent-moss);
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 0 10px rgba(106, 162, 135, 0.3);
}

.game-badge {
    background: var(--earth-brown);
    color: var(--text-light);
    padding: 0.25rem 0.75rem;
    font-family: var(--font-retro);
    font-size: 0.9rem;
    border: 2px solid var(--text-light);
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}

.game-info p {
    color: var(--text-natural);
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

.game-stats {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 2px solid var(--forest-green);
}

.stat {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-family: var(--font-retro);
    font-size: 0.9rem;
    color: var(--accent-moss);
}

.stat i {
    font-size: 1rem;
}

/* ============================================
   PHILOSOPHY SECTION
   ============================================ */
.philosophy-section {
    background: var(--bg-dark);
}

.pixel-container {
    background: rgba(26, 40, 35, 0.5);
    border: 3px solid var(--pine-green);
    padding: var(--spacing-lg);
    clip-path: polygon(
        0 0, calc(100% - 30px) 0, 100% 30px,
        100% 100%, 30px 100%, 0 calc(100% - 30px)
    );
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.philosophy-card {
    background: var(--bg-card);
    border: 2px solid var(--moss-green);
    padding: var(--spacing-md);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
}

.philosophy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--accent-moss);
    transition: height var(--transition-slow);
}

.philosophy-card:hover::before {
    height: 100%;
}

.philosophy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--nature-shadow);
    border-color: var(--accent-moss);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    display: inline-block;
    transition: transform var(--transition-normal);
}

.philosophy-card:hover .card-icon {
    transform: scale(1.2) rotate(5deg);
}

.philosophy-card h3 {
    font-family: var(--font-retro);
    font-size: 1.3rem;
    color: var(--accent-moss);
    margin-bottom: var(--spacing-sm);
}

.philosophy-card p {
    color: var(--text-natural);
    line-height: 1.7;
}

/* ============================================
   STUDIO SECTION
   ============================================ */
.studio-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--forest-dark) 100%);
}

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

.studio-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.studio-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-natural);
    margin-bottom: var(--spacing-md);
}

.studio-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.stat-box {
    background: var(--bg-card);
    border: 3px solid var(--lake-blue);
    padding: var(--spacing-md);
    text-align: center;
    transition: all var(--transition-normal);
    clip-path: polygon(
        10px 0, 100% 0, 100% calc(100% - 10px),
        calc(100% - 10px) 100%, 0 100%, 0 10px
    );
}

.stat-box:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(74, 124, 145, 0.4);
}

.stat-number {
    display: block;
    font-family: var(--font-pixel);
    font-size: 3rem;
    color: var(--accent-moss);
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 0 15px var(--nature-shadow);
}

.stat-label {
    display: block;
    font-family: var(--font-retro);
    font-size: 1rem;
    color: var(--text-natural);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    background: var(--bg-dark);
    text-align: center;
}

.contact-content {
    max-width: 800px;
    margin: var(--spacing-lg) auto 0;
}

.email-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    font-size: 1.3rem;
    color: var(--accent-moss);
    font-family: var(--font-retro);
}

.email-container i {
    font-size: 1.5rem;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

#email-display {
    cursor: pointer;
    transition: all var(--transition-fast);
    border-bottom: 2px solid transparent;
}

#email-display:hover {
    color: var(--accent-amber);
    border-bottom-color: var(--accent-amber);
    text-shadow: 0 0 10px var(--nature-shadow);
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    width: 80px;
    padding: var(--spacing-sm);
    background: var(--bg-card);
    border: 2px solid var(--moss-green);
    color: var(--accent-moss);
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    clip-path: polygon(
        8px 0, 100% 0, 100% calc(100% - 8px),
        calc(100% - 8px) 100%, 0 100%, 0 8px
    );
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--moss-green);
    transition: height var(--transition-normal);
    z-index: 0;
}

.social-link:hover::before {
    height: 100%;
}

.social-link i {
    font-size: 2rem;
    position: relative;
    z-index: 1;
    transition: transform var(--transition-fast);
}

.link-label {
    font-family: var(--font-retro);
    font-size: 0.8rem;
    position: relative;
    z-index: 1;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--nature-shadow);
    color: var(--text-light);
}

.social-link:hover i {
    transform: scale(1.2);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--forest-green);
    border-top: 3px solid var(--moss-green);
    padding: var(--spacing-lg) var(--spacing-md);
    position: relative;
    z-index: 2;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.footer-logo-main {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 0 10px var(--nature-shadow));
}

.footer-logo-partner {
    height: 100px;
    width: auto;
    opacity: 0.8;
    transition: opacity var(--transition-normal);
}

.footer-logo-partner:hover {
    opacity: 1;
}

.footer-text {
    margin-top: var(--spacing-md);
}

.footer-text p {
    font-family: var(--font-retro);
    font-size: 0.95rem;
    color: var(--text-natural);
    margin: var(--spacing-xs) 0;
}

.partner-text {
    font-size: 0.85rem !important;
    opacity: 0.8;
}

.footer-pixel-line {
    margin-top: var(--spacing-md);
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        var(--accent-moss) 0px,
        var(--accent-moss) 10px,
        transparent 10px,
        transparent 20px
    );
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
    }

    .header-container {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .language-toggle {
        position: static;
    }

    .hero {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .xp-text {
        font-size: 0.7rem;
        right: var(--spacing-xs);
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
    }

    .studio-stats {
        grid-template-columns: 1fr;
    }

    .social-links {
        gap: var(--spacing-sm);
    }

    .social-link {
        width: 70px;
    }

    .achievement-toast {
        right: -300px;
        max-width: 90%;
    }

    .achievement-toast.show {
        right: var(--spacing-xs);
    }
}

@media (max-width: 480px) {
    .section {
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .pixel-box {
        padding: var(--spacing-sm);
    }

    .footer-logos {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 3px solid var(--accent-moss);
    outline-offset: 3px;
}

.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-moss);
    color: var(--forest-dark);
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
}

.skip-to-content:focus {
    top: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-natural: #ffffff;
        --bg-card: #000000;
    }

    .game-card,
    .philosophy-card,
    .stat-box {
        border-width: 4px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .header,
    .xp-bar,
    .scroll-indicator,
    .achievement-toast,
    .social-links {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}

/* ============================================
   GDPR COOKIE CONSENT BANNER
   ============================================ */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 40, 35, 0.98);
    backdrop-filter: blur(10px);
    border-top: 3px solid var(--moss-green);
    padding: var(--spacing-md);
    z-index: 10000;
    box-shadow: 0 -4px 20px var(--nature-shadow);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.cookie-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h3 {
    font-family: var(--font-retro);
    font-size: 1.3rem;
    color: var(--accent-moss);
    margin-bottom: var(--spacing-xs);
}

.cookie-text p {
    font-size: 0.95rem;
    color: var(--text-natural);
    line-height: 1.6;
    margin-bottom: var(--spacing-xs);
}

.cookie-link {
    color: var(--accent-amber);
    text-decoration: underline;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.cookie-link:hover {
    color: var(--accent-moss);
}

.cookie-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    font-family: var(--font-retro);
    font-size: 1rem;
    border: 2px solid;
    cursor: pointer;
    transition: all var(--transition-normal);
    min-width: 120px;
    clip-path: polygon(
        0 0, calc(100% - 8px) 0, 100% 8px,
        100% 100%, 8px 100%, 0 calc(100% - 8px)
    );
}

/* IMPORTANT: Reject and Accept buttons must be equally prominent (GDPR requirement) */
.cookie-btn-reject {
    background: transparent;
    border-color: var(--text-natural);
    color: var(--text-natural);
}

.cookie-btn-reject:hover {
    background: var(--text-natural);
    color: var(--forest-dark);
    transform: translateY(-2px);
}

.cookie-btn-accept {
    background: var(--moss-green);
    border-color: var(--moss-green);
    color: var(--text-light);
}

.cookie-btn-accept:hover {
    background: var(--accent-moss);
    border-color: var(--accent-moss);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--nature-shadow);
}

/* Cookie Settings Button (floating) */
.cookie-settings-btn {
    position: fixed;
    bottom: var(--spacing-md);
    left: var(--spacing-md);
    width: 50px;
    height: 50px;
    background: var(--moss-green);
    border: 2px solid var(--accent-moss);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--nature-shadow);
}

.cookie-settings-btn:hover {
    transform: scale(1.1);
    background: var(--accent-moss);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        min-width: 140px;
    }

    .cookie-settings-btn {
        bottom: var(--spacing-sm);
        left: var(--spacing-sm);
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent {
        transition: none;
    }
}

.cookie-consent:focus-within {
    outline: 3px solid var(--accent-moss);
    outline-offset: -3px;
}

/* ============================================
   ACCESSIBILITY BUTTON & MENU
   ============================================ */

/* Button Styling (Matches Cookie Button) */
.accessibility-btn {
    position: fixed;
    bottom: var(--spacing-md);
    left: calc(var(--spacing-md) + 60px); /* Placed next to cookie button */
    width: 50px;
    height: 50px;
    background: var(--moss-green);
    border: 2px solid var(--accent-moss);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--nature-shadow);
}

.accessibility-btn:hover {
    transform: scale(1.1);
    background: var(--accent-moss);
}

/* WCAG Tooltip */
.wcag-tooltip {
    position: absolute;
    left: 60px; /* Show to the right of the button */
    background: var(--bg-card);
    border: 1px solid var(--accent-moss);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    white-space: nowrap;
    font-family: var(--font-retro);
    font-size: 0.9rem;
    color: var(--accent-moss);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-10px);
    transition: all var(--transition-fast);
    box-shadow: 0 4px 10px var(--nature-shadow);
}

.accessibility-btn:hover .wcag-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Menu Styling */
.accessibility-menu {
    position: fixed;
    bottom: calc(var(--spacing-md) + 70px);
    left: var(--spacing-md);
    background: var(--bg-card);
    border: 2px solid var(--moss-green);
    padding: var(--spacing-sm);
    border-radius: 8px;
    width: 250px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    box-shadow: 0 10px 30px var(--nature-shadow);
    clip-path: polygon(
        0 0, 100% 0, 100% calc(100% - 15px), 
        calc(100% - 15px) 100%, 0 100%
    );
}

.accessibility-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.access-header {
    font-family: var(--font-pixel);
    color: var(--accent-moss);
    font-size: 0.8rem;
    margin-bottom: var(--spacing-sm);
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--forest-green);
}

.access-option {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--forest-green);
    padding: 10px;
    margin-bottom: 8px;
    width: 100%;
    cursor: pointer;
    color: var(--text-natural);
    font-family: var(--font-retro);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.access-option:hover {
    background: var(--forest-green);
    color: var(--text-light);
}

.access-option.enabled {
    background: var(--moss-green);
    border-color: var(--accent-moss);
    color: var(--text-light);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--forest-dark);
    margin-left: auto;
}

.access-option.enabled .status-indicator {
    background: var(--accent-amber);
    box-shadow: 0 0 5px var(--accent-amber);
}

/* Active States applied to Body */
body.large-text-mode {
    font-size: 19px !important; /* Increases base rem size */
}

body.high-contrast-mode {
    --text-natural: #ffffff;
    --bg-card: #000000;
    --bg-dark: #111111;
    --moss-green: #1a4d3a;
}

