:root {
    --dark-color: #0c0c1d;
    --light-color: #9d4edd;
    --secondary-color: #7b2cbf;
    --neon-glow: 0 0 2px rgba(255, 255, 255, 0.5),
                 0 0 4px rgba(157, 78, 221, 0.3),
                 0 0 6px rgba(157, 78, 221, 0.2),
                 0 0 8px rgba(157, 78, 221, 0.1);
}

body {
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    background-color: var(--dark-color);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

/* تنسيق الهيدر والتنقل */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(12, 12, 29, 0.9);
    backdrop-filter: blur(10px);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--light-color);
    text-decoration: none;
}

.nav-links a {
    margin-right: 2rem;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

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

/* تنسيق القسم الرئيسي */
.main {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 60px);
    overflow: hidden;
}

.section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section.hero {
    height: calc(100vh - 60px);
    margin-top: 60px;
    padding: 2rem;
}

/* تنسيق العنوان الرئيسي مع تأثير Glitch */
.glitch-container {
    position: relative;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.glitch {
    font-size: 8vw !important;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    text-shadow: var(--neon-glow);
    animation: neon-pulse 3s ease-in-out infinite;
    position: relative;
    line-height: 1;
    white-space: nowrap;
    opacity: 0.95;
}

.glitch::before,
.glitch::after {
    display: none;
}

/* تنسيق زر التواصل */
.cta-button {
    margin-top: 1rem;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    background-color: var(--light-color);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.5);
}

/* تأثيرات الحركة */
@keyframes glitch-1 {
    /* إزالة هذا التأثير */
}

@keyframes glitch-2 {
    /* إزالة هذا التأثير */
}

/* تنسيق قسم التواصل */
.contact {
    padding: 4rem 2rem;
    text-align: center;
}

.contact-icon {
    font-size: 3rem;
    margin-top: 2rem;
}

.contact-icon a {
    color: var(--light-color);
    transition: all 0.3s ease;
}

.contact-icon a:hover {
    color: var(--secondary-color);
    transform: scale(1.2);
}

/* تنسيق التذييل */
.footer {
    background-color: rgba(12, 12, 29, 0.9);
    padding: 1rem 0;
    text-align: center;
    border-top: 1px solid var(--light-color);
    position: relative;
    z-index: 1;
}

/* الاستجابة للشاشات المختلفة */
@media (max-width: 1400px) {
    .glitch {
        font-size: 7vw !important;
    }
}

@media (max-width: 1024px) {
    .glitch {
        font-size: 6vw !important;
    }
}

@media (max-width: 768px) {
    .glitch {
        font-size: 8vw !important;
    }
}

@media (max-width: 480px) {
    .glitch {
        font-size: 10vw !important;
    }
}

/* تنسيق شريط التمرير */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-color);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--light-color);
}

/* إزالة الارتفاع الزائد من floating-text */
.floating-text {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

/* إضافة بعد التنسيقات الموجودة */

.discord-card {
    background: rgba(23, 23, 43, 0.9);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem 2rem;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.discord-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(82, 4, 34, 0.4);
}

.discord-icon {
    font-size: 2.5rem;
    color: #eb0fa2;
}

.discord-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.discord-tag {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.copy-button {
    background: transparent;
    border: 2px solid #bc13fe;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
}

.copy-button:hover {
    background: #bc13fe;
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.5);
}

.copy-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(188, 19, 254, 0.4),
        transparent
    );
    transition: 0.5s;
}

.copy-button:hover::before {
    left: 100%;
}

/* تعديل ارتفاع القسم الرئيسي */
.section.hero {
    height: calc(100vh - 60px);
    margin-top: 60px;
    padding: 2rem;
}

/* تحسين تنسيق الـ glitch container */
.glitch-container {
    height: auto;
    margin-bottom: 2rem;
}

/* تعديل الفوتر */
.footer {
    padding: 1rem 0;
    position: relative;
    z-index: 1;
}

/* إضافة تأثير الخلفية المتوهجة */
.cosmic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, center) var(--mouse-y, center),
                rgba(157, 78, 221, 0.15),
                rgba(12, 12, 29, 0.5) 40%);
    z-index: 0;
    pointer-events: none;
    transition: all 0.15s ease;
}

/* تحسين تأثير Glitch */
.glitch {
    text-shadow: var(--neon-glow);
    animation: neon-pulse 3s ease-in-out infinite;
    opacity: 0.95;
}

/* تحديث بطاقة Discord */
.discord-card {
    background: rgba(23, 23, 43, 0.9);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.discord-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        #bc13fe 72deg,
        transparent 90deg,
        transparent 180deg,
        #bc13fe 272deg,
        transparent 290deg
    );
    animation: rotate 4s linear infinite;
    z-index: -1;
}

.discord-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: rgba(23, 23, 43, 0.9);
    border-radius: 13px;
    z-index: -1;
}

/* تأثيرات حركية جديدة */
@keyframes neon-pulse {
    0%, 100% {
        text-shadow: var(--neon-glow);
        opacity: 1;
    }
    50% {
        text-shadow: 0 0 2px rgba(255, 255, 255, 0.3),
                     0 0 4px rgba(157, 78, 221, 0.2);
        opacity: 0.8;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* تأثير العائم للبطاقة */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* تحسين زر النسخ */
.copy-button {
    background: transparent;
    border: 2px solid #bc13fe;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.copy-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(188, 19, 254, 0.4),
        transparent
    );
    transition: 0.5s;
}

.copy-button:hover::before {
    left: 100%;
}

.copy-button:hover {
    background: #bc13fe;
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.5);
}

