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

:root {
    --primary: #6610f2;
    --secondary: #fd7e14;
    --accent: #20c997;
    --dark: #141432;
    --darker: #0a0a24;
    --light: #e6e6ff;
    --gradient: linear-gradient(120deg, #6610f2, #6f42c1);
    --glass: rgba(20, 20, 50, 0.7);
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(102, 16, 242, 0.2) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(32, 201, 151, 0.15) 0%, transparent 25%);
    background-attachment: fixed;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
header {
    padding: 1.5rem 0;
    position: static;
    width: 100%;
    transition: all 0.4s ease;
}

header.scrolled {
    background: var(--glass);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

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

.logo {
    font-family: 'Exo 2', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
}

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

.main-nav a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    position: relative;
    padding: 0.5rem 0;
}

.main-nav a:hover {
    color: var(--accent);
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

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

.cta-button {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Exo 2', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(102, 16, 242, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 16, 242, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 0.5rem 2rem 6rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    padding-right: 2rem;
}

.hero-subtitle {
    color: var(--accent);
    font-family: 'Exo 2', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero h1 {
    font-family: 'Exo 2', sans-serif;
    font-weight: 900;
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero h1 span {
    color: var(--primary);
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: rgba(230, 230, 255, 0.8);
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.primary-btn, .secondary-btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Exo 2', sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.primary-btn {
    background: var(--gradient);
    color: white;
    box-shadow: 0 8px 20px rgba(102, 16, 242, 0.3);
}

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

.primary-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(102, 16, 242, 0.4);
}

.secondary-btn:hover {
    background: rgba(102, 16, 242, 0.1);
    transform: translateY(-5px);
}

.hero-image-container {
    position: relative;
}

.floating-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
    border: 4px solid rgba(255, 255, 255, 0.1);
}

.cosmic-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.6;
    animation: twinkle 3s infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 20%;
    animation-delay: 0.3s;
}

.particle:nth-child(3) {
    top: 40%;
    left: 60%;
    animation-delay: 0.6s;
}

.particle:nth-child(4) {
    top: 10%;
    left: 80%;
    animation-delay: 0.9s;
}

.particle:nth-child(5) {
    top: 80%;
    left: 85%;
    animation-delay: 1.2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* Features Section */
.features-section {
    padding: 8rem 2rem;
    background-color: var(--darker);
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-family: 'Exo 2', sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    color: var(--light);
}

.section-header h2::after {
    content: '';
    position: absolute;
    height: 5px;
    width: 80px;
    background: var(--gradient);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
}

.section-header p {
    max-width: 700px;
    margin: 1.5rem auto 0;
    color: rgba(230, 230, 255, 0.7);
    font-size: 1.1rem;
}

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

.feature-card {
    background: var(--glass);
    border-radius: 15px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(102, 16, 242, 0.05), rgba(32, 201, 151, 0.05));
    z-index: -1;
    transition: all 0.4s ease;
    opacity: 0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(102, 16, 242, 0.3);
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    background: rgba(102, 16, 242, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.feature-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.feature-desc {
    color: rgba(230, 230, 255, 0.7);
    line-height: 1.6;
}

/* Games Showcase */
.games-section {
    padding: 8rem 2rem;
    position: relative;
}

.games-container {
    max-width: 1400px;
    margin: 0 auto;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.game-card {
    background: var(--glass);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.game-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

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

.game-details {
    padding: 1.5rem;
}

.game-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.game-category {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-desc {
    color: rgba(230, 230, 255, 0.7);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.game-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.game-link:hover {
    color: var(--accent);
}

/* Footer */
footer {
    background-color: var(--darker);
    padding: 5rem 2rem 2rem;
    position: relative;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.footer-logo {
    font-family: 'Exo 2', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    color: var(--light);
    margin-bottom: 1.5rem;
}

.footer-desc {
    color: rgba(230, 230, 255, 0.6);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-heading {
    font-family: 'Exo 2', sans-serif;
    color: var(--light);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
}

.footer-heading::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: var(--primary);
    left: 0;
    bottom: -10px;
    border-radius: 3px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(230, 230, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: rgba(230, 230, 255, 0.5);
    font-size: 0.9rem;
}

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

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Video Preview Styles */
.video-preview {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 15px;
    overflow: hidden;
    background-color: rgba(10, 10, 36, 0.8);
    transform: perspective(1200px) rotate3d(1, 5, 1, 5deg); /* Skewed/tilted effect */
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.6),
        0 5px 15px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(102, 16, 242, 0.3);
    transition: all 0.4s ease;
}

.video-preview:hover {
    transform: perspective(1200px) rotate3d(1, 5, 1, 3deg);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.7),
        0 10px 20px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(102, 16, 242, 0.4);
}

.preview-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.5s ease;
    filter: contrast(1.05) brightness(0.95);
}

.video-preview:hover .preview-image {
    transform: scale(1.05);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.play-icon svg {
    margin-left: 4px; /* Slight adjustment for visual centering */
    opacity: 0.9;
}

.play-icon:hover {
    background: rgba(102, 16, 242, 0.6);
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    margin: 3% auto;
    height: 90%;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--light);
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1010;
}

.modal-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

#youtube-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive Design */
@media (max-width: 1100px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text {
        padding-right: 0;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-image-container {
        flex: 1;
    }

    /* Video preview styles are now in the main CSS section */

    .video-wrapper {
        position: relative;
        width: 100%;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        background-color: rgba(10, 10, 36, 0.8);
    }

    .video-wrapper iframe {
        width: 100%;
        height: 100%;
        min-height: 350px;
        border-radius: 20px;
        transition: all 0.5s ease;
    }

    .play-button-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgba(0, 0, 0, 0.4);
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .play-button {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background: var(--gradient);
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        box-shadow: 0 0 30px rgba(102, 16, 242, 0.6);
    }

    .play-button svg {
        width: 30px;
        height: 30px;
        margin-left: 5px; /* Adjust for visual centering */
    }

    .play-button:hover {
        transform: scale(1.1);
        box-shadow: 0 0 40px rgba(102, 16, 242, 0.8);
    }

    .hero-image-container {
        order: -1;
    }
    
    .floating-image {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .header-container {
        padding: 0 1rem;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--glass);
        backdrop-filter: blur(15px);
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}
