/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* Custom Themed Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #6366f1;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.1s ease, background-color 0.2s ease, border-color 0.2s ease;
    transform: translate(-50%, -50%);
}

.custom-cursor.hover {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: rgba(99, 102, 241, 0.3);
    border-color: #8b5cf6;
}

.custom-cursor.click {
    transform: translate(-50%, -50%) scale(0.8);
}

/* Hide custom cursor on mobile/touch devices */
@media (hover: none) and (pointer: coarse) {
    .custom-cursor {
        display: none !important;
    }
    
    body.custom-cursor-active,
    body.custom-cursor-active * {
        cursor: auto !important;
    }
}

/* Hide default cursor when custom cursor is active */
body.custom-cursor-active {
    cursor: none;
}

body.custom-cursor-active * {
    cursor: none !important;
}

/* Dark/Light Mode Toggle */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    cursor: pointer;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    padding: 0;
}

.theme-toggle .moon-icon {
    width: 24px;
    height: 24px;
    transition: fill 0.3s ease;
}

/* Moon always stays white/cream */
.theme-toggle .moon-icon {
    fill: #fffbeb;
    filter: drop-shadow(0 0 4px rgba(255, 251, 235, 0.5));
}

/* Dark mode - light gradient button */
.theme-toggle {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Light mode - dark purple gradient button */
body.light-mode .theme-toggle {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

/* Light Mode Variables */
body.light-mode {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --accent-color: #6366f1;
}

body.light-mode {
    background: var(--bg-primary);
    color: var(--text-primary);
}

body.light-mode .section-dark {
    background: var(--bg-secondary);
}

body.light-mode .hero {
    background: transparent;
}

/* Light mode - background color for smooth transition */
body.light-mode {
    background: #ddd6fe;
    color: #4c1d95;
}

/* Gradient overlay for light mode - only on main site (not admin) */
body.light-mode:not(.login-page)::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #c4b5fd 0%, #f0f4ff 50%, #ffffff 100%);
    z-index: -2;
    opacity: 1;
    transition: opacity 1.5s ease;
}

body:not(.login-page)::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #c4b5fd 0%, #f0f4ff 50%, #ffffff 100%);
    z-index: -2;
    opacity: 0;
    transition: opacity 1.5s ease;
}

/* Light mode - make all sections transparent so stars show */
body.light-mode .section,
body.light-mode .section-dark {
    background: transparent;
}

/* Light mode - stars pink-purple color */
body.light-mode .star {
    background: #f0abfc;
    box-shadow: 0 0 4px rgba(240, 171, 252, 0.8);
}

/* Section titles - start dark purple, turn white on scroll */
.section-title {
    transition: color 0.5s ease;
}

body.light-mode .section-title {
    color: #4c1d95;
}

body.light-mode .section-title.scrolled {
    color: #ffffff !important;
}

/* Light mode - navbar links dark purple */
body.light-mode .nav-links a {
    color: #4c1d95 !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: #4c1d95 !important;
}

body.light-mode .nav-links a:hover {
    color: #6366f1 !important;
    -webkit-text-fill-color: #6366f1 !important;
}

/* Light mode - navbar links white when scrolled (dark background) */
body.light-mode.scrolled .nav-links a {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

body.light-mode.scrolled .nav-links a:hover {
    color: #c4b5fd !important;
    -webkit-text-fill-color: #c4b5fd !important;
}

/* Navbar background - transparent initially, dark when scrolled */
.navbar {
    background: transparent !important;
    transition: background 0.3s ease;
}

/* Dark background when scrolled (both modes) */
body.scrolled .navbar {
    background: #0b0f19 !important;
}

/* Light mode - navbar transparent initially */
body.light-mode .navbar {
    background: transparent;
}

body.light-mode.scrolled .navbar {
    background: #0b0f19 !important;
}

/* Light mode - text inside purple buttons is white */
body.light-mode .btn-primary,
body.light-mode .btn-card {
    color: white !important;
}

/* Light mode - all other text is dark purple */
body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6,
body.light-mode p,
body.light-mode span:not(.btn-primary):not(.btn-card),
body.light-mode a:not(.btn):not(.btn-primary):not(.btn-card),
body.light-mode li,
body.light-mode label,
body.light-mode .section-title,
body.light-mode .hero-subtitle,
body.light-mode .card-title,
body.light-mode .card-description,
body.light-mode .developer-name,
body.light-mode .developer-role,
body.light-mode .blog-title,
body.light-mode .blog-preview,
body.light-mode .section-text {
    color: #4c1d95 !important;
}

/* Light mode - hero title (UzGameDev) dark purple */
body.light-mode .hero-title {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: #4c1d95 !important;
    color: #4c1d95 !important;
}

/* Game cards - all text white in both modes */
.game-card .card-title,
.game-card .card-description,
.game-card .status-badge {
    color: white !important;
}

.game-card .card-description {
    color: #e0e6ed !important;
}

/* Light mode - game card text white */
body.light-mode .game-card .card-title,
body.light-mode .game-card .card-description,
body.light-mode .game-card .status-badge {
    color: white !important;
}

body.light-mode .game-card .card-description {
    color: #e0e6ed !important;
}

/* Mobile Hamburger Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10000;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: #e0e6ed;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        position: fixed;
        top: 20px;
        left: 20px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: left 0.3s ease;
        z-index: 9999;
        padding: 2rem;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        font-size: 1.5rem;
        padding: 1rem;
    }
    
    .nav-links::before {
        content: 'Menu';
        position: absolute;
        top: 80px;
        font-size: 2rem;
        color: #6366f1;
        text-transform: uppercase;
        letter-spacing: 0.2em;
    }
}

/* Performance Optimizations for 60fps */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.smooth-scroll {
    scroll-behavior: smooth;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Space Animation */
.space-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(ellipse at center, 
        rgba(11, 15, 25, 0.3) 0%, 
        rgba(11, 15, 25, 0.8) 50%, 
        rgba(0, 0, 0, 0.9) 100%);
}

/* Remove underlines from all links */
a {
    text-decoration: none;
}

/* Remove underlines from buttons */
.btn, button {
    text-decoration: none;
}

/* Global Typography and Formatting */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e6ed;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    text-align: center;
    background: #0b0f19;
    transition: background 1.5s ease, color 1.5s ease;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    text-align: center;
}

/* Typography Classes */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-align: center;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
    text-align: center;
}

/* Text Formatting */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, 
        rgba(11, 15, 25, 0.3) 0%, 
        rgba(11, 15, 25, 0.8) 50%, 
        rgba(0, 0, 0, 0.9) 100%);
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 10;
    animation: fadeInUp 1.5s ease-out;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 5rem;
    font-weight: 300;
    background: linear-gradient(270deg, #6366f1, #8b5cf6, #ec4899, #ffffff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: gradientShift 4s ease infinite, fadeInUp 1.5s ease-out;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeInUp 1.5s ease-out 0.5s forwards;
    font-weight: 300;
    line-height: 1.4;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 1.5s ease-out 1s forwards;
    flex-wrap: wrap;
    margin-left: -30px;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Space sections */
.section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.section:nth-child(2) {
    background: transparent;
}

.section:nth-child(3) {
    background: transparent;
}

.section:nth-child(4) {
    background: transparent;
}

.section:nth-child(5) {
    background: transparent;
}

.section:nth-child(6) {
    background: transparent;
}

.section:nth-child(7) {
    background: transparent;
}

#about, #developers, #contact {
    position: relative;
    overflow: hidden;
}

#about .container, #developers .container, #contact .container {
    position: relative;
    z-index: 1;
}

/* Stars */
.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle linear infinite;
}

.star.small {
    width: 1px;
    height: 1px;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
}

.star.medium {
    width: 2px;
    height: 2px;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.9);
}

.star.large {
    width: 3px;
    height: 3px;
    box-shadow: 0 0 6px rgba(255, 255, 255, 1);
}

.star.neon {
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.8);
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Asteroids */
.asteroid {
    position: absolute;
    background: linear-gradient(135deg, #4a5568, #2d3748);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: drift linear infinite;
    box-shadow: 
        inset -2px -2px 4px rgba(0, 0, 0, 0.5),
        inset 2px 2px 4px rgba(255, 255, 255, 0.1),
        0 0 10px rgba(99, 102, 241, 0.2);
}

.asteroid::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 30%;
    height: 30%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
}

.asteroid::after {
    content: '';
    position: absolute;
    bottom: 30%;
    right: 25%;
    width: 20%;
    height: 20%;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
}

.asteroid.small {
    width: 8px;
    height: 8px;
}

.asteroid.medium {
    width: 12px;
    height: 12px;
}

.asteroid.large {
    width: 18px;
    height: 18px;
}

@keyframes drift {
    0% {
        transform: translate(-100px, -100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translate(calc(100vw + 100px), calc(100vh + 100px)) rotate(360deg);
        opacity: 0;
    }
}

/* Shooting stars */
.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: linear-gradient(45deg, #6366f1, #ec4899);
    border-radius: 50%;
    animation: shoot linear infinite;
    filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.8));
}

.shooting-star::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(to left, 
        transparent,
        rgba(99, 102, 241, 0.6),
        rgba(236, 72, 153, 0.8),
        transparent
    );
    transform: translateX(-100px);
}

@keyframes shoot {
    0% {
        transform: translate(-100vw, -100vh);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        transform: translate(100vw, 100vh);
        opacity: 0;
    }
}

/* Nebula clouds */
.nebula {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(99, 102, 241, 0.1),
        rgba(139, 92, 246, 0.05),
        transparent
    );
    animation: float 20s ease-in-out infinite;
    filter: blur(20px);
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    33% {
        transform: translate(30px, -20px) scale(1.1);
        opacity: 0.5;
    }
    66% {
        transform: translate(-20px, 30px) scale(0.9);
        opacity: 0.4;
    }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    line-height: 1.6;
    color: #e0e6ed;
    background-color: #0a0e27;
    overflow-x: hidden;
    letter-spacing: 0.05em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: background 0.6s ease-in-out;
}

.navbar nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    justify-content: center;
    text-align: center;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.5s ease;
    position: relative;
    padding: 0.5rem 0;
    background: #ffffff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links a:hover {
    color: #ffffff;
    background: #ffffff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(-2px);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.moon-animation {
    position: absolute;
    top: 20%;
    right: 15%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 30% 30%, #fefefe, #e6e6e6);
    border-radius: 50%;
    box-shadow: 
        0 0 60px rgba(255, 255, 255, 0.8),
        0 0 100px rgba(255, 255, 255, 0.5),
        0 0 150px rgba(255, 255, 255, 0.3),
        inset -10px -10px 20px rgba(0, 0, 0, 0.2);
    animation: moonGlow 4s ease-in-out infinite;
}

.moon-animation::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 20px;
    height: 20px;
    background: rgba(200, 200, 200, 0.3);
    border-radius: 50%;
    box-shadow: 
        25px 15px 0 8px rgba(200, 200, 200, 0.2),
        15px 25px 0 5px rgba(200, 200, 200, 0.25);
}

.bright-star {
    position: absolute;
    top: 20%;
    right: 28%;
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 1),
        0 0 40px rgba(255, 255, 255, 0.8),
        0 0 60px rgba(255, 255, 255, 0.6),
        0 0 80px rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bright-star:hover {
    transform: scale(1.2);
    box-shadow: 
        0 0 25px rgba(255, 255, 255, 1),
        0 0 50px rgba(255, 255, 255, 0.8),
        0 0 75px rgba(255, 255, 255, 0.6),
        0 0 100px rgba(255, 255, 255, 0.4);
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

.star:nth-child(1) { top: 20%; left: 10%; width: 2px; height: 2px; animation-delay: 0s; }
.star:nth-child(2) { top: 30%; left: 80%; width: 1px; height: 1px; animation-delay: 0.5s; }
.star:nth-child(3) { top: 60%; left: 20%; width: 2px; height: 2px; animation-delay: 1s; }
.star:nth-child(4) { top: 80%; left: 70%; width: 1px; height: 1px; animation-delay: 1.5s; }
.star:nth-child(5) { top: 15%; left: 50%; width: 2px; height: 2px; animation-delay: 2s; }
.star:nth-child(6) { top: 70%; left: 30%; width: 1px; height: 1px; animation-delay: 2.5s; }
.star:nth-child(7) { top: 40%; left: 60%; width: 2px; height: 2px; animation-delay: 0.3s; }
.star:nth-child(8) { top: 90%; left: 40%; width: 1px; height: 1px; animation-delay: 0.8s; }
.star:nth-child(9) { top: 25%; left: 25%; width: 2px; height: 2px; animation-delay: 1.2s; }
.star:nth-child(10) { top: 55%; left: 75%; width: 1px; height: 1px; animation-delay: 1.7s; }
.star:nth-child(11) { top: 10%; left: 90%; width: 2px; height: 2px; animation-delay: 0.2s; }
.star:nth-child(12) { top: 85%; left: 15%; width: 1px; height: 1px; animation-delay: 2.2s; }
.star:nth-child(13) { top: 45%; left: 45%; width: 2px; height: 2px; animation-delay: 0.6s; }
.star:nth-child(14) { top: 5%; left: 35%; width: 1px; height: 1px; animation-delay: 1.3s; }
.star:nth-child(15) { top: 75%; left: 85%; width: 2px; height: 2px; animation-delay: 1.9s; }
.star:nth-child(16) { top: 35%; left: 5%; width: 1px; height: 1px; animation-delay: 2.8s; }

@keyframes moonGlow {
    0%, 100% {
        box-shadow: 
            0 0 60px rgba(255, 255, 255, 0.8),
            0 0 100px rgba(255, 255, 255, 0.5),
            0 0 150px rgba(255, 255, 255, 0.3),
            inset -10px -10px 20px rgba(0, 0, 0, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 
            0 0 80px rgba(255, 255, 255, 1),
            0 0 120px rgba(255, 255, 255, 0.7),
            0 0 180px rgba(255, 255, 255, 0.4),
            inset -10px -10px 20px rgba(0, 0, 0, 0.2);
        transform: scale(1.05);
    }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 300;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fefefe, #e6e6fa, #f8f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 10px rgba(254, 254, 254, 0.2);
    animation: moonGlow 4s ease-in-out infinite;
}

@keyframes moonGlow {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 5px rgba(254, 254, 254, 0.3));
    }
    50% {
        filter: brightness(1.1) drop-shadow(0 0 10px rgba(254, 254, 254, 0.5));
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: #e0e6ed;
    text-shadow: 0 0 8px rgba(254, 254, 254, 0.15);
    animation: subtitleGlow 4s ease-in-out infinite;
}

@keyframes subtitleGlow {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 3px rgba(254, 254, 254, 0.2));
    }
    50% {
        filter: brightness(1.05) drop-shadow(0 0 6px rgba(254, 254, 254, 0.3));
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.2;
    text-decoration: none;
    min-width: 240px;
    max-width: 240px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #94a3b8;
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-card {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    width: 200px;
    padding: 14px 24px;
    font-size: 0.95rem;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    margin: 0 auto;
    display: block;
}

.btn-card:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.4);
}

.btn-card:disabled {
    background: linear-gradient(135deg, #475569, #334155);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section .container {
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 3rem;
    font-weight: 300;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 3rem;
    color: #e0e6ed;
    background: linear-gradient(45deg, #6366f1, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.3rem;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 300;
    line-height: 1.5;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-dark {
    background: transparent;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 0 auto 4rem;
    width: 100%;
    max-width: 1200px;
    justify-items: center;
    text-align: center;
}

.game-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    position: relative;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
    backdrop-filter: blur(10px);
}

.game-card:hover {
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-5px) scale(1.02);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 300;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: #e0e6ed;
    line-height: 1.2;
}

.card-description {
    color: #94a3b8;
    margin-bottom: 2rem;
    flex-grow: 1;
    font-size: 1rem;
    line-height: 1.6;
}

/* Games Background Wallpaper Classes */
.minecraft-card {
    background: linear-gradient(
        rgba(0, 0, 0, 0.65),
        rgba(0, 0, 0, 0.65)
    ),
    url('../assets/images/esports/minecraft_card.webp');
    background-size: cover;
    background-position: center;
}

.gta5-card {
    background: linear-gradient(
        rgba(0, 0, 0, 0.65),
        rgba(0, 0, 0, 0.65)
    ),
    url('../assets/images/esports/gta5_card.webp');
    background-size: cover;
    background-position: center;
}

.minigames-card {
    background: linear-gradient(
        rgba(0, 0, 0, 0.65),
        rgba(0, 0, 0, 0.65)
    ),
    url('../assets/images/esports/minigames_card.webp');
    background-size: cover;
    background-position: center;
}

.game-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 1rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge:first-child {
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    color: white;
}

/* Developers Grid */
.developers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.developer-card {
    background: transparent;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    position: relative;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
    backdrop-filter: blur(10px);
}

.developer-card:hover {
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-5px) scale(1.02);
}

.developer-title {
    font-size: 1.8rem;
    font-weight: 400;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: #e0e6ed;
    line-height: 1.2;
}

.developer-role {
    color: #94a3b8;
    margin-bottom: 2rem;
    flex-grow: 1;
    font-size: 1.1rem;
    line-height: 1.6;
}

.developer-card .social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: auto;
    padding-top: 1rem;
}

.developer-card .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #94a3b8;
    transition: all 0.3s ease;
}

.developer-card .social-icon svg {
    width: 18px;
    height: 18px;
}

.developer-card .social-icon:hover {
    background: rgba(99, 102, 241, 0.3);
    border-color: #6366f1;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Blog Section */
.blog-content {
    margin-top: 3rem;
}

.youtube-videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    width: 100%;
}

.youtube-video {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.youtube-video:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.youtube-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
}

.youtube-placeholder {
    background: rgba(30, 41, 59, 0.3);
    border: 2px dashed rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    color: #64748b;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    justify-items: center;
    text-align: center;
}

.blog-card {
    background: transparent;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
    backdrop-filter: blur(10px);
}

.blog-card:hover {
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-5px) scale(1.02);
}

.blog-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #e0e6ed;
}

.blog-preview {
    color: #94a3b8;
}

/* Contact Section */
.contact-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    margin-top: 2rem;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Footer */
.footer {
    background: #0b0f19;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    color: white !important;
}

/* Light mode - footer text white */
body.light-mode .footer p {
    color: white !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 250px;
    }
    
    .youtube-videos {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .youtube-video {
        width: 100%;
        max-width: 560px;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .navbar {
        padding: 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .nav-links li {
        margin: 0;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 2.8rem;
        letter-spacing: 0.05em;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    /* Games Grid */
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .game-card {
        padding: 1.5rem;
        min-height: 250px;
    }
    
    /* Developers Grid */
    .developers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .developer-card {
        padding: 1.5rem;
        min-height: 250px;
    }
    
    /* Blog Section */
    .blog-content {
        margin-top: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-card {
        padding: 1.5rem;
        min-height: 250px;
    }
    
    /* YouTube Videos */
    .youtube-videos {
        grid-template-columns: 1fr;
    }
    
    /* Contact Section */
    .contact-links {
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
        gap: 1rem;
    }
    
    /* Buttons */
    .btn {
        width: 200px;
        min-width: unset;
        max-width: 100%;
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 200px;
    }
    
    .hero-buttons {
        gap: 1rem;
        margin-left: 0;
        flex-direction: column;
        align-items: center;
    }
    
    /* Hide custom cursor on mobile */
    .custom-cursor {
        display: none !important;
    }
    
    body.custom-cursor-active,
    body.custom-cursor-active * {
        cursor: auto !important;
    }
    
    /* Hide bright star on mobile - too large and distracting */
    .bright-star {
        display: none;
    }
    
    /* Navbar transparent on mobile */
    .navbar {
        background: transparent !important;
    }
    
    body.scrolled .navbar {
        background: rgba(11, 15, 25, 0.95) !important;
        backdrop-filter: blur(10px);
    }
}

@media (max-width: 576px) {
    /* Container */
    .container {
        padding: 0 1rem;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 0.02em;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .section-text {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Game Cards */
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .game-card {
        padding: 1.2rem;
        min-height: 220px;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .card-description {
        font-size: 0.95rem;
    }
    
    .btn-card {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 200px;
    }
    
    /* Developer Cards */
    .developers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .developer-card {
        padding: 1.2rem;
        min-height: 220px;
    }
    
    .developer-name {
        font-size: 1.2rem;
    }
    
    .developer-role {
        font-size: 0.9rem;
    }
    
    /* Blog Cards */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-card {
        padding: 1.2rem;
        min-height: 220px;
    }
    
    .blog-title {
        font-size: 1.2rem;
    }
    
    .blog-preview {
        font-size: 0.95rem;
    }
    
    /* YouTube Videos */
    .youtube-videos {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .youtube-video iframe {
        width: 100%;
        height: 250px;
    }
    
    .youtube-video {
        min-height: 250px;
    }
    
    /* Contact Links */
    .contact-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .contact-links .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    /* Hero Section - Very Small Screens */
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 1.6rem;
    }
    
    /* Game Cards */
    .game-card {
        padding: 1rem;
        min-height: 200px;
    }
    
    .developer-card {
        padding: 1rem;
        min-height: 200px;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .card-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 200px;
        min-width: unset;
    }
    
    .hero-buttons {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    
    /* Status Badge */
    .status-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
    }
    
    /* YouTube Videos */
    .youtube-video iframe {
        height: 200px;
    }
    
    .youtube-video {
        min-height: 200px;
    }
    
    /* Moon smaller on tiny screens */
    .moon-animation {
        width: 70px;
        height: 70px;
        top: 15%;
        right: 10%;
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 40px 0;
    }
}

/* Tablet Specific Adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .developers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* High DPI/Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .bright-star {
        box-shadow: 
            0 0 30px rgba(255, 255, 255, 1),
            0 0 60px rgba(255, 255, 255, 0.8),
            0 0 90px rgba(255, 255, 255, 0.6);
    }
    
    .btn-primary {
        box-shadow: 0 12px 30px rgba(99, 102, 241, 0.4);
    }
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-title {
        animation: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .game-card:hover {
        transform: none;
    }
}
