/* =====================================================
   REMOTE FOCUS DESIGN - Modern CSS Architecture
   Updated: January 2026
   ===================================================== */

/* ===========================================
   CUSTOM FONTS (self-hosted)
   =========================================== */
@font-face {
    font-family: 'RFD Body';
    src:
        url('fonts/Paragraphs/bai-jamjuree-normal-400.woff2') format('woff2'),
        url('fonts/Paragraphs/BaiJamjuree-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'RFD Body';
    src:
        url('fonts/Paragraphs/bai-jamjuree-italic-400.woff2') format('woff2'),
        url('fonts/Paragraphs/BaiJamjuree-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'RFD Body';
    src:
        url('fonts/Paragraphs/bai-jamjuree-normal-600.woff2') format('woff2'),
        url('fonts/Paragraphs/BaiJamjuree-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'RFD Body';
    src:
        url('fonts/Paragraphs/bai-jamjuree-normal-700.woff2') format('woff2'),
        url('fonts/Paragraphs/BaiJamjuree-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'RFD Heading';
    src:
        url('fonts/Titles and headers/special-gothic-condensed-one-normal-400.woff2') format('woff2'),
        url('fonts/Titles and headers/SpecialGothicCondensedOne-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ===========================================
   CSS CUSTOM PROPERTIES - Design Tokens
   =========================================== */
:root {
    /* Color Palette - Dark Theme (Default) */
    --color-primary: #4da3ff;
    --color-primary-hover: #6bb3ff;
    --color-primary-rgb: 77, 163, 255;
    --color-secondary: #adb5bd;
    --color-accent: #d500f9;
    --color-accent-hover: #e040fb;
    --color-accent-rgb: 213, 0, 249;
    --color-success: #00e676;
    --color-warning: #ffab40;
    --color-error: #ff5252;
    
    /* Theme Colors - Dark */
    --color-bg: #0f0f12;
    --color-bg-elevated: #16161a;
    --color-bg-card: rgba(22, 22, 26, 0.85);
    --color-bg-header: rgba(15, 15, 18, 0.88);
    --color-surface: #1c1c21;
    --color-surface-hover: #25252b;
    --color-text: #f0f0f5;
    --color-text-muted: #9ca3af;
    --color-text-subtle: #6b7280;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.15);
    --color-divider: rgba(255, 255, 255, 0.06);
    
    /* Shadows - Dark Theme */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(77, 163, 255, 0.15);
    --shadow-glow-accent: 0 0 20px rgba(213, 0, 249, 0.15);
    
    /* Typography */
    --font-body: 'RFD Body', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-heading: 'RFD Heading', 'RFD Body', 'Segoe UI', system-ui, sans-serif;
    --font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
    --font-size-sm: clamp(0.8125rem, 0.775rem + 0.25vw, 0.875rem);
    --font-size-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1rem);
    --font-size-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.125rem);
    --font-size-xl: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
    --font-size-2xl: clamp(1.5rem, 1.25rem + 1vw, 2rem);
    --font-size-3xl: clamp(1.875rem, 1.5rem + 1.5vw, 2.5rem);
    --font-size-4xl: clamp(2.25rem, 1.75rem + 2vw, 3.5rem);
    --line-height-tight: 1.2;
    --line-height-normal: 1.6;
    --line-height-relaxed: 1.8;
    --letter-spacing-tight: -0.01em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.05em;
    --letter-spacing-wider: 0.1em;
    
    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Layout */
    --max-width: 1280px;
    --max-width-content: 720px;
    --header-height: 72px;
    --section-spacing: clamp(48px, 8vw, 96px);
    --container-padding: clamp(16px, 4vw, 32px);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
}

/* ===========================================
   LIGHT THEME
   =========================================== */
[data-theme="light"] {
    --color-bg: #fafbfc;
    --color-bg-elevated: #ffffff;
    --color-bg-card: rgba(255, 255, 255, 0.9);
    --color-bg-header: rgba(255, 255, 255, 0.92);
    --color-surface: #f3f4f6;
    --color-surface-hover: #e5e7eb;
    --color-text: #111827;
    --color-text-muted: #4b5563;
    --color-text-subtle: #9ca3af;
    --color-border: rgba(0, 0, 0, 0.08);
    --color-border-hover: rgba(0, 0, 0, 0.15);
    --color-divider: rgba(0, 0, 0, 0.06);
    
    /* Adjusted colors for light theme */
    --color-primary: #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-primary-rgb: 37, 99, 235;
    --color-accent: #9333ea;
    --color-accent-hover: #7c3aed;
    --color-accent-rgb: 147, 51, 234;
    
    /* Shadows - Light Theme */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.12);
    --shadow-glow-accent: 0 0 20px rgba(147, 51, 234, 0.12);
}

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

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    cursor: default;
    overflow-x: hidden;
}

/* Keep arrow cursor even over selectable text */
body * {
    cursor: inherit;
}

/* Preserve expected cursors for interactive / form elements */
a, button, [role="button"],
input[type="button"], input[type="submit"], input[type="reset"],
label, select, summary {
    cursor: pointer;
}

input, textarea, [contenteditable="true"] {
    cursor: text;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    color: var(--color-text);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
    margin-bottom: var(--space-4);
    max-width: 75ch;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

img {
    image-rendering: -webkit-optimize-contrast;
}

button {
    font-family: inherit;
    font-size: inherit;
    border: none;
    background: none;
}

::selection {
    background-color: var(--color-accent);
    color: #ffffff;
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ===========================================
   LAYOUT UTILITIES
   =========================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

.container--narrow {
    max-width: var(--max-width-content);
}

main {
    flex: 1;
    padding-top: var(--space-8);
    padding-bottom: var(--space-16);
}

.section {
    margin-bottom: var(--section-spacing);
}

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Text utilities */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ===========================================
   HEADER & NAVIGATION
   =========================================== */
header {
    background-color: var(--color-bg-header);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: background-color var(--transition-base), border-color var(--transition-base);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: 700;
    color: var(--color-primary);
    font-size: var(--font-size-lg);
    transition: opacity var(--transition-fast);
}

.logo:hover {
    opacity: 0.85;
}

.logo img {
    height: 42px;
    width: auto;
}

nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-text);
    background-color: var(--color-surface);
}

.nav-link.active {
    color: var(--color-primary);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + var(--space-2));
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background-color: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    border-radius: var(--radius-lg);
    padding: var(--space-2);
    transition: all var(--transition-base);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: var(--space-3) var(--space-4);
    color: var(--color-text-muted);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background-color: var(--color-surface);
    color: var(--color-primary);
}

.dropdown-item.active {
    color: var(--color-primary);
}

/* Language & Theme Switchers */
.nav-controls {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-left: var(--space-4);
    padding-left: var(--space-4);
    border-left: 1px solid var(--color-border);
}

.lang-switcher {
    display: flex;
    gap: var(--space-1);
    background-color: var(--color-surface);
    padding: var(--space-1);
    border-radius: var(--radius-full);
}

.lang-link {
    font-weight: 600;
    font-size: var(--font-size-xs);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}

.lang-link:hover {
    color: var(--color-text);
}

.lang-link.active {
    background-color: var(--color-primary);
    color: #ffffff;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background-color: var(--color-surface);
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background-color: var(--color-surface-hover);
    color: var(--color-text);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-spring);
}

.theme-toggle:hover svg {
    transform: rotate(15deg);
}

.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle .icon-moon {
    display: block;
}

[data-theme="light"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
    display: none;
}

/* Mobile Menu Toggle */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
    margin-left: var(--space-2);
    background: none;
    border: none;
    outline: none;
}

.hamburger:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}

.bar {
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===========================================
   HERO SECTION
   =========================================== */
.hero {
    position: relative;
    padding: var(--space-20) 0 var(--space-16);
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, 
        var(--color-bg) 0%, 
        var(--color-bg-elevated) 50%, 
        var(--color-bg) 100%);
    margin-bottom: var(--space-12);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(var(--color-primary-rgb), 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 70% 80%, rgba(var(--color-accent-rgb), 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin-bottom: var(--space-6);
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: var(--font-size-xl);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto var(--space-8);
}

.hero-cta {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* Game Page Hero Variant */
.hero-game {
    text-align: left;
    padding: var(--space-16) 0 var(--space-12);
    background-image: url('../images/backgrounds/starry%20background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-game::before {
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(var(--color-primary-rgb), 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 70% 80%, rgba(var(--color-accent-rgb), 0.15) 0%, transparent 40%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.hero-game + .content-block {
    margin-top: 50px;
}

.hero-game-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    align-items: center;
}

.hero-game-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.hero-game-text h1 {
    margin-bottom: var(--space-2);
}

.hero-game-description {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.hero-game-description p {
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.7;
}

.hero-game-text .hero-cta {
    justify-content: flex-start;
    margin-top: var(--space-4);
}

.hero-game-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-game-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

/* Light theme override for hero-game text contrast */
[data-theme="light"] .hero-game h1,
[data-theme="light"] .hero-game-description p {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .hero-game-description p {
    color: rgba(255, 255, 255, 0.9);
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: var(--space-6) auto 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xl);
}

/* Featured Game Section */
.featured-game {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-6);
    align-items: start;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    background-image: url('../images/backgrounds/starry%20background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.featured-game::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.7) 100%);
    border-radius: var(--radius-xl);
    pointer-events: none;
}

.featured-game > * {
    position: relative;
    z-index: 1;
}

.featured-game-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
}

.featured-game-icon {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.featured-game-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    width: 100%;
}

.featured-game-actions .btn {
    width: 100%;
    text-align: center;
    white-space: nowrap;
    font-size: var(--font-size-sm);
    padding: var(--space-2) var(--space-4);
}

.featured-game-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.featured-game-info h3 {
    font-family: var(--font-display);
    font-size: var(--font-size-2xl);
    color: var(--color-primary);
    margin: 0;
}

.featured-game-info p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin: 0;
}

.featured-game-info .service-list {
    margin: var(--space-2) 0;
}

.featured-game-info .service-list li {
    color: rgba(255, 255, 255, 0.8);
}

.featured-game-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-game-slideshow {
    position: relative;
    width: 180px;
    height: 320px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: block;
}

.featured-game-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.featured-game-slide.active {
    opacity: 1;
}

.featured-game-slideshow:hover {
    transform: scale(1.02);
    transition: transform var(--transition-normal);
}

@media (max-width: 900px) {
    .featured-game {
        grid-template-columns: auto 1fr;
    }
    
    .featured-game-gallery {
        grid-column: 1 / -1;
        justify-content: center;
    }
    
    .featured-game-slideshow {
        width: 200px;
        height: 356px;
    }
}

@media (max-width: 600px) {
    .featured-game {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .featured-game-sidebar {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .featured-game-actions {
        flex-direction: row;
        width: auto;
    }
    
    .featured-game-actions .btn {
        width: auto;
    }
    
    .featured-game-gallery {
        justify-content: center;
    }
    
    .featured-game-slideshow {
        width: 180px;
        height: 320px;
    }
    
    .featured-game-info .service-list {
        text-align: left;
    }
}

/* Starry Background Section */
.starry-bg {
    position: relative;
    background-image: url('../images/backgrounds/starry%20background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    margin-top: var(--space-8);
    margin-bottom: var(--space-8);
}

.starry-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    border-radius: var(--radius-xl);
    pointer-events: none;
}

.starry-bg > * {
    position: relative;
    z-index: 1;
}

/* ===========================================
   BUTTONS
   =========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-weight: 600;
    font-size: var(--font-size-sm);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn-secondary {
    background-color: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background-color: var(--color-surface-hover);
    border-color: var(--color-border-hover);
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    color: #ffffff;
    box-shadow: var(--shadow-glow-accent);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--shadow-glow-accent);
}

.btn-ghost {
    background: transparent;
    color: var(--color-primary);
}

.btn-ghost:hover {
    background-color: rgba(var(--color-primary-rgb), 0.1);
}

/* ===========================================
   CONTENT BLOCKS & CARDS
   =========================================== */
.content-block {
    margin-bottom: var(--section-spacing);
}

.content-block h2 {
    margin-bottom: var(--space-6);
    color: var(--color-primary);
}

.content-block h3 {
    margin-bottom: var(--space-4);
}

/* Glass Card Base */
.card {
    background: var(--color-bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(150% 100% at 0% 0%, rgba(var(--color-primary-rgb), 0.08) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.card:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card:hover::before {
    opacity: 1;
}

/* Card Grid Layouts */
.card-grid {
    display: grid;
    gap: var(--space-6);
}

.card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.card-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

/* About Cards (Home) */
.about-block > p {
    max-width: 75ch;
    color: var(--color-text-muted);
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-5);
    margin-top: var(--space-8);
}

.about-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 100% at 0% 0%, var(--about-accent, rgba(var(--color-primary-rgb), 0.12)) 0%, transparent 50%);
    opacity: 0.8;
    pointer-events: none;
}

.about-card > * {
    position: relative;
    z-index: 1;
}

.about-card:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.about-cards .about-card:nth-child(1) {
    --about-accent: rgba(var(--color-accent-rgb), 0.15);
}

.about-cards .about-card:nth-child(2) {
    --about-accent: rgba(var(--color-primary-rgb), 0.12);
}

.about-cards .about-card:nth-child(3) {
    --about-accent: rgba(134, 94, 255, 0.12);
}

.about-cards .about-card:nth-child(4) {
    --about-accent: rgba(0, 209, 255, 0.1);
}

.about-card h3 {
    margin: 0 0 var(--space-4);
    font-size: var(--font-size-xs);
    letter-spacing: var(--letter-spacing-wider);
    text-transform: uppercase;
    color: var(--color-accent);
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    background: rgba(var(--color-accent-rgb), 0.12);
    border: 1px solid rgba(var(--color-accent-rgb), 0.25);
}

.about-card p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.about-card p + p {
    margin-top: var(--space-3);
}

/* Upcoming Game Cards */
.upcoming-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-5);
    margin-top: var(--space-6);
}

.upcoming-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    transition: all var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
}

.upcoming-card:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.upcoming-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-4);
}

.upcoming-card-badge {
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    background: rgba(var(--color-accent-rgb), 0.15);
    color: var(--color-accent);
    border: 1px solid rgba(var(--color-accent-rgb), 0.3);
}

.upcoming-card-quarter {
    font-size: var(--font-size-xs);
    font-weight: 600;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    background: var(--color-bg-elevated);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
}

.upcoming-card-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 var(--space-2);
}

.upcoming-card-pricing {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: var(--space-1);
}

.upcoming-card-date {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}

.upcoming-card .service-list {
    flex-grow: 1;
    margin-bottom: var(--space-4);
}

.upcoming-card-status {
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    display: inline-block;
    margin-top: auto;
}

.upcoming-card-status--development {
    background: rgba(var(--color-accent-rgb), 0.15);
    color: var(--color-accent);
    border: 1px solid rgba(var(--color-accent-rgb), 0.3);
}

.upcoming-card-status--planning {
    background: var(--color-bg-elevated);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
}

.upcoming-card-status--concept {
    background: var(--color-bg-elevated);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
}

.upcoming-card-badge--saas {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

/* About Card with Background Icons (Philosophy Cards) */
.about-card--icon {
    position: relative;
    overflow: hidden;
}

.about-card--icon::after {
    content: '';
    position: absolute;
    right: clamp(-60px, -4vw, -40px);
    top: clamp(-60px, -4vw, -40px);
    width: clamp(140px, 20vw, 220px);
    height: clamp(140px, 20vw, 220px);
    background-image: var(--about-icon, none);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: rotate(-15deg);
    opacity: 0.08;
    filter: brightness(0) invert(1);
    pointer-events: none;
    transition: opacity var(--transition-base), transform var(--transition-base);
    z-index: 0;
}

[data-theme="light"] .about-card--icon::after {
    filter: brightness(0);
    opacity: 0.06;
}

.about-card--icon:hover::after {
    opacity: 0.12;
    transform: rotate(-10deg) scale(1.08);
}

.about-card--promote {
    --about-icon: url('../images/icons/misc/heart-svgrepo-com.svg');
}

.about-card--avoid {
    --about-icon: url('../images/icons/misc/thumbs-down-svgrepo-com.svg');
}

.about-card--design {
    --about-icon: url('../images/icons/emoji/robot-svgrepo-com.svg');
}

.about-card--values {
    --about-icon: url('../images/icons/misc/star-svgrepo-com.svg');
}

/* Services Section */
.services-intro {
    max-width: 75ch;
    color: var(--color-text-muted);
}

.services-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
    margin-top: var(--space-6);
}

.service-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    right: clamp(-100px, -6vw, -60px);
    top: clamp(-100px, -6vw, -60px);
    width: clamp(180px, 25vw, 350px);
    height: clamp(180px, 25vw, 350px);
    background-image: var(--service-icon, none);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: rotate(-35deg);
    opacity: 0.06;
    filter: brightness(0) invert(1);
    pointer-events: none;
    transition: opacity var(--transition-base), transform var(--transition-base);
}

[data-theme="light"] .service-card::before {
    filter: brightness(0);
    opacity: 0.04;
}

.service-card:hover::before {
    opacity: 0.1;
    transform: rotate(-30deg) scale(1.05);
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-card:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.service-card--software {
    --service-icon: url('../images/icons/misc/code-svgrepo-com.svg');
}

.service-card--games {
    --service-icon: url('../images/icons/games/gamepad-svgrepo-com.svg');
}

.service-card--assets {
    --service-icon: url('../images/icons/games/gem-svgrepo-com.svg');
}

.service-card h3 {
    margin: 0 0 var(--space-3);
    font-size: var(--font-size-xl);
    color: var(--color-text);
}

.service-card > p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}

.service-list {
    margin: 0 0 var(--space-4);
    padding: 0;
}

.service-list li {
    position: relative;
    padding-left: var(--space-5);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.service-list li + li {
    margin-top: var(--space-2);
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
}

.service-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.service-link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

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

.services-cta {
    margin-top: var(--space-6);
    color: var(--color-text-muted);
}

/* ===========================================
   SHOWCASE SECTION (Home)
   =========================================== */
.showcase-section {
    width: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, #2563eb 50%, var(--color-primary) 100%);
    color: #0f172a;
    padding: var(--space-20) 0;
    margin-top: var(--section-spacing);
    position: relative;
    overflow: hidden;
}

.showcase-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 50% 80% at 20% 0%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 40% 60% at 80% 100%, rgba(0, 0, 0, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.showcase-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-12);
    position: relative;
}

.showcase-left {
    flex: 1 1 42%;
}

.showcase-heading {
    margin: 0;
    font-size: var(--font-size-3xl);
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #0b1220;
}

.showcase-start-btn {
    margin-top: var(--space-5);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-full);
    border: none;
    background: #0b1220;
    color: #ffffff;
    font-weight: 700;
    font-size: var(--font-size-base);
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform var(--transition-fast), opacity var(--transition-base), background-color var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.showcase-start-btn:hover {
    background: #1a2744;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.showcase-start-btn:active {
    transform: translateY(0);
}

.showcase-start-btn.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.showcase-right {
    flex: 1 1 58%;
}

.showcase-gallery {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin-left: auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.showcase-gallery img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.showcase-gallery img.active {
    opacity: 1;
}

.showcase-expand {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-8px);
    transition: max-height 0.6s ease, opacity 0.4s ease, transform 0.4s ease;
    margin-top: 0;
    display: flex;
    gap: var(--space-5);
}

.showcase-expand.is-open {
    opacity: 1;
    transform: translateY(0);
    margin-top: var(--space-8);
}

.showcase-expand-col {
    flex: 1 1 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(11, 18, 32, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    color: #0b1220;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.15);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.showcase-expand-col--desert {
    background-image: url('../images/backgrounds/unity-desert-background-blurred.png');
    background-size: cover;
    background-position: center;
}

.showcase-expand-col--desert::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(4px);
}

.showcase-expand-col--desert > * {
    position: relative;
    z-index: 1;
}

.showcase-expand-col--winter {
    background-image: url('../images/backgrounds/unity-winter-background-blurred.png');
    background-size: cover;
    background-position: center;
}

.showcase-expand-col--winter::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(4px);
}

.showcase-expand-col--winter > * {
    position: relative;
    z-index: 1;
}

.showcase-expand-col--nnn {
    background-image: url('../images/backgrounds/starry%20background.png');
    background-size: cover;
    background-position: center;
}

.showcase-expand-col--nnn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(2px);
}

.showcase-expand-col--nnn > * {
    position: relative;
    z-index: 1;
}

.showcase-expand-col--nnn .showcase-expand-title,
.showcase-expand-col--nnn .showcase-expand-desc {
    color: #ffffff;
}

.showcase-expand-col--nnn .showcase-expand-desc {
    color: rgba(255, 255, 255, 0.85);
}

.showcase-expand-btn {
    margin-top: var(--space-4);
    align-self: flex-start;
}

.showcase-expand-title {
    margin: 0 0 var(--space-3);
    font-size: var(--font-size-xl);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0b1220;
    scroll-margin-top: calc(var(--header-height) + var(--space-5));
}

.showcase-expand-desc {
    margin: 0 0 var(--space-4);
    color: rgba(11, 18, 32, 0.85);
    font-size: var(--font-size-sm);
}

.showcase-video {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(11, 18, 32, 0.1);
    aspect-ratio: 16 / 9;
}

.showcase-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.showcase-video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    padding: var(--space-4);
    text-align: center;
    background: var(--color-surface-alt);
    color: var(--color-text-muted);
}

.showcase-video-placeholder p {
    margin: 0;
    font-size: var(--font-size-sm);
}

.showcase-video-placeholder .youtube-consent-btn {
    font-size: var(--font-size-xs);
    padding: var(--space-2) var(--space-4);
}

/* ===========================================
   FEATURE LIST (For various pages)
   =========================================== */
.feature-list {
    list-style: none;
    margin: var(--space-4) 0;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding: var(--space-3) 0 var(--space-3) var(--space-8);
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-divider);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: var(--space-3);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-success) 0%, #00c853 100%);
    color: #ffffff;
    font-size: var(--font-size-xs);
    font-weight: 700;
    border-radius: var(--radius-full);
}

/* ===========================================
   FOOTER
   =========================================== */
footer {
    background: var(--color-bg-elevated);
    border-top: 1px solid var(--color-border);
    padding: var(--space-16) 0 var(--space-8);
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-section h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-5);
    color: var(--color-text);
}

.footer-section p {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    max-width: 300px;
}

.footer-section p a {
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition-fast);
}

.footer-section p a:hover {
    color: var(--color-primary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.social-links {
    display: flex;
    gap: var(--space-3);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-surface);
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--color-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-divider);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.copyright {
    text-align: center;
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-divider);
    font-size: var(--font-size-sm);
    color: var(--color-text-subtle);
}

/* ===========================================
   BACK TO TOP BUTTON
   =========================================== */
#back-to-top {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

#back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ===========================================
   COOKIE CONSENT MODAL
   =========================================== */
.cookie-consent {
    position: fixed;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-5) var(--space-6);
    max-width: 480px;
    width: calc(100% - var(--space-8));
    box-shadow: var(--shadow-lg);
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

.cookie-consent.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.cookie-consent h4 {
    margin-bottom: var(--space-3);
    font-size: var(--font-size-lg);
}

.cookie-consent p {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}

.cookie-consent-actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

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

/* Cookie Settings Toggle */
.cookie-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) 0;
    border-top: 1px solid var(--color-divider);
    margin-top: var(--space-3);
}

.cookie-toggle-label {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.cookie-toggle-label span:first-child {
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.cookie-toggle-label span:last-child {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    background: var(--color-surface);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: var(--radius-full);
    transition: transform var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.toggle-switch.active {
    background: var(--color-primary);
}

.toggle-switch.active::after {
    transform: translateX(22px);
}

/* ===========================================
   PAGE-SPECIFIC STYLES
   =========================================== */

/* Contact Page */
.contact-info {
    text-align: center;
    padding: var(--space-12) 0;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--font-size-2xl);
    color: var(--color-primary);
    font-weight: 700;
    padding: var(--space-4) var(--space-8);
    background: rgba(var(--color-primary-rgb), 0.1);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.contact-email:hover {
    background: rgba(var(--color-primary-rgb), 0.15);
    transform: translateY(-2px);
}

/* Legal Pages (Privacy, Terms, Copyright) */
.legal-content h2 {
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
    font-size: var(--font-size-xl);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content ul {
    margin: var(--space-4) 0;
    padding-left: var(--space-6);
    list-style: disc;
}

.legal-content ul li {
    color: var(--color-text-muted);
    margin-bottom: var(--space-2);
}

.legal-content a {
    color: var(--color-primary);
    font-weight: 600;
}

.legal-content a:hover {
    color: var(--color-accent);
}

/* Portfolio Cards */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.portfolio-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.portfolio-card:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.portfolio-card-image {
    aspect-ratio: 16 / 10;
    background: var(--color-surface);
    overflow: hidden;
}

.portfolio-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-card-image img {
    transform: scale(1.05);
}

.portfolio-card-content {
    padding: var(--space-5);
}

.portfolio-card-content h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-2);
}

.portfolio-card-content p {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}

.portfolio-tags {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.portfolio-tag {
    font-size: var(--font-size-xs);
    padding: var(--space-1) var(--space-2);
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
}

/* ===========================================
   SCREENSHOT GALLERY
   =========================================== */
.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.screenshot-gallery img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    cursor: pointer;
}

.screenshot-gallery img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-border-hover);
}

/* ===========================================
   SCREENSHOT LIGHTBOX
   =========================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: zoom-out;
    padding: var(--space-4);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===========================================
   GAME VERSIONS
   =========================================== */
.game-versions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-6);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.game-version-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-align: center;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

.game-version-card:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.game-version-card h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.game-version-card img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.game-version-card .version-note {
    font-size: var(--font-size-sm);
    color: var(--color-primary);
    margin: 0;
    min-height: 2.5em;
    display: flex;
    align-items: center;
}

.game-version-card .btn {
    width: 100%;
    max-width: 180px;
}

/* ===========================================
   RESPONSIVE STYLES
   =========================================== */
@media (prefers-reduced-motion: reduce) {
    .showcase-gallery img {
        transition: none;
    }
}

/* Large screens (max 1200px) */
@media (max-width: 1200px) {
    .about-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .upcoming-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .screenshot-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Medium screens / Tablets (max 900px) */
@media (max-width: 900px) {
    .showcase-wrap {
        flex-direction: column;
        gap: var(--space-8);
    }
    
    .showcase-left,
    .showcase-right {
        flex: 1 1 100%;
    }
    
    .showcase-gallery {
        max-width: 100%;
        margin-left: 0;
    }
    
    .showcase-expand {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Small screens / Mobile (max 768px) */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        height: calc(100dvh - var(--header-height));
        z-index: var(--z-fixed);
        background-color: var(--color-bg);
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-8) var(--space-6);
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        overflow-y: auto;
        gap: var(--space-2);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-link {
        font-size: var(--font-size-lg);
        padding: var(--space-3) var(--space-4);
        width: 100%;
    }
    
    .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none;
        border: none;
        background: transparent;
        padding-left: var(--space-6);
        padding-top: 0;
        padding-bottom: 0;
        margin: 0;
        min-width: 0;
        max-height: 0;
        overflow: hidden;
        display: block !important;
        transition: max-height var(--transition-base), padding var(--transition-base);
    }
    
    .dropdown.active > .dropdown-menu {
        max-height: 500px;
        padding-top: var(--space-2);
        padding-bottom: var(--space-2);
    }
    
    .dropdown:hover > .dropdown-menu,
    .dropdown:focus-within > .dropdown-menu {
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    
    .dropdown.active:hover > .dropdown-menu,
    .dropdown.active:focus-within > .dropdown-menu {
        max-height: 500px;
        padding-top: var(--space-2);
        padding-bottom: var(--space-2);
    }
    
    .dropdown-item {
        display: block;
    }
    
    /* Hide back-to-top button when mobile menu is open */
    body.mobile-menu-open #back-to-top {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    
    .nav-controls {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: var(--space-6);
        padding-left: 0;
        padding-top: var(--space-6);
        border-left: none;
        border-top: 1px solid var(--color-border);
    }
    
    .hero {
        padding: var(--space-12) 0 var(--space-10);
    }
    
    .hero h1 {
        font-size: var(--font-size-3xl);
    }
    
    .hero-game {
        text-align: center;
    }
    
    .hero-game-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .hero-game-text .hero-cta {
        justify-content: center;
    }
    
    .hero-game-image {
        order: -1;
    }
    
    .hero-game-image img {
        max-width: 280px;
    }
    
    .about-cards {
        grid-template-columns: 1fr;
    }
    
    .services-cards {
        grid-template-columns: 1fr;
    }
    
    .screenshot-gallery {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .game-versions {
        grid-template-columns: 1fr;
        max-width: 350px;
    }
    
    .showcase-section {
        padding: var(--space-12) 0;
    }
    
    .showcase-heading {
        font-size: var(--font-size-2xl);
        text-align: center;
    }
    
    .showcase-left {
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }
    
    .footer-section p {
        max-width: none;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    #back-to-top {
        right: var(--space-4);
        bottom: var(--space-4);
        width: 44px;
        height: 44px;
    }
    
    .cookie-consent {
        bottom: var(--space-4);
        border-radius: var(--radius-lg);
    }
}

/* Extra small screens (max 480px) */
@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .btn {
        padding: var(--space-3) var(--space-5);
    }
    
    .card-grid--2,
    .card-grid--3,
    .card-grid--4 {
        grid-template-columns: 1fr;
    }
    
    .upcoming-cards {
        grid-template-columns: 1fr;
    }
    
    .cookie-consent-actions {
        flex-direction: column;
    }
    
    .contact-email {
        font-size: var(--font-size-lg);
        padding: var(--space-3) var(--space-5);
    }
}

/* ===========================================
   ANIMATION UTILITIES
   =========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-slide-up {
    animation: slideInUp 0.6s ease forwards;
}

/* ===========================================
   PRINT STYLES
   =========================================== */
@media print {
    header,
    footer,
    #back-to-top,
    .cookie-consent,
    .nav-controls {
        display: none !important;
    }
    
    body {
        background: #ffffff;
        color: #000000;
    }
    
    .hero {
        background: none;
        padding: 2rem 0;
    }
    
    .card,
    .about-card,
    .service-card,
    .upcoming-card {
        background: none;
        border: 1px solid #ccc;
        box-shadow: none;
    }
}

/* ===========================================
   ACCESSIBILITY - Skip Link
   =========================================== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--bg);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    z-index: 10000;
    text-decoration: none;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 1rem;
    outline: 2px solid var(--text);
    outline-offset: 2px;
}
