/* =========================================
   LOCAL FONTS SETUP
   ========================================= */
@font-face {
    font-family: 'PersianRetro';
    src: url('font.ttf') format('truetype');    

}

.PersianRetro {
    font-family: 'PersianRetro';

}

@font-face{
    font-family: 'TitlePixel';
    src: url('TitleFont.ttf') format('truetype'); 
}

@font-face {
    font-family: 'LocalPixel';
    src: local('Courier New'); 
}

@font-face {
    font-family: 'LocalMono';
    src: local('Courier New'); 
}

/* Web fallback for immediate preview */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Space+Mono:wght@400;700&display=swap');


/* =========================================
   VARIABLES & RESET
   ========================================= */
:root {
    --bg-black: #050508;
    --neon-cyan: #00ffff;
    --neon-cyan-glow: rgba(0, 255, 255, 0.4);
    --text-grey: #8892b0;
    
    --font-pixel: 'Press Start 2P', monospace;
    --font-body: 'Space Mono', monospace;
}

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

body {
    background-color: var(--bg-black);
    color: white;
    font-family: var(--font-body);
    overflow-x: hidden;
    overflow-y: auto;
    height: 100vh;
}

/* =========================================
   BACKGROUND VIDEO
   ========================================= */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover; /* Ensures video covers the screen without stretching */
    z-index: -2; /* Puts it behind everything */
    
    /* 5% grayscale + 50% brightness to make text readable */
    filter: grayscale(5%) brightness(0.5); 
}

/* =========================================
   STICKY SIDE MENUS
   ========================================= */
.side-menu {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 100;
    background: transparent;
}

/* Left Menu (Text) */
.side-menu.left {
    left: 30px;
}

.menu-item {
    color: var(--text-grey);
    text-decoration: none;
    font-family: TitlePixel;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.menu-item:hover, .menu-item.active {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.menu-item::before {
    content: '';
    position: absolute;
    right: -15px;
    top: 0;
    height: 100%;
    width: 2px;
    background: transparent;
    transition: background 0.3s;
}
.menu-item:hover::before, .menu-item.active::before {
    background: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
}

/* Right Menu (Socials) */
.side-menu.right {
    right: 30px;
}

.social-btn {
    color: var(--text-grey);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(136, 146, 176, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(5, 5, 8, 0.5);
}

.social-btn svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.social-btn:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan-glow);
}

.social-btn:hover svg {
    filter: drop-shadow(0 0 5px var(--neon-cyan));
}


/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    padding: 40px 20px;
    /* Removed the background gradient here so the video is visible */
}

/* Hero Content */
.hero-content {
    z-index: 5;
    max-width: 900px;
}

/* Title 3D Effect */
.main-title {
    font-family: TitlePixel;
    font-size: 6.5rem;
    color: #ffffff;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 
        3px 3px 0px var(--neon-cyan),
        6px 6px 0px rgba(0,0,0,0.8);
}

.tagline {
    color: var(--neon-cyan);
    font-size: 2rem;
    margin-bottom: 40px;
    letter-spacing: 1px;
    /* Added text shadow so it pops against the video */
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8); 
}

.description {
    color: #e0e0e0; 
    line-height: 1.8;
    font-size: clamp(1.4rem, 1.5vw, 1.1rem);
    margin-bottom: 50px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

/* CTA Button */
.btn-primary {
    background: rgba(5, 5, 8, 0.7); /* Added slight dark background to button for visibility */
    color: var(--neon-cyan);
    font-family: TitlePixel;
    font-size: 1.3rem;
    padding: 20px 40px;
    border: 2px solid var(--neon-cyan);
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 0 15px var(--neon-cyan-glow), inset 0 0 10px var(--neon-cyan-glow);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.btn-primary:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 30px var(--neon-cyan), inset 0 0 20px var(--neon-cyan-glow);
}

.play-icon {
    font-size: 0.8rem;
}

/* =========================================
   FLOATING ICONS
   ========================================= */
.floating-icon {
    position: absolute;
    font-size: 3rem;
    z-index: 2;
    filter: drop-shadow(0 0 15px var(--neon-cyan)) drop-shadow(0 0 30px var(--neon-cyan-glow));
    animation: float 4s ease-in-out infinite;
}

.cloud { top: 15%; left: 15%; }
.gi { top: 15%; right: 15%; animation-delay: 1s; }
.car { top: 55%; right: 12%; animation-delay: 2s; }

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

/* =========================================
   RETRO GRID FLOOR (SQUARE STYLE)
   ========================================= */
.grid-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    overflow: hidden;
    z-index: 1;
    /* Fades the grid into the background at the top */
    mask-image: linear-gradient(to bottom, transparent 0%, black 50%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 50%);
}

.grid-floor {
    width: 100%;
    height: 100%;
    /* Creates a pure flat grid of squares */
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 40px 40px; 
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 1024px) {
    .main-title { font-size: 4rem; }
    .cloud { left: 5%; top: 10%; }
    .gi { right: 5%; top: 10%; }
    .car { right: 5%; top: 60%; }
    .side-menu.left { left: 15px; }
    .side-menu.right { right: 15px; }
}

@media (max-width: 768px) {
    /* Move side menus to bottom on mobile */
    .side-menu.left {
        flex-direction: row;
        left: 50%;
        top: auto;
        bottom: 20px;
        transform: translateX(-50%);
        background: rgba(5, 5, 8, 0.8);
        padding: 15px 30px;
        border-radius: 30px;
        border: 1px solid rgba(0, 255, 255, 0.2);
    }
    
    .side-menu.right {
        flex-direction: row;
        right: 20px;
        top: 20px;
        transform: none;
    }
    
    .menu-item {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 0.7rem;
    }
    
    .menu-item::before { display: none; }

    .main-title { font-size: 2.5rem; }
    .tagline { font-size: 0.7rem; }
    .description { font-size: 0.9rem; }
    
    .cloud, .gi { display: none; }
    .car { top: 70%; right: 5%; font-size: 2rem; }
    
    .btn-primary { font-size: 0.8rem; padding: 15px 25px; }
}



/* =========================================
   SUBMISSION FORM PAGE (Separate Page)
   ========================================= */
.form-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    z-index: 10;
}

.form-container {
    background: rgba(5, 5, 8, 0.85); 
    border: 2px solid var(--neon-cyan);
    border-radius: 8px;
    padding: 40px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 0 20px var(--neon-cyan-glow), inset 0 0 20px rgba(0, 255, 255, 0.05);
    backdrop-filter: blur(8px); /* Extra blur for readability */
}

.form-title {
    font-family: TitlePixel;
    color: #ffffff;
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0px var(--neon-cyan);
}

.form-subtitle {
    font-family: 'PersianRetro';
    color: var(--text-grey);
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.retro-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    color: var(--neon-cyan);
    font-size: 1rem;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 4px;
    color: #e0e0e0; 
    font-family: 'PersianRetro', monospace;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input[type="email"],
.input-group input[type="tel"] {
    text-align: left; 
}

.input-group textarea {
    min-height: 120px;
    resize: vertical;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan-glow);
    background: rgba(0, 0, 0, 0.8);
}

.submit-btn {
    margin-top: 10px;
    width: 100%;
    justify-content: center;
}

/* Back Home Link */
.back-home {
    display: block;
    text-align: center;
    color: var(--text-grey);
    text-decoration: none;
    margin-top: 15px;
    font-size: 0.9rem;
    transition: color 0.3s, text-shadow 0.3s;
}

.back-home:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

/* Mobile adjustments for form */
@media (max-width: 768px) {
    .form-container {
        padding: 25px 20px;
    }
    
    .form-title {
        font-size: 1.3rem;
    }
    
    .form-subtitle {
        font-size: 0.9rem;
    }
}

/* =========================================
   LIBRARY PAGE STYLES
   ========================================= */

/* Main container for the library page */
.library-main {
    position: relative;
    z-index: 10;
    padding: 100px 8% 100px 8%; /* Top/Bottom padding, Left/Right padding */
    min-height: 100vh;
    background: rgba(5, 5, 8, 0.7); /* Slight dark overlay to make text readable over video */
    backdrop-filter: blur(4px);
}

/* Header & Filters */
.library-header {
    text-align: center;
    margin-bottom: 60px;
}

.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.filter-btn {
    background: transparent;
    color: var(--text-grey);
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 8px 20px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.filter-btn:hover, .filter-btn.active {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan-glow);
    background: rgba(0, 255, 255, 0.1);
}

/* Section Titles */
.library-section {
    margin-bottom: 60px;
}

.section-title {
    font-family: TitlePixel;
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.8);
}

.dot {
    width: 12px;
    height: 12px;
    background: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-cyan);
}

.coming-soon-dot {
    background: #ff00ff; /* Magenta for coming soon */
    box-shadow: 0 0 10px #ff00ff;
}

/* Game Grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

/* Game Card */
.game-card {
    background: rgba(10, 10, 15, 0.85);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: block;
}

.game-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px var(--neon-cyan-glow);
    transform: translateY(-5px);
}

/* Card Image */
.card-img-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Status Badges */
.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: bold;
    font-family: var(--font-body);
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.status-badge.available {
    background: rgba(0, 255, 255, 0.2);
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan-glow);
}

.status-badge.soon {
    background: rgba(255, 0, 255, 0.2);
    color: #ff00ff;
    border: 1px solid #ff00ff;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.4);
}

/* Card Info */
.card-info {
    padding: 20px;
}

.game-title {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: rgba(136, 146, 176, 0.1);
    color: var(--text-grey);
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(136, 146, 176, 0.3);
}

/* Animation for filtering */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .library-main {
        padding: 100px 5% 120px 5%; /* Extra bottom padding for mobile menu */
    }
}

@media (max-width: 768px) {
    .library-header h1 {
        font-size: 2.5rem !important;
    }
    
    .filter-container {
        gap: 10px;
    }
    
    .filter-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}
