

[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);
}

/* ==================== Global Styles ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.5s ease, color 0.3s ease;
}

/* ==================== Navigation Styles ==================== */
.nav-container {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-color);
  /* backdrop-filter: blur(12px); */
  padding: 1rem 2rem;
  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-shadow: var(--neon-shadow);
  transition: all 0.3s ease;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 3rem;
}

.nav-links a {
  color: var(--text-color);
  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: var(--neon-blue);
  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 Menu ==================== */
.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);
}

/* ==================== About Section ==================== */
.about {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.about-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--neon-blue);
  text-shadow: var(--neon-shadow);
}

.about-content p {
  margin: 1rem 0;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ==================== Footer Styles ==================== */
.footer {
  background: var(--bg-color);
  border-top: 1px solid var(--neon-blue);
  padding: 4rem 2rem;
  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;
}

.footer-links a {
  color: var(--text-color);
  text-decoration: none;
  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);
}


/* ==================== Responsive Design ==================== */
@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; }

  .nav-links a {
    font-size: 1.2rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
  }

  .nav-links a:hover {
    background: rgba(255, 102, 0, 0.05);
  }

  .about-content h1,
  .about h1 {
    font-size: 2.5rem;
  }

  .about-content p {
    font-size: 1rem;
  }

  .footer {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}
/* ==================== Animations & Effects ==================== */
@keyframes moveBackground {
  from {
    transform: rotate(0deg) translateX(0);
  }
  to {
    transform: rotate(360deg) translateX(-50%);
  }
}

@keyframes textGlow {
  from {
    text-shadow: 0 0 10px var(--neon-blue);
  }
  to {
    text-shadow: 0 0 30px var(--neon-blue);
  }
}

@keyframes buttonGlow {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes particleFloat {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-100vh) scale(0.5);
  }
  100% {
    transform: translateY(-200vh) scale(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.animate-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

.about::before {
  content: '';
  position: absolute;
  width: 1000%;
  height: 300%;
  background: repeating-linear-gradient(
      45deg,
      transparent,
      transparent 25px,
      var(--neon-blue) 26px,
      var(--neon-blue) 27px
  );
  animation: moveBackground 120s linear infinite;
  opacity: 0.1;
}

.about-content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}




/* 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; /* 统一过渡时间 */
}
