/* ====================================
   CSS Variables & Reset
   ==================================== */
:root {
    --color-primary: #667eea;
    --color-primary-dark: #5a67d8;
    --color-secondary: #764ba2;
    --color-accent: #15aabf;
    --color-dark: #1a202c;
    --color-dark-lighter: #2d3748;
    --color-light: #f7fafc;
    --color-text: #4a5568;
    --color-text-light: #718096;
    --color-border: #e2e8f0;
    
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-dark: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12), 0 5px 10px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    
    --border-radius: 12px;
    --border-radius-lg: 20px;
    
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-space: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* ====================================
   Typography
   ==================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-space);
    color: var(--color-dark);
    line-height: 1.2;
    font-weight: 700;
}

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

/* ====================================
   Container & Layout
   ==================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====================================
   Brand Section
   ==================================== */
.brand-section {
    margin-bottom: 40px;
    opacity: 0;
    animation: slideInUp 1s ease 0.3s forwards;
}

.brand-title {
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
    letter-spacing: -2px;
    font-family: var(--font-space);
    line-height: 0.95;
}

.brand-subtitle {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    font-family: var(--font-inter);
    margin-bottom: 20px;
}

.brand-footnote {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 40px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
}

/* Navbar styles removed - no longer needed */

/* ====================================
   Enhanced Animations & Effects
   ==================================== */
.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.interactive-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(10px);
    animation: float 15s infinite ease-in-out;
}

.orb-1 {
    width: 120px;
    height: 120px;
    top: 20%;
    left: 15%;
    animation-delay: -2s;
}

.orb-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 20%;
    animation-delay: -8s;
}

.orb-3 {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 70%;
    animation-delay: -5s;
}

/* Hero stats removed - no longer needed */

.typewriter {
    overflow: hidden;
    border-right: 3px solid white;
    white-space: nowrap;
    animation: typewriter 2s steps(30, end) 1s forwards, blink-caret 1s step-end infinite 3s;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: white; }
}

/* fade-in-delay class - no longer used */

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

.pulse-on-hover:hover {
    animation: pulse 0.6s ease-in-out;
}

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

.btn-secondary {
    background: rgba(30, 30, 40, 0.8);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    margin-left: 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
    background: rgba(20, 20, 30, 0.95);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.shape-5 {
    width: 80px;
    height: 80px;
    top: 10%;
    right: 30%;
    animation: float 22s infinite ease-in-out reverse;
}

.shape-6 {
    width: 120px;
    height: 120px;
    bottom: 10%;
    left: 30%;
    animation: float 28s infinite ease-in-out;
}

/* Gaming Metrics Section - Removed */

/* ====================================
   Enhanced Game Cards
   ==================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: var(--gradient-dark);
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.animated-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(270deg, #667eea, #764ba2, #4c6ef5, #228be6, #15aabf);
    background-size: 800% 800%;
    animation: gradientShift 20s ease infinite;
    opacity: 0.9;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -100px;
    animation: float 20s infinite ease-in-out;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    right: -50px;
    animation: float 15s infinite ease-in-out reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 10%;
    animation: float 25s infinite ease-in-out;
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    right: 20%;
    animation: float 18s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(0) rotate(180deg); }
    75% { transform: translateY(20px) rotate(270deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 20px 80px;
    max-width: 900px;
    animation: slideInUp 0.8s ease;
}

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

.hero-footnote {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 20px;
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.title-line {
    display: block;
    color: white;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Removed hero-subtitle as it's now brand-footnote */

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-bottom: 3px solid white;
    border-right: 3px solid white;
    transform: rotate(45deg);
    opacity: 0.7;
}

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

/* ====================================
   Buttons
   ==================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    color: #764ba2;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.5);
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    color: #667eea;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-icon {
    transition: transform var(--transition-fast);
}

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

.btn-game {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    padding: 10px 20px;
    font-size: 0.95rem;
    margin-top: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-game:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ====================================
   Games Section
   ==================================== */
.games-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f6f8fb 0%, #ffffff 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

/* ====================================
   Game Cards
   ==================================== */
.game-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.game-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.2);
}

.game-card:hover::before {
    transform: scaleX(1);
}

.game-card:active {
    transform: translateY(-8px) scale(0.98);
    transition: transform 0.1s ease;
}

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

.game-thumbnail {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.game-thumbnail-guess {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.game-thumbnail-guess::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: transform 0.6s ease;
    opacity: 0;
}

.game-card:hover .game-thumbnail-guess::before {
    transform: rotate(45deg) translateX(100%);
    opacity: 1;
}

.game-thumbnail-light {
    background: linear-gradient(135deg, #4c6ef5 0%, #228be6 100%);
    position: relative;
    overflow: hidden;
}

.game-thumbnail-light::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: transform 0.6s ease;
    opacity: 0;
}

.game-card:hover .game-thumbnail-light::before {
    transform: rotate(45deg) translateX(100%);
    opacity: 1;
}

.game-icon {
    z-index: 1;
    animation: gentlePulse 3s infinite;
    transition: all var(--transition-base);
}

.game-card:hover .game-icon {
    animation: none;
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

@keyframes gentlePulse {
    0%, 100% { 
        transform: scale(1); 
        filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
    }
    50% { 
        transform: scale(1.02); 
        filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.3));
    }
}

.game-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.game-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.game-title {
    font-size: 1.75rem;
    margin-bottom: 12px;
    color: var(--color-dark);
}

.game-description {
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 24px;
    flex: 1;
}

.game-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--color-light);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--color-text);
}

.feature-icon {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
}

.game-stats {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 24px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ====================================
   Features Section
   ==================================== */
.features-section {
    padding: 100px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--color-light);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: white;
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.feature-large-icon {
    color: white;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.feature-description {
    color: var(--color-text);
    line-height: 1.6;
}

/* ====================================
   Footer
   ==================================== */
.footer {
    background: var(--color-dark);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 32px;
    height: 32px;
}

.footer-brand-name {
    font-family: var(--font-space);
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* ====================================
   Responsive Design
   ==================================== */
@media (max-width: 768px) {
    .brand-title {
        font-size: 3.5rem;
    }
    
    .brand-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .brand-title {
        font-size: 2.5rem;
    }
    
    .brand-subtitle {
        font-size: 1.1rem;
    }
    
    .game-card-content {
        padding: 20px;
    }
    
    .game-title {
        font-size: 1.5rem;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
}

/* ====================================
   Animations on Scroll
   ==================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ====================================
   Enhanced Loading States & Animations
   ==================================== */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

.skeleton {
    background: linear-gradient(
        to right,
        #f0f0f0 8%,
        #f8f8f8 18%,
        #f0f0f0 33%
    );
    background-size: 800px 100px;
    animation: shimmer 1.5s infinite linear;
}

/* Modern Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(102, 126, 234, 0.1);
    border-left: 4px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Staggered Loading Animation */
.stagger-loading {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.stagger-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-primary);
    animation: staggerBounce 1.4s ease-in-out infinite both;
}

.stagger-dot:nth-child(1) { animation-delay: -0.32s; }
.stagger-dot:nth-child(2) { animation-delay: -0.16s; }
.stagger-dot:nth-child(3) { animation-delay: 0; }

@keyframes staggerBounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* Content Loading States */
.content-loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.content-loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Ripple Effect */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    
    .orb {
        display: none; /* Hide orbs on mobile for better performance */
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
    
    .btn-secondary {
        margin-left: 0;
    }
}