/* ===================================
   CSS Reset/Normalize
   =================================== */

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

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

body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
}

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

ul, ol {
  list-style: none;
}

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

/* Remove default focus styles for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* Ensure focus styles for keyboard users */
:focus-visible {
  outline: 2px solid var(--brand-lime);
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===================================
   CSS Custom Properties - Color System
   =================================== */

:root {
  /* Brand Base Colors */
  --brand-deep: #042940;
  --brand-pine: #005c53;
  --brand-lime: #9fc131;
  --brand-sun: #dbf227;
  --brand-mist: #d6d58e;

  /* Deep Shades */
  --brand-deep-050: #e6eaec;
  --brand-deep-100: #c0cacf;
  --brand-deep-200: #9ba9b3;
  --brand-deep-300: #758996;
  --brand-deep-400: #4f6979;
  --brand-deep-500: #042940;
  --brand-deep-600: #04253a;
  --brand-deep-700: #031f30;
  --brand-deep-800: #021926;
  --brand-deep-900: #02121d;

  /* Pine Shades */
  --brand-pine-050: #e6efee;
  --brand-pine-100: #bfd6d4;
  --brand-pine-200: #99beba;
  --brand-pine-300: #73a5a0;
  --brand-pine-400: #4c8d87;
  --brand-pine-500: #005c53;
  --brand-pine-600: #00534b;
  --brand-pine-700: #00453e;
  --brand-pine-800: #003732;
  --brand-pine-900: #002925;

  /* Lime Shades */
  --brand-lime-050: #f5f9ea;
  --brand-lime-100: #e7f0cc;
  --brand-lime-200: #d9e6ad;
  --brand-lime-300: #cadd8e;
  --brand-lime-400: #bcd46f;
  --brand-lime-500: #9fc131;
  --brand-lime-600: #8fae2c;
  --brand-lime-700: #779125;
  --brand-lime-800: #5f741d;
  --brand-lime-900: #485716;

  /* Sun Shades */
  --brand-sun-050: #fbfee9;
  --brand-sun-100: #f6fcc9;
  --brand-sun-200: #f1faa9;
  --brand-sun-300: #ebf888;
  --brand-sun-400: #e6f668;
  --brand-sun-500: #dbf227;
  --brand-sun-600: #c5da23;
  --brand-sun-700: #a4b61d;
  --brand-sun-800: #839117;
  --brand-sun-900: #636d12;

  /* Mist Shades */
  --brand-mist-050: #fbfbf4;
  --brand-mist-100: #f5f4e3;
  --brand-mist-200: #efeed2;
  --brand-mist-300: #e8e8c1;
  --brand-mist-400: #e2e2b0;
  --brand-mist-500: #d6d58e;
  --brand-mist-600: #c1c080;
  --brand-mist-700: #a0a06a;
  --brand-mist-800: #808055;
  --brand-mist-900: #606040;

  /* Neutrals */
  --neutral-900: #0b1216;
  --neutral-700: #2e3a3f;
  --neutral-500: #59646a;
  --neutral-300: #aab4b6;
  --neutral-100: #f4f6f5;
  --neutral-050: #fbfdfc;

  /* Surfaces */
  --surface-base: #fbfdfc;
  --surface-alt: #f4f6f5;
  --surface-card: #ffffff;
  --surface-deep: #042940;
  --surface-overlay: rgba(4, 41, 64, 0.72);

  /* Text Colors */
  --text-default: #0b1216;
  --text-muted: #59646a;
  --text-inverse: #f4f6f5;
  --text-highlight: #dbf227;

  /* Status Colors */
  --status-success: #4caf50;
  --status-info: #2f7ea1;
  --status-warning: #f0b429;
  --status-error: #d64545;

  /* Shadows */
  --shadow-soft: 0 10px 40px rgba(4, 41, 64, 0.12);
  --shadow-hard: 0 20px 50px rgba(4, 41, 64, 0.24);

  /* Dividers */
  --divider-light: rgba(4, 41, 64, 0.08);
  --divider-dark: rgba(214, 213, 142, 0.32);

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #042940 0%, #005c53 60%, #0b1216 100%);
  --gradient-cta: linear-gradient(120deg, #9fc131 0%, #dbf227 80%);
  --gradient-card: linear-gradient(180deg, rgba(4, 41, 64, 0.08) 0%, rgba(219, 242, 39, 0) 100%);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  --text-6xl: 3.75rem;   /* 60px */

  /* Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Spacing */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-24: 6rem;     /* 96px */

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;

  /* Performance */
  --will-change-transform: transform;
  --will-change-opacity: opacity;
}

/* ===================================
   Icon System
   =================================== */

.icon {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

/* Icon size variants */
.icon--sm { width: 1rem; height: 1rem; }
.icon--md { width: 1.5rem; height: 1.5rem; }
.icon--lg { width: 2rem; height: 2rem; }
.icon--xl { width: 2.5rem; height: 2.5rem; }

/* Icon colors by context */
.skill-card__icon .icon {
  width: 2.5rem;
  height: 2.5rem;
  /* Lime: #9fc131 - approximate filter values */
  filter: brightness(0) saturate(100%) invert(77%) sepia(35%) saturate(629%) hue-rotate(27deg) brightness(91%) contrast(85%);
}

.work-card__icon .icon {
  width: 2rem;
  height: 2rem;
  /* Lime: #9fc131 */
  filter: brightness(0) saturate(100%) invert(77%) sepia(35%) saturate(629%) hue-rotate(27deg) brightness(91%) contrast(85%);
}

.benefit-item__icon .icon {
  width: 1.5rem;
  height: 1.5rem;
  /* Lime: #9fc131 */
  filter: brightness(0) saturate(100%) invert(77%) sepia(35%) saturate(629%) hue-rotate(27deg) brightness(91%) contrast(85%);
}

.contact__link-icon .icon {
  width: 1.5rem;
  height: 1.5rem;
  /* Pine: #005c53 */
  filter: brightness(0) saturate(100%) invert(26%) sepia(47%) saturate(1336%) hue-rotate(135deg) brightness(96%) contrast(101%);
  transition: filter 0.3s ease;
}

.contact__link:hover .contact__link-icon .icon {
  /* Lime: #9fc131 on hover */
  filter: brightness(0) saturate(100%) invert(77%) sepia(35%) saturate(629%) hue-rotate(27deg) brightness(91%) contrast(85%);
}

/* Performance optimizations */
.nav,
.skill-card,
.project-card,
.timeline-item__content,
.testimonial-card {
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* ===================================
   Base Typography
   =================================== */

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-default);
  background-color: var(--surface-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--text-default);
}

h1 {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-6);
}

h2 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

h3 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

h4 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

p {
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
  hyphens: none;
  orphans: 3;
  widows: 3;
}

a {
  color: var(--brand-pine);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-lime);
}

strong {
  font-weight: var(--font-semibold);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.125rem 0.25rem;
  background-color: var(--neutral-100);
  border-radius: var(--radius-sm);
}

/* ===================================
   Navigation
   =================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(251, 253, 252, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--divider-light);
  z-index: 1000;
}

.nav__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--brand-deep);
  transition: color 0.2s ease;
}

.nav__logo:hover {
  color: var(--brand-pine);
}

.nav__menu {
  display: flex;
  gap: var(--space-8);
  align-items: center;
}

.nav__menu a {
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--text-default);
  position: relative;
  transition: color 0.2s ease;
}

.nav__menu a:not(.btn):hover {
  color: var(--brand-pine);
}

.nav__menu a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand-lime);
  transition: width 0.3s ease;
}

.nav__menu a:not(.btn):hover::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  width: 44px;
  height: 44px;
  position: relative;
}

.nav__toggle span {
  width: 28px;
  height: 3px;
  background-color: var(--brand-deep);
  transition: all 0.3s ease;
  border-radius: var(--radius-sm);
  display: block;
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--surface-card);
    flex-direction: column;
    gap: 0;
    padding: 0;
    box-shadow: var(--shadow-soft);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease, padding 0.3s ease;
  }

  .nav__menu.active {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
    padding: var(--space-4) 0;
  }

  .nav__menu li {
    padding: 0;
  }

  .nav__menu a {
    display: block;
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--divider-light);
  }

  .nav__menu a:not(.btn)::after {
    display: none;
  }

  .nav__menu .btn {
    margin: var(--space-4) var(--space-6);
    text-align: center;
  }
}

.nav__menu a.active:not(.btn) {
  color: var(--brand-pine);
}

.nav__menu a.active:not(.btn)::after {
  width: 100%;
}

/* ===================================
   Buttons
   =================================== */

.btn {
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
  cursor: pointer;
}

.btn--primary {
  background-color: var(--brand-lime);
  color: var(--brand-deep);
  border: 2px solid var(--brand-lime-700);
}

.btn--primary:hover {
  background-color: var(--brand-lime-600);
  border-color: var(--brand-lime-700);
  color: var(--text-inverse);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn--primary:active {
  background-color: var(--brand-lime-600);
  transform: translateY(0);
}

.btn--secondary {
  background-color: transparent;
  color: var(--brand-lime);
  border: 2px solid var(--brand-lime);
}

.btn--secondary:hover {
  background-color: rgba(159, 193, 49, 0.15);
  border-color: var(--brand-lime-400);
  color: var(--brand-lime-050);
}

/* ===================================
   Hero Section
   =================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  position: relative;
  padding: calc(var(--space-16) + 70px) var(--space-6) var(--space-16);
  margin-top: 0;
  overflow: hidden;
}

.hero__container {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

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

.hero__profile {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1;
  /* box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 4px solid var(--brand-sun); */
}

.hero__content {
  text-align: center;
  color: var(--text-inverse);
}

.hero__title {
  font-size: var(--text-6xl);
  font-weight: var(--font-bold);
  color: var(--text-inverse);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.hero__tagline {
  font-size: var(--text-2xl);
  font-weight: var(--font-medium);
  color: var(--brand-sun);
  margin-bottom: var(--space-8);
}

.hero__description {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--neutral-100);
  margin-bottom: var(--space-12);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ===================================
   About Section
   =================================== */

.about {
  padding: var(--space-24) var(--space-6);
  background-color: var(--surface-base);
}

.about__container {
  max-width: 900px;
  margin: 0 auto;
}

.about__title {
  text-align: center;
  color: var(--brand-deep);
  margin-bottom: var(--space-8);
}

.about__content {
  background-color: var(--surface-card);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.about__intro {
  font-size: var(--text-xl);
  color: var(--brand-pine);
  font-weight: var(--font-medium);
  margin-bottom: var(--space-6);
}

.about__text p {
  color: var(--text-default);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.about__highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 2px solid var(--divider-light);
}

.highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.highlight-item__number {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  color: var(--brand-lime);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.highlight-item__label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===================================
   Skills Section
   =================================== */

.skills {
  padding: var(--space-24) var(--space-6);
  background-color: var(--surface-alt);
}

.skills__container {
  max-width: 1200px;
  margin: 0 auto;
}

.skills__title {
  text-align: center;
  color: var(--brand-deep);
  margin-bottom: var(--space-4);
}

.skills__intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-12);
  font-size: var(--text-lg);
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
}

.skill-card {
  background-color: var(--surface-card);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.skill-card__icon {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-4);
  text-align: center;
}

.skill-card__title {
  color: var(--brand-deep);
  margin-bottom: var(--space-4);
  font-size: var(--text-xl);
}

.skill-card__list {
  margin-bottom: var(--space-4);
}

.skill-card__list li {
  padding: var(--space-2) 0;
  color: var(--text-default);
  position: relative;
  padding-left: var(--space-6);
}

.skill-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand-lime);
  font-weight: var(--font-bold);
}

.skill-card__detail {
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-style: italic;
  border-top: 1px solid var(--divider-light);
  padding-top: var(--space-4);
  margin: 0;
}

/* ===================================
   Projects Section
   =================================== */

.projects {
  padding: var(--space-24) var(--space-6);
  background-color: var(--surface-base);
}

.projects__container {
  max-width: 1200px;
  margin: 0 auto;
}

.projects__title {
  text-align: center;
  color: var(--brand-deep);
  margin-bottom: var(--space-4);
}

.projects__intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-12);
  font-size: var(--text-lg);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-8);
}

.project-card {
  background-color: var(--surface-card);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--divider-light);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-cta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hard);
  border-color: var(--brand-lime-200);
}

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

.project-card__title {
  color: var(--brand-deep);
  font-size: var(--text-2xl);
  margin: 0;
}

.project-card__tag {
  background-color: var(--brand-lime-050);
  color: var(--brand-pine);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  white-space: nowrap;
}

.project-card__description {
  color: var(--text-default);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.project-card__impact {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background: var(--gradient-card);
  border-radius: var(--radius-md);
}

.impact-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.impact-stat__value {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--brand-pine);
}

.impact-stat__label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.tech-badge {
  background-color: var(--brand-deep);
  color: var(--text-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  transition: background-color 0.2s ease;
}

.project-card:hover .tech-badge {
  background-color: var(--brand-pine);
}

.tech-badge--small {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
}

.project-card__link {
  color: var(--brand-pine);
  font-weight: var(--font-semibold);
  text-decoration: none;
  margin-top: auto;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
  position: relative;
}

/* Stretch the link to cover entire card */
.project-card__link::after {
  content: '';
  position: absolute;
  top: -500px;
  left: -500px;
  right: -500px;
  bottom: -500px;
  cursor: pointer;
}

.project-card__link:hover {
  color: var(--brand-lime-700);
  transform: translateX(4px);
}

/* ===================================
   Experience Section
   =================================== */

.experience {
  padding: var(--space-24) var(--space-6);
  background-color: var(--surface-alt);
}

.experience__container {
  max-width: 900px;
  margin: 0 auto;
}

.experience__title {
  text-align: center;
  color: var(--brand-deep);
  margin-bottom: var(--space-4);
}

.experience__intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-12);
  font-size: var(--text-lg);
}

.timeline {
  position: relative;
  padding-left: var(--space-8);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand-lime) 0%, var(--brand-pine) 100%);
  border-radius: var(--radius-full);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-12);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item__marker {
  position: absolute;
  left: calc(-1 * var(--space-8) - 6px);
  top: var(--space-2);
  width: 15px;
  height: 15px;
  background-color: var(--brand-lime);
  border: 3px solid var(--surface-alt);
  border-radius: var(--radius-full);
  box-shadow: 0 0 0 3px var(--brand-lime-200);
}

.timeline-item__content {
  background-color: var(--surface-card);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item__content:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-hard);
}

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

.timeline-item__role {
  color: var(--brand-deep);
  font-size: var(--text-xl);
  margin-bottom: var(--space-1);
}

.timeline-item__company {
  color: var(--brand-pine);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  margin: 0;
}

.timeline-item__period {
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  white-space: nowrap;
  background-color: var(--brand-mist-100);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
}

.timeline-item__highlights {
  margin-bottom: var(--space-4);
}

.timeline-item__highlights li {
  color: var(--text-default);
  padding: var(--space-2) 0 var(--space-2) var(--space-6);
  position: relative;
  line-height: var(--leading-relaxed);
}

.timeline-item__highlights li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--brand-lime-600);
  font-weight: var(--font-bold);
}

.timeline-item__tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ===================================
   Testimonials Section
   =================================== */

.testimonials {
  padding: var(--space-24) var(--space-6);
  background-color: var(--surface-base);
}

.testimonials__container {
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials__title {
  text-align: center;
  color: var(--brand-deep);
  margin-bottom: var(--space-4);
}

.testimonials__intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-12);
  font-size: var(--text-lg);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
}

.testimonial-card {
  background-color: var(--surface-card);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--brand-lime);
  position: relative;
  transition: border-left-color 0.3s ease, background-color 0.3s ease;
}

.testimonial-card:hover {
  border-left-color: var(--brand-pine);
  background-color: var(--surface-subtle);
}

.testimonial-card__header {
  margin-bottom: var(--space-4);
  display: flex;
  justify-content: flex-end;
}

.testimonial-card__logo {
  max-width: 120px;
  max-height: 48px;
  object-fit: contain;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: filter 0.3s ease, opacity 0.3s ease;
  padding: var(--space-2);
  border-radius: var(--radius-md);
}

.testimonial-card__logo[alt="Lola's Cupcakes"] {
  background-color: #95d4e7;
}

.testimonial-card__logo[alt="Next Day Solar London"] {
  max-width: 180px;
  max-height: 72px;
}

.testimonial-card:hover .testimonial-card__logo {
  filter: grayscale(0%);
  opacity: 1;
}

.testimonial-card__quote {
  margin-bottom: var(--space-6);
}

.testimonial-card__quote p {
  color: var(--text-default);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  font-style: italic;
  position: relative;
  padding-left: var(--space-6);
  margin: 0;
}

.testimonial-card__quote p::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -8px;
  font-size: var(--text-5xl);
  color: var(--brand-lime-200);
  font-family: var(--font-serif);
  line-height: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-card__avatar {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--gradient-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-bold);
  color: var(--brand-deep);
  font-size: var(--text-base);
  flex-shrink: 0;
}

.testimonial-card__info {
  flex: 1;
}

.testimonial-card__name {
  color: var(--brand-deep);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.testimonial-card__linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background-color: #0077b5;
  color: white;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: var(--font-bold);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.testimonial-card__linkedin:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 119, 181, 0.3);
}

.testimonial-card__verified {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: #0077b5;
  font-weight: var(--font-medium);
  background-color: rgba(0, 119, 181, 0.1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}

.testimonial-card__verified::before {
  content: '✓';
  font-weight: var(--font-bold);
}

.testimonial-card__role {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin: 0;
}

/* ===================================
   How I Work Section
   =================================== */

.how-i-work {
  padding: var(--space-24) var(--space-6);
  background-color: var(--surface-base);
}

.how-i-work__container {
  max-width: 1200px;
  margin: 0 auto;
}

.how-i-work__title {
  text-align: center;
  color: var(--brand-deep);
  margin-bottom: var(--space-4);
}

.how-i-work__intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto var(--space-12);
  font-size: var(--text-lg);
}

.how-i-work__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
}

.work-card {
  background-color: var(--surface-card);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border-top: 3px solid var(--brand-lime);
}

.work-card__icon {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-4);
  display: block;
  text-align: center;
}

.work-card__title {
  color: var(--brand-deep);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
}

.work-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6) 0;
}

.work-card__list li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
  color: var(--text-default);
  line-height: var(--leading-relaxed);
}

.work-card__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--brand-lime);
  font-weight: var(--font-bold);
}

.work-card__list li strong {
  color: var(--brand-deep);
  font-weight: var(--font-semibold);
}

.work-card__disclaimer,
.work-card__footer-note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-style: italic;
  padding-top: var(--space-4);
  border-top: 1px solid var(--divider-light);
  margin-top: var(--space-4);
  line-height: var(--leading-relaxed);
}

.work-card__footer-note {
  color: var(--brand-pine);
  font-weight: var(--font-medium);
}

/* ===================================
   Pricing Section
   =================================== */

.pricing {
  padding: var(--space-24) var(--space-6);
  background: var(--gradient-hero);
}

.pricing__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.pricing__title {
  text-align: center;
  color: var(--text-inverse);
  margin-bottom: var(--space-4);
}

.pricing__intro {
  text-align: center;
  color: var(--neutral-100);
  max-width: 700px;
  margin: 0 auto var(--space-12);
  font-size: var(--text-lg);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}

/* Pricing Cards */
.pricing-card {
  background-color: var(--surface-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: all 0.1555s ease;
  position: relative;
  overflow: hidden;
}

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

.pricing-card--popular {
  border: 2px solid var(--brand-lime);
  box-shadow: var(--shadow-hard);
}

.pricing-card--popular:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.pricing-card__badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--brand-lime);
  color: var(--brand-deep);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  z-index: 1;
}

.pricing-card__header {
  padding: var(--space-8);
  border-bottom: 1px solid var(--divider-light);
}

.pricing-card__name {
  color: var(--brand-deep);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.pricing-card__price {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  color: var(--brand-pine);
  margin-bottom: var(--space-2);
}

.pricing-card__best-for {
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-style: italic;
}

.pricing-card__body {
  padding: var(--space-8);
  flex: 1;
}

.pricing-card__description {
  color: var(--text-default);
  margin-bottom: var(--space-6);
  line-height: var(--leading-relaxed);
}

.pricing-card__value,
.pricing-card__timeline {
  background-color: var(--brand-lime-050);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  border-left: 3px solid var(--brand-lime);
}

.pricing-card__value strong,
.pricing-card__timeline strong {
  color: var(--brand-deep);
}

.pricing-card__includes-title {
  color: var(--brand-deep);
  font-size: var(--text-base);
  margin-bottom: var(--space-3);
  margin-top: var(--space-6);
}

.pricing-card__includes {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-card__includes li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-3);
  color: var(--text-default);
  line-height: var(--leading-relaxed);
}

.pricing-card__includes li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand-lime);
  font-weight: var(--font-bold);
  font-size: var(--text-lg);
}

.pricing-card__footer {
  padding: var(--space-8);
  border-top: 1px solid var(--divider-light);
}

.pricing-card__footer .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* Pricing Benefits */
.pricing__benefits {
  background-color: var(--surface-card);
  padding: var(--space-12);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-16);
}

.pricing__benefits-title {
  text-align: center;
  color: var(--brand-deep);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-8);
}

.pricing__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-8);
}

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

.benefit-item__icon {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-3);
}

.benefit-item__title {
  color: var(--brand-deep);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.benefit-item__description {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* Discovery Call CTA */
.pricing__cta {
  margin-bottom: var(--space-16);
}

.discovery-call {
  background: linear-gradient(135deg, var(--brand-lime-050) 0%, var(--brand-sun-050) 100%);
  padding: var(--space-12);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 2px solid var(--brand-lime-200);
}

.discovery-call__title {
  color: var(--brand-deep);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-2);
}

.discovery-call__duration {
  color: var(--brand-pine);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-4);
}

.discovery-call__description {
  color: var(--text-default);
  max-width: 600px;
  margin: 0 auto var(--space-6);
  line-height: var(--leading-relaxed);
}

.discovery-call__includes {
  list-style: none;
  padding: 0;
  margin: 0 auto var(--space-8);
  max-width: 500px;
  text-align: left;
}

.discovery-call__includes li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-3);
  color: var(--text-default);
  line-height: var(--leading-relaxed);
}

.discovery-call__includes li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--brand-lime);
  font-weight: var(--font-bold);
}

.btn--large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

/* Monthly Support */
.pricing__support {
  padding: var(--space-16) 0;
}

.pricing__support-title {
  text-align: center;
  color: var(--text-inverse);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-12);
}

.support-card {
  background-color: var(--surface-card);
  padding: var(--space-12);
  border-radius: var(--radius-lg);
  max-width: 700px;
  margin: 0 auto var(--space-16) auto;
  box-shadow: var(--shadow-soft);
}

.support-card__name {
  color: var(--brand-deep);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.support-card__price {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--brand-pine);
  margin-bottom: var(--space-4);
}

.support-card__description {
  color: var(--text-default);
  margin-bottom: var(--space-6);
  line-height: var(--leading-relaxed);
}

.support-card__includes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.support-card__includes li {
  position: relative;
  padding-left: var(--space-6);
  color: var(--text-default);
  line-height: var(--leading-relaxed);
}

.support-card__includes li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand-lime);
  font-weight: var(--font-bold);
}

/* ===================================
   Contact Section
   =================================== */

.contact {
  padding: var(--space-24) var(--space-6);
  background: var(--gradient-hero);
}

.contact__container {
  max-width: 900px;
  margin: 0 auto;
}

.contact__title {
  text-align: center;
  color: var(--text-inverse);
  margin-bottom: var(--space-4);
}

.contact__intro {
  text-align: center;
  color: var(--neutral-100);
  max-width: 600px;
  margin: 0 auto var(--space-12);
  font-size: var(--text-lg);
}

.contact__content {
  background-color: var(--surface-card);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard);
}

.contact__subtitle {
  color: var(--brand-deep);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.contact__description {
  color: var(--text-muted);
  margin-bottom: var(--space-8);
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.contact__link {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background-color: var(--surface-alt);
  border-radius: var(--radius-md);
  transition: all 0.155s ease;
  border: 2px solid transparent;
}

.contact__link:hover {
  background-color: var(--brand-lime-050);
  border-color: var(--brand-lime);
  transform: translateX(8px);
}

.contact__link-icon {
  font-size: var(--text-3xl);
  flex-shrink: 0;
}

.contact__link-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.contact__link-content strong {
  color: var(--brand-deep);
  font-size: var(--text-base);
}

.contact__link-content span {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.contact__status {
  padding-top: var(--space-6);
  border-top: 1px solid var(--divider-light);
}

.status-badge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background-color: var(--status-success);
  background: linear-gradient(120deg, rgba(76, 175, 80, 0.1) 0%, rgba(159, 193, 49, 0.1) 100%);
  border-radius: var(--radius-md);
  border: 1px solid var(--brand-lime-200);
}

.status-badge__dot {
  width: 10px;
  height: 10px;
  background-color: var(--brand-lime);
  border-radius: var(--radius-full);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.status-badge__text {
  color: var(--brand-pine);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}

/* ===================================
   Footer
   =================================== */

.footer {
  background-color: var(--brand-deep);
  padding: var(--space-8) var(--space-6);
  text-align: center;
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__text {
  color: var(--neutral-100);
  font-size: var(--text-sm);
  margin: 0;
}

.footer__links a {
  color: var(--brand-lime);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--brand-sun);
}

/* ===================================
   Scroll Animations
   =================================== */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation for grid items */
.skills__grid .skill-card:nth-child(1) {
  transition-delay: 0.1s;
}

.skills__grid .skill-card:nth-child(2) {
  transition-delay: 0.2s;
}

.skills__grid .skill-card:nth-child(3) {
  transition-delay: 0.3s;
}

.projects__grid .project-card:nth-child(1) {
  transition-delay: 0.1s;
}

.projects__grid .project-card:nth-child(2) {
  transition-delay: 0.2s;
}

.projects__grid .project-card:nth-child(3) {
  transition-delay: 0.3s;
}

.testimonials__grid .testimonial-card:nth-child(1) {
  transition-delay: 0.1s;
}

.testimonials__grid .testimonial-card:nth-child(2) {
  transition-delay: 0.2s;
}

.testimonials__grid .testimonial-card:nth-child(3) {
  transition-delay: 0.3s;
}

.timeline .timeline-item:nth-child(1) {
  transition-delay: 0.1s;
}

.timeline .timeline-item:nth-child(2) {
  transition-delay: 0.2s;
}

.timeline .timeline-item:nth-child(3) {
  transition-delay: 0.3s;
}

/* ===================================
   Responsive Design
   =================================== */

/* Tablet and below (768px) */
@media (max-width: 768px) {
  :root {
    --text-6xl: 2.5rem;   /* 40px */
    --text-5xl: 2rem;     /* 32px */
    --text-4xl: 1.75rem;  /* 28px */
    --text-3xl: 1.5rem;   /* 24px */
  }

  .hero {
    padding: var(--space-16) var(--space-4);
    min-height: 80vh;
  }

  .hero__title {
    font-size: var(--text-5xl);
  }

  .hero__tagline {
    font-size: var(--text-xl);
  }

  .hero__description {
    font-size: var(--text-base);
  }

  .skills,
  .projects,
  .experience,
  .testimonials,
  .contact {
    padding: var(--space-16) var(--space-4);
  }

  .skills__grid,
  .projects__grid,
  .testimonials__grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .timeline {
    padding-left: var(--space-6);
  }

  .timeline-item__marker {
    left: calc(-1 * var(--space-6) - 6px);
  }

  .timeline-item__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-item__period {
    align-self: flex-start;
  }

  .contact__content {
    padding: var(--space-6);
  }

  .footer__container {
    flex-direction: column;
    text-align: center;
  }
}

/* ===================================
   Case Study Pages
   =================================== */

.case-study-hero {
  padding: calc(var(--space-24) + 60px) var(--space-6) var(--space-16);
  background: var(--gradient-hero);
  color: var(--text-inverse);
}

.case-study-hero__container {
  max-width: 900px;
  margin: 0 auto;
}

.case-study-hero__back {
  display: inline-flex;
  align-items: center;
  color: var(--brand-sun);
  font-weight: var(--font-medium);
  margin-bottom: var(--space-6);
  transition: transform 0.2s ease;
}

.case-study-hero__back:hover {
  transform: translateX(-4px);
}

.case-study-hero__title {
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
  line-height: var(--leading-tight);
  color: var(--text-inverse);
}

.case-study-hero__subtitle {
  font-size: var(--text-xl);
  color: var(--neutral-100);
  margin-bottom: var(--space-8);
  line-height: var(--leading-relaxed);
}

.case-study-hero__meta {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.meta-item__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-mist);
}

.meta-item__value {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--text-inverse);
}

.case-study-stats {
  padding: var(--space-16) var(--space-6);
  background-color: var(--surface-base);
}

.case-study-stats__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
}

.stat-card {
  background-color: var(--surface-card);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  text-align: center;
  border-top: 3px solid var(--brand-lime);
}

.stat-card__value {
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  color: var(--brand-pine);
  margin-bottom: var(--space-2);
}

.stat-card__label {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--brand-deep);
  margin-bottom: var(--space-2);
}

.stat-card__detail {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.case-study-section {
  padding: var(--space-16) var(--space-6);
  background-color: var(--surface-base);
}

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

.case-study-section__container {
  max-width: 900px;
  margin: 0 auto;
}

.case-study-section__title {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  color: var(--brand-deep);
  margin-bottom: var(--space-8);
  text-align: center;
}

.case-study-content__intro {
  font-size: var(--text-xl);
  color: var(--brand-pine);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
}

.case-study-content__subtitle {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  color: var(--brand-deep);
  margin: var(--space-8) 0 var(--space-4);
}

.case-study-content__list {
  margin-bottom: var(--space-8);
}

.case-study-content__list li {
  padding: var(--space-2) 0 var(--space-2) var(--space-6);
  position: relative;
  line-height: var(--leading-relaxed);
  color: var(--text-default);
}

.case-study-content__list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--brand-lime-600);
  font-weight: var(--font-bold);
}

.case-study-quote {
  background: var(--gradient-card);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--brand-lime);
  margin: var(--space-8) 0;
}

.case-study-quote__text {
  font-size: var(--text-lg);
  font-style: italic;
  line-height: var(--leading-relaxed);
  color: var(--text-default);
  margin-bottom: var(--space-4);
}

.case-study-quote__author {
  font-size: var(--text-base);
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin: var(--space-8) 0;
}

.feature-card {
  background-color: var(--surface-card);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-card__icon {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-3);
}

.feature-card__title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--brand-deep);
  margin-bottom: var(--space-2);
}

.feature-card__description {
  font-size: var(--text-base);
  color: var(--text-default);
  line-height: var(--leading-relaxed);
  margin: 0;
}

.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-4);
  margin: var(--space-8) 0;
}

.tech-stack-item {
  background-color: var(--surface-card);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--brand-pine);
}

.tech-stack-item__name {
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--brand-pine);
  margin-bottom: var(--space-2);
}

.tech-stack-item__purpose {
  font-size: var(--text-sm);
  color: var(--text-default);
  margin: 0;
}

.timeline-phases {
  margin: var(--space-8) 0;
}

.timeline-phase {
  background-color: var(--surface-card);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  margin-bottom: var(--space-6);
  border-left: 4px solid var(--brand-lime);
}

.timeline-phase:last-child {
  margin-bottom: 0;
}

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

.timeline-phase__title {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--brand-deep);
  margin: 0;
}

.timeline-phase__badge {
  background-color: var(--brand-lime-100);
  color: var(--brand-pine);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-phase__activities {
  margin: 0;
}

.timeline-phase__activities li {
  padding: var(--space-2) 0 var(--space-2) var(--space-6);
  position: relative;
  color: var(--text-default);
  line-height: var(--leading-relaxed);
}

.timeline-phase__activities li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand-lime);
  font-weight: var(--font-bold);
}

.results-table {
  background-color: var(--surface-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin: var(--space-8) 0;
}

.results-row {
  display: grid;
  grid-template-columns: 2fr 2fr 2fr 1.5fr;
  gap: var(--space-4);
  padding: var(--space-4);
  border-bottom: 1px solid var(--divider-light);
}

.results-row:last-child {
  border-bottom: none;
}

.results-row--header {
  background-color: var(--brand-deep);
  color: var(--text-inverse);
  font-weight: var(--font-semibold);
}

.results-cell {
  font-size: var(--text-sm);
  color: var(--text-default);
}

.results-row--header .results-cell {
  color: var(--text-inverse);
}

.results-cell--positive {
  color: var(--brand-pine);
  font-weight: var(--font-semibold);
}

.case-study-testimonial {
  background-color: var(--surface-card);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--brand-lime);
  margin: var(--space-8) 0;
}

.case-study-testimonial__quote {
  margin-bottom: var(--space-6);
}

.case-study-testimonial__quote p {
  font-size: var(--text-lg);
  font-style: italic;
  line-height: var(--leading-relaxed);
  color: var(--text-default);
  position: relative;
  padding-left: var(--space-6);
  margin: 0;
}

.case-study-testimonial__quote p::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -8px;
  font-size: var(--text-5xl);
  color: var(--brand-lime-200);
  font-family: var(--font-serif);
  line-height: 1;
}

.case-study-testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.case-study-testimonial__avatar {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--gradient-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-bold);
  color: var(--brand-deep);
  font-size: var(--text-base);
  flex-shrink: 0;
}

.case-study-testimonial__info {
  flex: 1;
}

.case-study-testimonial__name {
  color: var(--brand-deep);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-1);
}

.case-study-testimonial__role {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin: 0;
}

.lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin: var(--space-8) 0;
}

.lesson-card {
  background-color: var(--surface-card);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.lesson-card__icon {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-3);
}

.lesson-card__title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--brand-deep);
  margin-bottom: var(--space-3);
}

.lesson-card__description {
  font-size: var(--text-base);
  color: var(--text-default);
  line-height: var(--leading-relaxed);
  margin: 0;
}

.case-study-cta {
  padding: var(--space-16) var(--space-6);
  background: var(--gradient-hero);
  color: var(--text-inverse);
  text-align: center;
}

.case-study-cta__container {
  max-width: 800px;
  margin: 0 auto;
}

.case-study-cta__title {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
  color: var(--text-inverse);
}

.case-study-cta__description {
  font-size: var(--text-xl);
  color: var(--neutral-100);
  margin-bottom: var(--space-8);
  line-height: var(--leading-relaxed);
}

.case-study-cta__buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive adjustments for case study */
@media (max-width: 768px) {
  .case-study-hero__title {
    font-size: var(--text-3xl);
  }
  
  .case-study-hero__meta {
    gap: var(--space-4);
  }
  
  .results-row {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
  
  .results-cell {
    padding: var(--space-2) 0;
  }
  
  .case-study-stats__container {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .hero {
    padding: calc(var(--space-16) + 70px) var(--space-4) var(--space-16);
  }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  :root {
    --text-6xl: 2rem;     /* 32px */
    --text-5xl: 1.75rem;  /* 28px */
    --text-4xl: 1.5rem;   /* 24px */
  }

  .nav__container {
    padding: var(--space-3) var(--space-4);
  }

  .hero {
    padding: calc(var(--space-12) + 60px) var(--space-3) var(--space-12);
    min-height: 100svh; /* Use small viewport height for mobile */
    background-attachment: scroll; /* Ensure gradient fills on mobile */
  }

  .hero__cta {
    flex-direction: column;
    width: 100%;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .skill-card,
  .project-card,
  .timeline-item__content,
  .testimonial-card,
  .contact__content {
    padding: var(--space-6);
  }

  .project-card__impact {
    flex-direction: column;
    gap: var(--space-4);
  }

  .impact-stat__value {
    font-size: var(--text-2xl);
  }
}

/* Large screens (1440px and above) */
@media (min-width: 1440px) {
  .nav__container,
  .hero__container,
  .skills__container,
  .projects__container,
  .testimonials__container,
  .footer__container {
    max-width: 1400px;
  }

  .experience__container,
  .contact__container {
    max-width: 900px;
  }

  .skills__grid,
  .testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .projects__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop layout for hero (992px and above) */
@media (min-width: 992px) {
  .hero__container {
    grid-template-columns: 400px 1fr;
    gap: var(--space-16);
    text-align: left;
  }

  .hero__content {
    text-align: left;
  }

  .hero__description {
    margin-left: 0;
    margin-right: 0;
  }

  .hero__cta {
    justify-content: flex-start;
  }

  .hero__profile {
    max-width: 400px;
  }
}
