:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --accent-color: #00ff41;
    /* Matrix Green */
    --accent-secondary: #008f11;
    --alert-color: #ff003c;
    --font-mono: 'JetBrains Mono', monospace;
    --font-display: 'Rajdhani', sans-serif;
    --grid-color: rgba(0, 255, 65, 0.05);
}

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

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

/* Background Effects */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #111 0%, #000 100%);
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(0, 255, 65, 0.3);
    opacity: 0.4;
    animation: scanline 6s linear infinite;
    pointer-events: none;
    z-index: 100;
}

@keyframes scanline {
    0% {
        top: -5%;
    }

    100% {
        top: 105%;
    }
}

/* Typography & Utilities */
h1,
h2,
h3 {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.nav-link {
    margin-left: 30px;
    font-size: 0.9rem;
    color: var(--text-color);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-color);
}

.nav-link::before {
    content: '[';
    margin-right: 5px;
    opacity: 0;
    transition: opacity 0.3s;
    color: var(--accent-color);
}

.nav-link::after {
    content: ']';
    margin-left: 5px;
    opacity: 0;
    transition: opacity 0.3s;
    color: var(--accent-color);
}

.nav-link:hover::before,
.nav-link:hover::after {
    opacity: 1;
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 blue;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(10px, 9999px, 30px, 0);
    }

    20% {
        clip: rect(80px, 9999px, 100px, 0);
    }

    40% {
        clip: rect(10px, 9999px, 120px, 0);
    }

    60% {
        clip: rect(50px, 9999px, 80px, 0);
    }

    80% {
        clip: rect(130px, 9999px, 150px, 0);
    }

    100% {
        clip: rect(20px, 9999px, 60px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(60px, 9999px, 90px, 0);
    }

    20% {
        clip: rect(10px, 9999px, 40px, 0);
    }

    40% {
        clip: rect(120px, 9999px, 140px, 0);
    }

    60% {
        clip: rect(30px, 9999px, 60px, 0);
    }

    80% {
        clip: rect(90px, 9999px, 110px, 0);
    }

    100% {
        clip: rect(140px, 9999px, 160px, 0);
    }
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #aaa;
}

.highlight {
    color: var(--accent-color);
    font-weight: bold;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: transparent;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transition: left 0.3s;
    z-index: -1;
}

.cta-button:hover {
    color: #000;
}

.cta-button:hover::before {
    left: 0;
}

/* Sections */
.section {
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #fff;
    display: flex;
    align-items: center;
}

.prefix {
    color: var(--accent-color);
    margin-right: 15px;
}

.section p {
    font-size: 1.1rem;
    max-width: 800px;
    color: #ccc;
}

/* Rules List */
.rules-list {
    list-style: none;
    margin-top: 20px;
}

.rules-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}

.rules-list li::before {
    content: '>';
    color: var(--alert-color);
    margin-right: 15px;
    font-weight: bold;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(0, 255, 65, 0.2);
    margin-top: 50px;
    font-size: 0.9rem;
    color: #666;
}

.status {
    color: var(--accent-color);
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .header {
        padding: 15px 20px;
    }

    .nav {
        display: none;
        /* Simple hide for mobile for now, or could be hamburger */
    }
}

/* Arabic Content */
.arabic-content {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px dashed rgba(0, 255, 65, 0.3);
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', sans-serif;
}

.arabic-content h3 {
    color: var(--accent-color);
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.arabic-content p {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.8;
    font-weight: 500;
}

.highlight-arabic {
    color: var(--accent-color) !important;
    font-weight: 700;
    border-right: 4px solid var(--accent-color);
    padding-right: 20px;
    background: rgba(0, 255, 65, 0.08);
    padding: 15px 20px 15px 0;
    margin-top: 30px;
    font-size: 1.5rem !important;
}

.discord-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background-color: #5865F2;
    /* Discord Brand Color */
    color: white;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid #5865F2;
}

.discord-btn:hover {
    background-color: #4752C4;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.5);
    transform: translateY(-2px);
}