/* =========================================
   1. GLOBAL RESET & VARIABLES
   ========================================= */
:root {
    --bg-color: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --text-main: #ffffff;
    --text-muted: #888888;
    --primary: #00f3ff; /* Neon Blue */
    --secondary: #ff0055; /* Glitch Pink */
    --success: #0aff00; /* Hacker Green */
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #000;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Utilities */
.highlight {
    color: var(--primary);
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

.glitch {
    color: var(--secondary);
    text-shadow: 2px 2px 0px var(--primary);
    position: relative;
    display: inline-block;
}

.hidden {
    display: none !important;
}

/* =========================================
   2. NAVIGATION BAR
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(15px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-cta {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary);
}

/* =========================================
   3. HERO SECTION (Landing Page)
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px 50px;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
    z-index: 2;
}

.hero p {
    color: var(--text-muted);
    max-width: 600px;
    font-size: 1.2rem;
    margin-bottom: 40px;
    z-index: 2;
}

/* Glow Effect Background */
.glow-circle {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--primary);
    filter: blur(200px);
    opacity: 0.15;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 5s infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.1; transform: translate(-50%, -50%) scale(0.8); }
    100% { opacity: 0.2; transform: translate(-50%, -50%) scale(1.2); }
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), #0066ff);
    border: none;
    padding: 16px 45px;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 2;
}

.primary-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.6);
}

/* =========================================
   4. REALITY CHECK SECTION
   ========================================= */
.reality-check {
    padding: 80px 5%;
    background: #000;
    text-align: center;
    border-top: 1px solid #111;
}

.reality-check h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.problem-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.problem-card {
    background: linear-gradient(145deg, #0f0f0f, #050505);
    padding: 40px 30px;
    border-radius: 20px;
    width: 320px;
    border: 1px solid #222;
    transition: all 0.3s ease;
    text-align: left;
}

.problem-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 10px 30px rgba(255, 0, 85, 0.15);
    transform: translateY(-5px);
}

.problem-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    filter: grayscale(100%);
    transition: 0.3s;
}

.problem-card:hover .icon {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.problem-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: #fff;
}

/* =========================================
   5. COURSES SECTION
   ========================================= */
.courses-container {
    padding: 100px 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.courses-container h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    position: relative;
    transition: 0.3s;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.04);
}

.card h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.buy-btn {
    width: 100%;
    padding: 15px;
    background: white;
    color: black;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.buy-btn:hover {
    background: var(--primary);
    box-shadow: 0 0 20px var(--primary);
}

/* =========================================
   6. DASHBOARD LAYOUT
   ========================================= */
.dashboard-body {
    display: flex;
    background: #000;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 80px;
    background: #080808;
    border-right: 1px solid #222;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.sidebar:hover {
    width: 240px;
}

.sidebar .logo {
    margin-bottom: 50px;
    color: #fff;
}

.menu {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu a {
    color: #666;
    text-decoration: none;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: 0.2s;
    white-space: nowrap;
    overflow: hidden;
}

.menu a i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.menu a:hover, .menu a.active {
    background: rgba(0, 243, 255, 0.05);
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

.menu a span {
    opacity: 0;
    transition: opacity 0.2s;
}

.sidebar:hover .menu a span {
    opacity: 1;
}

/* Refer Box inside Sidebar */
.refer-box {
    margin-top: auto;
    margin-bottom: 20px;
    padding: 15px;
    background: #111;
    border-radius: 10px;
    border: 1px dashed #333;
    width: 85%;
    display: none; /* Hidden when collapsed */
    text-align: center;
}

.sidebar:hover .refer-box {
    display: block;
    animation: fadeIn 0.5s;
}

.refer-box p {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 5px;
}

.refer-code-display {
    color: var(--primary);
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.copy-btn {
    background: #222;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: 0.2s;
}
.copy-btn:hover { background: var(--primary); color:black; }

.logout-btn {
    background: none;
    border: none;
    color: var(--secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 20px;
    width: 100%;
    text-align: center;
}

/* Main Content Area */
.main-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    position: relative;
    background: radial-gradient(circle at 50% 50%, #0a0a0a 0%, #000 100%);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.top-bar h2 {
    font-size: 2rem;
}

/* =========================================
   7. AUTH OVERLAY (Login)
   ========================================= */
.auth-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
}

.auth-box {
    background: #0a0a0a;
    padding: 50px 40px;
    border-radius: 20px;
    border: 1px solid #222;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}

.auth-box h2 {
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.auth-box input {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    background: #000;
    border: 1px solid #333;
    color: white;
    border-radius: 8px;
    font-size: 1rem;
    transition: 0.3s;
}

.auth-box input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

.status-msg {
    margin-top: 15px;
    font-size: 0.9rem;
    min-height: 20px;
}

/* =========================================
   8. SECURE VIDEO PLAYER
   ========================================= */
.video-section {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    overflow: hidden;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    outline: none;
}

/* Floating Watermark Animation */
.floating-text {
    position: absolute;
    color: rgba(255, 255, 255, 0.15); /* Barely visible */
    font-size: 1.5rem;
    font-weight: 900;
    pointer-events: none; /* Clicks pass through */
    user-select: none; /* Cannot be highlighted */
    z-index: 10;
    white-space: nowrap;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
    transition: top 3s ease-in-out, left 3s ease-in-out;
}

.back-btn {
    background: transparent;
    border: 1px solid #444;
    color: #888;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.back-btn:hover { border-color: var(--primary); color: var(--primary); }

/* =========================================
   9. MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    
    /* Mobile Sidebar becomes Bottom Bar */
    .sidebar {
        width: 100%;
        height: 70px;
        position: fixed;
        bottom: 0;
        top: auto;
        flex-direction: row;
        justify-content: space-around;
        padding: 0;
        border-right: none;
        border-top: 1px solid #222;
        background: rgba(0,0,0,0.9);
        backdrop-filter: blur(10px);
    }

    .sidebar:hover { width: 100%; height: 70px; } /* Disable expansion */
    .sidebar .logo { display: none; }
    .refer-box { display: none !important; } /* Hide refer box on mobile nav */
    .logout-btn { display: none; } /* Move logout somewhere else in real app */
    
    .menu { flex-direction: row; justify-content: space-around; }
    .menu a { padding: 10px; flex-direction: column; gap: 5px; font-size: 0.8rem; }
    .menu a i { font-size: 1.2rem; }
    .menu a span { opacity: 1; font-size: 0.7rem; display: block; }

    .main-content { padding: 20px 20px 100px 20px; }
    .auth-overlay { position: fixed; z-index: 2000; }
    
    .course-grid { grid-template-columns: 1fr; }
    
    /* Make Refer code visible in main content for mobile later via JS if needed */
}

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

footer {
    text-align: center;
    padding: 40px;
    color: #444;
    font-size: 0.9rem;
    border-top: 1px solid #111;
}