/* ================================================
   HAZEM RADWAN — PORTFOLIO STYLESHEET
   ================================================
   TABLE OF CONTENTS:
   1. CSS Variables & Theme
   2. Reset & Base
   3. Typography
   4. Layout Utilities
   5. Navigation
   6. Hero Section
   7. Section Shared Styles
   8. About Section
   9. Skills Section
   10. Projects Section
   11. Experience / Timeline
   12. Contact Section
   13. Footer
   14. Animations
   15. Responsive / Mobile
   ================================================ */


/* ================================================
   1. CSS VARIABLES & THEME
   EDIT: Change these to update the entire color scheme
   ================================================ */
:root {
  /* Light theme (default) */
  --bg:          #F8F7F4;
  --bg-alt:      #EFEFEB;
  --bg-card:     #FFFFFF;
  --border:      #E2E0DA;
  --text:        #1A1A18;
  --text-muted:  #6B6B65;
  --text-light:  #9B9B93;

  /* EDIT: Primary accent color — try #2D6A4F for green, #C0392B for red */
  --accent:      #1D4ED8;
  --accent-light:#DBEAFE;
  --accent-dark: #1E3A8A;

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --section-gap: 7rem;
  --container:   1160px;
  --radius:      12px;
  --radius-sm:   6px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.10);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark theme — applied via [data-theme="dark"] on <html> */
[data-theme="dark"] {
  --bg:          #111110;
  --bg-alt:      #1A1A18;
  --bg-card:     #1F1F1D;
  --border:      #2C2C28;
  --text:        #F0EFE8;
  --text-muted:  #9B9B93;
  --text-light:  #6B6B65;
  --accent:      #60A5FA;
  --accent-light:#1E3A8A;
  --accent-dark: #93C5FD;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.5);
}


/* ================================================
   2. RESET & BASE
   ================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

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

button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }


/* ================================================
   3. TYPOGRAPHY
   ================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--text);
}

em { font-style: italic; }
strong { font-weight: 600; }


/* ================================================
   4. LAYOUT UTILITIES
   ================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}


/* ================================================
   5. BUTTONS
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
  font-weight: 500;
  font-family: var(--font-body);
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
}
.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

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

.btn--sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn--full { width: 100%; justify-content: center; }


/* ================================================
   6. NAVIGATION
   ================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: all 0.3s var(--ease);
}

.nav.scrolled {
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-right: auto;
}
.nav__logo span { color: var(--accent); }

.nav__links {
  display: flex;
  gap: 2rem;
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme toggle */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  transition: all 0.2s;
}
.theme-toggle:hover {
  background: var(--bg-alt);
  color: var(--text);
}

/* Burger (mobile) */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}
.nav__burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  background: var(--bg);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu ul { text-align: center; }
.mobile-menu li { margin: 1.5rem 0; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--text);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent); }


/* ================================================
   7. HERO SECTION
   ================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  max-width: var(--container);
  margin: 0 auto;
  gap: 4rem;
}

/* Subtle dot grid background */
.hero__bg-grid {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

.hero__content {
  flex: 1;
  max-width: 580px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s var(--ease) both;
}

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.1); }
}

.hero__name {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  animation: fadeUp 0.6s 0.1s var(--ease) both;
}
.hero__name em {
  color: var(--accent);
  font-style: italic;
}

.hero__title-wrapper {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s 0.2s var(--ease) both;
}

.hero__title-rotate {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
}

.hero__summary {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  animation: fadeUp 0.6s 0.3s var(--ease) both;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.6s 0.4s var(--ease) both;
}

.hero__stats {
  display: flex;
  gap: 2.5rem;
  animation: fadeUp 0.6s 0.5s var(--ease) both;
}

.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text);
  line-height: 1;
}
.stat__label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero visual — floating cards */
.hero__visual {
  flex: 1;
  max-width: 380px;
  position: relative;
  height: 420px;
  animation: fadeUp 0.6s 0.3s var(--ease) both;
}

.hero__orb {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
  opacity: 0.6;
}

.hero__card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-md);
  min-width: 200px;
  transition: transform 0.3s var(--ease);
}
.hero__card:hover { transform: translateY(-4px) !important; }

.hero__card--1 { top: 10%; left: 0%; animation: float1 4s ease-in-out infinite; }
.hero__card--2 { top: 40%; right: 0%; animation: float2 5s ease-in-out infinite; }
.hero__card--3 { bottom: 8%; left: 10%; animation: float1 4.5s ease-in-out infinite 0.5s; }

@keyframes float1 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(8px); }
}

.card-icon { font-size: 1.6rem; }
.card-title { font-weight: 600; font-size: 0.88rem; color: var(--text); }
.card-sub { font-size: 0.75rem; color: var(--text-muted); }

/* Scroll hint */
.hero__scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: fadeUp 1s 0.8s var(--ease) both;
}
.hero__scroll svg {
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}


/* ================================================
   8. SHARED SECTION STYLES
   ================================================ */
.section {
  padding: var(--section-gap) 0;
}

.section:nth-child(even) {
  background: var(--bg-alt);
}

.section__header {
  margin-bottom: 3.5rem;
}

.section__tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
}

.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.025em;
  color: var(--text);
}

.section__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  max-width: 560px;
}


/* ================================================
   9. ABOUT SECTION
   ================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about__text p {
  color: var(--text-muted);
  font-size: 1.025rem;
  margin-bottom: 1.25rem;
  line-height: 1.75;
}
.about__text strong { color: var(--text); }
.about__text em { color: var(--accent); font-style: italic; }

.about__values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.value-tag {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.3rem 0.9rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.2s;
}
.value-tag:hover {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent);
}

.about__highlights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.highlight-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  transition: all 0.25s var(--ease);
  box-shadow: var(--shadow-sm);
}
.highlight-card:hover {
  border-color: var(--accent);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.highlight-card__icon {
  font-size: 1.4rem;
  line-height: 1;
  margin-top: 0.1rem;
}
.highlight-card__title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.highlight-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}


/* ================================================
   10. SKILLS SECTION
   ================================================ */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}
.skill-group:hover { box-shadow: var(--shadow-md); }

.skill-group__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.skill-group__header h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.skill-group__icon { font-size: 1.2rem; }

.skill-group__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-tag {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.28rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
  cursor: default;
}
.skill-tag:hover {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent);
}


/* ================================================
   11. PROJECTS SECTION
   ================================================ */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--border);
  transition: background 0.3s;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(29, 78, 216, 0.2);
}
.project-card:hover::before { background: var(--accent); }

/* Featured project spans full width */
.project-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
}
.project-card--featured::before { height: 4px; }

/* Work-in-progress styling */
.project-card--wip {
  opacity: 0.85;
  border-style: dashed;
}
.project-card--wip:hover { opacity: 1; }

.project-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.project-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Status badges */
.project-status {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  letter-spacing: 0.03em;
}
.project-status--live {
  background: #dcfce7;
  color: #15803d;
}
.project-status--published {
  background: #dbeafe;
  color: #1d4ed8;
}
.project-status--wip {
  background: #fef9c3;
  color: #a16207;
}

[data-theme="dark"] .project-status--live   { background: #14532d; color: #86efac; }
[data-theme="dark"] .project-status--published { background: #1e3a8a; color: #93c5fd; }
[data-theme="dark"] .project-status--wip    { background: #713f12; color: #fde68a; }

.project-year {
  font-size: 0.78rem;
  color: var(--text-light);
}
.project-card__icon { font-size: 1.8rem; }

.project-card__title {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.project-card__problem {
  font-size: 0.875rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: 0.6rem 0.9rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.5;
}

.project-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.project-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.project-card__tech span {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.project-card__impact {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.impact-label {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.15rem 0.5rem;
  font-weight: 600;
  font-size: 0.72rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.impact-value { color: var(--text-muted); line-height: 1.4; }

.project-card__links {
  display: flex;
  gap: 0.5rem;
}


/* ================================================
   12. EXPERIENCE / TIMELINE
   ================================================ */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 2px;
  height: calc(100% - 16px);
  background: var(--border);
}

.timeline__item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline__marker {
  position: absolute;
  left: -2.45rem; top: 1.25rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline__marker--sm {
  width: 10px; height: 10px;
  left: -2.25rem;
  background: var(--border);
  box-shadow: 0 0 0 2px var(--border);
}

.timeline__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--ease);
}
.timeline__card:hover {
  border-color: rgba(29, 78, 216, 0.25);
  box-shadow: var(--shadow-md);
}

.timeline__card--sm {
  background: var(--bg-alt);
  border-style: dashed;
  padding: 1rem 1.25rem;
}

.timeline__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.timeline__role {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.timeline__company {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
}

.timeline__date {
  font-size: 0.8rem;
  color: var(--text-light);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.2rem 0.7rem;
  white-space: nowrap;
}

.timeline__bullets {
  padding-left: 1.1rem;
  list-style: disc;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.timeline__bullets li { margin-bottom: 0.35rem; }
.timeline__bullets li::marker { color: var(--accent); }

.timeline__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.timeline__tags span {
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.timeline__summary {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.timeline__item--training { opacity: 0.8; }
.timeline__item--training:hover { opacity: 1; }


/* ================================================
   13. CONTACT SECTION
   ================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s var(--ease);
  box-shadow: var(--shadow-sm);
}
.contact-item:hover {
  border-color: var(--accent);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.contact-item__icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.contact-item__label { font-size: 0.75rem; color: var(--text-light); margin-bottom: 0.15rem; }
.contact-item__value { font-size: 0.9rem; font-weight: 500; color: var(--text); }

/* Contact form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font-size: 0.925rem;
  color: var(--text);
  font-family: var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.form-status {
  font-size: 0.875rem;
  text-align: center;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}
.form-status.success { background: #dcfce7; color: #15803d; }
.form-status.error   { background: #fee2e2; color: #b91c1c; }


/* ================================================
   14. FOOTER
   ================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: var(--bg);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copy {
  font-size: 0.82rem;
  color: var(--text-light);
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}
.footer__links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--accent); }


/* ================================================
   14b. COURSES SECTION
   ================================================ */
.courses__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent-light);
}

.course-card__header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.course-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.course-card__provider {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}

.course-card__description {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
}

.course-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.course-card__date {
  font-size: 0.8rem;
  color: var(--text-light);
}

.course-card__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}


/* ================================================
   14c. CERTIFICATES & AWARDS SECTION
   ================================================ */
.certificates__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}

.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--accent-light);
}

.cert-card__image-wrapper {
  position: relative;
  width: 100%;
  height: 350px;
  background: var(--bg-alt);
  overflow: hidden;
}

.cert-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease);
}

.cert-card:hover .cert-card__image {
  transform: scale(1.05);
}

.cert-card__expand {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: var(--radius);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cert-card__expand:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: scale(1.1);
}

.cert-card__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.cert-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.cert-card__issuer {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.cert-card__date {
  font-size: 0.8rem;
  color: var(--text-light);
}

.cert-card__description {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}


/* Image Modal / Lightbox for Certificates */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  animation: fadeUp 0.3s var(--ease);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__content {
  position: relative;
  background-color: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius);
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
}

.modal__image {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  font-weight: bold;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__close:hover {
  color: var(--accent);
}


/* ================================================
   15. ANIMATIONS
   ================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll-triggered fade-in for sections */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ================================================
   16. RESPONSIVE / MOBILE
   ================================================ */
@media (max-width: 960px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 7rem;
  }
  .hero__content { max-width: 100%; }
  .hero__cta { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__visual { display: none; }

  .about__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .skills__grid { grid-template-columns: 1fr 1fr; }
  .projects__grid { grid-template-columns: 1fr; }
  .project-card--featured { grid-column: auto; }
  .contact__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .courses__grid { grid-template-columns: 1fr; }
  .certificates__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --section-gap: 4.5rem; }

  .nav__links  { display: none; }
  .nav__actions .btn { display: none; }
  .nav__burger { display: flex; }

  .hero__name { font-size: 3rem; }
  .skills__grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 1.25rem; }
  .form-row { grid-template-columns: 1fr; }
  .timeline__header { flex-direction: column; }
}
