:root {
    --bg-color: #0b0b0b;
    --surface-color: #1a1514;
    --text-primary: #f2efe9;
    --text-secondary: #a09d98;
    --accent-color: #FF4500;
    --accent-glow: rgba(255, 69, 0, 0.4);

    --font-arabic: 'Tajawal', sans-serif;
    --font-en: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

.en-text {
    font-family: var(--font-en);
    direction: ltr;
    display: inline-block;
}

/* Noise overlay for a grimy, dark feel */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(11, 11, 11, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 69, 0, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 1px;
    font-family: var(--font-en);
    direction: ltr;
    display: inline-block;
}

.logo .en-text {
    color: var(--accent-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Buttons */
.cta-btn,
.primary-btn,
.secondary-btn {
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-arabic);
}

.primary-btn,
.cta-btn {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    box-shadow: 0 0 15px var(--accent-glow);
}

.primary-btn:hover,
.cta-btn:hover {
    background-color: #ff5714;
    box-shadow: 0 0 25px var(--accent-glow);
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--accent-color);
}

.secondary-btn:hover {
    background-color: rgba(255, 69, 0, 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    padding-top: 80px;
    position: relative;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.subtitle {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

.action-buttons {
    display: flex;
    gap: 1rem;
}

/* Glitch Effect */
.glitch {
    position: relative;
    color: white;
}

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

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 red;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 blue;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

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

    20% {
        clip: rect(69px, 9999px, 14px, 0);
    }

    40% {
        clip: rect(41px, 9999px, 92px, 0);
    }

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

    80% {
        clip: rect(89px, 9999px, 40px, 0);
    }

    100% {
        clip: rect(5px, 9999px, 70px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(15px, 9999px, 33px, 0);
    }

    20% {
        clip: rect(49px, 9999px, 74px, 0);
    }

    40% {
        clip: rect(91px, 9999px, 12px, 0);
    }

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

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

    100% {
        clip: rect(55px, 9999px, 10px, 0);
    }
}

/* Visuals */
.hero-visuals {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glowing-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 69, 0, 0.2) 0%, rgba(11, 11, 11, 0) 70%);
    border-radius: 50%;
    animation: pulse 4s infinite ease-in-out;
}

.skull-placeholder {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 20px rgba(255, 69, 0, 0.5));
    animation: float 6s infinite ease-in-out;
}

.skull-icon {
    width: 250px;
    height: auto;
    object-fit: contain;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* About Section */
.about {
    padding: 5rem 5%;
    background-color: var(--surface-color);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

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

.about-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 69, 0, 0.1);
    border-color: rgba(255, 69, 0, 0.3);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.about-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-card p {
    color: var(--text-secondary);
}

/* Footer */
footer {
    padding: 3rem 5%;
    background-color: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #ff5714;
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Discord Custom Card */
.discord-card {
    background: var(--surface-color);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: 12px;
    padding: 3rem 2rem;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(88, 101, 242, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.discord-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(88, 101, 242, 0.15);
    border-color: rgba(88, 101, 242, 0.5);
}

.discord-icon {
    margin-bottom: 1.5rem;
}

.discord-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.discord-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.discord-btn {
    background-color: #5865F2;
    color: white;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.3);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

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

/* Audio Player */
.audio-player-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    opacity: 0.3;
    transition: opacity 0.3s ease;
    filter: invert(1) hue-rotate(180deg); /* Simple trick to make default audio players dark */
}

.audio-player-container:hover {
    opacity: 1;
}

audio {
    height: 40px;
    outline: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 3rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        /* simple mobile menu logic left out for brevity */
    }

    .action-buttons {
        justify-content: center;
    }
}