/* Modern CSS Variables */
:root {
    /* Theme Colors */
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --secondary: #0EA5E9;
    --accent: #10B981;
    --success: #059669;
    --warning: #F59E0B;
    --danger: #DC2626;
    --info: #3B82F6;
    
    /* Neutral Colors */
    --dark: #111827;
    --gray-900: #111827;
    --gray-800: #1F2937;
    --gray-700: #374151;
    --gray-600: #4B5563;
    --gray-500: #6B7280;
    --gray-400: #9CA3AF;
    --gray-300: #D1D5DB;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
    --gray-50: #F9FAFB;
    --light: #F9FAFB;
    --white: #FFFFFF;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-dark: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    
    /* Spacing */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-10: 2.5rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;
    --spacing-20: 5rem;
    --spacing-24: 6rem;

    /* Border Radius */
    --radius-sm: 0.125rem;
    --radius: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    --radius-full: 9999px;

/* Responsive Breakpoints and Base Styles */
:root {
    /* Screen size breakpoints */
    --mobile: 480px;
    --tablet: 768px;
    --laptop: 1024px;
    --desktop: 1200px;
    --large-desktop: 1440px;

    /* Container max-widths */
    --container-mobile: 100%;
    --container-tablet: 720px;
    --container-laptop: 960px;
    --container-desktop: 1140px;
    --container-large: 1320px;

    /* Responsive font sizes */
    --font-size-base: 16px;
    --font-size-large: 1.25rem;
    --font-size-xlarge: 1.5rem;
    --font-size-xxlarge: 2rem;
    --font-size-huge: 3rem;
    
    /* Responsive spacing */
    --spacing-base: 1rem;
    --spacing-large: 2rem;
    --spacing-xlarge: 4rem;
}
    --primary-color: #1E90FF;    /* Bright blue */
    --secondary-color: #104E8B;  /* Darker blue */
    --accent-color: #4F4F4F;     /* Grey */
    --text-color: #2C2C2C;       /* Dark grey for text */
    --light-text: #FFFFFF;       /* White */
    --background: #F5F5F5;       /* Light grey background */
    --dark-background: #1C1C1C;  /* Almost black */
    --card-background: #FFFFFF;  /* White */
    --nav-background: rgba(28, 28, 28, 0.95); /* Dark navbar */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: -webkit-fill-available; /* Fix for mobile Safari */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--dark);
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--nav-background);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    height: 4rem;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

@media (max-width: 768px) {
    .navbar-collapse {
        position: fixed;
        top: 3.5rem;
        left: 0;
        right: 0;
        background: var(--nav-background);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 1rem;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }

    .navbar-collapse.show {
        transform: translateY(0);
    }

    .navbar-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-item {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        padding: 0.5rem 1rem;
        display: block;
        width: 100%;
    }

    .navbar .btn {
        width: 100%;
        margin-top: 0.5rem;
    }
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--light-text);
    font-weight: 500;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 10rem 2rem 6rem 2rem; /* Increased top padding */
    background: linear-gradient(135deg, var(--dark-background) 0%, var(--secondary-color) 100%);
    margin-top: -4rem;
    position: relative;
    overflow: visible; /* Changed from hidden to allow text to be fully visible */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(30, 144, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.hero-content {
    flex: 1;
    max-width: 800px; /* Increased max-width */
    padding-right: 2rem;
    position: relative;
    z-index: 1;
    margin-top: 2rem; /* Added margin to push content down slightly */
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    word-wrap: break-word; /* Ensure text wraps properly */
    max-width: 100%; /* Ensure text stays within container */
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--light-text);
    opacity: 0.9;
    max-width: 500px;
    line-height: 1.8;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-container {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.preview-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.cta-button.primary {
    background: var(--primary-color);
    color: white;
}

.cta-button.primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-button.secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-background);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-background);
}

/* Games Section */
.games-section {
    background: var(--gray-50);
    padding: 5rem 0;
    overflow: hidden;
}

/* Swiper Carousel Styles */
.games-carousel {
    padding: 2rem 1rem;
    margin: -1rem;
}

.swiper-slide {
    height: auto;
    padding: 1rem;
}

/* Game Cards */
.game-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.game-preview {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.game-preview img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-preview img {
    transform: scale(1.05);
}

/* Game Badge */
.game-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 2;
}

/* Game Stats */
.game-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.stat i {
    color: var(--primary);
}

/* Coming Soon Overlay */
.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    z-index: 1;
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary);
    background: var(--white);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.25rem;
}

/* Swiper Pagination */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--gray-300);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--primary);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .games-carousel {
        padding: 1rem 0;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }

    .game-card {
        margin: 0;
    }

    .game-preview {
        padding-top: 75%; /* 4:3 Aspect Ratio for mobile */
    }
}

/* Community Section */
.community {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--dark-background) 0%, var(--secondary-color) 100%);
    color: var(--light-text);
}

.community h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.community-content {
    max-width: 1200px;
    margin: 0 auto;
}

.community-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card i {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.community-cta {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.community-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.community-cta p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Call to Action Section */
.cta {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta p {
    margin-bottom: 2rem;
    font-size: 1.25rem;
}

/* Footer */
footer {
    background: var(--dark-background);
    color: var(--light-text);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section a {
    color: var(--light-text);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    font-size: 1.5rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Container and Layout Fixes */
.container {
    width: 100%;
    padding-right: var(--spacing-4);
    padding-left: var(--spacing-4);
    margin-right: auto;
    margin-left: auto;
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .container {
        padding-right: var(--spacing-2);
        padding-left: var(--spacing-2);
    }
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Fix horizontal scrolling */
.row {
    margin-right: 0;
    margin-left: 0;
}

[class*="col-"] {
    padding-right: var(--spacing-4);
    padding-left: var(--spacing-4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        height: 3.5rem; /* Slightly smaller navbar on mobile */
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 5rem 1rem 2rem 1rem; /* Reduced padding */
        min-height: 100vh;
        margin-top: 0;
    }

    .hero-content {
        padding: 0;
        margin: 0 auto;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.5rem;
        padding: 0;
        margin: 1rem 0;
        line-height: 1.1;
    }

    .hero p {
        font-size: 1rem;
        margin: 1rem 0;
        padding: 0 1rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .btn {
        width: 100%;
        margin: 0;
    }

    .features {
        padding: 4rem 1rem;
    }

    .features h2 {
        font-size: 2rem;
    }

    .nav-container {
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }
}

/* Modern Utility Classes */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Modern Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-in {
    animation: slideIn 0.6s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Animation Delays */
.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

/* Interactive Elements */
.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.feature-icon-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    top: 0;
    left: -100%;
    transition: 0.5s;
}

.feature-icon-wrapper:hover::before {
    left: 100%;
}

/* Card Styles */
.modern-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-6);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.modern-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

/* Button Styles */
.btn-modern {
    padding: var(--spacing-3) var(--spacing-6);
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.btn-modern:hover::before {
    transform: translateX(100%);
}

/* Loading States */
.loading-shimmer {
    background: linear-gradient(90deg, 
        var(--gray-100) 0%, 
        var(--gray-200) 50%, 
        var(--gray-100) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}
