/* ═══════════════════════════════════════════
   YOGENDER KUMAR — PORTFOLIO DESIGN SYSTEM
   Apple Human Interface Guidelines inspired
   ═══════════════════════════════════════════ */

/* ── Custom Properties ── */
:root {
  /* Colors */
  --color-bg: #FFFFFF;
  --color-bg-dark: #0A0A0A;
  --color-text-primary: #1D1D1F;
  --color-text-secondary: #6E6E73;
  --color-accent: #0071E3;
  --color-accent-hover: #0077ED;
  --color-divider: #D2D2D7;
  --color-surface: #F5F5F7;
  --color-white: #FFFFFF;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", sans-serif;
  --font-hero: clamp(40px, 5vw, 72px);
  --font-section-title: clamp(32px, 4vw, 44px);
  --font-subhead: clamp(20px, 2.5vw, 26px);
  --font-body: 17px;
  --font-body-lg: 19px;
  --font-caption: 14px;
  --font-caption-sm: 13px;

  /* Font weights */
  --weight-semibold: 600;
  --weight-medium: 500;
  --weight-regular: 400;

  /* Spacing */
  --section-gap: 56px;
  --content-max: 1200px;
  --text-max: 640px;
  --nav-height: 52px;

  /* Radius */
  --radius-pill: 999px;
  --radius-card: 18px;
  --radius-modal: 16px;

  /* Shadows */
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.08);

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-default: 0.3s var(--ease-out);
}

@media (min-width: 1024px) {
  :root {
    --section-gap: 100px;
    --nav-height: 56px;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-body);
  font-weight: var(--weight-regular);
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity var(--transition-default);
}

a:hover {
  opacity: 0.85;
}

ul, ol {
  list-style: none;
}

/* ── Typography ── */
.heading-hero {
  font-size: var(--font-hero);
  font-weight: var(--weight-semibold);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.heading-section {
  font-size: var(--font-section-title);
  font-weight: var(--weight-semibold);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.heading-subhead {
  font-size: var(--font-subhead);
  font-weight: var(--weight-medium);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.text-body {
  font-size: var(--font-body);
  font-weight: var(--weight-regular);
  line-height: 1.65;
}

.text-body-lg {
  font-size: var(--font-body-lg);
  font-weight: var(--weight-regular);
  line-height: 1.6;
}

.text-caption {
  font-size: var(--font-caption);
  font-weight: var(--weight-regular);
  color: var(--color-text-secondary);
}

.text-caption-sm {
  font-size: var(--font-caption-sm);
  font-weight: var(--weight-regular);
  color: var(--color-text-secondary);
}

.text-muted {
  color: var(--color-text-secondary);
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 640px) {
  .container {
    padding: 0 32px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 48px;
  }
}

.text-column {
  max-width: var(--text-max);
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

.section--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-white);
}

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

.section__eyebrow {
  font-size: var(--font-caption-sm);
  font-weight: var(--weight-medium);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.section__eyebrow--light {
  color: var(--color-accent);
}

.divider {
  height: 1px;
  background-color: var(--color-divider);
  border: none;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--color-divider);
}

/* Dark hero: nav links should be white until scrolled */
.nav--dark-hero .nav__link {
  color: rgba(255, 255, 255, 0.8);
}

.nav--dark-hero .nav__link:hover,
.nav--dark-hero .nav__link--active {
  color: var(--color-white);
}

.nav--dark-hero .nav__logo {
  color: var(--color-white);
}

.nav--dark-hero.nav--scrolled .nav__link {
  color: var(--color-text-secondary);
}

.nav--dark-hero.nav--scrolled .nav__link:hover,
.nav--dark-hero.nav--scrolled .nav__link--active {
  color: var(--color-text-primary);
}

.nav--dark-hero.nav--scrolled .nav__logo {
  color: var(--color-text-primary);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 640px) {
  .nav__inner {
    padding: 0 32px;
  }
}

@media (min-width: 1024px) {
  .nav__inner {
    padding: 0 48px;
  }
}

.nav__logo {
  font-size: 16px;
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  transition: color var(--transition-default);
  white-space: nowrap;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 32px;
}

@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }
}

.nav__link {
  font-size: var(--font-caption);
  font-weight: var(--weight-regular);
  color: var(--color-text-secondary);
  transition: color var(--transition-default);
  text-decoration: none;
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-text-primary);
  opacity: 1;
}

/* Mobile menu toggle */
.nav__mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

@media (min-width: 768px) {
  .nav__mobile-toggle {
    display: none;
  }
}

.nav__mobile-toggle svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-text-primary);
  transition: stroke var(--transition-default);
}

.nav--dark-hero .nav__mobile-toggle svg {
  stroke: var(--color-white);
}

.nav--dark-hero.nav--scrolled .nav__mobile-toggle svg {
  stroke: var(--color-text-primary);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu--open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__link {
  font-size: 24px;
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  text-decoration: none;
}

.mobile-menu__close {
  position: absolute;
  top: 14px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu__close svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-text-primary);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: var(--weight-medium);
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--transition-default);
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  opacity: 1;
  transform: scale(1.02);
}

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

.btn--secondary:hover {
  background-color: rgba(0, 113, 227, 0.06);
  opacity: 1;
  transform: scale(1.02);
}

/* Dark background button variants */
.btn--primary-dark {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn--primary-dark:hover {
  background-color: var(--color-accent-hover);
  opacity: 1;
  transform: scale(1.02);
}

.btn--secondary-dark {
  background-color: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn--secondary-dark:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  opacity: 1;
  transform: scale(1.02);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Text/arrow link style */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: var(--weight-medium);
  color: var(--color-accent);
  transition: gap var(--transition-default);
}

.link-arrow:hover {
  gap: 10px;
  opacity: 1;
}

.link-arrow--muted {
  color: var(--color-text-secondary);
  font-size: var(--font-caption);
  font-weight: var(--weight-regular);
}

/* ── Cards ── */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-default), transform var(--transition-default);
}

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

.card--large {
  padding: 0;
  overflow: hidden;
}

.card--large .card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--color-divider);
  object-fit: cover;
}

.card--large .card__image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #e8e8ed 0%, #d2d2d7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: var(--font-caption);
}

.card--large .card__body {
  padding: 32px;
}

@media (min-width: 640px) {
  .card--large .card__body {
    padding: 40px;
  }
}

.card__title {
  font-size: 22px;
  font-weight: var(--weight-semibold);
  margin-bottom: 8px;
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
}

.card__description {
  font-size: var(--font-body);
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: var(--weight-medium);
  color: var(--color-accent);
  transition: gap var(--transition-default);
}

.card__link:hover {
  gap: 10px;
  opacity: 1;
}

/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 40px) 24px 60px;
}

@media (min-width: 640px) {
  .hero {
    padding: calc(var(--nav-height) + 60px) 32px 80px;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: calc(var(--nav-height) + 60px) 48px 80px;
  }
}

.hero__name {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: var(--weight-semibold);
  color: var(--color-white);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: var(--font-caption-sm);
  font-weight: var(--weight-medium);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  padding: 6px 16px;
  border: 1px solid rgba(0, 113, 227, 0.25);
  border-radius: var(--radius-pill);
  background: rgba(0, 113, 227, 0.08);
}

.hero__headline {
  font-size: var(--font-hero);
  font-weight: var(--weight-semibold);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 800px;
  margin-bottom: 24px;
}

.hero__subhead {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: var(--weight-regular);
  line-height: 1.55;
  color: var(--color-text-secondary);
  max-width: 580px;
  margin-bottom: 28px;
}

.section--dark .hero__subhead {
  color: rgba(255, 255, 255, 0.55);
}

/* ── Photo + Video Component ── */
.profile-video {
  position: relative;
  display: inline-block;
  margin-top: 36px;
  cursor: pointer;
}

.profile-video__image-wrap {
  width: 200px;
  height: 200px;
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

@media (min-width: 1024px) {
  .profile-video__image-wrap {
    width: 320px;
    height: 320px;
    border-radius: 32px;
  }
}

.profile-video:hover .profile-video__image-wrap {
  transform: scale(1.04);
}

.profile-video__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-video__image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #3a3a3c 0%, #1d1d1f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: var(--font-caption);
}

.profile-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  border: none;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .profile-video__play {
    width: 72px;
    height: 72px;
  }
}

.profile-video:hover .profile-video__play {
  opacity: 1;
}

.profile-video__play svg {
  width: 20px;
  height: 20px;
  fill: var(--color-white);
  margin-left: 3px;
}

@media (min-width: 1024px) {
  .profile-video__play svg {
    width: 24px;
    height: 24px;
  }
}

/* ── Video Modal ── */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.video-modal--open {
  opacity: 1;
  pointer-events: all;
}

.video-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.video-modal__content {
  position: relative;
  width: 90%;
  max-width: 900px;
  border-radius: var(--radius-modal);
  overflow: hidden;
  transform: scale(0.92);
  transition: transform 0.3s ease;
  background: #000;
}

.video-modal--open .video-modal__content {
  transform: scale(1);
}

.video-modal__video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}

.video-modal__video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 20px;
  font-weight: var(--weight-medium);
  opacity: 0.9;
  transition: opacity 0.3s ease, background 0.3s ease;
  z-index: 10;
}

.video-modal__close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

/* ── Metrics Strip ── */
.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
  text-align: center;
}

@media (min-width: 640px) {
  .metrics {
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
  }
}

.metric__value {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 6px;
}

.metric__label {
  font-size: var(--font-caption);
  font-weight: var(--weight-regular);
  color: var(--color-text-secondary);
  line-height: 1.45;
}

/* ── About Preview ── */
.about-preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 768px) {
  .about-preview {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.about-preview__text p {
  margin-bottom: 20px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.about-preview__text p:last-of-type {
  margin-bottom: 28px;
}

.about-preview__image {
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #e8e8ed 0%, #d2d2d7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: var(--font-caption);
}

.about-preview__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Project Grid (Selected Work) ── */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}

@media (min-width: 640px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.project-grid .card--featured {
  grid-column: 1 / -1;
}

@media (min-width: 1024px) {
  .project-grid .card--featured {
    grid-column: 1 / -1;
  }
}

.project-grid__footer {
  margin-top: 24px;
  text-align: center;
}

/* ── Skills Grid ── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}

@media (min-width: 640px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.skill-card {
  display: flex;
  gap: 16px;
  padding: 28px;
  background-color: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-default), transform var(--transition-default);
}

.skill-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.skill-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 113, 227, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skill-card__title {
  font-size: 16px;
  font-weight: var(--weight-semibold);
  margin-bottom: 4px;
  color: var(--color-text-primary);
}

.skill-card__description {
  font-size: var(--font-caption);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ── Testimonial ── */
.testimonial-section {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.testimonial__quote {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: var(--weight-medium);
  line-height: 1.5;
  color: var(--color-text-primary);
  font-style: italic;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.testimonial__author {
  font-size: var(--font-caption);
  color: var(--color-text-secondary);
  font-style: normal;
}

/* ── Closing CTA ── */
.cta-section {
  text-align: center;
}

.cta-section .heading-hero {
  margin-bottom: 20px;
}

.cta-section p {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  margin-bottom: 28px;
}

.section--dark .cta-section p {
  color: rgba(255, 255, 255, 0.55);
}

/* ── Inner Page Hero ── */
.page-hero {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 48px;
  text-align: center;
}

@media (min-width: 1024px) {
  .page-hero {
    padding-top: calc(var(--nav-height) + 72px);
    padding-bottom: 56px;
  }
}

.page-hero__title {
  font-size: var(--font-section-title);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.page-hero__subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Case Study Page ── */
.case-study-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
  padding: 28px 0;
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  margin-bottom: 48px;
}

@media (min-width: 640px) {
  .case-study-meta {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .case-study-meta {
    grid-template-columns: repeat(5, 1fr);
  }
}

.case-study-meta dt {
  font-size: var(--font-caption-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.case-study-meta dd {
  font-size: var(--font-body);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
}

.case-study-section {
  margin-bottom: 64px;
}

@media (min-width: 1024px) {
  .case-study-section {
    margin-bottom: 72px;
  }
}

.case-study-section__title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--color-text-primary);
}

.case-study-section p {
  font-size: var(--font-body);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.case-study-section ul {
  list-style: none;
  margin: 20px 0;
}

.case-study-section ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: var(--font-body);
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.case-study-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

.image-placeholder {
  width: 100%;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, #e8e8ed 0%, #d2d2d7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: var(--font-caption);
  text-align: center;
  padding: 24px;
  margin: 32px 0;
}

.image-placeholder--hero {
  aspect-ratio: 16 / 9;
}

.image-placeholder--standard {
  aspect-ratio: 16 / 10;
  min-height: 200px;
}

/* Outcomes grid */
.outcomes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 32px 0;
}

@media (min-width: 640px) {
  .outcomes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.outcome-card {
  padding: 28px;
  background-color: var(--color-surface);
  border-radius: var(--radius-card);
}

.outcome-card__value {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: var(--weight-semibold);
  color: var(--color-accent);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.outcome-card__label {
  font-size: var(--font-caption);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Case study media (images and GIFs) */
.case-study-media {
  margin: 32px 0;
}

.case-study-media__frame {
  background-color: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 20px;
}

.case-study-media__frame img {
  width: 100%;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--color-divider);
}

.case-study-media figcaption {
  font-size: var(--font-caption);
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-top: 12px;
  text-align: center;
  font-style: italic;
}

/* Side-by-side media for dual screenshots */
.case-study-media--duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 32px 0;
}

@media (min-width: 640px) {
  .case-study-media--duo {
    grid-template-columns: 1fr 1fr;
  }
}

.case-study-media--duo figure {
  margin: 0;
}

.case-study-media--duo .case-study-media__frame {
  background-color: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 16px;
}

.case-study-media--duo .case-study-media__frame img {
  width: 100%;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--color-divider);
}

.case-study-media--duo figcaption {
  font-size: var(--font-caption-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-top: 8px;
  text-align: center;
  font-style: italic;
}

/* Subsection headings within case study sections */
.case-study-section__subtitle {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
  margin-top: 36px;
  margin-bottom: 14px;
  color: var(--color-text-primary);
}

/* Blockquote for user feedback */
.case-study-quote {
  border-left: 3px solid var(--color-accent);
  padding: 16px 0 16px 24px;
  margin: 28px 0;
  font-size: var(--font-body);
  font-style: italic;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.case-study-quote cite {
  display: block;
  margin-top: 10px;
  font-size: var(--font-caption);
  font-style: normal;
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
}

/* More from this project section */
.case-study-more ul {
  list-style: none;
  margin: 20px 0;
}

.case-study-more ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: var(--font-body);
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.case-study-more ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

/* ── Timeline (About Page) ── */
.timeline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin: 56px auto 0;
  max-width: 500px;
  padding: 0 16px;
}

.timeline__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.timeline__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 4px;
}

.timeline__label {
  font-size: var(--font-caption);
  font-weight: var(--weight-regular);
  color: var(--color-text-secondary);
  line-height: 1.55;
  white-space: normal;
}

.timeline__label strong {
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
}

.timeline__connector {
  width: 2px;
  height: 28px;
  background-color: var(--color-divider);
  margin-left: 5px;
  flex-shrink: 0;
}

/* ── Skills Page (Full) ── */
.skills-category {
  margin-bottom: 48px;
}

.skills-category__title {
  font-size: 20px;
  font-weight: var(--weight-semibold);
  margin-bottom: 16px;
  color: var(--color-text-primary);
}

.skills-category__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  display: inline-block;
  font-size: var(--font-caption);
  font-weight: var(--weight-regular);
  color: var(--color-text-primary);
  padding: 8px 18px;
  background-color: var(--color-surface);
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-divider);
  transition: all var(--transition-default);
}

.skill-tag:hover {
  background-color: rgba(0, 113, 227, 0.06);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ── Testimonials Page ── */
.testimonial-card {
  padding: 40px;
  background-color: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.testimonial-card__quote {
  font-size: var(--font-body-lg);
  font-style: italic;
  line-height: 1.7;
  color: var(--color-text-primary);
  margin-bottom: 20px;
}

.testimonial-card__author {
  font-size: var(--font-caption);
  color: var(--color-text-secondary);
  font-style: normal;
}

.testimonial-card__name-link {
  display: inline;
  font-size: var(--font-caption);
  font-weight: var(--weight-semibold);
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: rgba(0, 113, 227, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition-default);
}

.testimonial-card__name-link:hover {
  text-decoration-color: var(--color-accent);
}

.testimonial-card__role {
  display: block;
  font-size: var(--font-caption-sm);
  color: var(--color-text-secondary);
  margin-top: 3px;
}

/* ── Contact Page ── */
.contact-email {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 32px;
  transition: color var(--transition-default);
}

.contact-email:hover {
  color: var(--color-accent);
  opacity: 1;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
}

/* ── Footer ── */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--color-divider);
  text-align: center;
}

.footer__text {
  font-size: var(--font-caption-sm);
  color: var(--color-text-secondary);
}

/* ── Scroll Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.fade-in-group > .fade-in:nth-child(1) { transition-delay: 0s; }
.fade-in-group > .fade-in:nth-child(2) { transition-delay: 0.08s; }
.fade-in-group > .fade-in:nth-child(3) { transition-delay: 0.16s; }
.fade-in-group > .fade-in:nth-child(4) { transition-delay: 0.24s; }
.fade-in-group > .fade-in:nth-child(5) { transition-delay: 0.32s; }
.fade-in-group > .fade-in:nth-child(6) { transition-delay: 0.4s; }

/* ── Utility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mt-48 { margin-top: 48px; }
.mt-32 { margin-top: 32px; }
