/* ============================================================
   PREMIUM DIGITAL RESUME — شبنم رادمرد
   Minimal Luxury · Apple-inspired · RTL Persian
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Light palette extracted from warm professional portrait */
  --ivory: #FAF8F2;
  --beige: #ECE5D3;
  --sage-light: #C9C4A8;
  --olive: #7D8765;
  --navy: #233A60;
  --gold: #D9B76C;
  --gold-soft: #E8D4A0;
  
  --bg: var(--ivory);
  --bg-elevated: #FFFFFF;
  --text: #1A2332;
  --text-secondary: #4A5568;
  --text-muted: #718096;
  --border: rgba(35, 58, 96, 0.08);
  --shadow: 0 4px 24px rgba(35, 58, 96, 0.06);
  --shadow-hover: 0 12px 40px rgba(35, 58, 96, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  
  --font: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  --transition: 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode — automatic via system preference */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1419;
    --bg-elevated: #1A2332;
    --text: #F5F0E8;
    --text-secondary: #C9C4A8;
    --text-muted: #8A9BB0;
    --border: rgba(201, 196, 168, 0.1);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.45);
    --navy: #8BA3C7;
    --olive: #A8B58A;
    --gold: #E8D4A0;
  }
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

picture {
  display: contents;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  inset-inline-start: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--navy);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: top var(--transition);
}

.skip-link:focus-visible {
  top: 16px;
}

/* ---------- Navigation ---------- */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition),
    backdrop-filter var(--transition);
}

.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 var(--border), var(--shadow);
}

.nav {
  width: min(1100px, 92%);
  margin-inline: auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}

.site-header.scrolled .nav-brand {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu a {
  display: block;
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--navy);
  background: rgba(125, 135, 101, 0.1);
}

.nav-menu a.active {
  color: var(--navy);
  font-weight: 600;
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  inset-inline: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

@media (prefers-color-scheme: dark) {
  .nav-menu a:hover,
  .nav-menu a:focus-visible,
  .nav-menu a.active {
    color: var(--gold);
  }
  .nav-menu a:hover,
  .nav-menu a:focus-visible {
    background: rgba(217, 183, 108, 0.1);
  }
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background var(--transition);
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 760px) {
  .nav-brand {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    inset-inline: 4%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--transition), transform var(--transition),
      visibility var(--transition);
  }

  .nav-menu.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-menu a {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
  }

  .nav-menu a.active::after {
    display: none;
  }
}

/* Keep anchored sections clear of the fixed header */
[id] {
  scroll-margin-top: 84px;
}

/* ---------- Background ---------- */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(
    135deg,
    var(--ivory) 0%,
    var(--beige) 40%,
    #E8E4D4 70%,
    var(--ivory) 100%
  );
  background-size: 200% 200%;
  animation: gradientShift 28s ease infinite;
}

@media (prefers-color-scheme: dark) {
  .bg-gradient {
    background: linear-gradient(
      135deg,
      #0F1419 0%,
      #161D27 40%,
      #1A2332 70%,
      #0F1419 100%
    );
  }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: float 20s ease-in-out infinite;
}

.blob-1 {
  width: 420px;
  height: 420px;
  background: var(--sage-light);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.blob-2 {
  width: 360px;
  height: 360px;
  background: var(--gold-soft);
  bottom: 10%;
  left: -8%;
  animation-delay: -7s;
}

.blob-3 {
  width: 280px;
  height: 280px;
  background: var(--olive);
  top: 45%;
  right: 15%;
  opacity: 0.2;
  animation-delay: -14s;
}

@media (prefers-color-scheme: dark) {
  .blob { opacity: 0.12; }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ---------- Layout ---------- */
.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 56px;
}

.section-number {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--olive);
  letter-spacing: 0.05em;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn i {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--navy);
  color: #FAF8F2;
  box-shadow: 0 4px 16px rgba(35, 58, 96, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(35, 58, 96, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid rgba(35, 58, 96, 0.25);
}

.btn-secondary:hover {
  background: rgba(35, 58, 96, 0.05);
  transform: translateY(-2px);
}

@media (prefers-color-scheme: dark) {
  .btn-primary {
    background: var(--gold);
    color: #1A2332;
    box-shadow: 0 4px 16px rgba(217, 183, 108, 0.25);
  }
  .btn-secondary {
    color: var(--gold);
    border-color: rgba(217, 183, 108, 0.35);
  }
  .btn-secondary:hover {
    background: rgba(217, 183, 108, 0.08);
  }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 116px 0 90px;
}

.hero-container {
  width: min(1100px, 92%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--olive);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.hero-name {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 420px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.profile-frame {
  position: relative;
  width: min(380px, 100%);
}

.profile-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  position: relative;
  z-index: 1;
}

.profile-glow {
  position: absolute;
  inset: -12px;
  border-radius: calc(var(--radius-lg) + 8px);
  background: linear-gradient(145deg, var(--gold-soft), var(--sage-light), var(--olive));
  opacity: 0.35;
  z-index: 0;
  filter: blur(20px);
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--olive), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}

.about-image-wrap {
  position: relative;
}

@media (min-width: 961px) {
  .about-image-wrap {
    position: sticky;
    top: 100px;
  }
}

.about-image-frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.about-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.about-shape {
  position: absolute;
  width: 70%;
  height: 70%;
  bottom: -24px;
  left: -24px;
  background: linear-gradient(135deg, var(--sage-light), var(--olive));
  border-radius: var(--radius-lg);
  opacity: 0.25;
  z-index: 0;
}

.about-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.85;
}

.about-quote {
  margin-top: 0;
  margin-bottom: 28px;
  padding: 28px 32px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border-right: 3px solid var(--gold);
  box-shadow: var(--shadow);
  position: relative;
}

.quote-icon {
  width: 22px;
  height: 22px;
  color: var(--gold);
  margin-bottom: 10px;
  opacity: 0.7;
}

.about-quote p {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.6;
}

/* ---------- Timeline / Experience ---------- */
.timeline {
  position: relative;
  padding-right: 32px;
}

.timeline-line {
  position: absolute;
  top: 0;
  right: 7px;
  width: 2px;
  height: 0%;
  background: linear-gradient(to bottom, var(--olive), var(--gold));
  border-radius: 2px;
  transition: height 0.1s linear;
}

.timeline-item {
  position: relative;
  padding-bottom: 48px;
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 28px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: relative;
  z-index: 1;
}

.marker-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--olive);
  box-shadow: 0 0 0 4px var(--bg);
  transition: transform var(--transition), border-color var(--transition);
}

.timeline-item:hover .marker-dot {
  transform: scale(1.25);
  border-color: var(--gold);
}

.timeline-card {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.company-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.position {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--olive);
}

.duration {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(125, 135, 101, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.resp-group h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.resp-group ul {
  display: grid;
  gap: 8px;
}

.resp-group li {
  position: relative;
  padding-right: 18px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.resp-group li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- Education ---------- */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.edu-card {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.edu-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.edu-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(125, 135, 101, 0.15), rgba(217, 183, 108, 0.12));
  border-radius: 14px;
  color: var(--olive);
}

.edu-icon i {
  width: 26px;
  height: 26px;
}

.edu-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.edu-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Courses ---------- */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.course-card {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(217, 183, 108, 0.3);
}

.course-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--olive);
}

.course-icon i {
  width: 24px;
  height: 24px;
}

.course-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

/* ---------- Skills ---------- */
.skills-groups {
  display: grid;
  gap: 36px;
}

.skill-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.skill-group-title i {
  width: 20px;
  height: 20px;
  color: var(--olive);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-block;
  padding: 10px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: var(--shadow);
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: default;
}

.tag:hover {
  transform: translateY(-3px);
  background: var(--navy);
  color: #FAF8F2;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(35, 58, 96, 0.2);
}

@media (prefers-color-scheme: dark) {
  .tag:hover {
    background: var(--gold);
    color: #1A2332;
  }
}

/* ---------- Traits ---------- */
.traits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.trait-card {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.trait-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.trait-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(125, 135, 101, 0.12), rgba(217, 183, 108, 0.1));
  border-radius: 12px;
  color: var(--olive);
}

.trait-icon i {
  width: 22px;
  height: 22px;
}

.trait-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.trait-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.contact-card {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: block;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(217, 183, 108, 0.35);
}

.contact-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(125, 135, 101, 0.15), rgba(217, 183, 108, 0.12));
  border-radius: 14px;
  color: var(--olive);
}

.contact-icon i,
.contact-icon svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  word-break: break-all;
}

/* ---------- Story / narrative sections ---------- */
.section-lead {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--olive);
  margin: -20px 0 40px;
  max-width: 720px;
  line-height: 1.7;
}

.story-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.story-grid-flip {
  grid-template-columns: 1.15fr 0.85fr;
}

.story-art {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.story-art svg {
  display: block;
  width: 100%;
  height: auto;
}

.story-art::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: calc(var(--radius-lg) + 8px);
  background: linear-gradient(145deg, var(--gold-soft), var(--sage-light), var(--olive));
  opacity: 0.28;
  z-index: -1;
  filter: blur(16px);
}

.prose p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 20px;
  text-align: justify;
}

.prose p:last-child {
  margin-bottom: 0;
}

.story-alt {
  background: color-mix(in srgb, var(--beige) 32%, transparent);
}

@media (prefers-color-scheme: dark) {
  .story-alt {
    background: rgba(26, 35, 50, 0.42);
  }
}

/* Signature card — Why BD */
.signature-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 36px;
  align-items: center;
  padding: 36px 40px;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-hover);
  position: relative;
  overflow: hidden;
}

.signature-card::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--olive));
}

.signature-visual svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.signature-body.prose p {
  color: var(--text-secondary);
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.value-card-wide {
  grid-column: 1 / -1;
}

.value-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(125, 135, 101, 0.15), rgba(217, 183, 108, 0.12));
  color: var(--olive);
  margin-bottom: 18px;
}

.value-icon i {
  width: 24px;
  height: 24px;
}

.value-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.value-card p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.85;
  text-align: justify;
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 40px 20px 60px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.8s var(--ease-out) forwards;
}

.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }
.delay-4 { animation-delay: 0.5s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  
  .hero-tagline {
    margin-inline: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .profile-frame {
    width: min(280px, 70%);
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-image-wrap {
    max-width: 320px;
    margin-inline: auto;
  }
  
  .edu-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-inline: auto;
  }
  
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-grid,
  .story-grid-flip {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .story-visual {
    max-width: 360px;
    margin-inline: auto;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .signature-card {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    gap: 24px;
  }

  .signature-visual {
    max-width: 160px;
    margin-inline: auto;
  }

  .section-lead {
    margin-top: -12px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 72px 0;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .hero {
    padding: 104px 0 60px;
  }
  
  /* Would collide with the stacked hero buttons on narrow screens */
  .scroll-indicator {
    display: none;
  }
  
  .hero-name {
    font-size: 2.4rem;
  }
  
  .timeline {
    padding-right: 24px;
  }
  
  .timeline-card {
    padding: 22px 20px;
  }
  
  .courses-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .traits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero-actions {
    flex-direction: column;
  }
}

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .bg-gradient {
    animation: none;
  }
  
  .blob {
    animation: none;
  }
}