/* Main Stylesheet */

/* Css Custom Properties */
:root {
  /* Colors */
  --clr-accent:        #2d6a4f;
  --clr-accent-mid:    #40916c;
  --clr-accent-light:  #d8f3dc;
  --clr-accent-dark:   #1b4332;
  --clr-accent-glow:   rgba(45,106,79,.14);

  --clr-blue:          #4a90c4;
  --clr-blue-light:    #dbeafe;

  --clr-bg:            #faf9f7;
  --clr-bg-alt:        #f0ede8;
  --clr-surface:       #ffffff;
  --clr-surface-2:     #f7f4f0;

  --clr-border:        #e2ddd7;
  --clr-border-strong: #ccc5bb;

  --clr-text:          #1a1614;
  --clr-text-muted:    #5a5147;
  --clr-text-subtle:   #9c8f83;

  /* Status */
  --clr-success:       #276749;
  --clr-success-bg:    #d8f3dc;
  --clr-error:         #b91c1c;
  --clr-error-bg:      #fee2e2;
  --clr-warn:          #92400e;
  --clr-warn-bg:       #fef3c7;

  /* Typography */
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --container-max:    1140px;
  --container-narrow: 720px;
  --header-height:    68px;

  /* Borders */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   18px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(26,22,20,.06);
  --shadow-sm:  0 2px 6px rgba(26,22,20,.08), 0 1px 2px rgba(26,22,20,.05);
  --shadow-md:  0 6px 20px rgba(26,22,20,.09), 0 2px 6px rgba(26,22,20,.05);
  --shadow-lg:  0 12px 40px rgba(26,22,20,.10), 0 4px 12px rgba(26,22,20,.05);
  --shadow-accent: 0 8px 32px rgba(45,106,79,.22);

  /* Transitions */
  --transition-fast:   120ms ease;
  --transition-normal: 240ms ease;
  --transition-slow:   400ms cubic-bezier(0.4,0,0.2,1);
}


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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--clr-text);
  background-color: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

img, svg { display: block; max-width: 100%; }

a {
  color: var(--clr-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--clr-accent-dark); }

ul { list-style: none; }

button { font: inherit; cursor: pointer; border: none; background: none; }

:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}


/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--clr-text);
}

h1 { font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl)); }
h2 { font-size: clamp(var(--text-3xl), 3.5vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl)); font-weight: 600; }

p { color: var(--clr-text-muted); }
strong { color: var(--clr-text); font-weight: 600; }


/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-8);
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space-24); }

/* Alternating backgrounds */
.about-section,
.skills-section { background-color: var(--clr-bg-alt); }

.education-section,
.projects-section,
.contact-section { background-color: var(--clr-bg); }

.experience-section { background-color: var(--clr-surface-2); }

/* Section labels */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-accent);
  padding-left: var(--space-3);
  border-left: 3px solid var(--clr-accent);
  margin-bottom: var(--space-4);
  line-height: 1;
}

.section-header {
  margin-bottom: var(--space-12);
  max-width: 640px;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  padding-bottom: var(--space-3);
}
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-accent-mid));
}

.section-subtitle {
  margin-top: var(--space-4);
  font-size: var(--text-lg);
  color: var(--clr-text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* Certificate image */
.cert-wrapper {
  margin-top: var(--space-6);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--clr-border);
  box-shadow: var(--shadow-md);
  max-width: 560px;
}
.cert-photo {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}
.cert-photo:hover {
  transform: scale(1.015);
}

/* Tags */
.tag-list { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.tag {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--clr-accent);
  background-color: var(--clr-accent-light);
  border: 1px solid rgba(45,106,79,.2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--transition-normal),
    border-color var(--transition-normal),
    color var(--transition-normal),
    transform var(--transition-normal),
    box-shadow var(--transition-normal);
  white-space: nowrap;
  min-height: 46px;
  letter-spacing: 0.01em;
}

.btn-primary {
  background-color: var(--clr-accent);
  color: #ffffff;
  border-color: var(--clr-accent);
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  background-color: var(--clr-accent-dark);
  border-color: var(--clr-accent-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(45,106,79,.28);
}

.btn-secondary {
  background-color: transparent;
  color: var(--clr-text);
  border-color: var(--clr-border-strong);
}
.btn-secondary:hover {
  background-color: var(--clr-accent-light);
  border-color: var(--clr-accent);
  color: var(--clr-accent-dark);
  transform: translateY(-2px);
}

.btn--full { width: 100%; }


/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--clr-accent);
  color: #ffffff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-sm);
  z-index: 9999;
  transition: top var(--transition-fast);
}
.skip-link:focus { top: var(--space-4); }


/* Navigation */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  z-index: 1000;
  background-color: rgba(250,249,247,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.site-header.scrolled {
  border-color: var(--clr-border);
  box-shadow: var(--shadow-sm);
}

.navbar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-initials {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--clr-text);
  letter-spacing: -0.04em;
  transition: color var(--transition-fast);
}
.nav-logo:hover .logo-initials { color: var(--clr-accent); }

.logo-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background-color: var(--clr-accent);
  margin-top: -14px;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
  justify-content: flex-end;
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--clr-text-muted);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  white-space: nowrap;
}
.nav-link:hover { color: var(--clr-text); background-color: var(--clr-bg-alt); }
.nav-link.active { color: var(--clr-accent); font-weight: 600; }

.nav-link--cta {
  color: var(--clr-accent);
  border: 1.5px solid var(--clr-accent);
  background-color: var(--clr-accent-light);
  margin-left: var(--space-2);
}
.nav-link--cta:hover {
  background-color: var(--clr-accent);
  color: #ffffff;
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px; height: 42px;
  gap: 5px;
  border-radius: var(--radius-md);
  padding: var(--space-2);
  transition: background-color var(--transition-fast);
  flex-shrink: 0;
}
.menu-toggle:hover { background-color: var(--clr-bg-alt); }

.hamburger-bar {
  display: block;
  width: 22px; height: 2px;
  background-color: var(--clr-text);
  border-radius: var(--radius-full);
  transition: transform var(--transition-normal), opacity var(--transition-normal);
  transform-origin: center;
}

.menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0; transform: scaleX(0);
}
.menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* Hero Section */
.hero-section {
  padding-top: calc(var(--header-height) + var(--space-20));
  padding-bottom: var(--space-24);
  position: relative;
  overflow: hidden;
  background-color: var(--clr-bg);
}

/* Subtle warm-green mesh gradient behind hero */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 80% 40%, rgba(45,106,79,.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(74,144,196,.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-16);
}

.hero-text-col {
  min-width: 0;
}

/* Availability badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--clr-success);
  background-color: var(--clr-success-bg);
  border: 1px solid rgba(45,106,79,.25);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-4);
  margin-bottom: var(--space-6);
  letter-spacing: 0.03em;
}

.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background-color: var(--clr-success);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

.hero-eyebrow {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-accent-mid);
  margin-bottom: var(--space-3);
}

.hero-name {
  margin-bottom: var(--space-4);
  color: var(--clr-text);
  line-height: 1.06;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--clr-text-muted);
  font-weight: 400;
  margin-bottom: var(--space-5);
  line-height: 1.5;
}

.hero-text {
  max-width: 520px;
  font-size: var(--text-base);
  color: var(--clr-text-muted);
  margin-bottom: var(--space-8);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Profile photo column */
.hero-photo-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.profile-photo-wrapper {
  position: relative;
  width: 300px;
  height: 370px;
}

/* Accent offset block behind the photo */
.profile-photo-wrapper::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 22px;
  background: linear-gradient(
    145deg,
    var(--clr-accent-mid) 0%,
    var(--clr-blue) 50%,
    var(--clr-accent-dark) 100%
  );
  z-index: 0;
  opacity: 0.85;
}

/* Inner white frame */
.profile-photo-wrapper::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 19px;
  background: var(--clr-bg);
  z-index: 1;
}

.profile-photo {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  display: block;
}

/* Floating badge on photo */
.photo-badge {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: var(--clr-accent);
  color: #ffffff;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: var(--shadow-accent);
}

/* Decorative dots grid behind photo */
.photo-deco {
  position: absolute;
  top: -24px;
  right: -24px;
  width: 100px;
  height: 100px;
  background-image: radial-gradient(circle, rgba(45,106,79,.3) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  z-index: 0;
  pointer-events: none;
}

.photo-deco-2 {
  position: absolute;
  bottom: -24px;
  left: -24px;
  width: 80px;
  height: 80px;
  background-image: radial-gradient(circle, rgba(74,144,196,.25) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  z-index: 0;
  pointer-events: none;
}


/* About Section */
.about-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}
.about-body p { font-size: var(--text-lg); }

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid var(--clr-border);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-1);
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--clr-accent);
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--clr-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* Education Section */
.education-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.education-card {
  display: flex;
  gap: var(--space-6);
  background: linear-gradient(135deg, var(--clr-surface) 0%, var(--clr-surface-2) 100%);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
  position: relative;
  overflow: hidden;
}

/* Accent stripe */
.education-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-blue));
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.education-card--prepa::before {
  background: linear-gradient(90deg, var(--clr-accent-mid), var(--clr-accent));
}

.education-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.education-card__icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--clr-accent-light), var(--clr-blue-light));
  color: var(--clr-accent);
  border-radius: var(--radius-xl);
  margin-top: var(--space-1);
}

.education-card__body { flex: 1; }

.education-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.education-card__school { font-size: var(--text-xl); margin-bottom: var(--space-1); }

.education-card__abbr {
  font-size: var(--text-sm);
  color: var(--clr-text-subtle);
  margin-bottom: var(--space-2);
}

.education-card__degree {
  font-size: var(--text-base);
  color: var(--clr-accent);
  font-weight: 600;
}

.education-card__badges {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  flex-wrap: wrap;
}

.education-badge {
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 2px var(--space-3);
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.education-badge--active {
  color: #1e4488;
  background-color: var(--clr-blue-light);
  border: 1px solid rgba(74,144,196,.3);
}

.education-badge--done {
  color: var(--clr-success);
  background-color: var(--clr-success-bg);
  border: 1px solid rgba(39,103,73,.3);
}

.education-card__period {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--clr-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  background-color: var(--clr-accent-light);
  border: 1px solid rgba(45,106,79,.2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  height: fit-content;
}

.period-separator { color: var(--clr-accent); }

.education-card__desc {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.coursework__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: var(--space-3);
}


/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-5);
}

.skill-card {
  background-color: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition-normal), transform var(--transition-normal), border-color var(--transition-normal);
}

/* Hover shimmer */
.skill-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(45,106,79,.04) 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  border-radius: inherit;
}
.skill-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--clr-accent); }
.skill-card:hover::after { opacity: 1; }

.skill-card__icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--clr-accent-light), var(--clr-blue-light));
  color: var(--clr-accent);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}

.skill-card__title { font-size: var(--text-base); font-weight: 600; margin-bottom: var(--space-2); }

.skill-card__text {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-3);
}

.skill-tech-list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }

.skill-tech-list li {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--clr-text-muted);
  background-color: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  padding: 2px var(--space-3);
  border-radius: var(--radius-full);
}


/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.project-card {
  background-color: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-normal), transform var(--transition-normal), border-color var(--transition-normal);
}
.project-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--clr-border-strong);
}

.project-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--clr-border);
  background: linear-gradient(135deg, var(--clr-bg-alt), var(--clr-surface-2));
  flex-wrap: wrap;
  gap: var(--space-3);
}

.project-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.project-number {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--clr-text-subtle);
  letter-spacing: 0.05em;
}

.project-status {
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 2px var(--space-3);
  border-radius: var(--radius-full);
}
.project-status--done {
  color: var(--clr-success);
  background-color: var(--clr-success-bg);
  border: 1px solid rgba(39,103,73,.2);
}

.project-badge {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--clr-text-muted);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

.project-cycle-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--clr-accent-dark);
  background-color: var(--clr-accent-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(45,106,79,.25);
}

/* Featured Project Showcase Layout */
.project-showcase {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
}

@media (max-width: 900px) {
  .project-showcase {
    grid-template-columns: 1fr;
  }
}

/* Project Gallery Showcase */
.project-gallery {
  padding: var(--space-6);
  background: linear-gradient(180deg, var(--clr-surface-2), var(--clr-bg));
  border-right: 1px solid var(--clr-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  justify-content: center;
}

@media (max-width: 900px) {
  .project-gallery {
    border-right: none;
    border-bottom: 1px solid var(--clr-border);
  }
}

.project-gallery__main {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #11221b;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
}

.project-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  cursor: pointer;
  display: block;
}

.project-gallery__main:hover .project-gallery__img {
  transform: scale(1.02);
}

.project-gallery__zoom-btn {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-3);
  background: rgba(26,22,20,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: var(--text-xs);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
  z-index: 2;
}
.project-gallery__zoom-btn:hover {
  background: var(--clr-accent);
  transform: translateY(-1px);
}

.project-gallery__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: rgba(45,106,79,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.project-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-2);
}

.project-gallery__thumb {
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 0;
  background: var(--clr-surface);
  cursor: pointer;
  aspect-ratio: 1 / 1;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
}

.project-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-gallery__thumb:hover {
  border-color: var(--clr-accent-mid);
  transform: translateY(-2px);
}

.project-gallery__thumb.is-active {
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 2px var(--clr-accent-glow);
}

/* Card Body Details */
.project-card__body {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  justify-content: center;
}

@media (max-width: 600px) {
  .project-card__body {
    padding: var(--space-5);
  }
}

.project-brand-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.project-brand-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 2px solid var(--clr-accent-light);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.project-type {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 2px;
  display: block;
}

.project-card__title {
  font-size: var(--text-2xl);
  margin: 0;
  color: var(--clr-text);
  font-weight: 700;
  line-height: 1.2;
}

.project-card__description {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  line-height: 1.75;
  margin: 0;
}

.project-features {
  background: var(--clr-surface-2);
  border-left: 3px solid var(--clr-accent);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
}

.project-features__title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-accent);
  margin-bottom: var(--space-2);
}

.project-features__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-features__list li {
  font-size: var(--text-xs);
  color: var(--clr-text-muted);
  line-height: 1.5;
  position: relative;
  padding-left: 14px;
}

.project-features__list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--clr-accent);
  font-weight: bold;
}

/* Lightbox Modal */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(12, 18, 15, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.project-modal.is-open {
  display: flex;
  opacity: 1;
}

.project-modal__content {
  position: relative;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-modal__img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  background: #000;
}

.project-modal__caption {
  color: #f5f0eb;
  font-size: var(--text-sm);
  margin-top: var(--space-3);
  text-align: center;
  font-weight: 500;
}

.project-modal__close {
  position: absolute;
  top: -46px;
  right: 0;
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.project-modal__close:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.05);
}


/* Timeline (Experience & Volunteer) */
.timeline {
  position: relative;
  padding-left: var(--space-10);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--clr-accent), var(--clr-border));
  border-radius: var(--radius-full);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-10);
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: calc(-1 * var(--space-10) + 5px);
  top: 8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background-color: var(--clr-accent);
  border: 3px solid var(--clr-bg);
  box-shadow: 0 0 0 2.5px var(--clr-accent);
}
.volunteer-section .timeline-marker { border-color: var(--clr-bg-alt); }

.timeline-content {
  background-color: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
}
.timeline-content::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--clr-accent), var(--clr-blue));
  border-radius: var(--radius-full) 0 0 var(--radius-full);
}
.timeline-content:hover { box-shadow: var(--shadow-md); }

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.timeline-kicker {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-accent);
  margin-bottom: var(--space-1);
}

.timeline-title { font-size: var(--text-xl); margin-bottom: var(--space-1); }

.timeline-subtitle { font-size: var(--text-sm); color: var(--clr-text-subtle); }

.timeline-date {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--clr-text-muted);
  background-color: var(--clr-accent-light);
  border: 1px solid rgba(45,106,79,.2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
  height: fit-content;
}

.timeline-description {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-4);
}

.timeline-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }

.timeline-list li {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  padding-left: var(--space-5);
  position: relative;
  line-height: 1.65;
}
.timeline-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--clr-accent);
}



/* Experience Card Grid */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-8);
}

.exp-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}
.exp-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* Coloured top bar */
.exp-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--clr-border);
}

.exp-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
}
.exp-badge--professional {
  color: var(--clr-accent-dark);
  background: var(--clr-accent-light);
  border: 1px solid rgba(45,106,79,.25);
}
.exp-badge--volunteer {
  color: #1e4488;
  background: var(--clr-blue-light);
  border: 1px solid rgba(74,144,196,.25);
}

.exp-card__year {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--clr-text-subtle);
  letter-spacing: 0.04em;
}

/* Card body */
.exp-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.exp-card__org {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--clr-accent);
  font-size: var(--text-sm);
  font-weight: 600;
}
.exp-card__org svg { flex-shrink: 0; }

.exp-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--clr-text);
  line-height: 1.3;
  margin: 0;
}

.exp-card__desc {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  line-height: 1.75;
  margin: 0;
}

.exp-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: 0;
  margin: 0;
}
.exp-card__list li {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  padding-left: var(--space-5);
  position: relative;
  line-height: 1.65;
}
.exp-card__list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--clr-accent);
  font-size: 0.65rem;
  top: 4px;
}

/* Contact Section */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-12);
  align-items: start;
}

.contact-info__text {
  font-size: var(--text-base);
  margin-bottom: var(--space-6);
  line-height: 1.8;
}

.contact-links { display: flex; flex-direction: column; gap: var(--space-3); }

.contact-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--clr-text-muted);
  text-decoration: none;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  background-color: var(--clr-surface);
  transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}
.contact-link svg { color: var(--clr-accent); flex-shrink: 0; }
.contact-link:hover {
  color: var(--clr-accent-dark);
  border-color: var(--clr-accent);
  background-color: var(--clr-accent-light);
}

/* Form */
.contact-form-wrapper {
  background: linear-gradient(135deg, var(--clr-surface) 0%, var(--clr-surface-2) 100%);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.contact-form-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-blue));
}

.form-notice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--clr-warn);
  background-color: var(--clr-warn-bg);
  border: 1px solid rgba(146,64,14,.15);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-6);
  line-height: 1.5;
}
.form-notice svg { flex-shrink: 0; margin-top: 1px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }

.form-group { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); }

.form-label { font-size: var(--text-sm); font-weight: 600; color: var(--clr-text); }

.required { color: var(--clr-accent); }

.form-input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--clr-text);
  background-color: var(--clr-bg);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  line-height: 1.5;
}
.form-input::placeholder { color: var(--clr-text-subtle); }
.form-input:focus {
  border-color: var(--clr-accent);
  background-color: var(--clr-surface);
  box-shadow: 0 0 0 3px rgba(45,106,79,.1);
}
.form-input.invalid {
  border-color: var(--clr-error);
  box-shadow: 0 0 0 3px rgba(185,28,28,.08);
}

.form-textarea { resize: vertical; min-height: 120px; }

.form-error { font-size: var(--text-xs); font-weight: 500; color: var(--clr-error); min-height: 1em; }

.form-feedback {
  margin-top: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  text-align: center;
}
.form-feedback.success { background-color: var(--clr-success-bg); color: var(--clr-success); border: 1px solid rgba(39,103,73,.2); }
.form-feedback.error   { background-color: var(--clr-error-bg);   color: var(--clr-error);   border: 1px solid rgba(185,28,28,.2); }


/* Footer */
.site-footer {
  background: linear-gradient(135deg, #0d2118 0%, #1a3326 100%);
  color: var(--clr-text-subtle);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-8);
  padding-block: var(--space-12);
}

.footer-name {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--space-1);
}

.footer-tagline { font-size: var(--text-sm); color: rgba(255,255,255,.4); }

.footer-nav ul { display: flex; gap: var(--space-4); flex-wrap: wrap; justify-content: center; }

.footer-nav a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-nav a:hover { color: #ffffff; }

.footer-social { display: flex; gap: var(--space-3); justify-content: flex-end; }

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  color: rgba(255,255,255,.45);
  border: 1px solid rgba(255,255,255,.12);
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}
.social-link:hover {
  color: #ffffff;
  background-color: var(--clr-accent);
  border-color: var(--clr-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: var(--space-5);
  text-align: center;
}
.footer-bottom p { font-size: var(--text-xs); color: rgba(255,255,255,.3); }


/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.skills-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.skills-grid .reveal:nth-child(2) { transition-delay: 80ms; }
.skills-grid .reveal:nth-child(3) { transition-delay: 160ms; }
.skills-grid .reveal:nth-child(4) { transition-delay: 240ms; }

.projects-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.projects-grid .reveal:nth-child(2) { transition-delay: 100ms; }
.projects-grid .reveal:nth-child(3) { transition-delay: 200ms; }


/* Responsive Breakpoints */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
  .hero-container { gap: var(--space-10); }

  .profile-photo-wrapper { width: 250px; height: 308px; }

  .about-stats { grid-template-columns: repeat(2, 1fr); }

  .contact-layout { grid-template-columns: 1fr; gap: var(--space-8); }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "brand social" "nav nav";
  }
  .footer-brand  { grid-area: brand; }
  .footer-nav    { grid-area: nav; }
  .footer-social { grid-area: social; }
  .footer-nav ul { justify-content: flex-start; }
}

/* Mobile nav (≤ 768px) */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background-color: rgba(250,249,247,0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--clr-border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-4) var(--space-6) var(--space-6);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 320ms ease, opacity 280ms ease;
  }

  .nav-links.nav-open { max-height: 600px; opacity: 1; pointer-events: auto; }

  .nav-links li { border-bottom: 1px solid var(--clr-border); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-link { display: block; padding: var(--space-4) var(--space-2); font-size: var(--text-base); }
  .nav-link--cta { margin-left: 0; margin-top: var(--space-3); text-align: center; }

  /* Hero: stack vertically */
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text-col { order: 2; }
  .hero-photo-col { order: 1; align-items: center; }

  .hero-badge { justify-content: center; }
  .hero-text  { margin-inline: auto; }

  .hero-actions { justify-content: center; flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .profile-photo-wrapper { width: 210px; height: 258px; }

  /* Education */
  .education-card { flex-direction: column; gap: var(--space-4); }
  .education-card__header { flex-direction: column; }

  /* Projects */
  .projects-grid { grid-template-columns: 1fr; }
  .project-card__header { flex-direction: column; gap: var(--space-3); }

  /* Contact form */
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrapper { padding: var(--space-5); }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    grid-template-areas: "brand" "social" "nav";
    text-align: center;
  }
  .footer-social { justify-content: center; }
  .footer-nav ul { justify-content: center; }
}

/* Small mobile (≤ 480px) */
@media (max-width: 480px) {
  :root { --space-24: 4rem; }

  .container { padding-inline: var(--space-5); }
  .section { padding-block: var(--space-16); }

  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: 1fr; }

  .timeline { padding-left: var(--space-8); }
  .timeline-marker { left: calc(-1 * var(--space-8) + 5px); }
  .timeline-header { flex-direction: column; align-items: flex-start; gap: var(--space-2); }

  .btn { min-height: 48px; }
  .nav-link { min-height: 48px; display: flex; align-items: center; }
}


/* Language Toggle Button */
.navbar-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--clr-accent-dark);
  background: var(--clr-accent-light);
  border: 1px solid rgba(45,106,79,0.3);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1;
}

.lang-switch-btn:hover {
  background: var(--clr-accent);
  color: #ffffff;
  border-color: var(--clr-accent);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px var(--clr-accent-glow);
}

.lang-switch-btn svg {
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.lang-switch-btn:hover svg {
  transform: rotate(20deg);
}


/* Arabic (Rtl) Styles */
html[lang="ar"] {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
}

html[lang="ar"] body {
  direction: rtl;
  text-align: right;
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  letter-spacing: normal !important;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] .hero-name,
html[lang="ar"] .section-header h2,
html[lang="ar"] .project-card__title,
html[lang="ar"] .skill-card__title,
html[lang="ar"] .education-card__school,
html[lang="ar"] .nav-link,
html[lang="ar"] .btn,
html[lang="ar"] .logo-initials,
html[lang="ar"] .stat-label,
html[lang="ar"] .project-type {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  letter-spacing: normal !important;
}

/* Section label RTL */
html[lang="ar"] .section-label {
  padding-left: 0;
  padding-right: var(--space-3);
  border-left: none;
  border-right: 3px solid var(--clr-accent);
  letter-spacing: normal;
}

/* Nav links RTL */
html[lang="ar"] .nav-link--cta {
  margin-left: 0;
  margin-right: var(--space-2);
}

/* Hero text RTL */
html[lang="ar"] .hero-actions {
  flex-direction: row;
  justify-content: flex-start;
}

@media (max-width: 768px) {
  html[lang="ar"] .hero-actions {
    flex-direction: column;
    justify-content: center;
  }
}

html[lang="ar"] .photo-badge {
  left: -12px;
  right: auto;
}

/* Education RTL */
html[lang="ar"] .period-separator {
  transform: scaleX(-1);
  display: inline-block;
}

html[lang="ar"] .education-card__desc {
  text-align: right;
}

/* Project card RTL */
html[lang="ar"] .project-gallery {
  border-right: none;
  border-left: 1px solid var(--clr-border);
}

@media (max-width: 900px) {
  html[lang="ar"] .project-gallery {
    border-left: none;
    border-bottom: 1px solid var(--clr-border);
  }
}

html[lang="ar"] .project-gallery__zoom-btn {
  right: auto;
  left: var(--space-3);
}

html[lang="ar"] .project-gallery__badge {
  left: auto;
  right: var(--space-3);
}

html[lang="ar"] .project-features {
  border-left: none;
  border-right: 3px solid var(--clr-accent);
}

html[lang="ar"] .project-features__list li {
  padding-left: 0;
  padding-right: 16px;
  text-align: right;
}

html[lang="ar"] .project-features__list li::before {
  left: auto;
  right: 0;
}

html[lang="ar"] .project-card__description {
  text-align: right;
}

/* Experience card RTL */
html[lang="ar"] .exp-card__list li {
  padding-left: 0;
  padding-right: var(--space-5);
  text-align: right;
}

html[lang="ar"] .exp-card__list li::before {
  left: auto;
  right: 0;
}

/* Lightbox modal RTL */
html[lang="ar"] .project-modal__close {
  right: auto;
  left: 0;
}

/* Footer RTL */
html[lang="ar"] .footer-nav ul {
  justify-content: flex-start;
}

@media (max-width: 1024px) {
  html[lang="ar"] .footer-nav ul {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  html[lang="ar"] .footer-nav ul {
    justify-content: center;
  }
}

