:root {
    --bg-main: #0A0A0F;       /* Deep Black Background */
    --bg-card: #16161F;       /* Card Background */
    
    /* THEME: DEEP PURPLE */
    --primary: #6B46C1;       /* Primary Deep Purple */
    --primary-hover: #7C3AED; /* Purple Hover State */
    --accent: #8B5CF6;        /* Light Purple Accent */
    
    --text-white: #FFFFFF;
    --text-dim: #A8A8B8;      /* Muted Gray Text */
    --border: #2D2D3F;        /* Subtle Borders */
    --container-padding: 24px;
}

/* --- BASE RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', system-ui, -apple-system, sans-serif; }
body { background: var(--bg-main); color: var(--text-white); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--container-padding); }

/* --- NAVIGATION --- */
header { background: rgba(6, 8, 11, 0.95); backdrop-filter: blur(12px); padding: 12px 0; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 2000; }
.nav-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }

.logo-text { font-weight: 900; font-size: 24px; letter-spacing: -1px; color: #fff; }
.logo-text span { color: var(--primary); }
.logo-area { color: #fff; text-decoration: none; }
.logo-area .logo-text { color: #fff; }
.header-affiliation { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; margin-top: -4px; }
.header-affiliation a { color: var(--accent); text-decoration: none; }

.nav-menu { display: flex; align-items: center; gap: 25px; }
.nav-menu a { color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; transition: color 0.2s; }
.nav-menu a:hover { color: var(--primary); }

.nav-btn { background: var(--primary); color: #fff !important; padding: 8px 20px; border-radius: 4px; transition: 0.3s; white-space: nowrap; font-weight: 700; }
.nav-btn:hover { box-shadow: 0 0 15px rgba(107, 70, 193, 0.4); transform: translateY(-1px); background: #7C3AED; }

/* --- HERO SECTION --- */
.hero { 
    padding: 150px 0 120px; 
    min-height: 85vh; 
    display: flex;
    align-items: center;
    position: relative; 
    overflow: hidden; 
    /* Dark overlay to make orange text pop */
    background: linear-gradient(rgba(6, 8, 11, 0.9), rgba(6, 8, 11, 0.7)), 
                url('https://plus.unsplash.com/premium_photo-1661964423428-ac2381ffcef2?fm=jpg&q=60&w=3000&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8OXx8aG9ja2V5fGVufDB8fDB8fHww');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Orange Scanline Animation */
.scanline { width: 100%; height: 100px; background: linear-gradient(0deg, transparent, rgba(107, 70, 193, 0.05), transparent); position: absolute; top: -100px; left: 0; pointer-events: none; animation: scan 8s linear infinite; }
@keyframes scan { 0% { top: -100px; } 100% { top: 100%; } }

.status-link { text-decoration: none; display: inline-block; margin-bottom: 24px; }
.status-indicator { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--primary); background: rgba(107, 70, 193, 0.05); padding: 8px 16px; border-radius: 4px; border: 1px solid var(--primary); transition: 0.3s; }
.status-link:hover .status-indicator { background: rgba(107, 70, 193, 0.15); box-shadow: 0 0 15px rgba(107, 70, 193, 0.2); transform: translateY(-2px); }
.dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 8px var(--primary); }

.hero h1 { font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: 1.05; margin-bottom: 20px; font-weight: 900; }
.highlight { color: var(--primary); text-shadow: 0 0 40px rgba(107, 70, 193, 0.3); }
.hero p { font-size: clamp(1rem, 2vw, 1.25rem); color: var(--text-dim); max-width: 580px; margin-bottom: 40px; }

/* --- BUTTONS --- */
.hero-actions { display: flex; flex-wrap: wrap; gap: 15px; }

.btn-primary { 
    position: relative;
    background: var(--primary); 
    color: #fff; 
    padding: 16px 35px; 
    text-decoration: none; 
    font-weight: 800; 
    border-radius: 4px; 
    display: inline-block; 
    transition: 0.4s ease; 
    text-align: center; 
    z-index: 1;
    overflow: hidden;
    cursor: pointer;
    border: none;
}

/* Orange/Amber Gradient Hover */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 10px 20px rgba(107, 70, 193, 0.3);
}

.btn-secondary { 
    position: relative;
    color: #fff; 
    border: 1px solid var(--border); 
    padding: 16px 35px; 
    text-decoration: none; 
    font-weight: 800; 
    border-radius: 4px; 
    display: inline-block; 
    transition: 0.4s ease; 
    text-align: center; 
    background: transparent;
    z-index: 1;
    overflow: hidden;
}

.btn-secondary:hover { 
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 157, 0, 0.15);
}

/* --- PROGRAMS SECTION (FIXED 4-COLUMN GRID) --- */
.games-section { padding: 80px 0; background: #080b0f; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 10px; }

/* GRID LAYOUT FIX */
.programs-grid {
    display: grid;
    /* 4 Columns for Desktop */
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    margin-top: 20px;
    /* PADDING FIX: Prevents hover effect from getting cut off at the top */
    padding-top: 12px; 
}

.game-card { 
    background: var(--bg-card); 
    border-radius: 12px; 
    overflow: hidden; 
    border: 1px solid var(--border); 
    height: 100%; 
    transition: 0.3s ease; 
    display: flex; 
    flex-direction: column; 
    /* Z-Index Fix: Ensures card stays visible during animation */
    position: relative;
    z-index: 1;
}

.game-card:hover { 
    border-color: var(--primary); 
    transform: translateY(-5px); 
    z-index: 10;
}

.card-img { height: 180px; background-size: cover; background-position: center; }
.card-body { padding: 24px; flex-grow: 1; }
.card-body h3 { margin-bottom: 10px; font-size: 1.3rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tags span { font-size: 10px; background: rgba(107, 70, 193, 0.1); padding: 4px 8px; border-radius: 4px; color: var(--accent); font-weight: 800; text-transform: uppercase; }

.library-footer { text-align: center; margin-top: 40px; }
.library-footer a { color: var(--accent); text-decoration: none; font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: 1px; }

/* --- SPECS SECTION --- */
.specs-section { padding: 80px 0; }
.specs-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.eyebrow { color: var(--primary); text-transform: uppercase; font-size: 12px; font-weight: 900; letter-spacing: 2px; margin-bottom: 10px; display: block; }
.specs-content h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 24px; line-height: 1.1; }
.spec-table { border-top: 1px solid var(--border); }
.spec-row { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.spec-label { color: var(--text-dim); }
.spec-value { color: #fff; font-weight: 700; text-align: right; }
.panel-card { background: linear-gradient(160deg, #111827, #06080b); padding: 40px; border-radius: 12px; border: 1px solid var(--border); text-align: center; }
.panel-card i { font-size: 3rem; color: var(--accent); margin-bottom: 20px; }

/* --- SPLIT LOGIN LAYOUT --- */
.split-body { margin: 0; padding: 0; overflow: hidden; height: 100vh; background: #000; }
.split-container { display: flex; height: 100vh; width: 100%; }

/* Left Side (Image) */
.split-image { 
    flex: 1.2; 
    background-size: cover; 
    background-position: center; 
    position: relative;
    display: flex; align-items: flex-end; padding: 60px;
}
.split-image::before {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background: linear-gradient(to right, rgba(0,0,0,0.3), rgba(6,8,11,1)); 
}
.split-overlay { position: relative; z-index: 2; }
.split-title { font-size: 3.5rem; font-weight: 900; line-height: 1; color: #fff; }
.split-title span { color: var(--primary); }

/* Right Side (Form) */
.split-form { 
    flex: 0.8; 
    background: #06080b; 
    display: flex; align-items: center; justify-content: center; 
    padding: 40px; 
    border-left: 1px solid var(--border);
}
.form-wrapper { width: 100%; max-width: 380px; }

.login-header h2 { font-size: 2rem; color: #fff; margin-bottom: 5px; }
.login-header p { color: var(--text-dim); margin-bottom: 24px; }

.input-group { margin-bottom: 20px; }
.input-group label { display: block; font-size: 12px; font-weight: 700; color: var(--text-dim); margin-bottom: 5px; text-transform: uppercase; }

.input-wrapper { 
    position: relative; 
    background: #0d1117; 
    border: 1px solid var(--border); 
    border-radius: 4px; 
    display: flex; align-items: center; 
}
.input-wrapper i { padding: 0 16px; color: var(--text-dim); font-size: 14px; }
.input-wrapper input { 
    width: 100%; background: transparent; border: none; padding: 12px 12px 12px 0; 
    color: #fff; outline: none; font-size: 1rem;
}
.input-wrapper:focus-within { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }

.alert-box { background: rgba(239, 68, 68, 0.1); color: #ef4444; padding: 12px; border-radius: 4px; font-size: 13px; margin-bottom: 20px; border: 1px solid rgba(239, 68, 68, 0.2); text-align: center; font-weight: 600; }
.form-footer { margin-top: 20px; text-align: center; font-size: 14px; color: var(--text-dim); }
.form-footer a { color: var(--primary); text-decoration: none; font-weight: 700; }

/* --- FOOTER --- */
.site-footer { background: #040608; padding: 80px 0 0; border-top: 1px solid var(--border); }
.footer-flex { display: flex; justify-content: space-between; padding-bottom: 60px; flex-wrap: wrap; gap: 40px; }
.footer-left { max-width: 400px; }
.footer-desc { color: var(--text-dim); margin: 20px 0 20px; font-size: 14px; }
.crash-link { color: var(--accent); text-decoration: none; font-weight: 700; }
.social-tray { display: flex; gap: 12px; }
.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; background: rgba(107, 70, 193, 0.1); border: 1px solid var(--border); color: var(--accent); font-size: 18px; text-decoration: none; transition: all 0.3s; }
.social-icon:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); }

.footer-col h4 { color: var(--primary); font-size: 12px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; }
.footer-email-link { font-size: 1.2rem; font-weight: 700; color: #fff; text-decoration: none; transition: 0.3s; display: inline-block; word-break: break-all; } 
.footer-email-link:hover { color: var(--primary); }
.footer-col a:not(.footer-email-link) { display: block; color: var(--text-dim); text-decoration: none; margin-bottom: 10px; font-weight: 500; font-size: 14px; }
.footer-col a:hover { color: #fff; }

.footer-bottom { background: #020305; padding: 24px 0; color: #475569; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.footer-bottom-flex { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: #64748b; text-decoration: none; }

/* --- RESPONSIVE / MOBILE --- */
@media (max-width: 1024px) {
    .programs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-flex { flex-direction: column; gap: 20px; }
    .nav-menu { gap: 20px; width: 100%; justify-content: center; }
    .hero { 
        text-align: center; 
        padding: 80px 0; 
        min-height: 60vh;
        background-attachment: scroll; 
    }
    .hero p { margin: 0 auto 24px; }
    .status-link { margin: 0 auto 24px; }
    .hero-actions { justify-content: center; width: 100%; }
    .btn-primary, .btn-secondary { width: 100%; }
    
    .specs-grid { grid-template-columns: 1fr; gap: 40px; }
    
    /* Login Mobile: Stack Vertical */
    .split-container { flex-direction: column; height: auto; }
    .split-image { height: 250px; padding: 20px; flex: none; }
    .split-form { padding: 40px 20px; flex: none; min-height: 60vh; }
    .split-title { font-size: 2.2rem; }
    .split-body { overflow-y: auto; } /* Allow scrolling on mobile */
    
    .footer-flex { flex-direction: column; text-align: center; }
    .footer-left { margin: 0 auto; }
    .social-tray { justify-content: center; }
    .footer-col { width: 100%; margin-bottom: 20px; }
    .footer-bottom-flex { flex-direction: column; text-align: center; gap: 15px; }
}

@media (max-width: 600px) {
    .programs-grid { grid-template-columns: 1fr; }
}