/* ==========================================
   FairGames Studio - Modern Green Theme
   Clean, Minimal, Professional Design
   ========================================== */

/* CSS Variables */
:root {
    /* Green Theme Colors */
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;
    --primary-50: #ecfdf5;
    --primary-100: #d1fae5;
    --primary-200: #a7f3d0;
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Typography */
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-green: 0 10px 40px -10px rgb(16 185 129 / 0.3);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-primary);
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

@media (max-width: 1024px) {
    .container {
        padding: 0 var(--space-lg);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition: all var(--transition-slow);
}

.navbar .container {
    max-width: 100%;
    padding: 0 var(--space-lg);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--gray-100);
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    transition: all var(--transition-slow);
}

.nav-logo:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

.nav-logo-img {
    height: 72px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter var(--transition-slow), height var(--transition-slow);
}

.navbar.scrolled .nav-logo-img {
    filter: brightness(0);
    height: 56px;
}

.logo-accent {
    color: var(--primary);
}

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

.nav-link {
    font-weight: 600;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    transition: color var(--transition-slow);
    position: relative;
    letter-spacing: 0.01em;
}

.navbar.scrolled .nav-link {
    color: var(--gray-700);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-base);
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    padding: var(--space-sm);
    color: #fff;
    transition: color var(--transition-slow);
}

.navbar.scrolled .nav-toggle {
    color: var(--gray-700);
}

.nav-toggle .close-icon {
    display: none;
}

@media (max-width: 1023px) {
    .nav-toggle {
        display: flex;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius-lg);
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transition: all var(--transition-base);
        position: relative;
        z-index: 1002;
    }
    
    .nav-toggle:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .navbar.scrolled .nav-toggle {
        background: var(--gray-100);
    }
    
    .navbar.scrolled .nav-toggle:hover {
        background: var(--gray-200);
    }
    
    /* Dropdown Menu */
    .nav-menu {
        position: absolute;
        top: calc(100% + 2px);
        right: 12px;
        left: auto;
        bottom: auto;
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-md);
        gap: var(--space-xs);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: var(--radius-xl);
        box-shadow: 
            0 20px 40px -10px rgba(0, 0, 0, 0.2),
            0 0 0 1px rgba(0, 0, 0, 0.05);
        min-width: 200px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px) scale(0.95);
        transform-origin: top right;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1001;
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }
    
    /* Menu Items */
    .nav-menu li {
        opacity: 0;
        transform: translateX(10px);
        transition: all 0.2s ease;
    }
    
    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-menu.active li:nth-child(1) { transition-delay: 0.05s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.15s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.2s; }
    
    .nav-link {
        display: block;
        font-size: 1rem;
        font-weight: 600;
        color: var(--gray-700);
        padding: var(--space-sm) var(--space-md);
        border-radius: var(--radius-lg);
        transition: all var(--transition-base);
        text-align: left;
        position: relative;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-link:hover {
        color: var(--primary);
        background: var(--primary-50);
    }
    
    .navbar.scrolled .nav-link {
        color: var(--gray-700);
    }
    
    .navbar.scrolled .nav-link:hover {
        color: var(--primary);
        background: var(--primary-50);
    }
    
    .nav-menu.active ~ .nav-toggle .menu-icon {
        display: none;
    }
    
    .nav-menu.active ~ .nav-toggle .close-icon {
        display: block;
    }
    
    .nav-menu.active ~ .nav-toggle {
        background: var(--gray-100);
        color: var(--gray-700);
    }
}

@media (max-width: 767px) {
    .nav-menu {
        min-width: 180px;
        padding: var(--space-sm);
    }
    
    .nav-link {
        font-size: 0.95rem;
        padding: var(--space-sm) var(--space-md);
    }
}

@media (max-width: 479px) {
    .nav-menu {
        min-width: 160px;
        right: 12px;
        top: calc(100% + 10px);
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: var(--space-xs) var(--space-sm);
    }
    
    .nav-toggle {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 374px) {
    .nav-menu {
        min-width: 150px;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
    
    .nav-toggle {
        width: 38px;
        height: 38px;
    }
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-base);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow-green);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 44px -10px rgb(16 185 129 / 0.4);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-200);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ==========================================
   HERO SECTION - Video Background
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

/* Video Background */
.hero-video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: videoFadeIn 2s ease-out 0.5s forwards;
}

@keyframes videoFadeIn {
    to {
        opacity: 1;
    }
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.6) 100%),
        linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
}

/* Floating Particles */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 15s ease-in-out infinite;
    box-shadow: 0 0 20px var(--primary), 0 0 40px var(--primary);
}

.particle-1 { top: 20%; left: 10%; animation-delay: 0s; animation-duration: 12s; }
.particle-2 { top: 60%; left: 85%; animation-delay: -3s; animation-duration: 18s; }
.particle-3 { top: 80%; left: 25%; animation-delay: -6s; animation-duration: 14s; }
.particle-4 { top: 30%; left: 70%; animation-delay: -9s; animation-duration: 16s; }
.particle-5 { top: 50%; left: 50%; animation-delay: -12s; animation-duration: 20s; }
.particle-6 { top: 10%; left: 60%; animation-delay: -4s; animation-duration: 13s; }

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(30px, -50px) scale(1.5);
        opacity: 0.8;
    }
    50% {
        transform: translate(-20px, -100px) scale(1);
        opacity: 0.4;
    }
    75% {
        transform: translate(40px, -50px) scale(1.2);
        opacity: 0.7;
    }
}

/* Hero Center Content */
.hero-center {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 var(--space-lg);
    margin-bottom: 8vh;
}

.hero-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    width: 100%;
}

/* Glowing Badge */
.hero-badge-glow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.75rem;
    background: rgba(16, 185, 129, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-full);
    color: var(--primary-light);
    font-size: 1.1rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-2xl);
    animation: badgePulse 3s ease-in-out infinite, fadeInDown 0.8s ease-out;
}

.hero-badge-glow svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(16, 185, 129, 0.5);
    }
}

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

/* Mega Title */
.hero-mega-title {
    font-size: clamp(5.5rem, 22vw, 18rem);
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: var(--space-xl);
    letter-spacing: -0.03em;
}

.title-top {
    display: block;
    color: #fff;
    text-shadow: 
        0 0 40px rgba(255, 255, 255, 0.3),
        0 4px 20px rgba(0, 0, 0, 0.5);
    animation: titleReveal 1s ease-out 0.3s both;
}

.title-bottom {
    display: block;
    position: relative;
    color: var(--primary);
    background: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    animation: titleReveal 1s ease-out 0.5s both;
}

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Word Carousel - Pure CSS Smooth Animation */
.words-wrapper {
    display: inline-block;
    position: relative;
    height: 1.15em;
    overflow: hidden;
    vertical-align: bottom;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    padding-right: 0.1em;
}

.word-carousel {
    display: flex;
    flex-direction: column;
    animation: wordCarousel 9s cubic-bezier(0.23, 1, 0.32, 1) infinite;
    will-change: transform;
    background: none !important;
    box-shadow: none !important;
}

.word-carousel span {
    display: block;
    height: 1.15em;
    line-height: 1.15em;
    padding: 0;
    white-space: nowrap;
    background: none !important;
    box-shadow: none !important;
    text-shadow: none;
}

@keyframes wordCarousel {
    0%, 20% {
        transform: translateY(0);
    }
    33.33%, 53.33% {
        transform: translateY(-33.333%);
    }
    66.66%, 86.66% {
        transform: translateY(-66.666%);
    }
    100% {
        transform: translateY(0);
    }
}

/* Subtitle */
.hero-subtitle {
    font-size: clamp(1.1rem, 2.4vw, 1.6rem);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-2xl);
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.separator-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    margin: 0 var(--space-md);
    vertical-align: middle;
    box-shadow: 0 0 10px var(--primary);
}

/* CTA Buttons */
.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
    animation: fadeInUp 0.8s ease-out 0.9s both;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 1.15rem 2.4rem;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.hero-btn svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-base);
}

.hero-btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 
        0 10px 40px -10px rgba(16, 185, 129, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.hero-btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -15px rgba(16, 185, 129, 0.6);
}

.hero-btn-primary:hover::before {
    opacity: 1;
}

.hero-btn-primary:hover svg {
    transform: translateX(4px);
}

.hero-btn-primary span,
.hero-btn-primary svg {
    position: relative;
    z-index: 1;
}

.hero-btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.hero-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-4px);
}

/* Stats Row */
.hero-stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2xl);
}

.hero-stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.stat-name {
    display: block;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: var(--space-xs);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 100px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    animation: fadeInUp 0.8s ease-out 1.3s both;
    z-index: 3;
}

@media (max-width: 1200px) {
    .hero-scroll-indicator {
        display: none;
    }
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--primary);
}

@keyframes scrollWheel {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) translateY(12px);
        opacity: 0.3;
    }
}

/* Wave Container */
.hero-wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 2;
    pointer-events: none;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.wave-path {
    transition: d 0.3s ease;
}

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Hero */
@media (max-width: 1024px) {
    .hero-stats-row {
        gap: var(--space-xl);
    }
    
    .stat-divider {
        height: 30px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100svh;
    }
    
    .hero-mega-title {
        font-size: clamp(3rem, 18vw, 6rem);
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }
    
    .separator-dot {
        margin: 0 var(--space-sm);
    }
    
    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .hero-stats-row {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    }
    
    .hero-scroll-indicator {
        bottom: 100px;
    }
    
    .hero-wave-container {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .hero-badge-glow {
        font-size: 0.75rem;
        padding: var(--space-xs) var(--space-md);
    }
    
    .hero-subtitle .separator-dot {
        display: none;
    }
    
    .hero-subtitle {
        display: flex;
        flex-direction: column;
        gap: var(--space-xs);
    }
}

/* ==========================================
   SECTION STYLES
   ========================================== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-3xl);
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--primary-50);
    color: var(--primary-dark);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.section-tag svg {
    width: 16px;
    height: 16px;
}

.section-tag.light {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray-500);
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services {
    padding: var(--space-4xl) 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    position: relative;
    padding: var(--space-2xl);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    transition: all var(--transition-slow);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* No hover effect on white cards */
.service-card:not(.featured):hover {
    transform: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Only featured card has hover effect */
.service-card.featured:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.3);
}

.service-card.featured {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: transparent;
    box-shadow: 0 15px 50px rgba(16, 185, 129, 0.25);
}

.service-card.featured .service-icon,
.service-card.featured .service-title,
.service-card.featured .service-desc,
.service-card.featured .service-features li {
    color: var(--white);
}

.service-card.featured .service-icon {
    background: rgba(255, 255, 255, 0.2);
}

.service-card.featured .service-features i {
    color: var(--primary-200);
}

.service-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-md);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--primary-50);
    border-radius: var(--radius-xl);
    color: var(--primary);
    margin-bottom: var(--space-lg);
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-xs);
}

.service-desc {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-bottom: var(--space-lg);
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.service-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--gray-600);
}

.service-features i {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

/* ==========================================
   PORTFOLIO SECTION - Roblox Style Game Cards
   ========================================== */
.portfolio {
    padding: var(--space-4xl) 0;
    background: var(--white);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .games-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

.game-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-slow);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    aspect-ratio: 16/10;
}

/* Game card link wrapper */
.game-link {
    display: block;
    position: absolute;
    inset: 0;
    text-decoration: none;
    color: inherit;
}

.game-link:hover,
.game-link:focus {
    text-decoration: none;
    outline: none;
}

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

/* Live stats indicator */
.stat-value.live-updated,
.stat-card-number.live-updated {
    animation: statPulse 0.6s ease-out;
}

@keyframes statPulse {
    0% {
        transform: scale(1);
        color: inherit;
    }
    50% {
        transform: scale(1.05);
        color: var(--primary);
    }
    100% {
        transform: scale(1);
        color: inherit;
    }
}

/* Live indicator dot */
.hero-stat-item .stat-name::after,
.stat-card-label.live::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    margin-left: 6px;
    animation: livePulse 2s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes livePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.game-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(34, 197, 94, 0.15);
}

.game-card.hidden {
    display: none;
}

/* Responsive game visibility */
.game-card.show-phone {
    display: none;
}

.game-card.show-tablet {
    display: none;
}

.game-card.show-desktop {
    display: none;
}

/* Phone: show 4 games (2 base + 2 phone) */
@media (min-width: 480px) {
    .game-card.show-phone {
        display: block;
    }
}

/* Tablet: show 6 games (2 base + 2 phone + 2 tablet) */
@media (min-width: 768px) {
    .game-card.show-tablet {
        display: block;
    }
}

/* Desktop: show 8 games (2 base + 2 phone + 2 tablet + 2 desktop) */
@media (min-width: 1200px) {
    .game-card.show-desktop {
        display: block;
    }
}

.game-thumbnail {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
}

.game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.game-card:hover .game-thumbnail img {
    transform: scale(1.1);
}

/* Gradient overlay */
.game-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.7) 25%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0) 70%
    );
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.game-card:hover .game-thumbnail::after {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.98) 0%,
        rgba(0, 0, 0, 0.6) 30%,
        rgba(0, 0, 0, 0.2) 55%,
        rgba(0, 0, 0, 0) 75%
    );
}

.game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-lg) var(--space-xl);
    z-index: 2;
}

.game-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--space-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.01em;
}

.game-stats {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.game-stats .stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.game-stats .stat .stat-value {
    font-size: 0.75rem;
    font-weight: 700;
}

.game-stats .stat svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.game-stats .stat:first-child {
    color: var(--primary-light);
}

.game-stats .stat:first-child svg {
    color: var(--primary);
}

/* Show More Button */
.portfolio-actions {
    text-align: center;
    margin-top: var(--space-2xl);
}

.btn-show-more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 1rem 2.5rem;
    background: var(--gray-900);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-show-more:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}

.btn-show-more svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-base);
}

.btn-show-more.expanded svg {
    transform: rotate(180deg);
}

@media (max-width: 640px) {
    .game-card {
        aspect-ratio: 16/9;
    }
    
    .game-info {
        padding: var(--space-md) var(--space-lg);
    }
    
    .game-title {
        font-size: 1rem;
    }
    
    .game-stats .stat {
        font-size: 0.8rem;
    }
    
    .game-stats {
        gap: var(--space-md);
    }
}

/* ==========================================
   STATS SECTION
   ========================================== */
.stats-section {
    position: relative;
    padding: var(--space-4xl) 0;
    overflow: hidden;
}

.stats-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.stats-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #047857 100%);
}

.stats-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-3xl);
    align-items: center;
}

@media (max-width: 1024px) {
    .stats-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.stats-text {
    color: var(--white);
}

.stats-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.stats-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-2xl);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-base);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.stat-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-md);
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    color: var(--white);
}

.stat-card-icon svg {
    width: 24px;
    height: 24px;
}

.stat-card-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: var(--space-xs);
}

.stat-card-label {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact {
    padding: var(--space-4xl) 0;
    background: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-3xl);
    align-items: start;
}

@media (max-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

.contact-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
}

.contact-desc {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-bottom: var(--space-2xl);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.contact-method:hover {
    background: var(--primary-50);
    transform: translateX(8px);
}

.method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: var(--radius-lg);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.method-icon svg {
    width: 22px;
    height: 22px;
}

.method-info {
    display: flex;
    flex-direction: column;
}

.method-label {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.method-value {
    font-weight: 600;
    color: var(--gray-900);
}

/* Contact Form */
.contact-form {
    background: var(--gray-50);
    padding: var(--space-2xl);
    border-radius: var(--radius-2xl);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    color: var(--gray-900);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--gray-900);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--gray-700);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }
    
    .footer-brand {
        margin: 0 auto;
    }
    
    .footer-links {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        grid-template-columns: unset !important;
    }
    
    .footer-column {
        text-align: center;
        width: 100%;
    }
    
    .footer-column h4 {
        text-align: center;
    }
    
    .footer-column ul {
        align-items: center;
        width: 100%;
    }
    
    .footer-column ul li {
        text-align: center;
        width: 100%;
    }
    
    .footer-column a {
        display: block;
        text-align: center;
    }
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: var(--space-md);
    transition: opacity var(--transition-base);
}

.footer-logo:hover {
    opacity: 0.8;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: 0.9375rem;
    color: var(--gray-400);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
}

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.footer-column a {
    font-size: 0.9375rem;
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

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

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: var(--radius-lg);
    color: var(--gray-400);
    transition: all var(--transition-base);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-4px);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: var(--space-xl);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--gray-500);
    width: 100%;
    text-align: center;
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

.footer-legal a {
    font-size: 0.875rem;
    color: var(--gray-500);
    transition: color var(--transition-fast);
}

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

/* ==========================================
   ANIMATIONS & UTILITIES
   ========================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth reveal on scroll */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Selection */
::selection {
    background: var(--primary-200);
    color: var(--primary-dark);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

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

/* Video Loading State */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gray-900) 0%, #0a1628 100%);
    z-index: -1;
    transition: opacity 1s ease;
}

body.video-loaded .hero::before {
    opacity: 0;
}

/* Glowing Text Effects - Subtle */
@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    50% {
        text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
    }
}


/* Hero Stats Animation */
.hero-stat-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.hero-stat-item:nth-child(1) { animation-delay: 1.2s; }
.hero-stat-item:nth-child(3) { animation-delay: 1.4s; }
.hero-stat-item:nth-child(5) { animation-delay: 1.6s; }

.stat-divider {
    opacity: 0;
    animation: fadeIn 0.4s ease-out forwards;
}

.stat-divider:nth-child(2) { animation-delay: 1.3s; }
.stat-divider:nth-child(4) { animation-delay: 1.5s; }

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Smooth page load */
body {
    opacity: 0;
    animation: pageLoad 0.5s ease-out 0.1s forwards;
}

@keyframes pageLoad {
    to {
        opacity: 1;
    }
}

/* ==========================================
   MEGA RESPONSIVE STYLES
   All screen sizes from 4K to small phones
   ========================================== */

/* ===== EXTRA LARGE SCREENS (4K, Ultrawide) ===== */
@media (min-width: 2560px) {
    html {
        font-size: 17px;
    }
    
    .container {
        max-width: 1600px;
    }
    
    .hero-mega-title .title-top {
        font-size: 10rem;
    }
    
    .hero-mega-title .title-bottom {
        font-size: 9rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-badge-glow {
        font-size: 1rem;
        padding: 0.75rem 1.75rem;
    }
    
    .nav-logo-img {
        height: 100px;
    }
    
    .navbar.scrolled .nav-logo-img {
        height: 80px;
    }
    
    .nav-link {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .service-card {
        padding: var(--space-xl);
    }
    
    .service-title {
        font-size: 1.15rem;
    }
    
    .game-title {
        font-size: 1rem;
    }
    
    .stats-title {
        font-size: 2.25rem;
    }
    
    .stat-card-number {
        font-size: 2.25rem;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== LARGE SCREENS (1920px) ===== */
@media (min-width: 1920px) and (max-width: 2559px) {
    html {
        font-size: 16px;
    }
    
    .container {
        max-width: 1400px;
    }
    
    .hero-mega-title .title-top {
        font-size: 8rem;
    }
    
    .hero-mega-title .title-bottom {
        font-size: 7rem;
    }
    
    .nav-logo-img {
        height: 90px;
    }
    
    .navbar.scrolled .nav-logo-img {
        height: 70px;
    }
    
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== MEDIUM-LARGE SCREENS (1440px - 1600px) ===== */
@media (min-width: 1440px) and (max-width: 1919px) {
    .container {
        max-width: 1280px;
    }
    
    .hero-mega-title .title-top {
        font-size: 7rem;
    }
    
    .hero-mega-title .title-bottom {
        font-size: 6rem;
    }
    
    .nav-logo-img {
        height: 80px;
    }
    
    .navbar.scrolled .nav-logo-img {
        height: 64px;
    }
}

/* ===== STANDARD LARGE (1200px - 1439px) ===== */
@media (min-width: 1200px) and (max-width: 1439px) {
    .hero-mega-title .title-top {
        font-size: 6rem;
    }
    
    .hero-mega-title .title-bottom {
        font-size: 5rem;
    }
}

/* ===== TABLETS & SMALL LAPTOPS (1024px - 1199px) ===== */
@media (max-width: 1199px) and (min-width: 1024px) {
    .hero-mega-title .title-top {
        font-size: 5.5rem;
    }
    
    .hero-mega-title .title-bottom {
        font-size: 4.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats-row {
        gap: var(--space-xl);
        background: rgba(0, 0, 0, 0.25);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: var(--space-lg) var(--space-2xl);
        border-radius: var(--radius-2xl);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .section-title {
        font-size: 1.85rem;
    }
    
    .stats-title {
        font-size: 1.85rem;
    }
    
    .contact-title {
        font-size: 1.65rem;
    }
}

/* ===== TABLETS (768px - 1023px) ===== */
@media (max-width: 1023px) and (min-width: 768px) {
    .nav-wrapper {
        height: 68px;
    }
    
    .nav-logo-img {
        height: 56px;
    }
    
    .navbar.scrolled .nav-logo-img {
        height: 48px;
    }
    
    .hero-mega-title .title-top {
        font-size: 4.5rem;
    }
    
    .hero-mega-title .title-bottom {
        font-size: 3.75rem;
    }
    
    .hero-badge-glow {
        font-size: 0.85rem;
        padding: 0.5rem 1.1rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-cta-group {
        flex-direction: column;
        gap: var(--space-md);
        align-items: center;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .hero-stats-row {
        flex-direction: row;
        justify-content: center;
        gap: var(--space-xl);
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: var(--space-lg) var(--space-2xl);
        border-radius: var(--radius-2xl);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .hero-stat-item {
        min-width: 120px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-name {
        font-size: 0.8rem;
    }
    
    .section-header {
        margin-bottom: var(--space-xl);
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .service-card {
        padding: var(--space-md);
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .stats-content {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-text {
        max-width: 100%;
    }
    
    .stats-title {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-wrapper {
        flex-direction: column;
        gap: var(--space-xl);
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-title {
        font-size: 1.5rem;
    }
    
    .contact-methods {
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--space-xl);
        text-align: center;
    }
    
    .footer-links {
        flex-direction: row;
        gap: var(--space-2xl);
    }
}

/* ===== LARGE PHONES (640px - 767px) ===== */
@media (max-width: 767px) and (min-width: 640px) {
    html {
        scroll-padding-top: 68px;
    }
    
    .nav-wrapper {
        height: 64px;
    }
    
    .nav-logo-img {
        height: 48px;
    }
    
    .navbar.scrolled .nav-logo-img {
        height: 42px;
    }
    
    .hero {
        min-height: 100svh;
    }
    
    .hero-mega-title .title-top {
        font-size: 3.75rem;
    }
    
    .hero-mega-title .title-bottom {
        font-size: 3.1rem;
    }
    
    .hero-badge-glow {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .separator-dot {
        display: none;
    }
    
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        padding: 0 var(--space-md);
    }
    
    .hero-btn {
        width: 100%;
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .hero-stats-row {
        flex-direction: row;
        justify-content: center;
        gap: var(--space-lg);
        background: rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: var(--space-lg) var(--space-xl);
        border-radius: var(--radius-xl);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .hero-stat-item {
        flex: 1;
        min-width: 100px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .stat-name {
        font-size: 0.7rem;
    }
    
    .section-title {
        font-size: 1.65rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .game-card {
        aspect-ratio: 16/10;
    }
    
    .game-info {
        padding: var(--space-sm) var(--space-md);
    }
    
    .game-title {
        font-size: 0.85rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .stat-card {
        padding: var(--space-md);
    }
    
    .stat-card-number {
        font-size: 1.65rem;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
    
    .contact-methods {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .contact-method {
        justify-content: center;
    }
}

/* ===== PHONES (480px - 639px) ===== */
@media (max-width: 639px) and (min-width: 480px) {
    html {
        scroll-padding-top: 60px;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
    
    .nav-wrapper {
        height: 60px;
    }
    
    .nav-logo-img {
        height: 44px;
    }
    
    .navbar.scrolled .nav-logo-img {
        height: 38px;
    }
    
    .hero {
        min-height: 100svh;
        padding: var(--space-md);
    }
    
    .hero-mega-title .title-top {
        font-size: 3rem;
    }
    
    .hero-mega-title .title-bottom {
        font-size: 2.5rem;
    }
    
    .hero-badge-glow {
        font-size: 0.75rem;
        padding: 0.45rem 0.9rem;
    }
    
    .hero-badge-glow svg {
        width: 12px;
        height: 12px;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
        flex-direction: column;
        gap: var(--space-xs);
    }
    
    .separator-dot {
        display: none;
    }
    
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-btn {
        width: 100%;
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }
    
    .hero-stats-row {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-sm);
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: var(--space-md);
        border-radius: var(--radius-xl);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .hero-stat-item {
        flex: 1;
        min-width: 90px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    .stat-name {
        font-size: 0.65rem;
    }
    
    .hero-scroll-indicator {
        display: none;
    }
    
    .section-header {
        margin-bottom: var(--space-lg);
    }
    
    .section-tag {
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.8rem;
    }
    
    .portfolio,
    .services,
    .stats-section,
    .contact {
        padding: var(--space-xl) 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .service-card {
        padding: var(--space-md);
    }
    
    .service-title {
        font-size: 1rem;
    }
    
    .service-desc {
        font-size: 0.85rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .game-card {
        aspect-ratio: 16/9;
    }
    
    .game-info {
        padding: var(--space-sm) var(--space-md);
    }
    
    .game-title {
        font-size: 0.9rem;
    }
    
    .game-stats .stat {
        font-size: 0.75rem;
    }
    
    .btn-show-more {
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .stats-title {
        font-size: 1.5rem;
    }
    
    .stats-desc {
        font-size: 0.85rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
    
    .stat-card {
        padding: var(--space-sm);
    }
    
    .stat-card-icon {
        width: 40px;
        height: 40px;
    }
    
    .stat-card-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .stat-card-number {
        font-size: 1.4rem;
    }
    
    .stat-card-label {
        font-size: 0.65rem;
    }
    
    .contact-title {
        font-size: 1.5rem;
    }
    
    .contact-desc {
        font-size: 0.85rem;
    }
    
    .contact-form {
        padding: var(--space-md);
    }
    
    .form-group label {
        font-size: 0.8rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.65rem 0.875rem;
        font-size: 0.85rem;
    }
    
    .footer {
        padding: var(--space-xl) 0 var(--space-md);
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
}

/* ===== SMALL PHONES (375px - 479px) ===== */
@media (max-width: 479px) and (min-width: 375px) {
    html {
        font-size: 14px;
        scroll-padding-top: 56px;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
    
    .nav-wrapper {
        height: 56px;
    }
    
    .nav-logo-img {
        height: 40px;
    }
    
    .navbar.scrolled .nav-logo-img {
        height: 36px;
    }
    
    .hero {
        min-height: 100svh;
    }
    
    .hero-mega-title .title-top {
        font-size: 2.5rem;
    }
    
    .hero-mega-title .title-bottom {
        font-size: 2.1rem;
    }
    
    .words-wrapper {
        height: 2.3rem;
    }
    
    .hero-badge-glow {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
        gap: 0.3rem;
    }
    
    .hero-badge-glow svg {
        width: 10px;
        height: 10px;
    }
    
    .hero-subtitle {
        font-size: 0.7rem;
    }
    
    .hero-cta-group {
        gap: var(--space-sm);
    }
    
    .hero-btn {
        padding: 0.6rem 0.875rem;
        font-size: 0.8rem;
    }
    
    .hero-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .hero-stats-row {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-sm);
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: var(--space-md);
        border-radius: var(--radius-xl);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .hero-stat-item {
        flex: 1;
        min-width: 80px;
        padding: var(--space-xs);
    }
    
    .stat-value {
        font-size: 1.1rem;
    }
    
    .stat-name {
        font-size: 0.55rem;
        letter-spacing: 0.05em;
    }
    
    .hero-scroll-indicator {
        display: none;
    }
    
    .section-tag {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }
    
    .section-tag svg {
        width: 10px;
        height: 10px;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .section-subtitle {
        font-size: 0.75rem;
    }
    
    .portfolio,
    .services,
    .stats-section,
    .contact {
        padding: var(--space-lg) 0;
    }
    
    .service-card {
        padding: var(--space-md);
    }
    
    .service-icon {
        width: 48px;
        height: 48px;
    }
    
    .service-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .service-title {
        font-size: 0.95rem;
    }
    
    .service-desc {
        font-size: 0.8rem;
    }
    
    .service-features li {
        font-size: 0.75rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .game-card {
        aspect-ratio: 16/9;
    }
    
    .game-info {
        padding: var(--space-sm) var(--space-md);
    }
    
    .game-title {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
    }
    
    .game-stats {
        gap: var(--space-md);
    }
    
    .game-stats .stat {
        font-size: 0.7rem;
    }
    
    .game-stats .stat svg {
        width: 12px;
        height: 12px;
    }
    
    .btn-show-more {
        padding: 0.6rem 1.25rem;
        font-size: 0.8rem;
    }
    
    .stats-title {
        font-size: 1.25rem;
    }
    
    .stats-desc {
        font-size: 0.8rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xs);
    }
    
    .stat-card {
        padding: var(--space-sm);
    }
    
    .stat-card-icon {
        width: 36px;
        height: 36px;
        margin-bottom: var(--space-xs);
    }
    
    .stat-card-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .stat-card-number {
        font-size: 1.25rem;
    }
    
    .stat-card-label {
        font-size: 0.6rem;
    }
    
    .contact-title {
        font-size: 1.25rem;
    }
    
    .contact-desc {
        font-size: 0.8rem;
    }
    
    .contact-methods {
        gap: var(--space-xs);
    }
    
    .contact-method {
        padding: var(--space-sm);
    }
    
    .method-icon {
        width: 36px;
        height: 36px;
    }
    
    .method-label {
        font-size: 0.6rem;
    }
    
    .method-value {
        font-size: 0.75rem;
    }
    
    .contact-form {
        padding: var(--space-sm);
    }
    
    .form-group label {
        font-size: 0.75rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.55rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .btn-full {
        padding: 0.7rem;
        font-size: 0.8rem;
    }
    
    .footer-logo-img {
        height: 40px;
    }
    
    .footer-tagline {
        font-size: 0.75rem;
    }
    
    .footer-column h4 {
        font-size: 0.8rem;
    }
    
    .footer-column li a {
        font-size: 0.75rem;
    }
    
    .social-links a {
        width: 36px;
        height: 36px;
    }
    
    .footer-bottom p,
    .footer-legal a {
        font-size: 0.7rem;
    }
}

/* ===== VERY SMALL PHONES (320px - 374px) ===== */
@media (max-width: 374px) {
    html {
        font-size: 13px;
        scroll-padding-top: 52px;
    }
    
    .container {
        padding: 0 var(--space-sm);
    }
    
    .nav-wrapper {
        height: 52px;
    }
    
    .nav-logo-img {
        height: 36px;
    }
    
    .navbar.scrolled .nav-logo-img {
        height: 32px;
    }
    
    .hero-content-wrapper {
        padding: 0 var(--space-sm);
    }
    
    .hero-mega-title .title-top {
        font-size: 2.1rem;
    }
    
    .hero-mega-title .title-bottom {
        font-size: 1.75rem;
    }
    
    .words-wrapper {
        height: 1.9rem;
    }
    
    .hero-badge-glow {
        font-size: 0.65rem;
        padding: 0.35rem 0.7rem;
    }
    
    .hero-subtitle {
        font-size: 0.65rem;
    }
    
    .hero-btn {
        padding: 0.55rem 0.75rem;
        font-size: 0.75rem;
        border-radius: var(--radius-md);
    }
    
    .hero-stats-row {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: var(--space-xs);
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: var(--space-sm) var(--space-md);
        border-radius: var(--radius-lg);
        border: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }
    
    .hero-stat-item {
        flex: 1;
        padding: var(--space-xs) 0;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .stat-name {
        font-size: 0.5rem;
        letter-spacing: 0.03em;
    }
    
    .section-tag {
        font-size: 0.6rem;
        padding: 0.25rem 0.5rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .section-subtitle {
        font-size: 0.7rem;
    }
    
    .portfolio,
    .services,
    .stats-section,
    .contact {
        padding: var(--space-md) 0;
    }
    
    .service-card {
        padding: var(--space-sm);
    }
    
    .service-icon {
        width: 40px;
        height: 40px;
    }
    
    .service-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .service-title {
        font-size: 0.9rem;
    }
    
    .service-desc,
    .service-features li {
        font-size: 0.7rem;
    }
    
    .game-info {
        padding: var(--space-xs) var(--space-sm);
    }
    
    .game-title {
        font-size: 0.75rem;
    }
    
    .game-stats .stat {
        font-size: 0.6rem;
        gap: 3px;
    }
    
    .game-stats .stat svg {
        width: 10px;
        height: 10px;
    }
    
    .btn-show-more {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
    }
    
    .stats-title {
        font-size: 1.1rem;
    }
    
    .stats-desc {
        font-size: 0.7rem;
    }
    
    .stat-card {
        padding: var(--space-xs);
    }
    
    .stat-card-icon {
        width: 32px;
        height: 32px;
    }
    
    .stat-card-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .stat-card-number {
        font-size: 1.1rem;
    }
    
    .stat-card-label {
        font-size: 0.55rem;
    }
    
    .contact-title {
        font-size: 1.1rem;
    }
    
    .contact-desc {
        font-size: 0.7rem;
    }
    
    .contact-method {
        padding: var(--space-xs);
    }
    
    .method-icon {
        width: 32px;
        height: 32px;
    }
    
    .contact-form {
        padding: var(--space-xs);
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.5rem 0.65rem;
        font-size: 0.75rem;
    }
    
    .btn-full {
        padding: 0.6rem;
        font-size: 0.75rem;
    }
    
    .footer-logo-img {
        height: 36px;
    }
    
    .footer-tagline {
        font-size: 0.7rem;
    }
}

/* ===== LANDSCAPE PHONES ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--space-3xl) 0;
    }
    
    .hero-mega-title .title-top {
        font-size: 2.5rem;
    }
    
    .hero-mega-title .title-bottom {
        font-size: 2rem;
    }
    
    .hero-badge-glow {
        margin-bottom: var(--space-sm);
    }
    
    .hero-content-wrapper {
        gap: var(--space-sm);
    }
    
    .hero-stats-row {
        flex-direction: row;
        gap: var(--space-lg);
    }
    
    .stat-divider {
        display: block;
    }
    
    .hero-scroll-indicator {
        display: none;
    }
    
    .hero-wave-container {
        height: 60px;
    }
}

/* ===== TOUCH DEVICES ===== */
@media (hover: none) and (pointer: coarse) {
    .game-card:hover {
        transform: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    }
    
    .game-card:active {
        transform: scale(0.98);
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .service-card:active {
        transform: scale(0.98);
    }
    
    .hero-btn:hover {
        transform: none;
    }
    
    .hero-btn:active {
        transform: scale(0.97);
    }
    
    .btn-show-more:hover {
        transform: none;
    }
    
    .btn-show-more:active {
        transform: scale(0.97);
        background: var(--primary);
    }
}

/* ===== HIGH DPI SCREENS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-video {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ===== SAFE AREA FOR NOTCHED PHONES ===== */
@supports (padding: max(0px)) {
    .navbar {
        padding-left: max(var(--space-md), env(safe-area-inset-left));
        padding-right: max(var(--space-md), env(safe-area-inset-right));
    }
    
    .footer {
        padding-bottom: max(var(--space-lg), env(safe-area-inset-bottom));
    }
    
    .hero {
        padding-left: max(var(--space-md), env(safe-area-inset-left));
        padding-right: max(var(--space-md), env(safe-area-inset-right));
    }
}
