

[data-theme="light"] {
    --bg-color: #f8f9fa;
    --text-color: #212529;
    --nav-bg: rgba(248, 249, 250, 0.97);
    --footer-bg: rgba(248, 249, 250, 0.97);
    --card-bg: #ffffff;
    --border-color: #8A8E4B;
    --neon-shadow: 0 0 15px #8A8E4B66;
    --footer-text: rgba(0, 0, 0, 0.8);
}

:root {
    /* الألوان الداكنة الأصلية */
    --neon-blue: #8A8E4B;
    --neon-shadow: 0 0 5px #898D4B;
    --light-neon-blue: #BBC25D;
    --dark-neon-blue: #0a0a0a;
    --soft-neon-blue: #7B7F45;
    --deep-neon-blue: #64673D;
    --bg-color: #0a0a0a;
    --bg-color-card: #1b1b1b;
    --text-color: #ffffff;
    --footer-text: rgba(255, 255, 255, 0.9);
    --dot-color: #E78D57;


    /* الألوان الفاتحة الجديدة */
    --light-bg: #f0f8ff;
    --light-text: #1a1a1a;
    --light-card: #e6f7ff;
    --light-border: #a5aa62;
}

[data-theme="light"] {
    --bg-color: #f8f9fa;
    --text-color: #212529;
    --nav-bg: rgba(248, 249, 250, 0.97);
    --footer-bg: rgba(248, 249, 250, 0.97);
    --card-bg: #ffffff;
    --border-color: #afafaf;
    --neon-shadow: 0 0 15px #8A8E4B66;
    --neon-blue: #8A8E4B;
    --footer-text: rgba(0, 0, 0, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    transition: background 0.5s ease, color 0.3s ease;

}

.nav-container {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-color);
    backdrop-filter: blur(12px);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--neon-blue);
    box-shadow: var(--neon-shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--neon-blue);
    text-decoration: none;
    text-shadow: var(--neon-shadow);
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1.1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #E78D57;
    bottom: 0;
    right: 0;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #E78D57;
    text-shadow: var(--neon-shadow);
}

.nav-links a:hover::after {
    width: 100%;
    box-shadow: var(--neon-shadow);
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    position: relative;
    z-index: 1001;
    width: 35px;
    height: 25px;
}

.hamburger span {
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--neon-blue);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 1000%;
    height: 300%;
    background-image: radial-gradient(var(--dot-color) 1px, transparent 1px);
    animation: moveBackground 120s linear infinite;
    opacity: 0.1;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue);
    animation: textGlow 2s ease-in-out infinite alternate;
}

.hero p {
    color: var(--text-color) !important;
    margin-bottom: 2.5rem !important;
    font-size: 1.3rem;
    line-height: 1.6;
}

.cta-button {
    background: transparent;
    color: var(--neon-blue);
    padding: 1rem 2.5rem;
    border: 2px solid var(--neon-blue);
    border-radius: 30px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.4s;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    box-shadow: var(--neon-shadow);
}

.cta-button:hover {
    background: #9c6644c7;
    transform: translateY(-3px);
    box-shadow: 0 0 15px #E78D57, 0 0 25px #E78D57;
    color: #ffff;
    border:  1px solid #fff;
}

.footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--neon-blue);
    padding: 4rem 2rem;
    position: relative;
    backdrop-filter: blur(12px);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    color: var(--neon-blue);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-shadow: var(--neon-shadow);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 1rem;
    color: var(--footer-text) !important;
}

.footer-links a {
    color: var(--footer-text) !important;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    background: var(--neon-blue);
    bottom: -2px;
    right: 0;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--neon-blue);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: var(--neon-blue);
    font-size: 1.5rem;
    transition: all 0.3s;
}

.social-links a:hover {
    transform: translateY(-3px);
    text-shadow: var(--neon-shadow);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--footer-text) !important;
    opacity: 0.8;
}


.particle {
    animation: particleFloat 20s infinite linear;
}
@keyframes particleFloat {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-100vh) scale(0.5); }
    100% { transform: translateY(-200vh) scale(0); }
}

/* 全局过渡效果 */
body,
.theme-toggle,
.nav-links a,
.contact-info {
    transition: all 0.4s ease; /* 统一过渡时间 */
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: var(--bg-color) !important;
        width: 100%;
        text-align: center;
        padding: 2rem 0;
        gap: 2rem;
        transition: all 0.5s ease;
    }

    .nav-links.active { right: 0; }
    .hamburger { display: flex; }
    .hero h1 { font-size: 2.5rem; }
    .cta-button { font-size: 1rem; padding: 0.8rem 2rem; }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links { justify-content: center; }
}

[data-theme="light"] {
    .nav-links a,
    .footer-links a {
        color: var(--light-text) !important;
    }
    
    .nav-links a:hover,
    .footer-links a:hover {
        color: var(--light-border) !important;
    }
    
    .logo {
        color: var(--light-border) !important;
        text-shadow: 0 0 15px #8A8E4B66;
    }
    
    .theme-toggle { background: linear-gradient(45deg, #8A8E4B, #E78D57); }

    .hamburger.active span {
        background: var(--light-bg);
    }
    .nav-links  {
        background: var(--light-bg);
    }
    .hamburger.active span{
        background: var(--border-color);
    }
}




/* Theme Toggle 按钮样式 */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px; /* 注意: 文件中存在冲突的 left/right，此处以最终定义为准 */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--neon-blue);
    border: 2px solid var(--light-neon-blue); /* 最终定义覆盖了之前的 border 颜色 */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--neon-shadow);
    z-index: 1000;
    transition: all 0.3s ease; /* 包含所有属性的平滑过渡 */
}

/* 悬停效果 */
.theme-toggle:hover {
    transform: scale(1.1) rotate(180deg); /* 缩放 + 旋转动画 */
    background: var(--deep-neon-blue); /* 颜色变化 */
    box-shadow: 0 0 25px var(--neon-blue); /* 光晕增强 */
}

/* 图标样式 */
.theme-toggle i {
    position: absolute;
    font-size: 1.2rem;
    color: var(--bg-color-card);
    transition: 
        opacity 0.3s ease,
        transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* 贝塞尔曲线动画 */
}

/* 月亮图标 (默认显示) */
.moon-icon {
    display: block;
}

/* 太阳图标 (默认隐藏) */
.sun-icon {
    display: none;
}

/* 浅色主题时的图标切换 */
[data-theme="light"] .moon-icon {
    display: none;
    color: #000000;
}
[data-theme="light"] .sun-icon {
    display: block;
    color: #ffffff;

}

/* 其他关联动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 粒子动画 (间接关联) */
.particle {
    animation: particleFloat 20s infinite linear;
}
@keyframes particleFloat {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-100vh) scale(0.5); }
    100% { transform: translateY(-200vh) scale(0); }
}

/* 全局过渡效果 */
body,
.theme-toggle,
.nav-links a,
.contact-info {
    transition: all 0.4s ease; /* 统一过渡时间 */
}