* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-page: #070B14;
  --card-bg: rgba(255,255,255,0.02);
  --card-bg-solid: #0B1220;
  --border-light: rgba(255,255,255,0.06);
  --border-accent: rgba(34,211,166,0.35);
  --text-heading: #EAF2FF;
  --text-body: #CFD9ED;
  --text-muted: #9AA4BC;
  --accent: #22D3A6;
  --accent-hover: #19C37D;
  --accent-subtle: rgba(34,211,166,0.08);
  
  --section-padding-y: 100px;
  --section-padding-x: 24px;
  --card-padding: 32px;
  --radius-card: 32px;
  --radius-button: 26px;
  --transition: 0.2s ease;
  --nav-height: 70px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-page);
  color: var(--text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  scroll-padding-top: 100px;
}

section.container {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: var(--section-padding-y) var(--section-padding-x);
}

/* ناف بار */
.navbar {
  position: sticky;
  top: 20px;
  z-index: 100;
  width: fit-content;
  margin: 0 auto;
  background: rgba(7, 11, 20, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 60px;
  padding: 0 30px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  
}

.nav-logo {
  font-size: 22px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.5px;
  margin-right: 40px;
  display: flex;
  align-items: center;
  line-height: 1;
}
.nav-logo span {
  color: var(--accent);
  font-size: 32px;
  display: inline-block;
  margin-left: 2px;
  transform: translateY(-2px);
  line-height: 1;
}

.nav-menu {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
  
  
}
.nav-menu a {
  color: var(--text-body);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: var(--accent);
  transition: width 0.2s ease;
}
.nav-menu a:hover {
  color: var(--accent);
}
.nav-menu a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  font-size: 24px;
  color: var(--accent);
  cursor: pointer;
  background: transparent;
  border: none;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.nav-toggle i {
  transition: transform 0.2s ease;
}

.nav-toggle.active i {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .navbar {
    width: 90%;
    padding: 0 20px;
    top: 15px;
    justify-content: space-between;
  }
  .nav-logo {
    margin-right: 0;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 85px;
    left: 5%;
    width: 90%;
    background: rgba(7, 11, 20, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    flex-direction: column;
    gap: 0;
    padding: 15px 0;
    transform: translateY(-150%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.1), opacity 0.3s ease;
    pointer-events: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  }
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-menu li {
    width: 100%;
    text-align: center;
  }
  .nav-menu a {
    display: block;
    padding: 14px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-menu li:last-child a {
    border-bottom: none;
  }
  .nav-menu a::after {
    display: none;
  }
}

/* section headers */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px auto;
}
.section-pill {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 20px;
  display: inline-block;
  text-shadow: 0 0 12px rgba(34,211,166,0.12);
}
.section-header h2::after {
  content: '';
  display: block;
  width: 70px;
  height: 4px;
  background: var(--accent);
  border-radius: 4px;
  margin: 16px auto 0;
}
.section-subhead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* تعديلات السكاشن لتكون على سطر واحد في الديسكتوب */
#about .section-subhead,
#services .section-subhead {
  white-space: nowrap;
  max-width: 100%;
}

@media (max-width: 768px) {
  #about .section-subhead,
  #services .section-subhead {
    white-space: normal;
  }
}

/* تعديلات معلومات السكاشن للموبايل */
@media (max-width: 768px) {
  .section-subhead {
    font-size: 15px;
    max-width: 90%;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .section-subhead {
    font-size: 14px;
    max-width: 95%;
  }
}

/* تعديل خاص لمقاس 390x844 */
@media screen and (min-width: 380px) and (max-width: 400px) and (min-height: 800px) {
  #about .section-subhead {
    white-space: nowrap !important;
    max-width: 100% !important;
  }
  
  #skills .section-subhead {
    white-space: nowrap !important;
    max-width: 100% !important;
  }
  
  #projects .section-header h2 {
    font-size: 36px !important;
    white-space: nowrap !important;
  }
  
  #projects .section-subhead,
  #journey .section-subhead,
  #contact .section-subhead {
    white-space: nowrap !important;
    max-width: 100% !important;
    font-size: 13.5px !important;
  }
}

/* تعديل خاص لمقاس 430x932 */
@media screen and (min-width: 420px) and (max-width: 440px) and (min-height: 900px) {
  #skills .section-subhead {
    white-space: nowrap !important;
    max-width: 100% !important;
  }
  
  #projects .section-header h2 {
    font-size: 40px !important;
    white-space: nowrap !important;
  }
  
  #projects .section-subhead,
  #journey .section-subhead,
  #contact .section-subhead {
    white-space: nowrap !important;
    max-width: 100% !important;
    font-size: 14px !important;
  }
}

/* تعديل خاص لمقاس 414x896 */
@media screen and (min-width: 400px) and (max-width: 420px) and (min-height: 850px) {
  #skills .section-subhead {
    white-space: nowrap !important;
    max-width: 100% !important;
  }
  
  #projects .section-header h2 {
    font-size: 38px !important;
    white-space: nowrap !important;
  }
  
  #projects .section-subhead,
  #journey .section-subhead,
  #contact .section-subhead {
    white-space: nowrap !important;
    max-width: 100% !important;
    font-size: 14px !important;
  }
}

/* تعديل عام لسكشن Skills في كل مقاسات الموبايل */
@media (max-width: 768px) {
  #skills .section-subhead {
    white-space: nowrap !important;
    max-width: 100% !important;
  }
}

/* ====== التأثير الموحد لحركة الكاردز ====== */
.hero-card-left,
.about-text,
.stat-item,
.other-skill-cat,
.service-card,
.project-card,
.timeline-item,
.contact-form-card {
  transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform, border-color, box-shadow;
}

.hero-card-left:hover,
.about-text:hover,
.stat-item:hover,
.other-skill-cat:hover,
.service-card:hover,
.project-card:hover,
.timeline-item:hover,
.contact-form-card:hover {
  transform: translateY(-6px) !important;
  border-color: var(--border-accent) !important;
  box-shadow: 0 15px 45px rgba(0,0,0,0.6), 0 0 30px rgba(34,211,166,0.3) !important;
}

/* تحسين ظهور السكاشن على الموبايل - AOS */
@media only screen and (max-width: 768px) {
  [data-aos] {
    transition-duration: 0.4s !important;
    transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1) !important;
  }
  
  [data-aos="fade-up"] {
    transform: translate3d(0, 15px, 0);
    opacity: 0.7;
  }
  [data-aos="fade-up"].aos-animate {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
  
  [data-aos="fade-right"] {
    transform: translate3d(-15px, 0, 0);
    opacity: 0.7;
  }
  [data-aos="fade-right"].aos-animate {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
  
  [data-aos="fade-left"] {
    transform: translate3d(15px, 0, 0);
    opacity: 0.7;
  }
  [data-aos="fade-left"].aos-animate {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
  
  [data-aos-delay] {
    transition-delay: 0s !important;
  }
}
/* ======================================== */

/* HERO */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  
}

/* ===== البطاقة اليسرى ===== */
.hero-card-left {
  background: var(--card-bg-solid);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 30px;
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 420px;
  justify-self: end;
  transition: all 0.3s ease;
}

/* الصورة الشخصية - حجم مناسب */
.profile-pic-hero {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(145deg, var(--accent), rgba(34, 211, 166, 0.4));
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(34, 211, 166, 0.3), 0 8px 20px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
}

.profile-pic-hero:hover {
  transform: scale(1.02);
  box-shadow: 0 0 0 3px var(--accent), 0 12px 28px rgba(34, 211, 166, 0.4);
}

.profile-pic-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--bg-page);
}

.hero-left-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 7px;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.hero-left-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 20px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.typewriter-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 4px 0;
}

.typewriter-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  line-height: 1;
  padding: 1.5px 0;
}

.typewriter-caret {
  display: inline-block;
  width: 2px;
  height: 18px;
  background-color: var(--accent);
  margin-left: 3px;
  animation: blink 0.8s infinite;
  vertical-align: middle;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* أيقونات التواصل */
.hero-left-socials {
  display: flex;
  gap: 11px;
  justify-content: center;
  margin-top: 0;
}

.hero-left-socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-subtle);
  border: 1px solid rgba(34,211,166,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 21px;
  transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  text-decoration: none;
}

.hero-left-socials a:hover {
  background: var(--accent);
  color: #03110D;
  transform: translateY(-4px);
  border-color: var(--accent);
}

.hero-right-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

/* MAIN TITLE - بالمقاسات المطلوبة */
.hero-tagline {
  font-size: 60px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text-heading);
  margin-bottom: 0;
}

.hero-titles-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.titles-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.1;
}

.title-white {
  font-size: 60px;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.5px;
}

.title-green {
  font-size: 60px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.ampersand {
  font-size: 80px;
  font-weight: 800;
  color: var(--text-muted);
  opacity: 0.5;
  line-height: 1;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  cursor: default;
  display: inline-block;
}

.ampersand:hover {
  color: var(--accent);
  opacity: 1;
  transform: rotate(5deg) scale(1.15);
}

/* DESCRIPTION TEXT - المعدل ليكون 3 أسطر */
.hero-description {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-body);
  margin-top: 22px;
  margin-bottom: 28px;
  max-width: 540px;
}

.hero-description-line {
  display: block;
  margin-bottom: 3px;
  color: var(--text-body);
}

/* BUTTONS - بالمقاسات المطلوبة */
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-button);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  transition: all 0.15s cubic-bezier(0.25, 0.1, 0.25, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #03110D;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(34, 211, 166, 0.3);
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--border-accent);
  color: var(--accent);
}

.btn-secondary:hover {
  background: var(--accent-subtle);
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(34, 211, 166, 0.15);
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}
.about-text {
  background: var(--card-bg-solid);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 20px;
  backdrop-filter: blur(4px);
}
.about-text p {
  font-size: 18px;
  margin-bottom: 24px;
  line-height: 1.7;
  color: var(--text-body);
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stat-item {
  background: var(--card-bg-solid);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 28px 16px;
  text-align: center;
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 160px;
}
.stat-number {
  font-size: 46px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
}

/* SKILLS */
.skills-wrapper {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
}
.technical-skills {
  width: 100%;
}
.technical-skills h4 {
  color: var(--text-heading);
  margin-bottom: 24px;
  font-size: 22px;
}
.skill-item {
  margin-bottom: 24px;
  width: 100%;
}
.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 500;
}
.skill-bar-bg {
  width: 100%;
  height: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 10px;
  background: var(--accent);
  width: 0%;
  border-radius: 20px;
  transition: width 1.2s ease;
  box-shadow: 0 0 12px var(--accent);
}
.other-skills {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.other-skill-cat {
  background: var(--card-bg-solid);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.other-skill-cat h4 {
  color: var(--text-heading);
  margin-bottom: 16px;
  font-size: 18px;
}
.other-skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.skill-tag {
  background: var(--accent-subtle);
  border: 1px solid rgba(34,211,166,0.2);
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 14px;
  color: var(--text-body);
  transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.skill-tag:hover {
  background: var(--accent);
  color: #03110D;
  transform: translateY(-3px);
}

/* SERVICES */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--card-bg-solid);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-subtle);
  border: 1px solid rgba(34,211,166,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.card-icon i {
  font-size: 24px;
  color: var(--accent);
}
.service-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
}
.benefit-line {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  min-height: 42px;
}
.service-bullets {
  list-style: none;
  flex: 1;
}
.service-bullets li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--text-body);
  margin-bottom: 12px;
  align-items: flex-start;
  min-height: 28px;
}
.service-bullets li i {
  font-size: 6px;
  color: var(--accent);
  margin-top: 6px;
}

/* PROJECTS */
.toggle-switch-container {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}
.toggle-switch {
  background: var(--card-bg-solid);
  border: 1px solid var(--border-light);
  border-radius: 60px;
  padding: 6px;
  display: inline-flex;
  position: relative;
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  min-width: 280px;
}
.toggle-option {
  flex: 1;
  padding: 12px 0;
  border-radius: 60px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s ease;
  position: relative;
  z-index: 10;
  text-align: center;
  user-select: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}
.toggle-option.active {
  color: #03110D;
}
.toggle-highlight {
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(50% - 6px);
  height: calc(100% - 12px);
  background: var(--accent);
  border-radius: 60px;
  transition: transform 0.4s cubic-bezier(0.34, 1.3, 0.64, 1);
  z-index: 5;
  box-shadow: 0 4px 15px rgba(34, 211, 166, 0.4);
}
.toggle-highlight.move-right {
  transform: translateX(calc(100% + 6px));
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
}

.tab-pane.active .projects-grid {
  animation: fadeScale 0.4s ease-out;
}

@keyframes fadeScale {
  0% {
    opacity: 0;
    transform: scale(0.98);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.project-card {
  background: var(--card-bg-solid);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.project-logo-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 20px 0;
}
.project-logo {
  width: 120px;
  height: 120px;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-card:hover .project-logo {
  transform: scale(1.08);
  filter: drop-shadow(0 0 8px var(--accent));
}
.project-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(130deg) brightness(98%) contrast(93%);
  border: none;
  border-radius: 0;
}
.project-services-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 10px;
}
.project-tag {
  background: var(--accent-subtle);
  border: 1px solid rgba(34,211,166,0.2);
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 12px;
  color: var(--text-body);
}

/* JOURNEY */
.timeline {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.timeline-item {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  background: var(--card-bg-solid);
  border: 1px solid var(--border-light);
  border-radius: 26px;
  padding: 26px 32px;
  backdrop-filter: blur(4px);
}
.timeline-date {
  min-width: 140px;
  font-weight: 600;
  color: var(--accent);
  font-size: 20px;
  letter-spacing: -0.2px;
}
.timeline-content h4 {
  color: var(--text-heading);
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 600;
}
.timeline-content p {
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.6;
}

/* CONTACT - التصميم الجديد مع Success Message */
.contact-wrapper {
  max-width: 650px;
  margin: 0 auto;
  width: 100%;
}

.contact-form-card {
  background: var(--card-bg-solid);
  border: 1px solid var(--border-light);
  border-radius: 42px;
  padding: 50px 48px;
  backdrop-filter: blur(4px);
  transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.contact-form-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: 0 15px 45px rgba(0,0,0,0.6), 0 0 30px rgba(34,211,166,0.3);
}

.form-group {
  margin-bottom: 24px;
}

.form-group input, 
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 18px 24px;
  font-family: 'Inter', sans-serif;
  color: var(--text-heading);
  font-size: 16px;
  transition: all 0.2s ease;
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
  border-radius: 28px;
}

.form-group input:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(34,211,166,0.02);
  transform: scale(1.02);
}

.form-group input::placeholder, 
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

/* تصميم الأزرار جنب بعض (رقم 1) */
.button-row {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.submit-btn {
  flex: 2;
  background: var(--accent);
  color: #03110D;
  border: none;
  border-radius: 40px;
  padding: 16px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(34,211,166,0.4);
}

.calendly-btn {
  flex: 1;
  background: transparent;
  border: 1.5px solid var(--accent);
  border-radius: 40px;
  padding: 16px;
  color: var(--accent);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.calendly-btn:hover {
  background: var(--accent);
  color: #03110D;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(34,211,166,0.3);
}

/* ===== شريط النجاح - الإصدار 1: Fade Slide ===== */
.success-message {
  background: linear-gradient(145deg, var(--accent-subtle), rgba(34,211,166,0.05));
  border: 1px solid var(--accent);
  border-radius: 60px;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  animation: slideInFade 0.5s ease-out;
  margin-top: 10px;
}

@keyframes slideInFade {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-icon {
  width: 50px;
  height: 50px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.success-icon i {
  font-size: 24px;
  color: #03110D;
}

.success-text {
  flex: 1;
}

.success-text .main {
  display: block;
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 5px;
}

.success-text .sub {
  display: block;
  color: var(--text-body);
  font-size: 14px;
}

.footer {
  border-top: 1px solid var(--border-light);
  padding: 40px 0 20px;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 20px 0;
}
.footer-links a {
  color: var(--text-body);
  text-decoration: none;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--accent);
}

@media (max-width: 1024px) {
  .hero-grid, .about-grid, .skills-wrapper, .service-grid {
    grid-template-columns: 1fr;
  }
  .hero-card-left {
    justify-self: center;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .timeline-item {
    flex-direction: column;
    gap: 12px;
  }
  .contact-form-card {
    padding: 30px 20px;
  }
  .profile-pic-hero {
    width: 120px;
    height: 120px;
  }
  .button-row {
    flex-direction: column;
  }
  .submit-btn, .calendly-btn {
    width: 100%;
  }
}

/* ===== التعديلات المطلوبة لشاشات الموبايل ===== */
@media (max-width: 480px) {
  /* تعديل علامة & لتكون بجانب الكلمات */
  .hero-titles-wrapper {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
  }
  
  /* تصغير حجم الخط قليلاً */
  .title-white, .title-green {
    font-size: 42px !important;
  }
  
  .ampersand {
    font-size: 60px !important;
    transform: none !important;
    margin: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
    line-height: 1 !important;
  }
  
  /* الحفاظ على تأثير hover */
  .ampersand:hover {
    transform: rotate(5deg) scale(1.15) !important;
  }
  
  /* تعديل النص الوصفي ليكون 3 أسطر فقط في جميع المقاسات */
  .hero-description {
    font-size: 15px !important;
    line-height: 1.5 !important;
    max-width: 100% !important;
    margin-top: 12px !important;
    margin-bottom: 16px !important;
  }
  
  .hero-description-line {
    display: block !important;
    margin-bottom: 3px !important;
    white-space: normal !important;
    word-break: break-word !important;
  }
  
  /* باقي التنسيقات الأساسية */
  .typewriter-text {
    font-size: 15px;
    white-space: normal;
  }
  .typewriter-caret {
    height: 16px;
  }
  .hero-card-left {
    padding: 25px;
  }
  .profile-pic-hero {
    width: 110px;
    height: 110px;
    margin-bottom: 12px;
  }
  .hero-left-name {
    font-size: 24px;
    margin-bottom: 6px;
  }
  .hero-left-title {
    margin-bottom: 18px;
  }
  .hero-left-socials a {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

/* تعديلات خاصة لمقاس 390x844 */
@media screen and (min-width: 380px) and (max-width: 400px) and (min-height: 800px) {
  #about .section-subhead {
    white-space: nowrap !important;
    max-width: 100% !important;
  }
  
  #skills .section-subhead {
    white-space: nowrap !important;
    max-width: 100% !important;
  }
  
  #projects .section-header h2 {
    font-size: 36px !important;
    white-space: nowrap !important;
  }
  
  #projects .section-subhead,
  #journey .section-subhead,
  #contact .section-subhead {
    white-space: nowrap !important;
    max-width: 100% !important;
    font-size: 13.5px !important;
  }
  
  .hero-description {
    font-size: 13.5px !important;
    line-height: 1.4 !important;
  }
  .hero-description-line:last-child {
    white-space: nowrap !important;
  }
}

/* تعديلات خاصة لمقاس 430x932 */
@media screen and (min-width: 420px) and (max-width: 440px) and (min-height: 900px) {
  #skills .section-subhead {
    white-space: nowrap !important;
    max-width: 100% !important;
  }
  
  #projects .section-header h2 {
    font-size: 40px !important;
    white-space: nowrap !important;
  }
  
  #projects .section-subhead,
  #journey .section-subhead,
  #contact .section-subhead {
    white-space: nowrap !important;
    max-width: 100% !important;
    font-size: 14px !important;
  }
  
  .hero-description {
    font-size: 15.2px !important;
    letter-spacing: -0.01em !important;
  }
  .hero-description-line:last-child {
    white-space: nowrap !important;
  }
}

/* تعديلات خاصة لمقاس 414x896 */
@media screen and (min-width: 400px) and (max-width: 420px) and (min-height: 850px) {
  #skills .section-subhead {
    white-space: nowrap !important;
    max-width: 100% !important;
  }
  
  #projects .section-header h2 {
    font-size: 38px !important;
    white-space: nowrap !important;
  }
  
  #projects .section-subhead,
  #journey .section-subhead,
  #contact .section-subhead {
    white-space: nowrap !important;
    max-width: 100% !important;
    font-size: 14px !important;
  }
  
  .hero-description {
    font-size: 13.8px !important;
    line-height: 1.45 !important;
  }
  .hero-description-line:last-child {
    white-space: nowrap !important;
  }
}
/* ===== نهاية التعديلات ===== */

a, a:visited, a:hover, a:active, a:focus, a *, a:visited *, a:hover * { 
  text-decoration: none !important; 
}

/* رسالة الخطأ - تظهر فوق الفورم */
.error-message {
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    border: 1px solid #ef4444;
    border-radius: 60px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    animation: slideInFade 0.5s ease-out;
    margin-bottom: 20px; /* مسافة بين رسالة الخطأ والفورم */
}

.error-icon {
    width: 50px;
    height: 50px;
    background: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
  }

.error-icon i {
    font-size: 24px;
    color: #03110D;
}

.error-text {
    flex: 1;
}

.error-text .main {
    display: block;
    color: #ef4444;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 5px;
}

.error-text .sub {
    display: block;
    color: var(--text-body);
    font-size: 14px;
}

.error-text .sub a {
    color: var(--accent);
    text-decoration: none;
}

.error-text .sub a:hover {
    text-decoration: underline;
}

@keyframes slideInFade {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* المسافة فوق رسالة الخطأ = 0 */
#errorMessage {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* المسافة تحت رسالة الخطأ = المسافة اللي عايزها بينها وبين الفورم */
#errorMessage {
    margin-bottom: 20px !important;
}

/* لو عايز تخلي المسافة 0 برضه (تلاصق تام مع الفورم) */
#errorMessage {
    margin-bottom: 0 !important;
}