/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: linear-gradient(135deg, #000000 0%, #070b17 35%, #0b132b 65%, #000000 100%);
    --neon-blue: #00d4ff; /* electric blue */
    --neon-purple: #00ff88; /* repurposed as neon green */
    --neon-pink: #00aaff;   /* repurposed as secondary blue */
    --neon-cyan: #08e0d0;   /* cyan accent */
    --text-white: #ffffff;
    --text-gray: #cfe6f3;
    --text-dark: #0b1220;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(0, 255, 136, 0.25); /* green glow border */
    --glow-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    --glow-shadow-purple: 0 0 20px rgba(0, 255, 136, 0.5); /* green glow */
    --glow-shadow-pink: 0 0 20px rgba(0, 170, 255, 0.5);   /* blue glow */
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--primary-bg);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background Particles */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--neon-blue);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    opacity: 0.6;
}

.particle:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 20%; left: 80%; animation-delay: 1s; }
.particle:nth-child(3) { top: 60%; left: 20%; animation-delay: 2s; }
.particle:nth-child(4) { top: 80%; left: 70%; animation-delay: 3s; }
.particle:nth-child(5) { top: 40%; left: 90%; animation-delay: 4s; }
.particle:nth-child(6) { top: 90%; left: 30%; animation-delay: 5s; }
.particle:nth-child(7) { top: 30%; left: 60%; animation-delay: 0.5s; }
.particle:nth-child(8) { top: 70%; left: 10%; animation-delay: 1.5s; }
.particle:nth-child(9) { top: 15%; left: 40%; animation-delay: 2.5s; }
.particle:nth-child(10) { top: 85%; left: 80%; animation-delay: 3.5s; }
.particle:nth-child(11) { top: 50%; left: 50%; animation-delay: 4.5s; }
.particle:nth-child(12) { top: 25%; left: 85%; animation-delay: 5.5s; }
.particle:nth-child(13) { top: 75%; left: 40%; animation-delay: 0.8s; }
.particle:nth-child(14) { top: 35%; left: 15%; animation-delay: 1.8s; }
.particle:nth-child(15) { top: 95%; left: 60%; animation-delay: 2.8s; }

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-20px) translateX(10px);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px) translateX(-10px);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-30px) translateX(5px);
        opacity: 1;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 8, 20, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    z-index: 1000;
    padding: 1rem 0;
}

/* Authentication Buttons */
.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.auth-btn {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
    color: var(--text-dark);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    display: inline-block;
}

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

.login-btn {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
}

.register-btn {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, rgba(5, 8, 20, 0.95), rgba(11, 19, 43, 0.95));
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: var(--glow-shadow);
    animation: slideUp 0.3s ease;
}

.close {
    color: var(--neon-blue);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--neon-cyan);
}

.modal h2 {
    color: var(--neon-blue);
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.form-group input::placeholder {
    color: rgba(207, 230, 243, 0.6);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
    color: var(--text-dark);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.form-switch {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--text-gray);
}

.form-switch a {
    color: var(--neon-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-switch a:hover {
    color: var(--neon-cyan);
    text-decoration: underline;
}

/* Modal Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Player Dashboard Styles */
.player-dashboard {
    padding: 120px 0 80px 0;
    background: var(--primary-bg);
}

.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-title {
    color: var(--neon-blue);
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.dashboard-subtitle {
    color: var(--text-gray);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.logout-btn {
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.5);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-shadow-purple);
    border-color: rgba(0, 255, 136, 0.4);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neon-purple);
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', monospace;
}

.stat-label {
    color: var(--text-gray);
    font-size: 1rem;
    font-weight: 500;
}

/* Dashboard Game Cards */
.dashboard-games-grid .parent {
    position: relative;
}

.dashboard-games-grid .card {
    position: relative;
    overflow: hidden;
}

.dashboard-games-grid .see-more {
    display: none;
}

.dashboard-games-grid .content-box {
    padding-bottom: 2rem;
}

.progress-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.play-now-btn {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    color: var(--text-dark);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

.play-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-shadow-purple);
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .auth-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    
    .dashboard-title {
        font-size: 2rem;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
        width: 95%;
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .logo-text {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-blue);
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
    }
    to {
        text-shadow: 0 0 40px rgba(0, 212, 255, 1), 0 0 60px rgba(0, 212, 255, 0.6);
    }
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.highlight {
    color: var(--neon-cyan);
    font-weight: 600;
    text-shadow: 0 0 10px var(--neon-cyan);
}

/* CTA Button */

.hero-btn {
    /* in scss with just one variable i can change opacity with rgba(variable, opacity) but in css it's not possible so i have used three seperate variables */
    /* with hue-rotate color can be changed */
    --main-color: rgb(46, 213, 115);
    --main-bg-color: rgba(46, 213, 116, 0.36);
    --pattern-color: rgba(46, 213, 116, 0.073);
  
    /* change this rotation value */
    filter: hue-rotate(0deg);
  
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5rem;
    background: radial-gradient(
        circle,
        var(--main-bg-color) 0%,
        rgba(0, 0, 0, 0) 95%
      ),
      linear-gradient(var(--pattern-color) 1px, transparent 1px),
      linear-gradient(to right, var(--pattern-color) 1px, transparent 1px);
    background-size:
      cover,
      15px 15px,
      15px 15px;
    background-position:
      center center,
      center center,
      center center;
    border-image: radial-gradient(
        circle,
        var(--main-color) 0%,
        rgba(0, 0, 0, 0) 100%
      )
      1;
    border-width: 1px 0 1px 0;
    color: var(--main-color);
    padding: 1rem 3rem;
    font-weight: 700;
    font-size: 1.5rem;
    transition: background-size 0.2s ease-in-out;
    border: none;
    outline: none;
    position: relative;
    z-index: 10;
}

.hero-btn:hover {
    background-size:
      cover,
      10px 10px,
      10px 10px;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 213, 115, 0.4);
}

.hero-btn:active {
    filter: hue-rotate(250deg);
    transform: translateY(0);
}

.hero-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}


.cta-button {
    position: relative;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--glow-shadow);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.6);
}

.cta-button:active {
    transform: translateY(-1px);
}

.button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover .button-glow {
    left: 100%;
}

/* Floating Shapes */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-shapes {
    position: relative;
    width: 300px;
    height: 300px;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    opacity: 0.3;
    animation: floatShape 4s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 20%;
    animation-delay: 1s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(-10px) rotate(240deg);
    }
}

/* Games Section */
.games-section {
    padding: 6rem 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 0 2rem; */
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 1s ease-out;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Exactly 4 columns */
    gap: 2rem;
    max-width: 1400px; /* Ensure proper width for 4 cards */
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.game-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--neon-purple);
    box-shadow: var(--glow-shadow-purple);
}

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

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

.card-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

.card-description {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.reward-badge {
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-purple));
    color: var(--text-white);
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    display: inline-block;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.4);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

/* Play Button */
.play-button {
    position: relative;
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-pink));
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--glow-shadow-pink);
}

.play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.6);
}

.play-button:active {
    transform: translateY(0);
}

.play-button .button-glow {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.play-button:hover .button-glow {
    left: 100%;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.about-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-description {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.taglines-section {
    margin-bottom: 3rem;
}

.taglines-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.taglines-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.tagline-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tagline-item:hover {
    border-color: var(--neon-pink);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.35);
    transform: translateY(-2px);
}

.tagline-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

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

.stat-number {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: 0 0 15px var(--neon-cyan);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-gray);
    font-weight: 500;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    padding: 2rem 0;
    text-align: center;
}

.footer-logo .logo-text {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.2rem;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-text {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Auth Section */
.auth-section { padding: 60px 0; }
.auth-section h2 { font-family: Orbitron, sans-serif; margin-bottom: 20px; }
.auth-form { max-width: 400px; display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.auth-form input { padding: 10px 14px; border: 1px solid #2d2f36; background:#12141b; color:#fff; border-radius:6px; }
.auth-btn { padding: 12px 18px; background:linear-gradient(90deg,#5b5ff7,#8a5bff); border:none; color:#fff; font-weight:600; cursor:pointer; border-radius:8px; }
.auth-btn:hover { filter:brightness(1.1); }
.switch-text { font-size: 0.9rem; }
.switch-text a { color:#8a5bff; }

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-visual {
        height: 250px;
    }
    
    .floating-shapes {
        width: 200px;
        height: 200px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .game-card {
        padding: 1.5rem;
    }
    
    .taglines-grid {
        gap: 1rem;
    }
    
    .tagline-text {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Testimonials responsive */
    .testimonials-section .section-title {
        font-size: 2rem;
    }
    
    .testimonials-container {
        height: 240px;
    }
    
    .testimonial-card {
        width: 280px;
        height: 200px;
        padding: 1.2rem;
    }
    
    .testimonials-track {
        width: calc(280px * 14);
        gap: 1rem;
        padding: 1rem;
    }
    
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-280px * 7));
        }
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 1rem 0;
    }
    
    .games-section,
    .about-section {
        padding: 4rem 0;
    }
    
    .cta-button,
    .play-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Testimonials responsive for small screens */
    .testimonials-section {
        padding: 2rem 0;
    }
    
    .testimonials-section .section-title {
        font-size: 1.8rem;
    }
    
    .testimonials-section .section-subtitle {
        font-size: 1rem;
    }
    
    .testimonials-container {
        height: 200px;
    }
    
    .testimonial-card {
        width: 260px;
        height: 180px;
        padding: 1rem;
    }
    
    .profile-pic {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .profile-name {
        font-size: 0.9rem;
    }
    
    .profile-role {
        font-size: 0.7rem;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
    }
    
    .testimonials-track {
        width: calc(260px * 14);
        gap: 0.8rem;
        padding: 0.8rem;
    }
    
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-260px * 7));
        }
    }
}

/* Scroll Animations */
.game-card,
.section-header,
.about-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.game-card.animate,
.section-header.animate,
.about-content.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* 3D Game Cards */
.games-grid .parent {
    width: 300px;
    height: 400px; /* Fixed height for all cards */
    padding: 20px;
    perspective: 1000px;
    margin: 0 auto; /* Center cards in grid */
}

.games-grid .card {
    padding-top: 50px;
    border: 3px solid #141414;
    transform-style: preserve-3d;
    background: linear-gradient(135deg, #0000 18.75%, #f3f3f3 0 31.25%, #0000 0), repeating-linear-gradient(45deg, #f3f3f3 -6.25% 6.25%, #141414 0 18.75%);
    background-size: 60px 60px;
    background-position: 0 0, 0 0;
    background-color: #141414;
    width: 100%;
    height: 100%; /* Full height of parent */
    box-shadow: rgba(142, 142, 142, 0.3) 0px 30px 30px -10px;
    transition: all 0.5s ease-in-out;
    position: relative;
}

.games-grid .card:hover {
    background-position: -100px 100px, -100px 100px;
    transform: rotate3d(0.5, 1, 0, 30deg);
}

.games-grid .content-box {
    background: #8ed500;
    padding: 60px 25px 25px 25px;
    transform-style: preserve-3d;
    height: calc(100% - 85px); /* Account for padding and date-box */

    /* These flex properties correctly structure the content */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.games-grid .content-box .card-title {
    display: inline-block;
    text-align: left;
    color: #141414;
    font-size: 24px;
    font-weight: 900;
    /* IMPROVEMENT: Transition only the 'transform' property for better performance. */
    transition: transform 0.5s ease-in-out;
    transform: translate3d(0px, 0px, 50px);
    margin-bottom: 5px;
    line-height: 1.2;
}

.games-grid .content-box .card-title:hover {
    transform: translate3d(0px, 0px, 60px);
}

.games-grid .content-box .card-content {
    margin-top: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #141414;
    /* IMPROVEMENT: Transition only the 'transform' property. */
    transition: transform 0.5s ease-in-out;
    transform: translate3d(0px, 0px, 30px);
    line-height: 1.4;
    flex-grow: 1; /* Correctly takes up remaining space */
    display: flex;
    align-items: center;
}

.games-grid .content-box .card-content:hover {
    transform: translate3d(0px, 0px, 60px);
}

.games-grid .content-box .see-more {
    /* --- Previous positioning styles --- */
    position: absolute;
    bottom: -25px;
    left: 25px;

    /* --- Further Increased Size --- */
    font-size: 14px;          /* INCREASED: from 12px */
    padding: 0.8rem 1.5rem;     /* INCREASED: from 0.8rem 1.5rem */

    /* --- Other styles remain the same --- */
    cursor: pointer;
    display: inline-block;
    font-weight: 900;
    text-transform: uppercase;
    color: #8ed500;
    background: #141414;
    transition: transform 0.5s ease-in-out;
    transform: translate3d(0px, 0px, 20px);
}


.games-grid .content-box .see-more:hover {
    transform: translate3d(0px, 0px, 60px);
}

.games-grid .date-box {
    position: absolute;
    top: 30px;
    right: 30px;
    
    /* REMOVED: Fixed width and height that prevent resizing */
    /* height: 60px; */
    /* width: 60px; */

    /* ADDED: Use flexbox to center the content */
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    /* REPLACED: Control size with padding using 'em' units. */
    /* This padding will scale with the font size. */
    padding: 0.8em 1.2em;
    
    background: #141414;
    border: 1px solid #8ed500;
    border-radius: 8px; /* Added for a softer look */
    transform: translate3d(0px, 0px, 80px);
    box-shadow: rgba(100, 100, 111, 0.2) 0px 17px 10px -10px;
}

.games-grid .date-box span {
    display: block;
    text-align: center;
    line-height: 1.1; /* Adjust line height for tighter spacing */
}

.games-grid .date-box .month {
    color: #8ed500;
    font-size: 0.8em; /* Using 'em' for scalability */
    font-weight: 700;
    text-transform: uppercase;
}

.games-grid .date-box .date {
    font-size: 1.8em; /* Using 'em' for scalability */
    font-weight: 900;
    color: #8ed500;
}

@media (max-width: 480px) {
  .games-grid .content-box { padding: 50px 18px 18px 18px; }
  .games-grid .content-box .card-title { font-size: 20px; }
  .games-grid .content-box .card-content { font-size: 13px; }
}

/* Hero Animation */
.hero-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    z-index: 2;
    position: relative;
}

.hero-animation dotlottie-wc {
    filter: drop-shadow(0 0 20px rgba(0, 234, 255, 0.3));
    transition: all 0.3s ease;
}

.hero-animation dotlottie-wc:hover {
    filter: drop-shadow(0 0 30px rgba(0, 234, 255, 0.6));
    transform: scale(1.05);
}

/* Responsive adjustments for hero animation */
@media (max-width: 768px) {
    .hero-animation dotlottie-wc {
        width: 200px !important;
        height: 200px !important;
    }
}

@media (max-width: 480px) {
    .hero-animation dotlottie-wc {
        width: 150px !important;
        height: 150px !important;
    }
}

/* Responsive Design for Games Grid */
@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr); /* Keep 4 columns */
        gap: 1.5rem;
        max-width: 1200px;
    }
    
    .games-grid .parent {
        width: 100%;
        max-width: 280px;
        margin: 0;
    }
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
        gap: 1.5rem;
        max-width: 800px;
    }
    
    .games-grid .parent {
        width: 100%;
        max-width: 320px;
        height: 380px; /* Slightly smaller height on mobile */
        margin: 0 auto;
    }
    
    .games-grid .content-box .card-title {
        font-size: 22px;
    }
    
    .games-grid .content-box .card-content {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
        gap: 1rem;
        max-width: 400px;
    }
    
    .games-grid .parent {
        width: 100%;
        max-width: 300px;
        height: 360px; /* Even smaller height on very small screens */
        margin: 0 auto;
    }
    
    .games-grid .content-box .card-title {
        font-size: 20px;
    }
    
    .games-grid .content-box .card-content {
        font-size: 10px;
    }
    
    .games-grid .date-box {
        height: 50px;
        width: 50px;
        top: 25px;
        right: 25px;
    }
}

/* Infinite Moving Testimonials */
.testimonials-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(7, 11, 23, 0.9));
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(0, 255, 136, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.testimonials-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.testimonials-section .section-title {
    color: var(--neon-blue);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 20px var(--neon-blue);
    animation: glow 2s ease-in-out infinite alternate;
}

.testimonials-section .section-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.testimonials-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.1);
    position: relative;
    z-index: 1;
}

.testimonials-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.05), transparent);
    animation: containerGlow 3s ease-in-out infinite;
}

@keyframes containerGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.testimonials-track {
    display: flex;
    width: calc(320px * 14); /* 7 cards × 2 sets */
    animation: scroll 40s linear infinite;
    gap: 1.5rem;
    padding: 1.5rem;
}

.testimonial-card {
    flex-shrink: 0;
    width: 300px;
    height: 240px;
    background: linear-gradient(135deg, var(--card-bg), rgba(0, 212, 255, 0.1));
    border: 2px solid var(--neon-blue);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
    transition: left 0.8s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
    border-color: var(--neon-cyan);
}

.testimonial-card:hover::before {
    left: 100%;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 136, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover::after {
    opacity: 1;
}

.testimonial-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.testimonial-profile {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.profile-pic {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    border: 2px solid rgba(0, 212, 255, 0.5);
    animation: profileGlow 3s ease-in-out infinite;
}

@keyframes profileGlow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
        border-color: rgba(0, 212, 255, 0.5);
    }
    50% { 
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
        border-color: rgba(0, 212, 255, 0.8);
    }
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.profile-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.profile-role {
    font-size: 0.8rem;
    color: var(--neon-purple);
    font-weight: 500;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}



.testimonial-text {
    font-size: 1rem;
    color: var(--text-white);
    line-height: 1.6;
    font-style: italic;
    flex-grow: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    padding: 0.5rem 0;
}



.testimonial-rating {
    font-size: 0.9rem;
    color: var(--neon-purple);
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-320px * 7)); /* Move by first set width */
    }
}

/* Pause animation on hover */
.testimonials-container:hover .testimonials-track {
    animation-play-state: paused;
}

/* Enhanced testimonial card animations */
.testimonial-card {
    animation: cardFloat 4s ease-in-out infinite;
    opacity: 1;
}

.testimonial-card:nth-child(even) {
    animation-delay: 2s;
}

.testimonial-card:nth-child(3n) {
    animation-delay: 1s;
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Testimonial card entrance animation */
.testimonial-card {
    animation: cardEntrance 0.8s ease-out forwards, cardFloat 4s ease-in-out infinite 0.8s;
}

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8) rotate(-2deg);
    }
    50% {
        opacity: 0.7;
        transform: translateY(15px) scale(0.9) rotate(-1deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

/* Testimonial card interaction states */
.testimonial-card:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Testimonial card focus styles for accessibility */
.testimonial-card:focus {
    outline: 3px solid var(--neon-blue);
    outline-offset: 3px;
}

/* Testimonial card loading animation */
.testimonials-track {
    animation: scroll 40s linear infinite, trackGlow 5s ease-in-out infinite;
}

@keyframes trackGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
    }
}

/* Login Prompt Modal */
.login-prompt-modal .login-prompt-content {
    background: var(--card-bg);
    border: 1px solid var(--neon-blue);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 400px;
    backdrop-filter: blur(10px);
    box-shadow: var(--glow-shadow);
}

.login-prompt-modal .login-prompt-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

.login-prompt-modal h3 {
    color: var(--neon-blue);
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--neon-blue);
}

.login-prompt-modal p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.login-prompt-modal .login-prompt-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.login-prompt-modal .auth-btn {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
    color: var(--text-dark);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.login-prompt-modal .auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-shadow);
}

.login-prompt-modal .cancel-btn {
    background: linear-gradient(135deg, #666, #888);
    color: var(--text-white);
}

.login-prompt-modal .cancel-btn:hover {
    background: linear-gradient(135deg, #777, #999);
}

/* Login Required Message */
.login-required-message {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    margin: 2rem auto;
    max-width: 600px;
}

.login-required-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.login-required-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.login-required-content h3 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--neon-blue);
    margin-bottom: 0.5rem;
}

.login-required-content p {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.login-required-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.login-required-buttons .auth-btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    z-index: 3000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    word-wrap: break-word;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.notification-success {
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    color: #0b1220;
}

.notification-error {
    background: linear-gradient(135deg, #ff4757, #ff3742);
}

.notification-info {
    background: linear-gradient(135deg, #00d4ff, #08e0d0);
    color: #0b1220;
}