/* --- 1. Global Setup & Variables --- */
:root {
  --bg-dark: #050505;
  --bg-card: rgba(255, 255, 255, 0.03);
  --primary: #007aff;
  --primary-glow: rgba(0, 122, 255, 0.3);
  --text-main: #f5f5f7;
  --text-gray: #86868b;
  --border: rgba(255, 255, 255, 0.08);
  --nav-bg: rgba(5, 5, 5, 0.85);
  --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  text-decoration: none;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family:
    "Inter",
    -apple-system,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

/* --- 2. Navigation --- */
.glass-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  height: 75px;
  display: flex;
  align-items: center;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -1px;
}
.logo .dot {
  color: var(--primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  background: #fff;
  color: #000 !important;
  padding: 8px 18px;
  border-radius: 40px;
  font-weight: 600 !important;
}

.lang-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: #fff;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
}

/* --- 3. Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 100px;
}
.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-img {
  width: 380px;
  height: 460px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  object-fit: cover;
  border: 4px solid var(--primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transition: all 0.5s ease;
}

.profile-img:hover {
  border-radius: 50%; /* تتحول لدائرة كاملة عند الهوفر */
}

/* للموبايل عشان الصورة تظهر فوق أو تحت الكلام */
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
  }
  .profile-img {
    width: 200px;
    height: 200px;
  }
}

.badge {
  background: var(--primary-glow);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 122, 255, 0.2);
}

.hero-title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

/* تعديل بسيط للـ Gradient text لو مستخدمه عشان يظهر بوضوح */
.gradient-text {
  background: linear-gradient(90deg, #fff, #a5a5a5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  color: var(--text-gray);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 650px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 10px 30px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-3px);
}

.btn-secondary {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- 4. Section Headers --- */
.section-header {
  padding: 120px 0 50px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.section-label {
  position: relative;
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: break-word;
}
.section-label::after {
  content: "";
  display: flex;
  position: absolute;
  flex: 1;
  height: 5px;
  background: var(--primary);
  width: 0%;
  border-radius: 0 12px / 12px;
  animation: pulseLine 1s linear infinite; /* انميشن متكرر ومستمر */
}

@keyframes pulseLine {
  0% {
    width: 0%;
  }
  50% {
    width: 100%;
  }
  100% {
    width: 0%;
  }
}

/* .section-label {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
} */
.line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* --- 5. Skills Grid (Global Style) --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 35px;
  border-radius: 24px;
  transition: var(--transition);
}
.skill-category:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-5px);
}
.category-icon {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 15px;
}
.skill-category h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.skill-category p {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 20px;
}
.skill-tags-modern {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-tags-modern span {
  font-size: 0.7rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* --- 6. Projects --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}
.project-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 18px;
  transition: var(--transition);
}
.project-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}
.project-image-box {
  width: 100%;
  aspect-ratio: 16/10;
  background: #111;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 20px;
}
.project-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}
.project-card:hover img {
  transform: scale(1.04);
}
.project-details h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.project-details p {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-bottom: 15px;
}
.project-links a {
  position: absolute;
  width: 100%;
  left: 0;
  height: 100%;
  top: 0;
  cursor: pointer;
  z-index: 100;
}
.project-links a i {
  display: none;
}
/* --- 7. Experience Timeline --- */
.experience-timeline {
  margin-top: 0;
  max-width: 1000px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 50px;
  padding-bottom: 60px;
  position: relative;
}
.active-dot {
  position: relative;
}
.timeline-item::after {
  content: "";
  position: absolute;
  left: 206px;
  top: 8px;
  height: 30px;
  width: 30px;
  background: var(--primary);
  animation: pulse 2s infinite;
  border-radius: 50%;
}
@keyframes pulse {
  0% {
    background-color: var(--primary);
  }
  50% {
    background-color: var(--border);
  }
  100% {
    background-color: var(--primary);
  }
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 220px;
  top: 8px;
  height: 100%;
  width: 1px;
  background: var(--border);
}
.timeline-meta {
  text-align: right;
  padding-right: 40px;
}
.company {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.period {
  font-size: 0.7rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 1px;
}
.role {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #fff;
  letter-spacing: -0.5px;
}
.exp-desc {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 15px;
}
.exp-bullets {
  list-style: none;
}
.exp-bullets li {
  color: var(--text-gray);
  font-size: 0.85rem;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}
.exp-bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* --- 8. Tech Ticker (Optional) --- */
.tech-ticker {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  margin-top: 50px;
}
.skill-tags {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: var(--text-gray);
  font-weight: 600;
  font-size: 0.8rem;
}

@media (max-width: 968px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .timeline-item::before {
    display: none;
  }
  .timeline-meta {
    text-align: left;
    padding: 0;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}
.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.4s ease-in-out;
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  /* تأثير تحويل الزرار لعلامة X */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* خلف المحتوى */
  pointer-events: none; /* عشان ميعطلش الكليكات */
}

.project-card-modern {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.project-card-modern:hover {
  transform: translateY(-10px);
  border-color: var(--gradient-start);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-preview {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card-modern:hover .project-preview img {
  transform: scale(1.1);
}

.overlay-actions {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card-modern:hover .overlay-actions {
  opacity: 1;
}

.action-btn {
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.action-btn.live {
  background: white;
  color: black;
}
.action-btn.repo {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.action-btn:hover {
  transform: scale(1.05);
}

.project-info {
  padding: 1.5rem;
}
.project-info h3 {
  margin-bottom: 0.8rem;
  font-size: 1.25rem;
  color: #fff;
}
.project-info p {
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tech-stack span {
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--gradient-start);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Container */
.social-sidebar {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  z-index: 10000;
  gap: 8px; /* مسافة بسيطة بين الأيقونات */
}

/* Base Style */
.social-icon {
  display: flex;
  align-items: center;
  padding: 14px;
  text-decoration: none;
  background: rgba(15, 15, 15, 0.6); /* خلفية سوداء شفافة فخمة */
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: none;
  border-radius: 0 12px 12px 0;
  width: 54px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Icon Color (Standard) */
.social-icon i {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.5); /* لون رمادي خافت في الحالة العادية */
  min-width: 26px;
  text-align: center;
  transition: all 0.4s ease;
}

.social-icon span {
  margin-left: 18px;
  color: #fff;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

/* --- THE HOVER MASTERCLASS --- */

.social-icon:hover {
  width: 160px;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
}

.social-icon:hover i {
  transform: scale(1.1);
  opacity: 1;
}

.social-icon:hover span {
  opacity: 1;
}

/* Hover Accent Colors (لمسة خفيفة جداً من لون البراند) */
.social-icon.whatsapp:hover {
  border-right: 3px solid #25d366;
}
.social-icon.whatsapp:hover i {
  color: #25d366;
  filter: drop-shadow(0 0 8px #25d366);
}

.social-icon.linkedin:hover {
  border-right: 3px solid #0077b5;
}
.social-icon.linkedin:hover i {
  color: #0077b5;
  filter: drop-shadow(0 0 8px #0077b5);
}

.social-icon.facebook:hover {
  border-right: 3px solid #1877f2;
}
.social-icon.facebook:hover i {
  color: #1877f2;
  filter: drop-shadow(0 0 8px #1877f2);
}

/* Responsive */
@media (max-width: 768px) {
  .social-sidebar {
    gap: 5px;
  }
  .social-icon {
    padding: 10px;
    width: 45px;
  }
  .social-icon:hover {
    width: 45px;
  }
  .social-icon span {
    display: none;
  }
}

/* شريط تقدم القراءة */
.progress-container {
  position: fixed;
  top: 0;
  z-index: 2000;
  width: 100%;
  height: 4px;
  background: transparent;
}

.progress-bar {
  height: 4px;
  background: var(
    --gradient-start,
    #007cf0
  ); /* سيعمل مع ألوانك المعرفة في ملف الـ CSS */
  width: 0%;
}

/* زر العودة للأعلى */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  display: none; /* مخفي افتراضياً */
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

#backToTop:hover {
  background: var(--gradient-start, #007cf0);
  transform: translateY(-5px);
}

/* تعديل بسيط ليتناسب مع اتجاه الصفحة العربي */
body.rtl #backToTop {
  right: auto;
  left: 20px;
}

:root {
  --primary-grad: linear-gradient(135deg, #007cf0 0%, #00dfd8 100%);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.12);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 2.5rem;
}

/* الزر الأساسي الملون */
.btn-main-gradient {
  padding: 14px 28px;
  background: var(--primary-grad);
  color: white;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 20px rgba(0, 124, 240, 0.2);
  border: none;
}

.btn-main-gradient:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 124, 240, 0.4);
}

/* زر الـ CV الزجاجي الفخم */
.btn-glass-special {
  position: relative;
  padding: 14px 28px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: white;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-glass-special::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: 0.5s;
}

.btn-glass-special:hover::before {
  left: 100%;
}

.btn-glass-special:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* زر أيقونة GitHub الدائري */
.btn-glass-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.btn-glass-icon:hover {
  background: #333; /* لون GitHub */
  transform: rotate(12deg) scale(1.1);
}

/* استجابة الشاشات الصغيرة */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-glass-icon {
    width: 100%;
  }
}

.project-card-modern:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.project-preview {
  position: relative;
  overflow: hidden;
}

.project-preview img {
  width: 100%;
  transition: transform 0.6s ease;
}

.project-card-modern:hover img {
  transform: scale(1.08);
}

.overlay-actions {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(15, 23, 42, 0.7);
  opacity: 0;
  transition: all 0.4s ease;
}

.project-card-modern:hover .overlay-actions {
  opacity: 1;
}

.action-btn {
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.action-btn.live {
  background: #06b6d4;
  color: white;
}

.action-btn.repo {
  background: #1e293b;
  color: white;
}

.action-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

@media (hover: none) {
  .overlay-actions {
    opacity: 1 !important;
    background: rgba(15, 23, 42, 0.85);
  }

  .project-preview img {
    transform: none;
  }
}

.global-footer {
  background: #080808;
  padding: 80px 10% 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.footer-brand span {
  color: var(--primary-glow);
}

.footer-bio {
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 400px;
  margin-bottom: 25px;
}

.footer-socials {
  display: flex;
  gap: 15px;
}
.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-socials a:hover {
  color: var(--primary-glow);
  border-color: var(--primary-glow);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 242, 255, 0.2);
}

.footer-links h4,
.footer-status h4 {
  color: #fff;
  margin-bottom: 25px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer-links ul {
  list-style: none;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: 0.3s;
  font-size: 0.95rem;
}

.nav-num {
  color: var(--primary-glow);
  margin-right: 8px;
  font-size: 0.8rem;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 5px;
}

.status-line {
  margin-bottom: 15px;
  font-size: 0.9rem;
}
.status-line .label {
  color: var(--text-muted);
  margin-right: 10px;
}
.status-line .value {
  color: #fff;
  font-weight: 500;
}
.status-line .value.green {
  color: #00ff88;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.built-with i {
  margin: 0 5px;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .global-footer {
    padding: 60px 5% 30px;
  }
}

.about-section {
  background: var(--bg-dark);
  position: relative;
}

.about-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Visual Styling */
.about-visual {
  position: relative;
}

.image-stack {
  position: relative;
  width: 250px;
  height: 350px;
}

.main-img {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  overflow: hidden;
  z-index: 2;
  position: relative;
  filter: grayscale(40%) contrast(110%);
  transition: 0.5s ease;
}

.main-img:hover {
  filter: grayscale(0%);
}

.main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.accent-frame {
  position: absolute;
  top: 30px;
  left: 30px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary-glow);
  border-radius: 15px;
  z-index: 1;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image-stack:hover .accent-frame {
  transform: translate(-15px, -15px);
  background: rgba(0, 242, 255, 0.05);
}

.about-content h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 30px;
}

.about-description {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 40px;
  text-align: start;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 5px;
}

.stat-text {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-glow);
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.about-badges span {
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  color: #eee;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 992px) {
  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  .image-stack {
    margin: 0 auto;
    width: 280px;
    height: 350px;
  }
  .about-stats {
    justify-content: center;
  }
  .about-badges {
    justify-content: center;
  }
}

.about-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

/* النص والعناوين */
.section-tag {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-family: "Fira Code", monospace;
}

.section-tag .line {
  width: 50px;
  height: 1px;
  background: var(--primary-color);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 30px;
}

.gradient-text {
  background: var(--primary-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.description {
  font-size: 1.1rem;
  color: var(--text-gray);
  line-height: 1.7;
  max-width: 540px;
}

.stats-grid {
  display: flex;
  gap: 30px;
  margin-top: 40px;
}

.stat-card {
  border-left: 2px solid var(--primary-color);
  padding-left: 15px;
}

.stat-number {
  font-size: 1.8rem;
  color: var(--text-light);
  margin: 0;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-gray);
}

.terminal-window {
  background: rgb(1, 1, 1);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.terminal-header {
  background: #1e1e1e;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dots {
  display: flex;
  gap: 8px;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.red {
  background: #ff5f56;
}
.yellow {
  background: #ffbd2e;
}

.terminal-title {
  font-size: 0.8rem;
  color: var(--text-gray);
  font-family: monospace;
}

.terminal-body {
  padding: 25px;
  font-family: "Fira Code", "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.terminal-body .key {
  color: #addbff;
}
.terminal-body .string {
  color: #ecc48d;
}

/* تأثير الصورة الخلفي */
.image-overlay-wrapper {
  position: absolute;
  top: 10%;
  right: -5%;
  z-index: 1;
  opacity: 0.2;
  filter: grayscale(100%);
  transition: 0.5s ease;
}

.about-visual-container:hover .image-overlay-wrapper {
  opacity: 0.5;
  filter: grayscale(0%);
}

.profile-img-minimal {
  width: 300px;
  border-radius: 20px;
}

/* التجاوب مع الموبايل */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.5rem;
  }
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.contact-info-box h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #fff, var(--text-dim));
  -webkit-background-clip: text;
}

.contact-info-box p {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.method-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.method-item i {
  font-size: 1.5rem;
  color: var(--primary);
  background: rgba(15, 15, 15, 0.6);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.method-item span {
  display: block;
  font-size: 0.8rem;
  color: var(--primary);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.method-item p {
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
  white-space: normal;
  word-break: break-word;
}

.social-links-mini {
  display: flex;
  gap: 1.2rem;
  margin-top: 5px;
}

.social-links-mini a {
  color: var(--text-dim);
  transition: 0.3s;
  font-size: 1.2rem;
}

.social-links-mini a:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

.server-status-box {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 20px;
  border-radius: 50px;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.pulse-green {
  background: #27c93f;
  box-shadow: 0 0 0 rgba(39, 201, 63, 0.4);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(39, 201, 63, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(39, 201, 63, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(39, 201, 63, 0);
  }
}

.server-status-box span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #27c93f;
}

.contact-form-card {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 15px;
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-sans);
  transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 45, 32, 0.02);
}

.submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 1rem;
  margin-top: 1rem;
  border: 0;
  cursor: pointer;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s;
}

.service-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.toast {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: #0a0a0c;
  color: #fff;
  padding: 16px 28px;
  border-radius: 12px;
  border: 1px solid var(--primary);
  box-shadow: 0 15px 40px var(--primary-grad);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10000;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-family: var(--font-mono);
  pointer-events: none;
}

.toast.show {
  bottom: 50px;
}

@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}
