:root {
  --primary-color: #12d640;
  --secondary-color: #09203a;
  --accent-color: #1c7d32;
  --text-color: #fff;
  --gradient-1: #12D640;
  --gradient-2: #3b82f6;
  --gradient-3: #8b5cf6;
  --font-main: "Cairo", sans-serif;
  --font-heading: "Raleway", sans-serif;
  --header-height: 70px;
  --container-width: 1200px;

  /* نظام z-index */
  --z-background: -2;
  --z-background-overlay: -1;
  --z-content: 0;
  --z-header: 1000;
  --z-modal: 2000;
  --z-tooltip: 3000;
}

/* ----------------- Custom Scrollbar ----------------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #010e1b;
}
::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
  border: 1px solid #010e1b;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* ----------------- LTR Overrides ----------------- */
[dir="ltr"] {
  --font-main: "Inter", sans-serif;
}

[dir="ltr"] .bx-chevron-left::before {
  content: "\e964";
  /* bx-chevron-right */
}

/* ----------------- Language Switcher Styles ----------------- */
.lang-switch-item {
  display: flex;
  align-items: center;
  margin-right: 15px;
}

[dir="ltr"] .lang-switch-item {
  margin-right: 0;
  margin-left: 15px;
}

.lang-btn {
  background: rgba(18, 214, 64, 0.1);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
  outline: none;
}

.lang-btn:hover {
  background: var(--primary-color);
  color: #fff;
}

.lang-btn i {
  font-size: 16px;
}

/* Reset و Box-sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  padding-top: var(--header-height);
  font-family: var(--font-main);
  color: var(--text-color);
  background: transparent;
  overflow-x: hidden;
  min-height: 100vh;
}

/* تحسينات prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .profile-image,
  .profile-image-ring,
  .profile-image-pulse,
  .btn,
  .social-link,
  .info-box,
  .icon-box {
    animation: none !important;
  }
}

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body::before {
  content: "";
  position: fixed;
  background: #010e1b;
  background-size: cover;
  inset: 0;
  height: 100vh;
  z-index: var(--z-background);
  pointer-events: none;
}

/* تجنب fixed background على الأجهزة المحمولة */
@media (max-width: 1024px) {
  body::before {
    background-attachment: scroll;
  }
}

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  body::before {
    background-attachment: fixed;
  }
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: var(--primary-color);
  text-decoration: none;
  outline: 3px solid var(--primary-color);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}

/* ===== اسم الموقع في الهيدر ===== */
.MyName {
  margin: 0;
  line-height: 1;
}

.MyName a {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--primary-color);
  background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2), var(--gradient-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.35s ease;
  position: relative;
  display: inline-block;
}

.MyName a:hover {
  transform: scale(1.03);
}

/* خط سفلي متدرج */
.MyName a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2), var(--gradient-3));
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: 4px;
}

.MyName a:hover::after,
.MyName a:focus::after {
  opacity: 1;
}

/*--------------------------------------------------------------
# Header - Redesigned
--------------------------------------------------------------*/
#header {
  background: rgba(9, 32, 58, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: var(--z-header);
  padding: 15px 0;
  height: var(--header-height);
  transition: all 0.3s ease;
}

#header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

/* Logo redesign */
.skills-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: flex-start;
  align-items: center;
}

.skill-logo {
  height: 35px;
  width: auto;
  max-width: 100px;
  filter: grayscale(20%);
  transition: all 0.3s ease;
  object-fit: contain;
}

.skill-logo:hover {
  filter: grayscale(0%);
  transform: scale(1.1);
}

.skill-badge {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 100px;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.skill-badge:hover {
  transform: translateY(-2px);
  background: rgba(18, 214, 64, 0.14);
  border-color: rgba(18, 214, 64, 0.3);
}

.logo {
  margin: 0;
  line-height: 1;
}

.logo a {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 1.2px;
  color: var(--primary-color);
  background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2), var(--gradient-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.35s ease;
  display: inline-block;
}

.logo a:hover,
.logo a:focus {
  transform: scale(1.03);
  outline: none;
}

/* Navigation redesign */
.nav-menu {
  display: flex;
  align-items: center;
}

.nav-menu ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 20px;
}

.nav-menu li:first-child {
  margin-inline-start: 0;
}

.nav-menu a {
  font-weight: 500;
  padding: 5px 10px;
  position: relative;
  font-size: 17px;
  color: var(--text-color);
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  inset-inline-end: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a:focus::after,
.nav-menu .active>a::after {
  width: 100%;
}

.nav-menu a:hover,
.nav-menu a:focus,
.nav-menu .active>a {
  color: var(--primary-color);
  outline: none;
}

/* Mobile Menu Button */
.mobile-nav-toggle {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.mobile-nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.mobile-nav-toggle:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 3px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    inset-inline-end: -100%;
    width: 80%;
    height: calc(100vh - var(--header-height));
    background-color: rgba(9, 32, 58, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    transition: inset-inline-end 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    z-index: var(--z-header);
    overflow-y: auto;
  }

  .nav-menu.active {
    inset-inline-end: 0;
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 10px;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .nav-menu a {
    display: block;
    padding: 15px 20px;
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  /* منع التمرير عند فتح القائمة */
  body.menu-open {
    overflow: hidden;
  }
}

/* Adjust section position */
section {
  overflow: hidden;
  position: relative;
  width: 100%;
  z-index: var(--z-content);
  background: inherit;
  padding: 60px 0;
}

section.section-show {
  opacity: 1;
}

/* Section Title */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 16px;
  font-weight: 700;
  padding: 8px 20px;
  line-height: 1.5;
  margin: 0 0 20px 0;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #fff;
  font-family: "Poppins", sans-serif;
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(18, 214, 64, 0.2);
}

.section-title h2::after {
  display: none;
}

.section-title p {
  margin: 10px 0 15px 0;
  font-size: 42px;
  font-weight: 800;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(90deg, #fff, var(--primary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: block;
}

/*--------------------------------------------------------------
# Hero Section - Redesigned
--------------------------------------------------------------*/
.hero-section {
  padding: 40px 5%;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(18, 214, 64, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../img/hero-bg.jpg') no-repeat center center/cover;
  opacity: 0.1;
  z-index: var(--z-background-overlay);
  pointer-events: none;
}

/*--------------------------------------------------------------
# Education - Custom Sizing Fix
--------------------------------------------------------------*/
.education-card .education-image {
  width: 100%;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.education-card .education-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.education-card:hover .education-image img {
  transform: scale(1.05);
}

.hero-content {
  padding-top: 5px;
  padding-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  gap: 40px;
}

/* القسم النصي */
.hero-text-section {
  flex: 1 1 55%;
  color: var(--text-color);
}

.hero-intro h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-color);
  background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2), var(--gradient-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  font-weight: 400;
  margin-bottom: 20px;
  color: var(--text-color);
}

.hero-subtitle .typing {
  font-weight: 600;
  display: inline-block;
}

/* روابط التواصل الاجتماعي */
.social-links {
  display: flex;
  gap: 15px;
  margin: 30px 0 40px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-size: 24px;
  color: var(--text-color);
  transition: all 0.3s ease;
  position: relative;
  min-width: 44px;
  min-height: 44px;
}

.social-link:hover,
.social-link:focus {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-5px);
  outline: none;
}

/* إخفاء tooltip على الشاشات الصغيرة */
@media (min-width: 768px) {
  .social-link::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
  }

  .social-link:hover::after,
  .social-link:focus::after {
    opacity: 1;
    visibility: visible;
    bottom: -30px;
  }
}

/* الأزرار */
.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 16px;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  min-height: 50px;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--text-color);
  border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
  background: transparent;
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(18, 214, 64, 0.3);
  outline: none;
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--primary-color);
  color: var(--text-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(18, 214, 64, 0.3);
  outline: none;
}

/* قسم الصورة */
.hero-image-section {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-image-container {
  position: relative;
  width: min(350px, 80vw, 45vh);
  height: min(350px, 80vw, 45vh);
  aspect-ratio: 1/1;
}

.profile-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--accent-color);
  animation: float 6s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.profile-image-ring {
  position: absolute;
  inset: -10px;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: rotate 20s linear infinite;
  z-index: 1;
  pointer-events: none;
}

.profile-image-ring::before {
  content: '';
  position: absolute;
  inset: -5px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.profile-image-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
  z-index: 0;
  background: rgba(18, 214, 64, 0.2);
  pointer-events: none;
}

/* الحركات */
@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.4;
  }

  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

/* تصميم متجاوب */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-text-section,
  .hero-image-section {
    flex: 1 1 100%;
    width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .profile-image-container {
    width: min(300px, 70vw, 40vh);
    height: min(300px, 70vw, 40vh);
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 30px 20px;
    min-height: auto;
    padding-top: 20px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .social-links {
    justify-content: center;
    gap: 12px;
  }

  .social-link {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .hero-intro h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .social-link {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .profile-image-container {
    width: min(250px, 65vw, 35vh);
    height: min(250px, 65vw, 35vh);
  }
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
html[dir="ltr"] .about,
html[dir="ltr"] .services,
html[dir="ltr"] .skills,
html[dir="ltr"] .contact,
html[dir="ltr"] .portfolio,
html[dir="ltr"] .about-me .content,
html[dir="ltr"] .about-me .content ul,
html[dir="ltr"] .about-me .content p,
html[dir="ltr"] .about-me .content ul li,
html[dir="ltr"] .about-me .content ul i {
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .about-me .content ul i {
  padding-left: 2px;
  padding-right: 0;
}

html[dir="rtl"] .about,
html[dir="rtl"] .services,
html[dir="rtl"] .skills,
html[dir="rtl"] .contact,
html[dir="rtl"] .portfolio,
html[dir="rtl"] .about-me .content,
html[dir="rtl"] .about-me .content ul,
html[dir="rtl"] .about-me .content p,
html[dir="rtl"] .about-me .content ul li,
html[dir="rtl"] .about-me .content ul i {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .about-me .content ul i {
  padding-right: 2px;
  padding-left: 0;
}

.about-me .content h3 {
  font-weight: 700;
  font-size: 26px;
  color: var(--accent-color);
}

.about-me .content ul {
  list-style: none;
  padding: 0;
}

.about-me .content ul li {
  padding-bottom: 10px;
}

.about-me .content ul i {
  font-size: 20px;
  padding-right: 2px;
  color: var(--accent-color);
}

.about-me .content p:last-child {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Skills - تصحيح
--------------------------------------------------------------*/
.skills .progress {
  height: 50px;
  display: flex;
  background: none;
  position: relative;
}

.skills .progress .skill {
  padding: 0;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  display: block;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
}

.skills .progress .skill .val {
  float: right;
  font-style: normal;
}

.skills .progress-bar-wrap {
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.skills .progress-bar {
  width: 0%;
  height: 10px;
  transition: width 0.9s ease;
  background-color: var(--accent-color);
}

/*--------------------------------------------------------------
# Interests
--------------------------------------------------------------*/
.interests .icon-box {
  display: flex;
  align-items: center;
  padding: 20px;
  background: var(--secondary-color);
  transition: ease-in-out 0.3s;
  border-radius: 8px;
  margin-bottom: 15px;
}

.interests .icon-box i {
  font-size: 32px;
  padding-right: 10px;
  line-height: 1;
}

.interests .icon-box h3 {
  font-weight: 700;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-size: 16px;
  color: var(--text-color);
}

.interests .icon-box:hover {
  background: #042b56eb;
  transform: translateY(-5px);
}

/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/
.services .icon-box {
  text-align: center;
  background: var(--secondary-color);
  padding: 40px;
  transition: all ease-in-out 0.3s;
  margin: 10px;
  border-radius: 10px;
  height: 100%;
}

.services .icon-box .icon {
  margin: 0 auto;
  width: 64px;
  height: 64px;
  background: var(--accent-color);
  border-radius: 5px;
  transition: all .3s ease-out 0s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transform-style: preserve-3d;
}

.services .icon-box .icon i {
  color: var(--text-color);
  font-size: 28px;
}

.services .icon-box .icon::before {
  position: absolute;
  content: '';
  left: -8px;
  top: -8px;
  height: 100%;
  width: 100%;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  transition: all .3s ease-out 0s;
  transform: translateZ(-1px);
}

.services .icon-box h4 {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 24px;
}

.services .icon-box h4 a {
  color: var(--text-color);
}

.services .icon-box p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.services .icon-box:hover {
  background: #042e5f;
  border-color: var(--accent-color);
  transform: translateY(-5px);
}

.services .icon-box:hover .icon {
  background: var(--text-color);
}

.services .icon-box:hover .icon i {
  color: var(--accent-color);
}

.services .icon-box:hover .icon::before {
  background: #35e888;
}

.services .icon-box:hover h4 a,
.services .icon-box:hover p {
  color: var(--primary-color);
}

/*--------------------------------------------------------------
# Portfolio
--------------------------------------------------------------*/
.portfolio .portfolio-item {
  margin-bottom: 30px;
}

.portfolio #portfolio-flters {
  padding: 0;
  margin: 0 auto 15px auto;
  list-style: none;
  text-align: center;
  border-radius: 50px;
  padding: 2px 15px;
}

.portfolio #portfolio-flters li {
  cursor: pointer;
  display: inline-block;
  padding: 8px 16px 10px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-color);
  background: rgba(255, 255, 255, 0.1);
  margin: 0 3px 10px 3px;
  transition: all 0.3s ease-in-out;
  border-radius: 4px;
}

.portfolio #portfolio-flters li:hover,
.portfolio #portfolio-flters li.filter-active,
.portfolio #portfolio-flters li:focus {
  background: var(--accent-color);
  outline: none;
}

.portfolio #portfolio-flters li:last-child {
  margin-inline-end: 0;
}

.portfolio .portfolio-wrap {
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  width: 100%;
}

.portfolio .portfolio-title {
  padding-top: 15px;
}

.portfolio .portfolio-title h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.portfolio .portfolio-title h4 a {
  color: var(--text-color);
  transition: 0.3s;
}

.portfolio .portfolio-title h4 a:hover {
  color: var(--primary-color);
}

.portfolio .portfolio-wrap {
  display: grid;
  place-items: center;
}

.portfolio .portfolio-wrap img {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
  transition: all 0.3s ease-in-out;
}

.portfolio .portfolio-wrap:hover img {
  transform: scale(1.05);
}

.portfolio .portfolio-wrap .portfolio-info {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
  z-index: 3;
  transition: all ease-in-out 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.portfolio .portfolio-wrap .portfolio-info::before {
  display: block;
  content: "";
  width: 48px;
  height: 48px;
  position: absolute;
  top: 35px;
  left: 35px;
  border-top: 3px solid var(--text-color);
  border-left: 3px solid var(--text-color);
  transition: all 0.5s ease 0s;
  z-index: 9994;
}

.portfolio .portfolio-wrap .portfolio-info::after {
  display: block;
  content: "";
  width: 48px;
  height: 48px;
  position: absolute;
  bottom: 35px;
  right: 35px;
  border-bottom: 3px solid var(--text-color);
  border-right: 3px solid var(--text-color);
  transition: all 0.5s ease 0s;
  z-index: 9994;
}

.portfolio .portfolio-wrap .portfolio-info h4 {
  font-size: 20px;
  color: var(--text-color);
  font-weight: 600;
}

.portfolio .portfolio-wrap .portfolio-info p {
  color: var(--text-color);
  font-size: 14px;
  text-transform: uppercase;
  padding: 0;
  margin: 0;
}

.portfolio .portfolio-wrap .portfolio-links {
  text-align: center;
  z-index: 4;
}

.portfolio .portfolio-wrap .portfolio-links a {
  color: var(--text-color);
  margin: 0 2px;
  font-size: 28px;
  display: inline-block;
  transition: 0.3s;
}

.portfolio .portfolio-wrap .portfolio-links a:hover,
.portfolio .portfolio-wrap .portfolio-links a:focus {
  color: #63eda3;
  outline: none;
}

.portfolio .portfolio-wrap:hover::before {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 1;
}

.portfolio .portfolio-wrap:hover .portfolio-info {
  opacity: 1;
}

.portfolio .portfolio-wrap:hover .portfolio-info::before {
  top: 15px;
  left: 15px;
}

.portfolio .portfolio-wrap:hover .portfolio-info::after {
  bottom: 15px;
  right: 15px;
}

/*--------------------------------------------------------------
# Contact - تحسينات كاملة
--------------------------------------------------------------*/
.contact .info-box {
  color: var(--text-color);
  padding: 30px;
  width: 100%;
  background: rgba(9, 32, 58, 0.8);
  border: 2px solid rgba(18, 214, 64, 0.3);
  border-radius: 15px;
  height: 100%;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact .info-box:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(18, 214, 64, 0.2);
}

.contact .info-box i.bx {
  font-size: 36px;
  color: var(--primary-color);
  background: rgba(18, 214, 64, 0.1);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  float: none;
}

.contact .info-box:hover i.bx {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: scale(1.1);
}

.contact .info-box h3 {
  font-size: 24px;
  color: var(--text-color);
  font-weight: 600;
  margin-bottom: 25px;
  font-family: "Cairo", sans-serif;
  position: relative;
  padding-bottom: 10px;
  margin-inline-start: 0;
  margin-top: 0;
}

.contact .info-box h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-end: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
  border-radius: 2px;
}

.contact .info-box p {
  padding: 0;
  color: var(--text-color);
  line-height: 24px;
  font-size: 16px;
  margin: 0 0 15px 0;
  margin-inline-start: 0;
}

/* روابط التواصل في صندوق الاتصال */
.contact .info-box .social-links {
  margin: 20px 0 0 0;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.contact .info-box .social-links a {
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: var(--text-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-width: 44px;
  min-height: 44px;
}

/* تأثير خلفية ملونة عند hover */
.contact .info-box .social-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: currentColor;
  opacity: 0.1;
  z-index: -1;
}

/* ألوان خاصة بكل وسيلة تواصل */
.contact .info-box .social-links a.github {
  background: rgba(24, 23, 23, 0.3);
  border: 2px solid #333;
}

.contact .info-box .social-links a.telegram {
  background: rgba(0, 136, 204, 0.3);
  border: 2px solid #0088cc;
}

.contact .info-box .social-links a.twitter {
  background: rgba(29, 161, 242, 0.3);
  border: 2px solid #1da1f2;
}

.contact .info-box .social-links a.whatsapp {
  background: rgba(37, 211, 102, 0.3);
  border: 2px solid #25d366;
}

/* تأثير hover للروابط */
.contact .info-box .social-links a:hover,
.contact .info-box .social-links a:focus {
  transform: translateY(-5px) scale(1.1);
  color: var(--text-color);
  outline: none;
}

.contact .info-box .social-links a.github:hover,
.contact .info-box .social-links a.github:focus {
  background: #333;
  box-shadow: 0 10px 20px rgba(51, 51, 51, 0.3);
}

.contact .info-box .social-links a.telegram:hover,
.contact .info-box .social-links a.telegram:focus {
  background: #0088cc;
  box-shadow: 0 10px 20px rgba(0, 136, 204, 0.3);
}

.contact .info-box .social-links a.twitter:hover,
.contact .info-box .social-links a.twitter:focus {
  background: #1da1f2;
  box-shadow: 0 10px 20px rgba(29, 161, 242, 0.3);
}

.contact .info-box .social-links a.whatsapp:hover,
.contact .info-box .social-links a.whatsapp:focus {
  background: #25d366;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

/* تصميم متجاوب لصندوق الاتصال */
@media (max-width: 768px) {
  .contact .info-box {
    padding: 20px;
  }

  .contact .info-box i.bx {
    width: 60px;
    height: 60px;
    font-size: 30px;
    margin: 0 auto 20px;
  }

  .contact .info-box h3 {
    font-size: 20px;
    text-align: center;
  }

  .contact .info-box p {
    text-align: center;
  }

  .contact .info-box .social-links {
    gap: 12px;
  }

  .contact .info-box .social-links a {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
}

@media (max-width: 576px) {
  .contact .info-box .social-links a {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .contact .info-box .social-links {
    gap: 10px;
  }
}

/* Footer */
html[dir="ltr"] .footer {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .footer {
  direction: rtl;
  text-align: right;
}

.footer {
  background: var(--secondary-color);
  color: var(--text-color);
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.footer-about h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.footer-links h3,
.footer-contact h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-color);
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--primary-color);
  outline: none;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom .social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.footer-bottom .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  min-width: 44px;
  min-height: 44px;
}

.footer-bottom .social-links a:hover,
.footer-bottom .social-links a:focus {
  background: var(--primary-color);
  transform: translateY(-3px);
  outline: none;
}

.footer-bottom .social-links img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* توحيد أحجام الشعارات في الهيدر إذا وجدت */
.logo img {
  max-height: 40px;
  width: auto;
}

/* تحسينات RTL إضافية */
[dir="rtl"] .contact .info-box h3::after {
  background: linear-gradient(-90deg, var(--primary-color), transparent);
}

[dir="rtl"] .nav-menu a::after {
  inset-inline-start: 0;
  inset-inline-end: auto;
}

/* تحسينات للأجهزة التي تدعم hover */
@media (hover: hover) and (pointer: fine) {

  .btn:hover,
  .social-link:hover,
  .info-box:hover,
  .icon-box:hover,
  .portfolio-wrap:hover {
    transform: translateY(-5px);
  }
}

/* تحسينات للشاشات العريضة جداً */
@media (min-width: 1920px) {
  .hero-content {
    max-width: 1400px;
  }

  .profile-image-container {
    width: min(400px, 25vw);
    height: min(400px, 25vw);
  }
}

/* تحسينات التحميل للصور */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.profile-image {
  background-color: #f0f0f0;
}

/* تحسينات للقراءات الشاشة */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* إضافة تحسينات للتماس (touch) */
@media (hover: none) and (pointer: coarse) {

  .social-link:active,
  .btn:active,
  .nav-menu a:active {
    transform: scale(0.98);
  }

  .social-link:active::after,
  .social-link:focus::after {
    display: none;
  }
}

/*--------------------------------------------------------------
# Premium Aesthetic Additions
--------------------------------------------------------------*/
.about {
  background: radial-gradient(circle at 10% 30%, rgba(18, 214, 64, 0.04) 0%, transparent 45%),
              radial-gradient(circle at 90% 70%, rgba(139, 92, 246, 0.03) 0%, transparent 45%);
}

.services {
  background: radial-gradient(circle at 50% 50%, rgba(18, 214, 64, 0.03) 0%, transparent 60%);
}

/* تنسيق بطاقات التعليم والخبرة */
.education-card, .experience-card {
  background: rgba(9, 32, 58, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-inline-start: 4px solid var(--primary-color) !important;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 25px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.education-card:hover, .experience-card:hover {
  transform: translateY(-5px);
  border-color: rgba(18, 214, 64, 0.35) !important;
  box-shadow: 0 12px 35px rgba(18, 214, 64, 0.2);
}

.education-card h4, .experience-card h4 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 8px;
  font-family: var(--font-main);
  font-size: 1.25rem;
}

.education-card .education-institution, .experience-card h5 {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 1rem;
}

.education-card .education-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.education-card .education-list, .experience-card .experience-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.education-card .education-list li, .experience-card .experience-list li {
  position: relative;
  padding-inline-start: 20px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.education-card .education-list li::before, .experience-card .experience-list li::before {
  content: "•";
  position: absolute;
  inset-inline-start: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/*--------------------------------------------------------------
# Theme Toggle, Light Mode, Blog, and Modal Styles
--------------------------------------------------------------*/

/* Theme Toggle Button Styles */
.theme-switch-item {
  display: flex;
  align-items: center;
  margin-right: 15px;
}

[dir="ltr"] .theme-switch-item {
  margin-right: 0;
  margin-left: 15px;
}

.theme-btn {
  background: rgba(18, 214, 64, 0.1);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
  outline: none;
  padding: 0;
}

.theme-btn:hover {
  background: var(--primary-color);
  color: #fff;
  transform: scale(1.1);
}

/* Light Theme Variable Overrides */
html[data-theme="light"] {
  --text-color: #1f2937;
  --secondary-color: #edf2f7;
}

html[data-theme="light"] body::before {
  background: #f4f7f6;
}

html[data-theme="light"] #header {
  background: rgba(244, 247, 246, 0.82);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .nav-menu a {
  color: #374151;
}

html[data-theme="light"] .nav-menu a:hover,
html[data-theme="light"] .nav-menu .active > a {
  color: var(--primary-color);
}

html[data-theme="light"] .hero-section {
  background: radial-gradient(circle at 80% 20%, rgba(18, 214, 64, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.02) 0%, transparent 50%);
}

html[data-theme="light"] .hero-subtitle {
  color: #4b5563;
}

html[data-theme="light"] .social-link {
  background: rgba(0, 0, 0, 0.05);
  color: #374151;
}

html[data-theme="light"] .social-link:hover {
  background: var(--primary-color);
  color: #fff;
}

html[data-theme="light"] .section-title h2 {
  color: #fff;
}

html[data-theme="light"] .about {
  background: radial-gradient(circle at 10% 30%, rgba(18, 214, 64, 0.02) 0%, transparent 45%),
              radial-gradient(circle at 90% 70%, rgba(139, 92, 246, 0.02) 0%, transparent 45%);
}

html[data-theme="light"] .about-me .content p {
  color: #374151;
}

html[data-theme="light"] .about-me .content ul li {
  color: #374151;
}

html[data-theme="light"] .education-card,
html[data-theme="light"] .experience-card {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .education-card h5,
html[data-theme="light"] .education-card .education-subtitle,
html[data-theme="light"] .education-card .education-list li,
html[data-theme="light"] .experience-card h5,
html[data-theme="light"] .experience-card .experience-list li {
  color: #374151;
}

html[data-theme="light"] .education-card .education-subtitle {
  color: #6b7280;
}

html[data-theme="light"] .interests .icon-box {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

html[data-theme="light"] .interests .icon-box h3 {
  color: #1f2937;
}

html[data-theme="light"] .interests .icon-box:hover {
  background: rgba(255, 255, 255, 0.95);
}

html[data-theme="light"] .portfolio #portfolio-flters li {
  color: #374151;
  background: rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .portfolio #portfolio-flters li:hover,
html[data-theme="light"] .portfolio #portfolio-flters li.filter-active {
  color: #fff;
  background: var(--accent-color);
}

html[data-theme="light"] .portfolio .portfolio-wrap {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .portfolio .portfolio-title h4 a {
  color: #1f2937;
}

html[data-theme="light"] .portfolio .portfolio-title h4 a:hover {
  color: var(--primary-color);
}

html[data-theme="light"] .contact .info-box {
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid rgba(18, 214, 64, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  color: #1f2937;
}

html[data-theme="light"] .contact .info-box h3,
html[data-theme="light"] .contact .info-box p {
  color: #1f2937;
}

html[data-theme="light"] .footer {
  background: #edf2f7;
  color: #2d3748;
}

html[data-theme="light"] .footer-links a {
  color: #2d3748;
}

html[data-theme="light"] .footer-links a:hover {
  color: var(--primary-color);
}

html[data-theme="light"] .footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .footer-bottom .social-links a {
  background: rgba(0, 0, 0, 0.05);
  color: #374151;
}

html[data-theme="light"] .footer-bottom .social-links a:hover {
  background: var(--primary-color);
  color: #fff;
}

/* Blog Cards */
.blog-card {
  background: rgba(9, 32, 58, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(18, 214, 64, 0.35);
  box-shadow: 0 12px 35px rgba(18, 214, 64, 0.2);
}

.blog-card .blog-img img {
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-img img {
  transform: scale(1.06);
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 10px;
}

.blog-date {
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

html[data-theme="light"] .blog-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .blog-card-title {
  color: #1f2937 !important;
}

html[data-theme="light"] .blog-card:hover {
  border-color: rgba(18, 214, 64, 0.35);
  box-shadow: 0 12px 35px rgba(18, 214, 64, 0.1);
}

/* Blog Modal Reader Overlay */
.blog-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(1, 14, 27, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

.blog-modal-content {
  background: rgba(9, 32, 58, 0.95);
  border: 1px solid rgba(18, 214, 64, 0.25);
  border-radius: 16px;
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) rgba(0, 0, 0, 0.2);
}

.blog-modal-content::-webkit-scrollbar {
  width: 6px;
}
.blog-modal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
.blog-modal-content::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
}

.blog-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 2.5rem;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
  z-index: 10;
}

[dir="rtl"] .blog-modal-close {
  right: auto;
  left: 20px;
}

.blog-modal-close:hover {
  color: var(--primary-color);
}

.blog-modal-body {
  font-family: var(--font-main);
  line-height: 1.8;
}

.blog-modal-body h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  border-bottom: 2px solid rgba(18, 214, 64, 0.2);
  padding-bottom: 15px;
}

.blog-modal-body p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
}

.blog-modal-body ul {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
}

.blog-modal-body li {
  margin-bottom: 6px;
}

html[data-theme="light"] .blog-modal-overlay {
  background: rgba(255, 255, 255, 0.85);
}

html[data-theme="light"] .blog-modal-content {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .blog-modal-close {
  color: #4b5563;
}

html[data-theme="light"] .blog-modal-close:hover {
  color: var(--primary-color);
}

html[data-theme="light"] .blog-modal-body {
  color: #1f2937 !important;
}

html[data-theme="light"] .blog-modal-body h1 {
  color: #111827;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .blog-modal-body p,
html[data-theme="light"] .blog-modal-body ul {
  color: #374151;
}

html[data-theme="light"] .blog-modal-body code {
  background: #f3f4f6 !important;
  color: #b45309 !important;
}

/* Formspree Glassmorphism inputs */
.contact-form .form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  padding: 12px 16px;
  font-family: var(--font-main);
  transition: all 0.3s ease;
}

.contact-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.contact-form .form-control:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(18, 214, 64, 0.25);
  color: #fff;
  outline: none;
}

html[data-theme="light"] .contact-form .form-control {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #1f2937;
}

html[data-theme="light"] .contact-form .form-control::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

html[data-theme="light"] .contact-form .form-control:focus {
  background: rgba(0, 0, 0, 0.05);
  color: #1f2937;
  box-shadow: 0 0 10px rgba(18, 214, 64, 0.15);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}