:root {
    --neon-cyan: #00f3ff;
    --neon-pink: #ff007f;
    --neon-purple: #b026ff;
    --neon-green: #1DB954;
    --neon-dnd: #f23f43;
    --bg-dark: #0a0a0c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    cursor: none;
}

html { 
    scroll-behavior: smooth; 
    direction: ltr; 
}

body {
    min-height: 100vh; 
    width: 100vw;
    background-color: var(--bg-dark);
    color: #fff; 
    overflow-x: hidden; 
    overflow-y: auto;
    position: relative; 
    display: flex; 
    flex-direction: column; 
    align-items: center;
}

/* ================= Terminal Entry Screen ================= */
.entry-screen {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: radial-gradient(circle, #1a1a24 0%, #050507 100%); 
    z-index: 99999;
    display: flex; 
    justify-content: center; 
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    cursor: pointer;
}

.entry-screen.fade-out { 
    opacity: 0; 
    visibility: hidden; 
}

.terminal-box {
    width: 520px;
    max-width: 90%;
    background: #0d0d12;
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.15), 0 20px 50px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
    text-align: left;
}

.terminal-header {
    background: #16161f;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.btn-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.btn-dot.close { background-color: #ff5f56; }
.btn-dot.minimize { background-color: #ffbd2e; }
.btn-dot.maximize { background-color: #27c93f; }

.terminal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: #888;
    letter-spacing: 1px;
}

.terminal-body {
    padding: 22px;
    font-size: 0.85rem;
    color: #d1d1d1;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 📊 شريط تقدم التحميل المبتكر */
.progress-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.progress-bar-container {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
    box-shadow: 0 0 10px var(--neon-cyan);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--neon-cyan);
    min-width: 40px;
    text-align: right;
}

.terminal-line {
    line-height: 1.5;
}

.terminal-line .prompt {
    color: var(--neon-cyan);
    font-weight: bold;
}

.terminal-line .cmd-text {
    color: #fff;
}

/* ألوان حالات الترمينال */
.terminal-line .ok {
    color: #27c93f;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(39, 201, 63, 0.5);
}

.terminal-line .wait {
    color: #ffbd2e;
    font-weight: bold;
}

.click-msg {
    margin-top: 15px;
    color: var(--neon-cyan);
    font-weight: bold;
    text-align: center;
}

.pulse-text {
    animation: blinkText 1.2s infinite;
    text-shadow: 0 0 10px var(--neon-cyan);
}

@keyframes blinkText {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Background Video */
#bg-video {
    position: fixed; 
    top: 50%; 
    left: 50%;
    min-width: 100%; 
    min-height: 100%; 
    z-index: 0;
    transform: translate(-50%, -50%); 
    object-fit: cover;
    filter: grayscale(80%) brightness(0.35) contrast(1.2);
}

/* Navbar */
.navbar {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%;
    padding: 18px 40px;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    z-index: 100;
    background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.nav-logo { font-size: 1.4rem; font-weight: 900; letter-spacing: 3px; }
.nav-links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 25px; }
.nav-links a { color: #aaa; text-decoration: none; font-size: 0.85rem; font-weight: 600; letter-spacing: 1px; transition: 0.3s; }
.nav-links a:hover, .nav-links a.active { color: #fff; text-shadow: 0 0 8px #fff; }

.nav-widget { display: flex; gap: 15px; font-size: 0.8rem; color: #ccc; background: rgba(255,255,255,0.05); padding: 6px 14px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); }

/* Main Container */
.main-container { position: relative; z-index: 5; display: flex; flex-direction: column; align-items: center; width: 100%; }

/* Page Section */
.page-section {
    min-height: auto; 
    padding: 40px 20px; 
    width: 100%; 
    display: flex; 
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    text-align: center;
}

#home.page-section {
    min-height: 100vh;
    padding-top: 80px;
}

.hero-title { font-size: 3.8rem; font-weight: 900; letter-spacing: 12px; margin-bottom: 5px; text-transform: uppercase; }
.hero-subtitle { font-size: 0.95rem; color: #bbb; margin-bottom: 25px; letter-spacing: 1px; font-family: monospace; display: flex; justify-content: center; align-items: center; gap: 8px; }

#typewriter {
    background: linear-gradient(90deg, var(--neon-cyan), #ffffff, var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    filter: drop-shadow(0 0 8px rgba(0, 243, 255, 0.6));
}

/* Glowing Neon Border Box */
.discord-card-widget {
    width: 380px;
    background: rgba(18, 18, 24, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    margin: 0 auto;
}

.glow-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.5), 0 0 50px rgba(255, 0, 127, 0.3), inset 0 0 15px rgba(0, 243, 255, 0.2);
}

.card-banner { 
    height: 120px; 
    background-image: url('banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative; 
}

.card-badges { position: absolute; top: 10px; right: 12px; display: flex; gap: 6px; background: rgba(0,0,0,0.5); padding: 4px 8px; border-radius: 12px; }
.badge { font-size: 0.75rem; color: var(--neon-cyan); }

.card-body { padding: 0 20px 20px 20px; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }

/* ==========================================
   ⚡ AVATAR HOVER GLITCH & RGB SPLIT EFFECT
   ========================================== */
.avatar-container { 
    position: relative; 
    margin-top: -45px; 
    margin-bottom: 12px; 
    display: inline-block;
}

.profile-avatar { 
    width: 85px; 
    height: 85px; 
    border-radius: 50%; 
    object-fit: cover; 
    background: #000; 
    transition: transform 0.2s ease, filter 0.2s ease;
}

/* تأثير التشويش والقص الهولوجرام عند وقوف الماوس */
.avatar-container:hover .profile-avatar {
    animation: avatar-glitch 0.25s infinite linear alternate-reverse;
    filter: drop-shadow(-3px 0 var(--neon-pink)) drop-shadow(3px 0 var(--neon-cyan));
}

@keyframes avatar-glitch {
    0% {
        transform: translate(0, 0) scale(1.03);
        clip-path: inset(0 0 0 0);
    }
    20% {
        transform: translate(-3px, 2px) scale(1.03);
        clip-path: inset(15% 0 55% 0);
    }
    40% {
        transform: translate(3px, -2px) scale(1.03);
        clip-path: inset(40% 0 10% 0);
    }
    60% {
        transform: translate(-2px, -1px) scale(1.03);
        clip-path: inset(70% 0 5% 0);
    }
    80% {
        transform: translate(2px, 1px) scale(1.03);
        clip-path: inset(25% 0 35% 0);
    }
    100% {
        transform: translate(0, 0) scale(1.03);
        clip-path: inset(0 0 0 0);
    }
}

.status-indicator { 
    width: 20px; 
    height: 20px; 
    border-radius: 50%; 
    position: absolute; 
    bottom: 2px; 
    right: 2px; 
    border: 3.5px solid #121218; 
    background-color: var(--neon-dnd); 
    box-shadow: 0 0 10px rgba(242, 63, 67, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.status-indicator::after {
    content: '';
    width: 8px;
    height: 2.5px;
    background-color: #121218;
    border-radius: 2px;
}

.status-indicator.online { background-color: var(--neon-green); box-shadow: 0 0 10px var(--neon-green); }
.status-indicator.online::after { display: none; }

.display-name { font-size: 1.3rem; font-weight: 800; letter-spacing: 1px; }
.verified-icon { color: var(--neon-cyan); font-size: 0.9rem; margin-left: 4px; }
.username-tag { font-size: 0.8rem; color: #777; margin-bottom: 10px; }

.custom-status {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 14px; border-radius: 12px;
    font-size: 0.8rem; color: #ddd; margin-bottom: 12px; width: 100%;
}

/* Spotify Activity Box */
.game-activity-box {
    display: flex; align-items: center; gap: 12px;
    background: rgba(29, 185, 84, 0.08);
    border: 1px solid rgba(29, 185, 84, 0.25);
    border-radius: 12px; padding: 10px 14px;
    margin-bottom: 18px; width: 100%; text-align: left;
}

.game-icon-wrapper.spotify-bg {
    width: 38px; height: 38px;
    background: rgba(29, 185, 84, 0.18);
    border-radius: 8px; display: flex; justify-content: center; align-items: center;
    transition: background-image 0.3s ease;
}

.spotify-green { color: #1DB954; font-size: 1.3rem; transition: opacity 0.3s ease; }
.spotify-green-text { font-size: 0.65rem; font-weight: 800; color: #1DB954; letter-spacing: 1px; }

.game-info { display: flex; flex-direction: column; gap: 2px; }
.game-name { font-size: 0.85rem; font-weight: 700; color: #fff; }
.game-timer { font-size: 0.7rem; color: #888; }

/* Action Buttons */
.action-buttons { display: flex; gap: 12px; width: 100%; margin-bottom: 15px; }

.btn {
    flex: 1; padding: 10px 15px; border-radius: 12px;
    font-size: 0.8rem; font-weight: 700; border: none; text-decoration: none;
    display: flex; justify-content: center; align-items: center; gap: 8px; transition: 0.3s ease;
}

.btn-primary { background: rgba(0, 243, 255, 0.15); color: var(--neon-cyan); border: 1px solid var(--neon-cyan); }
.btn-primary:hover { background: var(--neon-cyan); color: #000; box-shadow: 0 0 20px var(--neon-cyan); }

.btn-secondary { background: rgba(255, 0, 127, 0.15); color: var(--neon-pink); border: 1px solid var(--neon-pink); }
.btn-secondary:hover { background: var(--neon-pink); color: #fff; box-shadow: 0 0 20px var(--neon-pink); }

/* 💬 Social Icons with Tooltips */
.social-icon-bar {
    display: flex; gap: 16px; justify-content: center; width: 100%;
    padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.s-icon {
    font-size: 1.4rem; text-decoration: none;
    position: relative; transition: transform 0.2s;
    cursor: pointer;
}

.s-icon:hover { transform: translateY(-4px) scale(1.2); }

.s-icon::after {
    content: attr(data-username);
    position: absolute;
    bottom: 135%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(10, 10, 15, 0.95);
    color: #fff;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.s-icon:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.s-icon.discord { color: #5865F2; filter: drop-shadow(0 0 6px #5865F2); }
.s-icon.spotify { color: #1DB954; filter: drop-shadow(0 0 6px #1DB954); }
.s-icon.steam { color: #00ADEE; filter: drop-shadow(0 0 6px #00ADEE); }
.s-icon.snapchat { color: #FFFC00; filter: drop-shadow(0 0 6px #FFFC00); }
.s-icon.tiktok { color: #ff0050; filter: drop-shadow(0 0 6px #ff0050); }

/* Non-clickable elements */
.no-click { cursor: default !important; }

/* Sections Styling */
.section-box {
    width: 100%; 
    max-width: 380px; 
    background: rgba(18, 18, 24, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px; 
    padding: 20px 24px; 
    text-align: center;
    margin: 10px auto;
}

.section-title { 
    font-size: 1.1rem; 
    margin-bottom: 10px; 
    letter-spacing: 2px; 
}

.section-desc { 
    color: #ccc; 
    font-size: 0.8rem; 
    line-height: 1.5; 
}

/* Glitch Effect */
.glitch-text { position: relative; display: inline-block; }
.glitch-text:hover::before, .glitch-text:hover::after {
    content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; clip: rect(0, 0, 0, 0);
}
.glitch-text:hover::before { left: -2px; text-shadow: 2px 0 var(--neon-pink); animation: glitch-anim-1 0.6s infinite linear alternate-reverse; }
.glitch-text:hover::after { left: 2px; text-shadow: -2px 0 var(--neon-cyan); animation: glitch-anim-2 0.6s infinite linear alternate-reverse; }

@keyframes glitch-anim-1 { 0% { clip: rect(20px, 9999px, 15px, 0); } 100% { clip: rect(50px, 9999px, 70px, 0); } }
@keyframes glitch-anim-2 { 0% { clip: rect(15px, 9999px, 30px, 0); } 100% { clip: rect(40px, 9999px, 15px, 0); } }

/* Neon Effects */
.neon-text-cyan { color: var(--neon-cyan); text-shadow: 0 0 12px var(--neon-cyan); }
.neon-text-pink { color: var(--neon-pink); text-shadow: 0 0 12px var(--neon-pink); }
.neon-text-green { color: #00ff66; text-shadow: 0 0 10px #00ff66; }

.neon-text-gradient {
    background: linear-gradient(135deg, var(--neon-cyan), #ffffff, var(--neon-pink));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(0, 243, 255, 0.4));
}

.neon-border { border: 2px solid var(--neon-cyan); box-shadow: 0 0 15px var(--neon-cyan); }

/* Visualizer & Cursor */
.visualizer-container {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 45px;
    display: flex; justify-content: center; align-items: flex-end; gap: 4px;
    z-index: 2; pointer-events: none; opacity: 0.7;
}

.audio-controls {
    position: fixed; top: 80px; left: 20px; z-index: 100;
    display: flex; align-items: center; gap: 10px;
    background: rgba(0, 0, 0, 0.6); padding: 6px 12px; border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.music-toggle { background: transparent; border: none; color: #fff; font-size: 1.1rem; }
.volume-slider { width: 65px; height: 3px; accent-color: var(--neon-cyan); }

.cursor-dot { width: 6px; height: 6px; background-color: var(--neon-cyan); border-radius: 50%; position: fixed; top: 0; left: 0; transform: translate(-50%, -50%); pointer-events: none; z-index: 999999; box-shadow: 0 0 10px var(--neon-cyan); }
.cursor-outline { width: 32px; height: 32px; border: 1px solid var(--neon-pink); border-radius: 50%; position: fixed; top: 0; left: 0; transform: translate(-50%, -50%); pointer-events: none; z-index: 999998; transition: transform 0.1s ease-out; box-shadow: 0 0 8px var(--neon-pink); }

.views-counter { font-size: 0.8rem; color: #888; display: flex; align-items: center; gap: 6px; margin-top: 20px; letter-spacing: 1px; }

.toast {
    position: fixed; top: -50px; left: 50%; transform: translateX(-50%);
    background: var(--neon-cyan); color: #000; padding: 10px 24px; border-radius: 20px;
    font-weight: 800; font-size: 0.85rem; z-index: 100000;
    box-shadow: 0 0 20px var(--neon-cyan); transition: top 0.4s ease;
}
.toast.show { top: 25px; }
.cursor-blink { animation: blink 0.7s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }