/* الأساسيات */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --primary-color: #4a3260;
  --secondary-color: rgba(86, 59, 85, 0.681);
  --dark-color: #121212;
  --light-color: #f8f9fa;
  --gray-color: #2d2d2d;
}

/* Body */
body {
  background-color: var(--dark-color);
  color: var(--light-color);
  line-height: 1.6;
  transition: all 0.3s ease;
  overflow-x: hidden;
  min-height: 100vh;
}

body.light-mode {
  background-color: var(--light-color);
  color: var(--dark-color);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Cursor */
.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-color);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s;
  opacity: 0;
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.2s ease-out;
  opacity: 0;
}

body.custom-cursor .cursor-dot,
body.custom-cursor .cursor-outline {
  opacity: 1;
}

/* Header */
header {
  background-color: var(--dark-color);
  padding: 15px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.light-mode header {
  background-color: var(--light-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.logo {
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.logo-img {
  width: 50px;
  height: 40px;
  border-radius: 50%;
  margin-left: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  filter: drop-shadow(0 0 8px #541e54) drop-shadow(0 0 15px #b266b2);
  transition: 0.3s ease-in-out;
}

.logo-img:hover {
  filter: drop-shadow(0 0 12px #541e54) drop-shadow(0 0 25px #d080d0);
}

/* Nav */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 25px;
}

.nav-links a {
  color: var(--light-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.light-mode .nav-links a {
  color: var(--dark-color);
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* أزرار */
.language-switcher,
.theme-switcher,
.menu-toggle {
  background: var(--gray-color);
  color: var(--light-color);
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  margin-left: 10px;
  transition: all 0.3s ease;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.light-mode .language-switcher,
.light-mode .theme-switcher,
.light-mode .menu-toggle {
  background: #e9ecef;
  color: var(--dark-color);
}

.menu-toggle:hover,
.theme-switcher:hover,
.language-switcher:hover {
  background: var(--primary-color);
  color: white;
}

.header-buttons {
  display: flex;
  align-items: center;
}

/* الشريط الجانبي */
.sidebar {
  position: fixed;
  top: 0;
  right: -350px;
  width: 300px;
  height: 100vh;
  background: linear-gradient(to bottom, var(--dark-color), #1a1a1a);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  transition: right 0.4s ease;
  z-index: 2000;
  padding: 80px 20px 20px;
  overflow-y: auto;
}

.light-mode .sidebar {
  background: linear-gradient(to bottom, var(--light-color), #e9ecef);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.sidebar.active {
  right: 0;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.light-mode .sidebar-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.sidebar-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--light-color);
}

.light-mode .sidebar-title {
  color: var(--dark-color);
}

.close-sidebar {
  background: transparent;
  border: none;
  color: var(--light-color);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.light-mode .close-sidebar {
  color: var(--dark-color);
}

.close-sidebar:hover {
  color: var(--primary-color);
}

.sidebar-nav {
  list-style: none;
  margin-bottom: 30px;
}

.sidebar-nav li {
  margin-bottom: 15px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  color: var(--light-color);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.light-mode .sidebar-nav a {
  color: var(--dark-color);
}

.sidebar-nav a:hover {
  background: rgba(74, 50, 96, 0.3);
  color: var(--primary-color);
  transform: translateX(-5px);
}

.light-mode .sidebar-nav a:hover {
  background: rgba(74, 50, 96, 0.1);
}

.sidebar-nav i {
  margin-left: 10px;
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}
/* مسافة بين الأيقونة والنص في الوضع الإنجليزي */
body[dir="ltr"] .sidebar-nav i {
  margin-right: 10px; /* مسافة بين الأيقونة والنص */
}
.sidebar-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
}
/* ===== حل نهائي: ترتيب المسافة بين الأيقونة والنص في السايدبار ===== */

/* 1) تأكد أن روابط السايدبار تستخدم flex بحيث يمكن عمل مسافة بسهولة */
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 8px; /* المسافة بين الأيقونة والنص (عمل ممتاز على المتصفحات الحديثة) */
  white-space: nowrap; /* يمنع التفاف النص لداخل الأيقونة */
}

/* 2) اجعل الأيقونة صندوق ثابت العرض حتى النص ما يلزق فيها */
.sidebar-nav i {
  min-width: 28px;   /* عرض ثابت صغير يكفي للأيقونة */
  width: 28px;
  display: inline-flex;
  justify-content: center;
  text-align: center;
  margin: 0;         /* إلغاء أي مارجن سابق */
}

/* 3) إعدادات خاصة عندما تكون الصفحة باللغة الإنجليزية (LTR) */
body[dir="ltr"] .sidebar-nav a {
  flex-direction: row;  /* أيقونة على اليسار، نص على اليمين */
  text-align: left;
}
body[dir="ltr"] .sidebar-nav i {
  margin-right: 8px !important; /* تأمين المسافة إذا كانت هناك قواعد تِغيِرها */
  margin-left: 0 !important;
}

/* 4) إعدادات خاصة عندما تكون الصفحة بالعربية (RTL) */
body[dir="rtl"] .sidebar-nav a {
  flex-direction: row-reverse; /* أيقونة على اليمين، نص على اليسار */
  text-align: right;
}
body[dir="rtl"] .sidebar-nav i {
  margin-left: 8px !important;
  margin-right: 0 !important;
}

/* 5) احتياط: لو الأيقونات تُضاف عبر ::before بدل عنصر i */
.sidebar-nav a::before {
  display: inline-block;
  margin-right: 8px;
}
body[dir="rtl"] .sidebar-nav a::before {
  margin-left: 8px;
  margin-right: 0;
}
.sidebar-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.sidebar-social a:hover {
  transform: translateY(-5px);
  background: var(--secondary-color);
}

.sidebar-contact {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.light-mode .sidebar-contact {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.sidebar-contact p {
  margin-bottom: 10px;
  color: var(--light-color);
  font-size: 0.9rem;
}

.light-mode .sidebar-contact p {
  color: var(--dark-color);
}

.sidebar-contact a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

/* Hero */
.hero {
  padding: 110px 0 60px;
  background: linear-gradient(to bottom, var(--dark-color), #1a1a1a);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.light-mode .hero {
  background: linear-gradient(to bottom, var(--light-color), #e9ecef);
}

.hero-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.hero-main-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 25px;
}

.hero-content {
  background: rgba(72, 54, 71, 0.681);
  padding: 40px;
  border-radius: 16px;
  box-shadow:
    0 0 10px rgba(63, 45, 62, 0.681),
    0 0 20px rgba(63, 45, 62, 0.681),
    0 0 40px rgba(63, 45, 62, 0.681);
  border: 1px solid rgba(138, 43, 226, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
}

/* زر متوهج فوق الكرت */
.project-available-btn {
  position: absolute;
  top: -15px;
  right: 15px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: bold;
  color: white;
  background: rgba(111, 71, 149, 0.8);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  box-shadow:
    0 0 8px rgba(138, 43, 226, 0.7),
    0 0 15px rgba(138, 43, 226, 0.5),
    0 0 25px rgba(138, 43, 226, 0.3);
  z-index: 2;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.project-available-btn:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 12px rgba(138, 43, 226, 0.9),
    0 0 20px rgba(138, 43, 226, 0.7),
    0 0 30px rgba(138, 43, 226, 0.5);
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: var(--light-color);
  font-weight: 800;
}

.light-mode .hero h1 {
  color: var(--dark-color);
}

.hero h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: rgba(190, 112, 189, 0.681);
  font-weight: 600;
}
.light-mode .hero h2 {
  color: #391450;
}
.hero h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--light-color);
  font-weight: 400;
}

.light-mode .hero h3 {
  color: var(--dark-color);
}

.hero p {
  font-size: 1rem;
  margin-bottom: 25px;
  color: #ced4da;
  line-height: 1.7;
}

.light-mode .hero p {
  color: #2d3236;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(138, 43, 226, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--light-color);
}

.light-mode .btn-outline {
  color: var(--primary-color);
}

/* Hero Cards */
.hero-bottom-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.hero-card {
  background: rgba(45, 45, 45, 0.6);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: 1px solid rgba(63, 45, 62, 0.681);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  height: 100%;
  filter: grayscale(100%) brightness(80%);
}

.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
}

.hero-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(63, 45, 62, 0.681);
  filter: none;
}

.logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* الشعار داخل كرت "اعرف أكثر" */
.logo-card .logo-img {
  width: 300px; /* ضخم جداً بالبداية */
  height: 200px;
  margin-bottom: 40px;
  transition:
    transform 0.7s ease-in-out,
    filter 0.7s ease-in-out,
    opacity 0.7s ease-in-out;
  filter: drop-shadow(0 0 35px #a020f0) drop-shadow(0 0 65px #d080ff);
  opacity: 0.4; /* باهت عشان ما يبان واضح */
}

/* عند تمرير الماوس يصغر ويوضح */
.logo-card:hover .logo-img {
  transform: scale(2.3); /* يصغر بشكل كبير ويبان */
  filter: drop-shadow(0 0 10px #a020f0) drop-shadow(0 0 25px #d080ff);
  opacity: 1; /* يصير واضح */
}
.logo-card h3 {
  font-size: 1.3rem;
  margin: 10px 0;
  width: 100%;
  text-align: center;
  transition: all 0.3s ease;
}

.logo-card:hover h3 {
  transform: scale(0.95);
}

/* تصميم كرت المدونة مع أيقونة كبيرة */
.blog-card {
  display: flex;
  align-items: flex-start;
  text-align: right;
}

.blog-icon {
  font-size: 110px; /* زيادة حجم الأيقونة */
  color: #555;
  transition:
    color 0.4s ease-in-out,
    text-shadow 0.4s ease-in-out;
  margin-left: 37px;
  margin-right: 37px;
  flex-shrink: 0;
  align-self: center; /* توسيط عمودي */
}

.blog-card:hover .blog-icon {
  color: #ffd700;
  text-shadow:
    0 0 15px #ffd700,
    0 0 25px #ffae00,
    0 0 35px #ffae00;
  transform: scale(1.1); /* تأثير التكبير عند التمرير */
}

.blog-content {
  flex: 1;
  margin-top: 37px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-content h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: var(--light-color);
}

.blog-content p {
  font-size: 0.9rem;
  color: #ced4da;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* تصميم كرت التصاميم الإبداعية الجديد */
.designs-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.designs-content {
  flex: 1;
}

.designs-content h3 {
  font-size: 1.8rem; /* زيادة حجم النص ليكون أكبر من مدونتي */
  margin-bottom: 15px;
  color: var(--light-color);
  font-weight: 700;
}

.designs-gallery {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.designs-gallery img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.designs-gallery img:hover {
  transform: scale(1.05);
  border-color: var(--primary-color);
}

.hero-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--light-color);
  font-weight: 700;
}

.light-mode .hero-card h3 {
  color: var(--dark-color);
}

.hero-card p {
  color: #ced4da;
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 0.85rem;
}

.light-mode .hero-card p {
  color: #495057;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 0.8rem;
}

.card-btn i {
  margin-right: 10px;
  transform: scaleX(-1); /* يعكس الأيقونة أفقياً */
  transition: transform 0.3s ease;
}

.card-btn:hover i {
  transform: scaleX(-1) translateX(5px); /* يحافظ على الانعكاس ويضيف الحركة */
}
.card-btn:hover {
  background: var(--primary-color); /* لون الخلفية الجديد */
  color: white; /* لون النص */
}

/* Contact Section */
.contact {
  padding: 25px 0;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  text-align: center;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.email {
  font-size: 1.2rem;
  margin: 20px 0;
  display: inline-block;
  padding: 12px 25px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}
.creative-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: right;
}

.creative-content {
  flex: 1;
}

.creative-content h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.creative-content p {
  margin-bottom: 15px;
  font-size: 1rem;
  color: #444;
}

.arrow-btn {
  display: inline-block;
  font-size: 1.5rem;
  color: #6a0dad; /* بنفسجي */
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.arrow-btn:hover {
  transform: translateX(-5px);
  color: #9c27b0;
}

.stack-gallery {
  flex: 1;
  position: relative;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stack-gallery img {
  width: 120px;
  height: 150px;
  object-fit: cover;
  position: absolute;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.stack-gallery img:nth-child(1) {
  transform: rotate(-15deg) translateX(-40px);
}
.stack-gallery img:nth-child(2) {
  transform: rotate(-5deg) translateX(-20px);
}
.stack-gallery img:nth-child(3) {
  transform: rotate(5deg) translateX(20px);
}
.stack-gallery img:nth-child(4) {
  transform: rotate(15deg) translateX(40px);
}

.stack-gallery img:hover {
  transform: scale(1.1);
  z-index: 5;
}

.email:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.social-links {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.social-links a {
  display: inline-block;
  width: 45px;
  height: 45px;
  background-color: white;
  border-radius: 50%;
  margin: 0 8px;
  color: var(--primary-color);
  font-size: 18px;
  line-height: 45px;
  transition: all 0.3s ease;
  text-align: center;
}

.social-links a:hover {
  transform: translateY(-5px);
}

/* Footer */
footer {
  padding: 25px 0;
  background-color: #0a0a0a;
  color: white;
  text-align: center;
}

.light-mode footer {
  background-color: #dee2e6;
  color: var(--dark-color);
}
/* Responsive - شاشات الجوال */
@media (max-width: 768px) {
  /* ضبط التخطيط للكروت */
  .hero-main-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-bottom-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* تحسين كرت المدونة */
  .blog-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 15px;
    background: rgba(74, 50, 96, 0.6);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
  }

  /* تحسين المصباح */
  .blog-icon {
    font-size: 70px;
    margin: 0 auto 15px; 
    display: flex;
    justify-content: center;
    align-items: center;
    color: #555;
    transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
  }

  /* تحسين محتوى المدونة */
  .blog-content {
    margin-top: 0;
    text-align: center;
  }

  /* تحسين كرت التصاميم الإبداعية للحفاظ على التصميم الأفقي */
  .designs-card {
    flex-direction: row; /* الحفاظ على التصميم الأفقي */
    text-align: right;
    align-items: center;
    gap: 15px;
    background: rgba(74, 50, 96, 0.6);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
  }

  /* تحسين معرض الصور للجوال */
  .designs-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    flex: 1;
  }

  .designs-gallery img {
    width: 100%;
    height: 80px; /* تقليل الارتفاع للجوال */
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
  }

  .designs-gallery img:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
  }

  /* تحسين المحتوى النصي */
  .designs-content {
    flex: 1;
  }

  .designs-content h3 {
    font-size: 1.4rem; /* تعديل الحجم للجوال */
    margin-bottom: 10px;
  }

  /* تحسين الأزرار */
  .card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 10px;
    width: auto;
  }

  .card-btn i {
    margin-right: 8px;
    transform: scaleX(-1);
    transition: transform 0.3s ease;
  }

  .card-btn:hover i {
    transform: scaleX(-1) translateX(-3px);
  }

  /* باقي التعديلات الحالية */
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero h2 {
    font-size: 1.3rem;
  }

  .hero h3 {
    font-size: 1.1rem;
  }

  .hero-content {
    padding: 20px 15px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .header-buttons {
    gap: 5px;
  }

  .menu-toggle,
  .theme-switcher,
  .language-switcher {
    padding: 6px 10px;
    font-size: 0.75rem;
    margin-left: 5px;
  }
}

/* تعديلات إضافية للشاشات الصغيرة جداً */
@media (max-width: 480px) {
  .designs-card {
    flex-direction: column; /* تحويل إلى عمودي في الشاشات الصغيرة جداً */
    text-align: center;
  }
  
  .designs-gallery {
    width: 100%;
  }
  
  .designs-gallery img {
    height: 70px;
  }
}
/* ===== تحسين دقيق للجوال ===== */
@media (max-width: 768px) {
  /* تعديل كرت المدونة */
  .blog-icon {
    top: 0; /* نزل المصباح شوي */
    margin-bottom: 8px;
  }

  /* تعديل كرت التصاميم الإبداعية */
  .designs-gallery img {
    height: 85px; /* تصغير الصور شوي عشان النص يظهر كامل */
    object-fit: cover;
  }
}

/* للشاشات الصغيرة جداً */
@media (max-width: 480px) {
  .blog-icon {
    top: 2px; /* خفض بسيط إضافي للمصباح */
  }

  .designs-gallery img {
    height: 75px; /* تصغير أكثر للجوال الصغير جدًا */
  }
}
/* 🎨 تحسين دقيق للمصباح ولصور كرت التصاميم للجوال */
@media (max-width: 768px) {
  /* المصباح */
  .blog-icon {
    position: relative;
    top: 10px; /* نزّل المصباح شوي */
    font-size: 75px; /* حجم متوازن */
  }

  /* الصور داخل كرت التصاميم */
  .designs-gallery img {
    height: 85px; /* تصغير بسيط للصور */
    object-fit: cover;
  }

  /* ضمان عدم تغطية النص */
  .designs-content {
    margin-bottom: 10px;
  }
}

/* تصحيح إضافي للشاشات الصغيرة جدًا */
@media (max-width: 480px) {
  .blog-icon {
    top: 8px;
    font-size: 70px;
  }

  .designs-gallery img {
    height: 75px;
  }
}
/* 🎨 تأثير تلوّن الأزرار عند الضغط للجوال */
@media (max-width: 768px) {
  .card-btn:active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: scale(0.97);
    transition: all 0.2s ease;
  }
}
/* 🎯 تصحيح تغطية الصور للنص في كرت التصاميم */
@media (max-width: 768px) {
  .designs-gallery img {
    height: 65px !important; /* تصغير أكثر عشان النص يبين */
    object-fit: cover;
  }

  .designs-content h3 {
    font-size: 1.2rem; /* توازن بين النص والصور */
  }

  .designs-card {
    align-items: flex-start; /* يخلي النص يطلع فوق الصور شوي */
  }
}

@media (max-width: 480px) {
  .designs-gallery img {
    height: 60px !important; /* للجوالات الصغيرة جدًا */
  }
}
