:root {
  --green: rgb(21, 147, 80);
  --green-deep: #0b552c;
}

/* === الإعدادات العامة === */
@font-face {
  font-family: 'ultrasfont';
  src: url('ultrasliberi.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000;
  --green: #159350;
  --green-deep: #0f7a3f;
  --white: #fff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  background: radial-gradient(circle at top left, #000 70%, #041a0d);
  color: var(--white);
  font-family: 'Segoe UI', Tahoma, sans-serif;
  overflow-x: hidden;
}

/* === الشريط الجانبي === */
.green-sidebar {
  position: fixed;
  left: 30px;
  top: 0;
  width: 50px;
  height: 100vh;
  background: linear-gradient(to bottom, var(--green), var(--green-deep));
  box-shadow:none;
  z-index: 50;
}
/* === الهيدر === */
.header {
  position: fixed;
  top: 10px;
  left: 0; right: 0;
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 140;
}

.title {
  font-family: 'ultrasfont', 'Segoe UI', sans-serif;
  color: var(--green);
  font-size: clamp(24px, 5vw, 60px);
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(21,147,80,0.35);
  animation: titleGlow 2.5s infinite alternate;
}

@keyframes titleGlow {
  from { filter: drop-shadow(0 0 6px rgba(21,147,80,0.25)); }
  to { filter: drop-shadow(0 0 16px rgba(21,147,80,0.6)); }
}

.logo {
  margin-top: 10px;
  width: 70px;
  height: 70px;
}

.logo img {
  width: 100%;

}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* === المحتوى === */
.main {
  max-width: 960px;
  margin: 180px auto 0;
  padding: 20px;
}

/* === السوشيال === */
.social-section {
  text-align: center;
  margin-bottom: 70px;
}

.social-title {
  color: var(--green);
  font-family: 'ultrasfont';
  font-size: 28px;
  margin-bottom: 25px;
  text-shadow: 0 0 10px var(--green);
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

/* ✅ عدّلنا هنا */
.social-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--green);
  font-size: 30px;
  color: #fff; /* ← الآن أبيض */
  box-shadow: none; /* ← حذف التوهج الأخضر */
  transition: 0.3s;
}

.social-icon:hover {
  transform: scale(1.2);
  background: var(--green);
  color: #000; /* ← أسود عند المرور */
  box-shadow: 0 0 35px var(--green);
}

/* ✅ عند تمرير الماوس يتحول لون الأيقونة الداخلية للأخضر */
.social-icon:hover i {
  color: #000;
}

.sun-section {
  position: relative;          /* مهم جداً */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 60px;
}

/* الشمس */
.sun-container {
  position: relative;
}

.sun-image {
  width: 160px;
  height: 160px;
  filter: drop-shadow(0 0 20px rgba(21,147,80,0.4));
  transition: transform 0.3s ease-out, filter 0.3s ease-out;
  animation: slowRotate 30s linear infinite;
  z-index: 1;   /* الشمس في الخلف */
}

/* اللوجو الثابت فوق الشمس */
.logo-fixed {
  position: absolute;
  width: 100px;         /* يمكنك تغييره */
  height: auto;
  z-index: 3;           /* فوق الشمس */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes slowRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.sun-image.scrolled {
  filter: drop-shadow(0 0 40px rgba(21,147,80,0.7));
  transform: scale(1.05);
}

/* === النص العربي === */
.arabic-text-section {
  display: flex;
  justify-content: center;
}

.arabic-text {
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(21,147,80,0.2);
  border-radius: 10px;
  padding: 25px;
  font-family: 'Lateef', serif;
  font-size: 22px;
  line-height: 1.9;
  color: var(--white);
  width: min(90%, 800px);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.arabic-text.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === الفوتر === */
/* === الفوتر === */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;     /* يوسّط العناصر أفقياً */
  justify-content: center; /* يوسّطها عمودياً */
  text-align: center;
  color: var(--green);
  padding: 40px 10px;
  position: relative;
  z-index: 10;
}

/* رمز اللانهاية */
.infinity {
  width: 160px;
  height: 64px;
  overflow: visible;
  display: block;
  filter: none !important;        /* منع أي توهج أو ظل */
  box-shadow: none !important;    /* تعطيل أي ظل */
}
.infinity path,
.infinity circle {
  filter: none !important;
  stroke: #159350 !important;
  box-shadow: none !important;
}


/* النص تحت اللانهاية */
.infinity-label {
  color: #fff;
  font-size: 14px;
  margin-top: 8px;
  text-align: center;
}

/* الحقوق */
.copyright {
  color: rgba(21,147,80,0.8);
  font-size: 13px;
  margin-top: 8px;
  text-align: center;
}


/* === تجاوب الشاشات الصغيرة === */
@media (max-width: 700px) {
  .green-sidebar { left: 15px; width: 45px; }
  .title { font-size: 20px; }
  .logo { width: 56px; height: 56px; }
  .social-icon { width: 60px; height: 60px; font-size: 26px; }
  .sun-wrapper { width: 150px; height: 150px; }
  .sun { width: 110px; height: 110px; }
  .arabic-text { font-size: 20px; padding: 18px; }
}
/* وهج أخضر متحرك في أسفل الصفحة */
.footer-glow {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 220px;
  background: radial-gradient(circle at center bottom, rgba(21, 147, 80, 0.25), transparent 70%);
  pointer-events: none;
  transition: transform 0.2s ease-out;
  z-index: 5;
}
/* تحريك أيقونات التواصل، الشمس، والنص العربي نحو اليمين */
.social-section,
.sun-section,
.arabic-text-section {
  position: relative;
  right: -30px; /* زيد أو نقص القيمة حسب ما يعجبك */
}
/* ===== هيدر متحرك بالخلفية السوداء ===== */
.dynamic-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 0 0 25px rgba(21, 147, 80, 0.25);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px 0;
  z-index: 200;
  transition: all 0.4s ease;
}

/* العنوان */
.dynamic-header .title {
  font-family: 'ultrasfont', sans-serif;
  color: var(--green);
  font-size: clamp(20px, 3vw, 40px);
  letter-spacing: 4px;
  text-shadow: 0 0 20px rgba(21,147,80,0.5);
  transition: all 0.3s ease;
}

/* اللوغو */
.dynamic-header .logo img {
  width: 60px; /* صغرناه قليلاً */
  height: auto;
  margin-top: 10px;
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* تأثير عند التمرير */
.dynamic-header.scrolled {
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 45px rgba(21,147,80,0.45);
  transform: translateY(-6px) scale(1.03);
}

.dynamic-header.scrolled .title {
  color: #1bd36e;
  text-shadow: 0 0 30px rgba(27,211,110,0.8);
}

.dynamic-header.scrolled .logo img {
  transform: scale(1.08); /* بدون ميلان */
  filter: drop-shadow(0 0 20px rgba(21,147,80,0.8));
}

/* === خلفية الموقع الأساسية بدون توهج أخضر === */
body {
  background: radial-gradient(circle at top right, #0a0a0a 0%, #000 80%);
  color: #fff;
  overflow-x: hidden;
}

/* نرجّع الشريط الجانبي الأخضر بدون أي ضوء */
.green-sidebar {
  position: fixed;
  left: 50px;
  top: 0;
  width: 70px;
  height: 100vh;
  background: linear-gradient(to bottom, var(--green), var(--green-deep));
  box-shadow: none;
  z-index: 50;
}
@media (max-width: 768px) {
  .green-sidebar {
    left: 25px;
    width: 40px;
  }
}
/* ===== أيقونات وسائل التواصل ===== */
.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-top: 20px;
}

.social-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  color: #ffffff;
  transition: all 0.35s ease;
  box-shadow: 0 0 15px rgba(21,147,80,0.15);
}

/* عند التحويم */
.social-icon:hover {
  background: var(--green);
  color: #000;
  transform: scale(1.15);
  box-shadow: 0 0 25px var(--green);
}

/* عند الشاشات الصغيرة */
@media (max-width: 768px) {
  .social-icon {
    width: 60px;
    height: 60px;
    font-size: 26px;
  }
}
/* إزالة الخط التحتي من روابط الأيقونات */
.social-icons a {
  text-decoration: none !important;
}
