/* ===== CSS RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #0a0a0a;
    color: #e4e4e7;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 96px 0;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 64px;
    color: #e4e4e7;
}

.section-subtitle {
    font-size: 18px;
    color: #a1a1aa;
    text-align: center;
    margin-bottom: 48px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {
    0%, 100% { 
        filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.6)); 
    }
    50% { 
        filter: drop-shadow(0 0 20px rgba(59, 130, 246, 1.0)); 
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    transition: all 0.25s ease-out;
}

.nav-container {
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: #a1a1aa;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    transition: all 0.2s ease-out;
}

.nav-link:hover {
    color: #e4e4e7;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #6366f1;
    transition: width 0.2s ease-out;
}

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

.nav-cta {
    background: #6366f1;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.25s ease-out;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.nav-cta:hover {
    background: #4f46e5;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.7), 0 0 60px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #a1a1aa;
    transition: all 0.3s ease;
}

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

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-logo {
    margin-bottom: 32px;
}

.logo-main {
    height: 160px;
    width: auto;
    animation: pulse-glow 2s ease-in-out infinite;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: #e4e4e7;
}

.hero-subtitle {
    font-size: 24px;
    color: #a1a1aa;
    margin-bottom: 24px;
    font-weight: 500;
}

.hero-description {
    font-size: 18px;
    color: #71717a;
    font-style: italic;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-description {
    font-size: 18px;
    line-height: 1.6;
    color: #a1a1aa;
    margin-bottom: 24px;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.about-image:hover {
    transform: scale(1.02);
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
}

/* ===== GAMES SECTION ===== */
.game-card {
    background: #141414;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    transition: all 0.25s ease-out;
}

.game-card:hover {
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}

.game-image {
    position: relative;
}

.game-logo {
    height: 80px;
    width: auto;
    margin-bottom: 24px;
}

.game-screenshot {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
    color: #e4e4e7;
}

.game-subtitle {
    font-size: 18px;
    color: #a1a1aa;
    margin-bottom: 24px;
    font-weight: 500;
}

.game-description {
    font-size: 16px;
    line-height: 1.6;
    color: #a1a1aa;
    margin-bottom: 16px;
}

/* ===== FEATURES SECTION ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: #141414;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px;
    text-align: center;
    transition: all 0.25s ease-out;
}

.feature-card:hover {
    transform: translateY(-4px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.feature-icon {
    color: #6366f1;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.feature-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 16px;
    color: #e4e4e7;
}

.feature-description {
    font-size: 16px;
    line-height: 1.5;
    color: #a1a1aa;
}

/* ===== DOWNLOAD SECTION ===== */
.download-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.25s ease-out;
    min-width: 160px;
    justify-content: center;
}

.download-btn.primary {
    background: #6366f1;
    color: white;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.download-btn.primary:hover {
    background: #4f46e5;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.7), 0 0 60px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.download-btn.secondary {
    background: transparent;
    color: #6366f1;
    border: 2px solid #6366f1;
}

.download-btn.secondary:hover {
    background: #6366f1;
    color: white;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

/* ===== VIDEOS SECTION ===== */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.video-player-container {
    background: linear-gradient(145deg, #141414, #1e1e1e);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.video-player-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(59, 130, 246, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.video-player-container:hover::before {
    opacity: 1;
}

.video-player-container:hover {
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
}

.video-header {
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.video-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.video-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #1e1e1e, #141414);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fallback-content {
    text-align: center;
    color: white;
}

.fallback-content svg {
    color: #6366f1;
    margin-bottom: 16px;
}

.fallback-content p {
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.fallback-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.fallback-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}
    color: #e4e4e7;
    margin-bottom: 8px;
    transition: color 0.3s ease-out;
}

.video-card:hover .video-title {
    color: #6366f1;
}

.video-description {
    font-size: 14px;
    color: #a1a1aa;
    line-height: 1.5;
}

/* ===== GALLERY SECTION (deprecated) ===== */
.gallery-grid {
    column-count: 3;
    column-gap: 24px;
    column-fill: balance;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease-out;
}

.gallery-item:hover {
    transform: scale(1.02);
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ===== CONTACT SECTION ===== */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    gap: 32px;
}

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

.contact-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: #e4e4e7;
    margin-bottom: 8px;
}

.contact-item p, .contact-item a {
    font-size: 16px;
    color: #a1a1aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: #3b82f6;
}

/* ===== FOOTER ===== */
.footer {
    background: #000000;
    padding: 48px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 32px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #e4e4e7;
    margin-bottom: 16px;
}

.footer-section p {
    font-size: 14px;
    color: #71717a;
    margin-bottom: 8px;
}

.footer-section a {
    font-size: 14px;
    color: #71717a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: #a1a1aa;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }
    
    .section {
        padding: 64px 0;
    }
    
    .section-title {
        font-size: 36px;
        margin-bottom: 48px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .game-card {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .game-title {
        font-size: 28px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .video-player-container {
        padding: 20px;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    
    .logo-main {
        height: 120px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }
    
    .section {
        padding: 48px 0;
    }
    
    .game-card {
        padding: 24px;
    }
    
    .feature-card {
        padding: 24px;
    }
    
    .nav-container {
        padding: 0 16px;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    .logo-main {
        animation: none;
    }
    
    .fade-in-up {
        animation: none;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-contrast: high) {
    .navbar {
        background: #000000;
    }
    
    .feature-card,
    .game-card {
        border: 2px solid #ffffff;
    }
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #6366f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4f46e5;
}

/* ===== LOADING STATES ===== */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}
