/* Reset & Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ffffff;
    --secondary: #cccccc;
    --accent: #ffffff;
    --dark: #000000;
    --darker: #000000;
    --gray: #1a1a1a;
    --light-gray: #333333;
    --text: #ffffff;
    --white: #ffffff;
    --black: #000000;
    --cyber-cyan: #00ffff;
    --cyber-pink: #ff00ff;
    --cyber-red: #ff0055;
    --cyber-blue: #0099ff;

    /* Typography */
    --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --font-display: 'Space Grotesk', var(--font-sans);
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Minimalist typography defaults */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
}

p, li, a, button, input, textarea, label, small {
    font-family: var(--font-sans);
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Custom Cursor - Diamond Shape */
.custom-cursor {
    position: fixed;
    width: 30px;
    height: 30px;
    pointer-events: none;
    z-index: 9999;
    left: 0;
    top: 0;
    margin-left: -15px;
    margin-top: -15px;
    will-change: transform;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-cursor.visible {
    opacity: 1;
}

.custom-cursor::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    transform: rotate(45deg);
    box-shadow: 
        0 0 20px var(--primary),
        0 0 40px rgba(255, 255, 255, 0.5),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
    animation: diamondPulse 2s ease-in-out infinite;
    transition: all 0.15s ease;
}

@keyframes diamondPulse {
    0%, 100% { 
        border-color: var(--primary);
        box-shadow: 
            0 0 20px var(--primary),
            0 0 40px rgba(255, 255, 255, 0.5),
            inset 0 0 10px rgba(255, 255, 255, 0.3);
    }
    50% { 
        border-color: var(--accent);
        box-shadow: 
            0 0 30px var(--accent),
            0 0 60px rgba(255, 255, 255, 0.7),
            inset 0 0 20px rgba(255, 255, 255, 0.4);
    }
}

.custom-cursor.cursor-hover::before {
    border-width: 3px;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 0 30px var(--accent),
        0 0 60px rgba(255, 255, 255, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.3);
}

.custom-cursor.cursor-hover {
    animation: none;
}

.custom-cursor.cursor-hover::before {
    transform: rotate(45deg) scale(1.3);
}

@keyframes cursorHoverScale {
    to { transform: scale(1.3); }
}

.custom-cursor.cursor-click {
    animation: none;
}

.custom-cursor.cursor-click::before {
    transform: rotate(45deg) scale(0.7);
    border-color: var(--secondary);
    box-shadow: 
        0 0 40px var(--secondary),
        0 0 80px rgba(200, 200, 200, 0.8);
}

/* Cursor Coordinates Display */
.cursor-coordinates {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    left: 0;
    top: 0;
    transform-origin: center top;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--primary);
    background: rgba(0, 0, 0, 0.9);
    padding: 4px 8px;
    border: 1px solid var(--primary);
    border-radius: 3px;
    white-space: nowrap;
    will-change: transform;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    translate: -50% 0;
}

.cursor-coordinates.visible {
    opacity: 1;
}

.cursor-follower {
    position: fixed;
    width: 50px;
    height: 50px;
    pointer-events: none;
    z-index: 9998;
    left: 0;
    top: 0;
    margin-left: -25px;
    margin-top: -25px;
    will-change: transform;
    opacity: 0;
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

.cursor-follower.visible {
    opacity: 1;
}

.cursor-follower::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: rotate(45deg);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    box-shadow: 
        0 0 30px rgba(255, 255, 255, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.cursor-follower.follower-hover::before {
    transform: rotate(45deg) scale(1.4);
    border-color: rgba(255, 255, 255, 0.5);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent);
    box-shadow: 
        0 0 40px rgba(255, 255, 255, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
}

/* Boot Screen - Simplified */
#boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

/* Minimal Scanlines */
#boot-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        rgba(255, 255, 255, 0.02) 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 2;
    animation: scanlineMove 8s linear infinite;
}

/* Subtle RGB Glow */
#boot-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.08), transparent 50%);
    mix-blend-mode: screen;
    animation: subtleGlow 4s ease-in-out infinite;
    z-index: 1;
    filter: blur(60px);
}

@keyframes subtleGlow {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes scanlineMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

#boot-screen.hide {
    opacity: 0;
    pointer-events: none;
}

.boot-content {
    text-align: center;
    color: var(--primary);
    z-index: 3;
    max-width: 800px;
    width: 90%;
    padding: 0 20px;
    background: transparent;
}

.boot-logo {
    margin-bottom: 60px;
    position: relative;
    width: 100%;
}

.logo-text {
    font-size: 64px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.5),
        2px 0 2px rgba(0, 255, 255, 0.5),
        -2px 0 2px rgba(0, 255, 255, 0.5);
    letter-spacing: 18px;
    animation: minimalGlitch 4s ease-in-out infinite;
    font-family: var(--font-display);
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

/* Minimal RGB Split Layers */
.logo-text::before,
.logo-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.logo-text::before {
    color: rgba(0, 255, 255, 0.6);
    animation: minimalCyanShift 3s ease-in-out infinite;
    z-index: -1;
}

.logo-text::after {
    color: rgba(0, 255, 255, 0.4);
    animation: minimalCyanShift 3s ease-in-out infinite reverse;
    z-index: -1;
}

/* Minimal Glitch Animation */
@keyframes minimalGlitch {
    0%, 96%, 100% {
        transform: translate(0);
        text-shadow: 
            0 0 20px rgba(255, 255, 255, 0.5),
            2px 0 2px rgba(0, 255, 255, 0.5),
            -2px 0 2px rgba(0, 255, 255, 0.5);
    }
    97% {
        transform: translate(-2px, 0);
        text-shadow: 
            0 0 25px rgba(255, 255, 255, 0.6),
            3px 0 3px rgba(0, 255, 255, 0.7),
            -3px 0 3px rgba(0, 255, 255, 0.7);
    }
    98% {
        transform: translate(2px, 0);
        text-shadow: 
            0 0 25px rgba(255, 255, 255, 0.6),
            -3px 0 3px rgba(0, 255, 255, 0.7),
            3px 0 3px rgba(0, 255, 255, 0.7);
    }
    99% {
        transform: translate(0);
        text-shadow: 
            0 0 20px rgba(255, 255, 255, 0.5),
            2px 0 2px rgba(0, 255, 255, 0.5),
            -2px 0 2px rgba(0, 255, 255, 0.5);
    }
}

/* Minimal Cyan Shift Animation */
@keyframes minimalCyanShift {
    0%, 90%, 100% {
        transform: translate(0, 0);
        opacity: 0;
    }
    95% {
        transform: translate(1px, 0);
        opacity: 0.5;
    }
    97% {
        transform: translate(-1px, 0);
        opacity: 0.5;
    }
}

.boot-loading {
    max-width: 600px;
    margin: 0 auto;
}

.loading-bar {
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 5px rgba(0, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(0, 255, 255, 0.5),
        rgba(0, 255, 255, 0.8),
        rgba(0, 255, 255, 0.5)
    );
    background-size: 200% 100%;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 
        0 0 10px rgba(0, 255, 255, 0.5),
        inset 0 0 5px rgba(255, 255, 255, 0.3);
    position: relative;
    animation: minimalProgressShift 3s linear infinite;
}

@keyframes minimalProgressShift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.loading-progress::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 255, 255, 0.4) 50%,
        transparent
    );
    animation: minimalShimmer 2s ease-in-out infinite;
}

@keyframes minimalShimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(200%);
    }
}

.loading-text {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    font-size: 13px;
    font-family: var(--font-sans);
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

.loading-label {
    position: relative;
    display: inline-block;
}

.loading-label::before,
.loading-label::after {
    display: none; /* Remove RGB split for minimal style */
}

.loading-percentage {
    font-size: 18px;
}

.boot-status {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.status-blink {
    color: var(--primary);
    animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Cursor Trail */
#cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
    display: none; /* Disabled cursor trail */
}

/* Particles Background */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent, var(--primary), transparent) 1;
    z-index: 1000;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    padding: 10px 0;
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.2);
    border-bottom: 2px solid var(--primary);
    border-image: none;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    position: relative;
    display: flex;
    align-items: center;
    height: 50px;
    background: transparent;
    border: none;
    padding: 0;
}

.logo::before {
    display: none;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.logo:hover::before {
    opacity: 1;
}

.logo:hover {
    background: transparent;
    box-shadow: none;
    transform: translateY(0);
}

.logo-img {
    height: 100%;
    width: auto;
    position: relative;
    filter: none; /* removed glow */
    transition: none; /* removed transitions */
    animation: none; /* removed glitch animation */
}

@keyframes logoImgGlitch {
    0%, 90%, 100% { 
        transform: translate(0);
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    }
    91% { 
        transform: translate(-3px, 2px);
        filter: 
            drop-shadow(0 0 10px rgba(255, 255, 255, 0.8))
            drop-shadow(-3px 2px 0 rgba(255, 255, 255, 0.8))
            drop-shadow(3px -2px 0 rgba(200, 200, 200, 0.8));
    }
    93% { 
        transform: translate(3px, -2px);
        filter: 
            drop-shadow(0 0 10px rgba(255, 255, 255, 0.8))
            drop-shadow(3px -2px 0 rgba(255, 255, 255, 0.8))
            drop-shadow(-3px 2px 0 rgba(200, 200, 200, 0.8));
    }
    95% { 
        transform: translate(-2px, -2px);
        filter: 
            drop-shadow(0 0 10px rgba(255, 255, 255, 0.8))
            drop-shadow(-2px -2px 0 rgba(255, 255, 255, 0.8))
            drop-shadow(2px 2px 0 rgba(200, 200, 200, 0.8));
    }
    97% { 
        transform: translate(2px, 2px);
        filter: 
            drop-shadow(0 0 10px rgba(255, 255, 255, 0.8))
            drop-shadow(2px 2px 0 rgba(255, 255, 255, 0.8))
            drop-shadow(-2px -2px 0 rgba(200, 200, 200, 0.8));
    }
}

.logo:hover .logo-img {
    filter: none; /* no hover glow */
    transform: none; /* no hover scale */
}

.nav-links {
    display: flex;
    gap: 5px;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    position: relative;
    padding: 10px 20px;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    background: rgba(255, 255, 255, 0.02);
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    border: 1px solid transparent;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Uppercase hover swap with slide/glitch-like effect */
/* Slot-machine hover effect while preserving original styles */
.nav-link .nav-swap {
    display: inline-block;
    height: 1em;
    line-height: 1em;
    overflow: hidden;
}
.nav-link .nav-roller {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: transform 260ms cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.nav-link .nav-lc { opacity: 0.9; }
.nav-link .nav-uc { font-weight: 700; letter-spacing: 2px; color: var(--primary); }
.nav-link:hover .nav-roller, .nav-link:focus .nav-roller, .nav-link:focus-visible .nav-roller {
    transform: translateY(-1.05em);
}
.nav-link:hover { border-color: var(--primary); }

.nav-links .nav-link:hover { border-color: var(--primary); }

/* Hide original text behind when hovering */
.nav-links .nav-link:hover { color: transparent !important; }

/* Ensure nav links are layout-stable for overlay */
.nav-links .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover::after {
    width: 80%;
}

/* Active nav link */
.nav-link.active {
    color: var(--dark);
    border: 1px solid var(--primary);
    background: var(--primary);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 5px 15px rgba(255, 255, 255, 0.3);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.nav-link.active::after {
    display: none;
}

/* Animated Button Style */
.cta-btn {
    --btnGradient: linear-gradient(60deg, #ffffff 0%, #ffffff 37%, #ffffff 65%, #fff 100%);
    --glowGradient: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-width: 140px;
    height: 50px;
    padding: 10px 24px;
    color: white;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 12px;
    background-color: transparent;
    transition: 0.5s;
    overflow: hidden;
    border: 3px solid var(--primary);
    font-family: var(--font-sans);
    cursor: pointer;
    z-index: 1;
}

.cta-btn:hover {
    box-shadow: 0 0 40px var(--primary), 0 0 80px rgba(255, 255, 255, 0.5);
    transition: 0.2s;
    transform: translateY(-2px);
}

.cta-btn:hover .btn-text-default {
    display: none;
}

.cta-btn:hover .btn-text-hover {
    display: flex;
}

.cta-btn:hover .btn-light-rotation {
    animation: 1s linear reverse infinite btnRotation;
}

.cta-btn:hover .btn-light-rotation2 {
    animation: 2s linear infinite btnRotation;
}

.cta-btn:hover .btn-light-rotation3 {
    animation: 10s linear reverse infinite btnRotation;
}

.cta-btn:hover .btn-light-rotation4 {
    animation: 3s linear infinite btnRotation;
}

.btn-state {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: inherit;
    transition: 0.4s;
    width: 90%;
    height: 85%;
    border: 2px solid var(--primary);
    background-color: rgba(10, 10, 10, 0.95);
    z-index: 2;
}

.btn-text-hover {
    display: none;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.btn-light-rotation {
    position: absolute;
    transition: 0.4s;
    z-index: 0;
    width: 50px;
    height: 400px;
    transform: rotate(50deg);
    border-radius: inherit;
    background: var(--glowGradient);
    opacity: 0.3;
}

.btn-light-rotation2 {
    position: absolute;
    transition: 0.4s;
    z-index: 0;
    width: 60px;
    height: 400px;
    transform: rotate(110deg);
    border-radius: inherit;
    background: var(--glowGradient);
    opacity: 0.3;
}

.btn-light-rotation3 {
    position: absolute;
    transition: 0.4s;
    z-index: 0;
    width: 35px;
    height: 220px;
    border-radius: inherit;
    background: var(--glowGradient);
    opacity: 0.3;
}

.btn-light-rotation4 {
    position: absolute;
    transition: 0.4s;
    z-index: 0;
    width: 20px;
    height: 180px;
    transform: rotate(100deg);
    border-radius: inherit;
    background: var(--glowGradient);
    opacity: 0.3;
}

@keyframes btnRotation {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-btn:active {
    transform: translateY(-1px);
}

/* Glitch Effect */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    animation: glitch-1 2s infinite;
    color: var(--secondary);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 2s infinite;
    color: var(--accent);
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(-2px, 2px); }
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 40px 40px;
    z-index: 2;
    width: 100%;
}

/* Full-bleed hero background video */
.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; /* behind content */
    opacity: 0.25; /* keep subtle under content */
    pointer-events: none;
    background: #000; /* fallback color while loading */
    /* iOS/Safari hints */
    transform: translateZ(0);
    will-change: transform, opacity;
}

/* Mobile/portrait: show more of the video frame and avoid heavy cropping */
@media (max-width: 768px), (max-aspect-ratio: 9/16) {
    .hero-bg-video {
        object-fit:contain; /* fill area without top letterbox */
        object-position: 50% 13%; /* slight top bias so 'GAMING' is covered */
        height: 53vh; /* only cover top portion */
        background-color: #000; /* letterbox area color */
    }
}

@media (max-width: 480px) {
    .hero-bg-video {
        object-fit: cover;
        object-position: 95% 8%;
        height: 60vh; /* a bit more coverage on very small screens */
    }
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin: 0 auto;
}

.hero-text {
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 80px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.glitch-text {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary);
}

.ticker-wrapper {
    overflow: hidden;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 0;
}

.ticker {
    display: flex;
    animation: ticker 20s linear infinite;
    gap: 40px;
}

.ticker span {
    color: var(--primary);
    font-size: 14px;
    white-space: nowrap;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text);
    margin: 30px 0;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

/* Reset legacy CTA button styles since we're switching to glowing buttons */
.primary-btn, .secondary-btn { display: none; }

.primary-btn::before,
.secondary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    clip-path: polygon(0 0, 0% 100%, 0 100%);
    transition: clip-path 0.4s ease;
    z-index: -1;
}

.primary-btn::after,
.secondary-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    transition: width 0.4s ease;
}

.primary-btn {
    --btnGradient: linear-gradient(60deg, #ffffff 0%, #ffffff 37%, #ffffff 65%, #fff 100%);
    --glowGradient: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-width: 180px;
    height: 55px;
    padding: 12px 30px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 12px;
    background-color: transparent;
    transition: 0.5s;
    overflow: hidden;
    border: 3px solid var(--primary);
    font-family: var(--font-sans);
    cursor: pointer;
    z-index: 1;
}

.primary-btn:hover {
    box-shadow: 0 5px 40px rgba(255, 255, 255, 0.6), 0 0 80px rgba(255, 255, 255, 0.5);
    transition: 0.2s;
    transform: translateY(-3px);
}

.primary-btn:hover .btn-text-default {
    display: none;
}

.primary-btn:hover .btn-text-hover {
    display: flex;
}

.primary-btn:hover .btn-light-rotation {
    animation: 1s linear reverse infinite btnRotation;
}

.primary-btn:hover .btn-light-rotation2 {
    animation: 2s linear infinite btnRotation;
}

.primary-btn:hover .btn-light-rotation3 {
    animation: 10s linear reverse infinite btnRotation;
}

.primary-btn:hover .btn-light-rotation4 {
    animation: 3s linear infinite btnRotation;
}

.secondary-btn {
    --btnGradient: linear-gradient(60deg, #ffffff 0%, #ffffff 37%, #ffffff 65%, #fff 100%);
    --glowGradient: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-width: 160px;
    height: 55px;
    padding: 12px 30px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 12px;
    background-color: transparent;
    transition: 0.5s;
    overflow: hidden;
    border: 3px solid var(--accent);
    font-family: var(--font-sans);
    cursor: pointer;
    z-index: 1;
}

.secondary-btn:hover {
    box-shadow: 0 5px 40px rgba(255, 255, 255, 0.6), 0 0 80px rgba(255, 255, 255, 0.5);
    transition: 0.2s;
    transform: translateY(-3px);
}

.secondary-btn:hover .btn-text-default {
    display: none;
}

.secondary-btn:hover .btn-text-hover {
    display: flex;
}

.secondary-btn:hover .btn-light-rotation {
    animation: 1s linear reverse infinite btnRotation;
}

.secondary-btn:hover .btn-light-rotation2 {
    animation: 2s linear infinite btnRotation;
}

.secondary-btn:hover .btn-light-rotation3 {
    animation: 10s linear reverse infinite btnRotation;
}

.secondary-btn:hover .btn-light-rotation4 {
    animation: 3s linear infinite btnRotation;
}

.primary-btn:active,
.secondary-btn:active {
    transform: translateY(-1px);
}

/* Glowing button styles (from user spec) */
.glowing-box { isolation: isolate; overflow: hidden; border-radius: 999px; display: inline-block; position: relative; transition: 0.4s cubic-bezier(0.77, -0.68, 0.62, 1.23); }
.glowing-box:hover { transition: 0.4s cubic-bezier(0.77, -0.68, 0.62, 1.23); transform: scale(1.05); box-shadow: 1px 1px 20px 1px rgba(255, 255, 255, 0.08); }
.glowing-box-active .glowing-box-animations, .glowing-box-active .glowing-box-borders-masker { opacity: 1; }
.glowing-box-animations { opacity: 0; pointer-events: none; transition: 1s ease opacity; }
.glowing-box-animations, .glowing-box-borders { left: 50%; position: absolute; top: 50%; transform: translate(-50%, -50%); width: 100%; }
.glowing-box-animations:before, .glowing-box-borders:before { content: ""; float: left; padding-top: 100%; }
.glowing-box-glow { filter: blur(10px); opacity: 0.1; }
.glowing-box-animations * { height: 100%; left: 0; position: absolute; top: 0; width: 100%; }
.glowing-box-stars-masker { background-image: radial-gradient(rgba(255,255,255,0.8) 1px, transparent 1px); background-size: 8px 8px; opacity: 0.15; }
.glowing-box-borders-masker { border-radius: 999px; content: ""; inset: 0; left: 0; -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; -webkit-mask-composite: xor; opacity: 0; padding: 0.5px; pointer-events: none; position: absolute; top: 0; transition: 1s ease opacity; }
.glowing-box-borders { animation: borderTurnWithTranslate var(--animation-speed) infinite linear; }
.glowing-box-button { background: radial-gradient(107.5% 107.5% at 50% 215%, rgba(255,255,255,0.24) 0%, rgba(255,255,255,0) 100%), rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 999px; cursor: pointer; padding: 10px 26px; position: relative; z-index: 1; font-feature-settings: "cv06" on, "calt" off, "liga" off; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; line-height: 24px; color: #fff; background-clip: padding-box; }
.glowing-box .glowing-box-button { overflow: visible; }
.glowing-box-button:after { background: radial-gradient(73% 117% at 50% 126%, rgba(230, 230, 230, 0.75) 0%, rgba(255, 255, 255, 0) 100%); border-radius: 999px; content: ""; height: calc(100% + 4px); left: -2px; opacity: 0; position: absolute; top: -2px; transition: 1s all; width: calc(100% + 4px); }
.glowing-box-button .glowing-span { background: linear-gradient(180deg, rgba(255,255,255,0.3) 8.85%, #ffffff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; display: block; }
.glowing-box-button:hover:after { opacity: 0.7; }
@keyframes borderTurnWithTranslate { 0% { transform: translate(-50%, -50%) rotate(0); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes borderTurn { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Button sizing contexts */
.nav-cta .glowing-box-button { padding: 8px 22px; font-size: 13px; }
.hero-cta .glowing-box-button { padding: 12px 28px; font-size: 14px; }
.hero-cta .glowing-box { transform: translateZ(0); }

/* Floating Cube */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 2500px;
    position: relative;
}

/* Rubik's Cube Container */
/* Isometric Cube Animation */
@keyframes animate {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

.cube-container {
    position: relative;
    top: -80px;
    transform: scale(0.92) skewY(-20deg); /* slight global reduction */
    animation: animate 5s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cube-container .cube {
    position: relative;
    z-index: 2;
}

.cube-container .cube:nth-child(2) {
    z-index: 1;
    translate: -60px -60px;
}

.cube-container .cube:nth-child(3) {
    z-index: 3;
    translate: 60px 60px;
}

.cube-container .cube div {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 28px; /* slightly tighter */
    translate: calc(-66px * var(--x)) calc(-56px * var(--y));
}

.cube-container .cube div span {
    position: relative;
    display: inline-block;
    width: 46px; /* reduced */
    height: 46px; /* reduced */
    background: #dcdcdc;
    z-index: calc(1 * var(--i));
    transition: 1.5s;
}

.cube-container .cube div span:hover {
    transition: 0s;
    background: #ef4149;
    filter: drop-shadow(0 0 30px #ef4149);
}

.cube-container .cube div span:hover::before,
.cube-container .cube div span:hover::after {
    transition: 0s;
    background: #ef4149;
}

.cube-container .cube div span::before {
    content: "";
    position: absolute;
    left: -40px;
    width: 40px;
    height: 100%;
    background: #fff;
    transform-origin: right;
    transform: skewY(45deg);
    transition: 1.5s;
}

.cube-container .cube div span::after {
    content: "";
    position: absolute;
    top: -40px;
    left: 0px;
    width: 100%;
    height: 40px;
    background: #f2f2f2;
    transform-origin: bottom;
    transform: skewX(45deg);
    transition: 1.5s;
}

.floating-cube {
    width: 300px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite, rotate3d 20s linear infinite;
}

.cube-face {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px solid var(--primary);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.2);
}

.cube-face::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: var(--primary);
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 30px var(--primary);
}

.front  { transform: rotateY(0deg) translateZ(150px); }
.back   { transform: rotateY(180deg) translateZ(150px); }
.right  { transform: rotateY(90deg) translateZ(150px); }
.left   { transform: rotateY(-90deg) translateZ(150px); }
.top    { transform: rotateX(90deg) translateZ(150px); }
.bottom { transform: rotateX(-90deg) translateZ(150px); }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

@keyframes rotate3d {
    0% { transform: rotateX(0) rotateY(0); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.2); }
}

/* Scroll Down Indicator */
.scrolldown-container {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scrolldown {
    --color: #ffffff;
    --sizeX: 30px;
    --sizeY: 50px;
    position: relative;
    width: var(--sizeX);
    height: var(--sizeY);
    border: calc(var(--sizeX) / 10) solid var(--color);
    border-radius: 50px;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scrolldown:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--color);
}

.scrolldown::before {
    content: "";
    position: absolute;
    bottom: 30px;
    left: 50%;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    background-color: var(--color);
    border-radius: 100%;
    animation: scrolldown-anim 2s infinite;
    box-sizing: border-box;
    box-shadow: 0px -5px 3px 1px rgba(255, 255, 255, 0.4);
}

@keyframes scrolldown-anim {
    0% {
        opacity: 0;
        height: 6px;
    }
    40% {
        opacity: 1;
        height: 10px;
    }
    80% {
        transform: translate(0, 20px);
        height: 10px;
        opacity: 0;
    }
    100% {
        height: 3px;
        opacity: 0;
    }
}

.chevrons {
    padding: 6px 0 0 0;
    margin-left: -3px;
    margin-top: 48px;
    width: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chevrondown {
    margin-top: -6px;
    position: relative;
    border: solid var(--color);
    border-width: 0 3px 3px 0;
    display: inline-block;
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
}

.chevrondown:nth-child(odd) {
    animation: pulse54012 500ms ease infinite alternate;
}

.chevrondown:nth-child(even) {
    animation: pulse54012 500ms ease infinite alternate 250ms;
}

@keyframes pulse54012 {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.5;
    }
}

/* Old Scroll Indicator - Keep for backwards compatibility */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #ffffff;
    animation: bounce 2s infinite;
    z-index: 10;
}

.scroll-arrow {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
    margin: 10px auto;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Section Styles */
section {
    padding: 100px 40px;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.section-header {
    margin-bottom: 60px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.section-title {
    font-size: 48px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 20px;
}

.title-line {
    color: var(--secondary);
}

/* About Section */
.about-section {
    background: linear-gradient(180deg, var(--dark) 0%, var(--gray) 100%);
    width: 100%;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
}

.about-main {
    font-size: 20px;
    margin-bottom: 30px;
}

.highlight {
    color: var(--primary);
    font-weight: bold;
}

.quote {
    margin: 40px 0;
    padding: 30px;
    border-left: 4px solid var(--primary);
    background: rgba(255, 255, 255, 0.05);
    font-style: normal;
}

.quote cite {
    display: block;
    margin-top: 20px;
    color: var(--primary);
    font-style: normal;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stat-card {
    padding: 30px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--primary);
    background-size: 200% 200%;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 0;
    background: transparent;
    transform: translateX(-50%);
    transition: height 0.4s ease;
    display: none;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.8);
}

.stat-card:hover::before {
    opacity: 0.3;
}

.stat-card:hover::after {
    height: 100%;
    display: none;
}

.stat-number {
    font-size: 48px;
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 0 20px var(--primary);
    animation: numberGlow 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes numberGlow {
    0%, 100% { text-shadow: 0 0 20px var(--primary); }
    50% { text-shadow: 0 0 30px var(--primary), 0 0 40px rgba(255, 255, 255, 0.5); }
}

.stat-label {
    font-size: 13px;
    color: var(--text);
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

/* Services Section */
.services-section {
    background: var(--dark);
    width: 100%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    padding: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--primary);
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: transparent;
    transition: left 0.6s ease;
    display: none;
}

.service-card:hover {
    transform: translateY(-3px);
    background: rgba(0, 0, 0, 0.85);
    border-color: var(--primary);
    box-shadow: 
        0 10px 40px rgba(255, 255, 255, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.05);
}

.service-card:hover::before {
    opacity: 0.3;
}

.service-card:hover::after {
    display: none;
}

.service-card:hover .service-overlay {
    opacity: 0;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
    display: none;
}

.service-icon {
    font-size: 28px; /* base size for icon font */
    line-height: 1;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
    opacity: 0.85;
    transition: color 0.2s ease, opacity 0.2s ease;
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon {
    color: rgba(255, 255, 255, 0.9);
    opacity: 0.95;
}

/* Image-based service icon support */
.service-icon .icon-img {
    display: inline-block;
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: invert(1) grayscale(100%) brightness(0.95) contrast(1.1);
    opacity: 0.85;
}
.service-card:hover .service-icon .icon-img {
    filter: invert(1) grayscale(100%) brightness(1.05) contrast(1.1);
    opacity: 0.95;
}

.service-title {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

.service-desc {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.service-features {
    list-style: none;
    font-size: 13px;
    position: relative;
    z-index: 1;
}

.service-features li {
    padding: 8px 0;
    color: var(--text);
    position: relative;
    padding-left: 25px;
    transition: all 0.3s ease;
}

.service-features li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.service-features li:hover {
    color: var(--primary);
    padding-left: 30px;
}

.service-features li:hover::before {
    text-shadow: 0 0 10px var(--primary);
}

/* Subtle icon row under service cards */
.service-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.6);
}
.service-meta .meta-icon {
    font-size: 18px;
    line-height: 1;
    vertical-align: middle;
}

/* Ensure image-based meta icons visually match FA glyphs */
.service-meta .icon-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    /* Blend so black backgrounds in the image disappear on dark cards */
    mix-blend-mode: screen;
    opacity: 0.9;
}
.service-card:hover .service-meta .icon-img {
    opacity: 1;
}

/* Games Section */
.games-section {
    background: linear-gradient(180deg, var(--dark) 0%, var(--gray) 100%);
    width: 100%;
}

.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.game-card {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    display: none;
}

.game-card.featured {
    grid-column: span 1;
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.game-card.featured::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--primary);
    background-size: 300% 300%;
    clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px);
    z-index: -1;
    opacity: 0;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 20px 60px rgba(255, 255, 255, 0.4),
        inset 0 0 30px rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.game-card:hover::before {
    transform: translateX(100%);
    display: none;
}

.game-image {
    height: 300px;
    background: linear-gradient(135deg, var(--gray) 0%, var(--dark) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.game-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.01) 0px,
            transparent 1px,
            transparent 2px,
            rgba(255, 255, 255, 0.01) 3px
        );
    animation: scanlines 8s linear infinite;
    z-index: 0;
}

.game-placeholder {
    font-size: 32px;
    color: var(--primary);
    font-weight: bold;
    text-align: center;
    z-index: 1;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 40px rgba(255, 255, 255, 0.5);
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { 
        text-shadow: 0 0 20px var(--primary), 0 0 40px rgba(255, 255, 255, 0.5);
    }
    50% { 
        text-shadow: 0 0 30px var(--primary), 0 0 60px rgba(255, 255, 255, 0.8);
    }
}

.game-status {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 20px;
    font-size: 11px;
    font-weight: bold;
    z-index: 2;
    clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
}

.game-status.coming {
    background: rgba(200, 200, 200, 0.3);
    color: var(--secondary);
    border: 1px solid var(--secondary);
    box-shadow: 0 0 20px rgba(200, 200, 200, 0.5);
}

.game-status.beta {
    background: rgba(255, 255, 255, 0.3);
    color: var(--primary);
    border: 1px solid var(--primary);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.5); }
    50% { box-shadow: 0 0 30px rgba(255, 255, 255, 0.8); }
}

.game-content {
    padding: 30px;
    background: rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.game-title {
    font-size: 26px;
    color: var(--primary);
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

.game-description {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 11px;
    color: var(--primary);
    letter-spacing: 1px;
    clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
    transition: all 0.3s ease;
}

.tag:hover,
.tag:focus,
.tag:active {
    background: var(--white);
    border-color: var(--white);
    color: #000 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.5);
    font-weight: bold;
}

.game-content blockquote {
    font-style: normal;
    color: var(--accent);
    margin-top: 20px;
    padding-left: 20px;
    border-left: 3px solid var(--accent);
    box-shadow: -5px 0 15px rgba(255, 255, 255, 0.2);
}

.play-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: var(--dark);
    border: none;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    clip-path: polygon(15px 0, 100% 0, calc(100% - 15px) 100%, 0 100%);
    letter-spacing: 2px;
    z-index: 1;
}

.play-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--accent);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.play-btn:hover {
    box-shadow: 
        0 0 40px var(--primary),
        0 10px 30px rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    color: var(--dark);
}

.play-btn:hover::before {
    width: 400px;
    height: 400px;
}

.game-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.game-card:hover .game-hover-effect {
    opacity: 1;
}

/* Testimonials Section */
.testimonials-section {
    background: var(--dark);
    width: 100%;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.testimonial-card {
    padding: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    clip-path: polygon(25px 0, 100% 0, 100% calc(100% - 25px), calc(100% - 25px) 100%, 0 100%, 0 25px);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 80px;
    color: rgba(255, 255, 255, 0.1);
    font-family: var(--font-display);
    line-height: 1;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.4s ease;
    box-shadow: 0 0 10px var(--primary);
}

.testimonial-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
       box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.8);
}

.testimonial-card:hover::after {
    width: 100%;
}

.testimonial-content {
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
    font-style: normal;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    color: var(--dark);
    position: relative;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.author-avatar::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--primary);
    z-index: -1;
    animation: none;
}

@keyframes avatarRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.author-name {
    font-size: 17px;
    color: var(--primary);
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.author-role {
    font-size: 13px;
    color: var(--text);
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

/* Partners Section */
.partners-section {
    background: var(--dark);
    padding: 100px 40px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.partners-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.partner-card {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 50px 30px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

.partner-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--primary);
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.partner-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.3);
}

.partner-card:hover::before {
    opacity: 0.3;
}

.partner-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.partner-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.4s ease;
}

/* Make Perplexity AI logo bigger */
.partner-card:first-child .partner-logo {
    height: 100px;
}

.partner-card:first-child .partner-logo img {
    max-height: 100px;
    transform: scale(1.2);
}

.partner-card:first-child:hover .partner-logo img {
    transform: scale(1.3);
}

/* Special handling for STPI logo */
.partner-card:last-child .partner-logo img {
    filter: brightness(0) invert(1) contrast(1.2);
    background: transparent;
    mix-blend-mode: screen;
}

.partner-card:hover .partner-logo img {
    filter: brightness(0) invert(1);
    transform: scale(1.1);
}

.partner-card:last-child:hover .partner-logo img {
    filter: brightness(0) invert(1) contrast(1.2);
}

.partner-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: var(--font-sans);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(180deg, var(--dark) 0%, var(--gray) 100%);
    width: 100%;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    padding: 30px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: transparent;
    transition: left 0.6s ease;
    display: none;
}

.info-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.8);
    transform: translateX(5px);
}

.info-card:hover::before {
    left: 100%;
    display: none;
}

.info-icon {
    font-size: 28px;
    margin-bottom: 12px;
    filter: grayscale(100%) brightness(1.15) contrast(0.95);
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

/* Utility: subtle emoji style for any element containing emoji */
.emoji-subtle {
    font-size: 0.9em;
    filter: grayscale(100%) brightness(1.15) contrast(0.95);
    opacity: 0.85;
}

.info-card h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.info-card p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.social-links a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.social-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    box-shadow: 0 0 5px var(--primary);
    transition: width 0.3s ease;
}

.social-links a:hover {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent);
}

.social-links a:hover::after {
    width: 100%;
}

.contact-form-wrapper {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 40px;
    position: relative;
    clip-path: polygon(25px 0, 100% 0, 100% calc(100% - 25px), calc(100% - 25px) 100%, 0 100%, 0 25px);
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--primary);
    background-size: 200% 200%;
    clip-path: polygon(25px 0, 100% 0, 100% calc(100% - 25px), calc(100% - 25px) 100%, 0 100%, 0 25px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-form-wrapper:hover::before {
    opacity: 0.2;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 14px;
    transition: all 0.3s ease;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(224, 224, 224, 0.5);
}

.submit-btn {
    padding: 16px;
    background: var(--primary);
    color: var(--dark);
    border: none;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    clip-path: polygon(15px 0, 100% 0, calc(100% - 15px) 100%, 0 100%);
    letter-spacing: 2px;
    z-index: 1;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--accent);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.submit-btn:hover {
    box-shadow: 0 0 40px var(--primary);
    transform: translateY(-3px);
    color: var(--dark);
}

.submit-btn:hover::before {
    width: 400px;
    height: 400px;
}

/* Footer */
.footer {
    background: var(--darker);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    font-size: 14px;
}

/* Footer Rubik Cube */
.footer-cube {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

@keyframes animateFooterCube {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

.cube-container-footer {
    position: relative;
    top: -52px; /* 65% of -80px */
    transform: skewY(-20deg);
    animation: animateFooterCube 5s linear infinite;
}

.cube-container-footer .cube {
    position: relative;
    z-index: 2;
}

.cube-container-footer .cube:nth-child(2) {
    z-index: 1;
    translate: -39px -39px; /* 65% of -60px */
}

.cube-container-footer .cube:nth-child(3) {
    z-index: 3;
    translate: 39px 39px; /* 65% of 60px */
}

.cube-container-footer .cube div {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 19.5px; /* 65% of 30px */
    translate: calc(-45.5px * var(--x)) calc(-39px * var(--y)); /* 65% of -70px and -60px */
}

.cube-container-footer .cube div span {
    position: relative;
    display: inline-block;
    width: 32.5px; /* 65% of 50px */
    height: 32.5px; /* 65% of 50px */
    background: #dcdcdc;
    z-index: calc(1 * var(--i));
    transition: 1.5s;
}

.cube-container-footer .cube div span:hover {
    transition: 0s;
    background: #ef4149;
    filter: drop-shadow(0 0 30px #ef4149);
}

.cube-container-footer .cube div span:hover:before,
.cube-container-footer .cube div span:hover:after {
    transition: 0s;
    background: #ef4149;
}

.cube-container-footer .cube div span:before {
    content: "";
    position: absolute;
    left: -26px; /* 65% of -40px */
    width: 26px; /* 65% of 40px */
    height: 100%;
    background: #fff;
    transform-origin: right;
    transform: skewY(45deg);
    transition: 1.5s;
}

.cube-container-footer .cube div span:after {
    content: "";
    position: absolute;
    top: -26px; /* 65% of -40px */
    left: 0px;
    width: 100%;
    height: 26px; /* 65% of 40px */
    background: #f2f2f2;
    transform-origin: bottom;
    transform: skewX(45deg);
    transition: 1.5s;
}

/* Sound Toggle */
.sound-toggle {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sound-toggle:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.sound-toggle:hover .sound-icon {
    filter: invert(1);
}

/* Hamburger Menu Styles (Mobile Only) */
#hamburger-toggle {
    /* Visually hidden but accessible to label clicks */
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}

.hamburger {
    cursor: pointer;
    display: none; /* Hidden by default, shown in mobile */
    z-index: 2000; /* above nav links panel */
    position: relative;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
}

.hamburger svg {
    height: 3em;
    width: 3em;
    transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line {
    fill: none;
    stroke: white;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
                stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line-top-bottom {
    stroke-dasharray: 12 63;
}

/* Hamburger animation when checked or when JS sets body.nav-open */
#hamburger-toggle:checked ~ .nav-container .hamburger svg,
body.nav-open .nav-container .hamburger svg {
    transform: rotate(-45deg);
}

#hamburger-toggle:checked ~ .nav-container .hamburger svg .line-top-bottom,
body.nav-open .nav-container .hamburger svg .line-top-bottom {
    stroke-dasharray: 20 300;
    stroke-dashoffset: -32.42;
}

/* Show nav-links when hamburger is checked or body has nav-open */
#hamburger-toggle:checked ~ .nav-container .nav-links,
body.nav-open .nav-container .nav-links {
    left: 0 !important;
}

/* Base responsive improvements */
img {
    max-width: 100%;
    height: auto;
}

/* Better touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
    button,
    a,
    .nav-link,
    input,
    textarea,
    select {
        min-height: 44px; /* iOS recommended touch target size */
    }
}

/* ========================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================
   - Desktop: 1025px and above
   - Tablet: 769px to 1024px
   - Mobile: 768px and below
   - Small Mobile: 480px and below
   ======================================== */

/* Responsive Design */
@media (max-width: 1024px) {
    /* Navigation adjustments for tablet */
    .nav-container {
        padding: 0 30px;
        width: 100%;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 13px;
    }
    
    /* Sections full width */
    section {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 80px 0 !important;
    }
    
    /* Hero section */
    .hero-section {
        width: 100% !important;
        max-width: 100% !important;
        padding: 100px 0 40px !important;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 20px !important;
    }
    
    .hero-text {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 60px;
        line-height: 1.1;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 18px;
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
        width: 100%;
    }

    /* Cube section */
    .cube-section {
        width: 100%;
    }
    
    .cube-container {
        transform: scale(0.8) skewY(-20deg);
        margin: 0 auto;
    }

    .floating-cube {
        width: 200px;
        height: 200px;
    }

    .cube-face {
        width: 200px;
        height: 200px;
    }

    /* Content sections - full width */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        width: 100%;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
        width: 100%;
    }
    
    /* Services grid */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
        width: 100%;
    }
    
    /* Games grid */
    .games-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        width: 100%;
    }
    
    /* Testimonials */
    .testimonials-slider {
        grid-template-columns: 1fr;
        width: 100%;
    }
    
    /* Partners */
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 30px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* Show hamburger menu, hide regular nav */
    .hamburger {
        display: flex !important;
    }
    
    /* FORCE FULL WIDTH - Remove all constraints */
    /* Layout container full-width in mobile */
    .container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    /* Boot screen mobile */
    .boot-content {
        width: 95%;
        padding: 0 15px;
    }
    
    .boot-logo {
        margin-bottom: 40px;
    }
    
    .logo-text {
        font-size: 42px;
        letter-spacing: 8px;
    }
    
    .boot-loading {
        max-width: 100%;
        width: 100%;
    }
    
    .loading-bar {
        width: 100%;
    }
    
    .loading-text {
        font-size: 12px;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-top: 2px solid var(--primary);
        z-index: 1500; /* Ensure it overlays content */
    }
    
    .nav-link {
        font-size: 24px;
        padding: 15px 30px;
        width: 80%;
        text-align: center;
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        border-color: var(--primary);
        background: rgba(255, 255, 255, 0.05);
    }
    
    .nav-cta {
        display: none; /* Hide CTA button in mobile nav */
    }
    
    /* Full width sections for mobile - maximize readability */
    section {
        padding: 60px 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    .nav-container {
        padding: 0 15px;
        width: 100%;
    }
    
    /* Remove max-width constraints on mobile - FULL WIDTH */
    .about-content,
    .services-grid,
    .games-container,
    .testimonials-slider,
    .partners-grid,
    .contact-content {
        max-width: 100% !important;
        padding: 0 15px !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    .section-header {
        max-width: 100%;
        padding: 0 15px;
        margin-bottom: 40px;
    }

    /* Hero section mobile - full width with proper spacing */
    .hero-section {
        padding: 0 0 40px !important; /* let video start at the very top */
        min-height: 68vh; /* stretch video area slightly on mobile */
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 100px 15px 0 !important; /* preserve spacing under fixed navbar */
        display: flex;
        flex-direction: column;
        gap: 40px;
    }
    
    .hero-text {
        width: 100%;
        text-align: center;
        order: 1;
        padding: 0 15px;
    }
    
    .hero-visual {
        width: 100%;
        order: 2;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 250px;
        margin-top: 40px;
        margin-bottom: 60px;
        padding: 0;
    }

    /* Center cube on mobile; keep size, remove skew for readability */
    .cube-container {
        transform: scale(0.65) skewY(0deg);
        top: 0;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 36px;
        letter-spacing: 2px;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 16px;
        line-height: 1.6;
        text-align: center;
        max-width: 100%;
    }

    /* Cube section mobile - proper spacing */
    .cube-section {
        width: 100%;
        padding: 80px 0 !important;
    }
    
    /* Scroll indicator - white/black theme */
    .scrolldown-container {
        position: relative;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 60px;
        margin-bottom: 40px;
    }
    
    .scrolldown {
        --color: #ffffff !important;
    }
    
    .chevrondown {
        border-right: 3px solid #ffffff !important;
        border-bottom: 3px solid #ffffff !important;
    }

    /* Section titles - full width */
    .section-title {
        font-size: 32px;
        letter-spacing: 2px;
        text-align: center;
        width: 100%;
        padding: 0 10px;
    }
    
    .section-subtitle {
        font-size: 14px;
        text-align: center;
        width: 100%;
        padding: 0 10px;
    }

    /* Hero CTA buttons - full width */
    .hero-cta {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        align-items: center;
        padding: 0 15px;
    }
    
    .cta-btn, .secondary-btn, .primary-btn {
        width: 100%;
        max-width: 100%;
    }

    /* Grids to single column - full width with better text size */
    .games-container {
        grid-template-columns: 1fr;
        gap: 30px;
        width: 100% !important;
        padding: 0 15px !important;
    }
    
    .game-card {
        width: 100%;
        max-width: 100%;
        padding: 25px;
    }
    
    .game-card h3 {
        font-size: 22px;
    }
    
    .game-card p {
        font-size: 15px;
        line-height: 1.6;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100% !important;
        padding: 0 12px !important;
    }
    
    .service-card {
        width: 100%;
        max-width: 100%;
        padding: 22px;
    }
    
    .service-card h3 {
        font-size: 22px;
    }
    
    .service-card p {
        font-size: 15px;
        line-height: 1.6;
    }

    .testimonials-slider {
        grid-template-columns: 1fr;
        width: 100% !important;
        padding: 0 15px !important;
    }
    
    .testimonial-card {
        width: 100%;
        max-width: 100%;
        padding: 30px;
    }
    
    .testimonial-text {
        font-size: 15px;
        line-height: 1.6;
    }

    /* Partners grid mobile - full width */
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        width: 100% !important;
        padding: 0 15px !important;
    }

    .partner-logo {
        height: 70px;
        width: 100%;
    }

    .partner-logo img {
        max-height: 70px;
        max-width: 100%;
    }
    
    /* About section - full width with readable text */
    .about-content {
        width: 100% !important;
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 15px !important;
    }
    
    .about-text {
        font-size: 15px;
        line-height: 1.7;
        width: 100%;
    }
    
    .about-main {
        font-size: 18px;
    }
    
    .about-stats {
        width: 100%;
    }
    
    .quote {
        margin: 30px 0;
        padding: 20px;
    }
    
    /* About stats mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        width: 100%;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    /* Contact section - full width with bigger form inputs */
    .contact-content {
        width: 100% !important;
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 15px !important;
    }
    
    .info-card {
        padding: 25px;
        width: 100%;
    }
    
    .info-card h3 {
        font-size: 18px;
    }
    
    .info-card p {
        font-size: 15px;
    }
    
    /* Forms mobile - full width */
    .form-row {
        grid-template-columns: 1fr;
        width: 100%;
    }
    
    .form-group {
        width: 100%;
    }
    
    .form-group input,
    .form-group textarea {
        width: 100%;
        font-size: 16px;
        padding: 16px;
    }
    
    .form-group label {
        font-size: 14px;
    }
    
    /* Footer mobile - full width */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        width: 100%;
        padding: 0 15px;
    }
    
    /* Hide footer cube on mobile */
    .footer-cube {
        display: none;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* Ticker - full width */
    .ticker-wrapper {
        width: 100%;
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    /* Extra small screens - maximize readability */
    
    /* FORCE FULL WIDTH - Remove all constraints on small screens */
    .container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    /* All sections FULL WIDTH */
    .about-content,
    .services-grid,
    .games-container,
    .testimonials-slider,
    .partners-grid,
    .contact-content {
        max-width: 100% !important;
        padding: 0 10px !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    /* Hero section */
    .hero-section {
        padding: 0 0 30px !important; /* video reaches top on small phones */
        min-height: 74vh; /* a bit more on very small screens */
        width: 100%;
    }
    
    .hero-content {
        gap: 30px;
        width: 100%;
        padding: 90px 10px 0 !important; /* keep headline clear below navbar */
    }
    
    .hero-text {
        width: 100%;
        padding: 0 10px;
    }
    
    .hero-visual {
        min-height: 200px;
        margin-top: 30px;
        margin-bottom: 50px;
        width: 100%;
    }
    
    .hero-title {
        font-size: 32px;
        letter-spacing: 1px;
        text-align: center;
        width: 100%;
    }
    
    .hero-subtitle {
        font-size: 15px;
        text-align: center;
        width: 100%;
        padding: 0 10px;
        line-height: 1.7;
    }
    
    /* Section spacing - compact yet readable on small screens */
    section {
        padding: 40px 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    .section-header {
        padding: 0 10px;
        width: 100%;
    }
    
    .section-title {
        font-size: 28px;
        text-align: center;
        width: 100%;
        padding: 0 10px;
    }
    
    .section-subtitle {
        font-size: 14px;
        text-align: center;
        width: 100%;
    }
    
    /* Cube section */
    .cube-section {
        padding: 60px 10px;
    }
    
    /* Ensure only cube container has transforms; shrink on very small screens to avoid overlap */
    .cube-container {
        transform: scale(0.56) skewY(0deg);
        top: 0;
        margin: 0 auto;
    }
    
    /* Scroll indicator positioning */
    .scrolldown-container {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        /* Extra space so it clears the cube visually */
        margin-top: 56px;
        margin-bottom: 30px;
        display: flex;
        justify-content: center;
    }
    
    .scrolldown {
        --color: #ffffff !important;
    }
    
    .chevrondown {
        border-right: 3px solid #ffffff !important;
        border-bottom: 3px solid #ffffff !important;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0 10px;
    }
    
    .nav-link {
        font-size: 20px;
        padding: 15px 25px;
        width: 95%;
    }
    
    /* Cards - bigger text, more padding */
    .service-card,
    .game-card,
    .testimonial-card {
        padding: 25px 20px;
        width: 100%;
        max-width: 100%;
    }
    
    .service-card h3,
    .game-card h3,
    .testimonial-card .author-name {
        font-size: 20px;
    }
    
    .service-card p,
    .game-card p,
    .testimonial-text {
        font-size: 15px;
        line-height: 1.7;
    }
    
    /* Grids - single column full width */
    .partners-grid {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 25px;
    }
    
    .partner-card {
        padding: 30px 20px;
    }
    
    .partner-logo {
        height: 80px;
    }
    
    .partner-logo img {
        max-height: 80px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 25px;
    }
    
    .stat-item {
        width: 100%;
        text-align: center;
        padding: 25px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .stat-label {
        font-size: 14px;
    }
    
    /* About section text */
    .about-text {
        font-size: 15px;
        line-height: 1.8;
    }
    
    .about-main {
        font-size: 17px;
        line-height: 1.6;
    }
    
    .quote {
        padding: 20px;
        font-size: 15px;
    }
    
    /* Boot screen mobile */
    .logo-text {
        font-size: 32px;
        letter-spacing: 6px;
    }
    
    .loading-text {
        font-size: 11px;
        letter-spacing: 2px;
    }
    
    .loading-percentage {
        font-size: 16px;
    }
    
    /* Buttons mobile - full width, bigger text */
    .cta-btn,
    .secondary-btn,
    .primary-btn {
        padding: 15px 30px;
        font-size: 14px;
        width: 100%;
        max-width: 100%;
    }
    
    .partner-card {
        width: 100%;
    }
    
    /* Forms full width - bigger inputs */
    .form-group {
        width: 100%;
    }
    
    .form-group input,
    .form-group textarea {
        width: 100%;
        font-size: 16px;
        padding: 16px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .submit-btn {
        width: 100%;
        font-size: 15px;
        padding: 16px;
    }
    
    /* Contact info cards */
    .info-card {
        padding: 25px 20px;
    }
    
    .info-card h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .info-card p {
        font-size: 15px;
        line-height: 1.6;
    }
    
    /* Hamburger size adjustment */
    .hamburger svg {
        height: 2.5em;
    }
    
    /* Ticker full width */
    .ticker-wrapper {
        width: 100%;
        padding: 8px 0;
    }
    
    .ticker span {
        font-size: 13px;
    }
    
    /* Footer text size */
    .footer-content {
        font-size: 14px;
    }
}

/* Tablet landscape specific */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    section {
        padding: 60px 30px;
    }
    
    .hero-title {
        font-size: 50px;
    }
    
    .cube-container {
        transform: skewY(0deg);
        margin: 0 auto;
        top: 0;
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    .custom-cursor,
    .cursor-follower,
    .cursor-coordinates {
        display: none !important;
    }
    
    body {
        cursor: auto !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Desktop fixes to mirror live-server layout and avoid video zoom after deploy */
@media (min-width: 769px) {
  .hero-section {
    /* Let the background video truly start at the very top behind navbar */
    padding: 0 40px 40px !important; /* remove top padding that can cause zoom-like crop */
  }
  .hero-content {
    /* Add back spacing below fixed navbar so text doesn't overlap */
    padding-top: 120px !important;
  }
  .hero-bg-video {
    /* Ensure video fills section on desktop deployments consistently */
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 50% 50% !important;
  }
}

/* Desktop: limit ticker width and center it under the title */
@media (min-width: 769px) {
  .ticker-wrapper {
    max-width: 720px;
    margin-left: 0; /* align with hero text left edge */
  }
  /* With cube removed, ensure hero content displays well on desktop */
  .hero-content {
    grid-template-columns: 1fr; /* single column so text stays centered/left without empty space */
    max-width: 1200px;
  }
}
