/* ==========================================================================
   PERSONAL WEBSITE STYLESHEET
   Zero external dependencies. Fully responsive across mobile, tablet, desktop.
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables & Theming
   -------------------------------------------------------------------------- */
:root {
  /* Pink Light Theme Palette */
  --bg-page: #fdf4f7;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-translucent: rgba(255, 255, 255, 0.88);
  
  --text-main: #1e111a;
  --text-muted: #6b5361;
  --text-subtle: #8e7583;
  
  --brand: #db2777;
  --brand-hover: #be185d;
  --brand-subtle: #fce7f3;
  --brand-border: #f472b6;
  --brand-shadow: rgba(219, 39, 119, 0.35);
  --brand-shadow-hover: rgba(219, 39, 119, 0.45);
  
  --border-light: #f3e2eb;
  --border-strong: #e5c9d8;
  
  --card-shadow: 0 1px 3px rgba(30, 17, 26, 0.05), 0 1px 2px rgba(30, 17, 26, 0.03);
  --card-shadow-hover: 0 10px 25px -5px rgba(219, 39, 119, 0.12), 0 8px 10px -6px rgba(219, 39, 119, 0.06);
  --header-shadow: 0 1px 3px rgba(219, 39, 119, 0.08);

  --badge-bg: #fce7f3;
  --badge-text: #9d174d;
  --tag-border: #fbcfe8;

  /* Typography & Sizing */
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --nav-height: 70px;
  --container-max-width: 1060px;
  --transition-speed: 0.25s;
}

[data-theme="dark"] {
  /* Pink Dark Theme Palette */
  --bg-page: #130c12;
  --bg-surface: #1c121b;
  --bg-surface-elevated: #291a27;
  --bg-surface-translucent: rgba(28, 18, 27, 0.88);
  
  --text-main: #fdf2f7;
  --text-muted: #d4b4c6;
  --text-subtle: #9b7c8e;
  
  --brand: #f472b6;
  --brand-hover: #f9a8d4;
  --brand-subtle: rgba(244, 114, 182, 0.16);
  --brand-border: rgba(244, 114, 182, 0.35);
  --brand-shadow: rgba(244, 114, 182, 0.35);
  --brand-shadow-hover: rgba(244, 114, 182, 0.5);
  
  --border-light: #2e1c2b;
  --border-strong: #482e44;
  
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  --card-shadow-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.65), 0 8px 10px -6px rgba(244, 114, 182, 0.25);
  --header-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);

  --badge-bg: #2b1828;
  --badge-text: #fbcfe8;
  --tag-border: #4c2c47;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 1.5rem);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-system);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-main);
  background-color: var(--bg-page);
  overflow-x: hidden;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

ul {
  list-style: none;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* --------------------------------------------------------------------------
   Navigation Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background-color: var(--bg-surface-translucent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--header-shadow);
  transition: background-color var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.02em;
}

.brand-logo span.accent {
  color: var(--brand);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.35rem 0;
  transition: color var(--transition-speed) ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--brand);
  border-radius: 2px;
}

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

/* Theme Toggle Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background-color: var(--bg-surface);
  color: var(--text-main);
  transition: all var(--transition-speed) ease;
}

.theme-toggle-btn:hover {
  background-color: var(--brand-subtle);
  border-color: var(--brand-border);
  color: var(--brand);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sun {
  display: none;
}
.icon-moon {
  display: block;
}

[data-theme="dark"] .icon-sun {
  display: block;
}
[data-theme="dark"] .icon-moon {
  display: none;
}

/* Mobile Menu Toggle Button */
.mobile-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background-color: var(--bg-surface);
  color: var(--text-main);
  transition: all var(--transition-speed) ease;
}

.mobile-toggle-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-close {
  display: none;
}

/* --------------------------------------------------------------------------
   Section Layouts & Spacing
   -------------------------------------------------------------------------- */
.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.section:last-of-type {
  border-bottom: none;
}

.section-header {
  margin-bottom: 2.75rem;
  text-align: left;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  background-color: var(--brand-subtle);
  border: 1px solid var(--brand-border);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 620px;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 6.5rem 0 5rem 0;
  position: relative;
}

.hero-content {
  max-width: 780px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.75rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981; /* Emerald green */
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.hero-title {
  font-size: clamp(2.4rem, 5vw + 1rem, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.hero-title .gradient-text {
  color: var(--brand);
}

.hero-description {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.975rem;
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-speed) ease;
  min-height: 46px;
  text-align: center;
}

.btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-primary {
  background-color: var(--brand);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--brand-shadow);
}

.btn-primary:hover {
  background-color: var(--brand-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--brand-shadow-hover);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background-color: var(--brand-subtle);
  border-color: var(--brand-border);
  color: var(--brand);
  transform: translateY(-1px);
}

/* Social Icon Links */
.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background-color: var(--bg-surface);
  color: var(--text-muted);
  transition: all var(--transition-speed) ease;
}

.social-link:hover {
  color: var(--brand);
  border-color: var(--brand-border);
  background-color: var(--brand-subtle);
  transform: translateY(-2px);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

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

.stat-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-border);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Experience Section (Timeline)
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  border-left: 2px solid var(--border-light);
  padding-left: 2rem;
  margin-left: 0.5rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.75rem;
}

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

.timeline-marker {
  position: absolute;
  left: calc(-2rem - 6px);
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--brand);
  border: 3px solid var(--bg-page);
  box-shadow: 0 0 0 2px var(--brand);
}

.timeline-content {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-speed) ease;
}

.timeline-content:hover {
  border-color: var(--brand-border);
  box-shadow: var(--card-shadow-hover);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.timeline-role {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.timeline-company {
  color: var(--brand);
  font-weight: 600;
}

.timeline-period {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-subtle);
  background-color: var(--badge-bg);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

.timeline-description {
  color: var(--text-muted);
  font-size: 0.975rem;
  margin-top: 0.75rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   Projects Section
   -------------------------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.75rem;
}

.project-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-speed) ease;
}

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

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.project-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--brand-subtle);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  transition: all var(--transition-speed) ease;
}

.project-link-btn:hover {
  color: var(--brand);
  border-color: var(--brand-border);
  background-color: var(--brand-subtle);
}

.project-link-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.project-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  font-weight: 500;
  color: var(--badge-text);
  background-color: var(--badge-bg);
  border: 1px solid var(--tag-border);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   Skills Section
   -------------------------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.75rem;
}

.skill-category-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
  transition: border-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.skill-category-card:hover {
  border-color: var(--brand-border);
  transform: translateY(-3px);
}

.category-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.category-icon {
  color: var(--brand);
  display: inline-flex;
}

.category-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-pill {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
  background-color: var(--bg-page);
  border: 1px solid var(--border-light);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  transition: all var(--transition-speed) ease;
}

.skill-pill:hover {
  background-color: var(--brand-subtle);
  border-color: var(--brand-border);
  color: var(--brand);
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text-main);
  font-size: 0.95rem;
}

.contact-detail-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background-color: var(--brand-subtle);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

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

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input,
.form-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: var(--bg-page);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-subtle);
}

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

.form-status {
  display: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  margin-top: 0.5rem;
}

.form-status.success {
  display: block;
  background-color: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 3rem 0;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
}

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

.footer-text {
  font-size: 0.9rem;
  color: var(--text-subtle);
}

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background-color: var(--bg-page);
  transition: all var(--transition-speed) ease;
}

.back-to-top-btn:hover {
  color: var(--brand);
  border-color: var(--brand-border);
  background-color: var(--brand-subtle);
}

.back-to-top-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   Clean Climb Product Components (Ingredients, Comparisons, Testimonials)
   -------------------------------------------------------------------------- */
.spec-badges-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
  margin-bottom: 2.25rem;
}

.spec-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--badge-text);
  background-color: var(--badge-bg);
  border: 1px solid var(--tag-border);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

.spec-badge svg {
  width: 14px;
  height: 14px;
  stroke: var(--brand);
}

.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.ingredient-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-speed) ease;
}

.ingredient-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-border);
  box-shadow: var(--card-shadow-hover);
}

.ingredient-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.ingredient-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.ingredient-amount {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand);
  background-color: var(--brand-subtle);
  border: 1px solid var(--brand-border);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.ingredient-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.ingredient-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--badge-text);
  background-color: var(--badge-bg);
  border: 1px solid var(--tag-border);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  margin-top: auto;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.comparison-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--card-shadow);
}

.comparison-card.highlight {
  border-color: var(--brand-border);
  background-color: var(--bg-surface);
  box-shadow: 0 4px 20px -2px rgba(219, 39, 119, 0.15);
  position: relative;
}

.comparison-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comparison-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.comparison-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.comparison-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.comparison-icon.check {
  color: #10b981;
}

.comparison-icon.cross {
  color: #ef4444;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-speed) ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-border);
  box-shadow: var(--card-shadow-hover);
}

.testimonial-quote {
  font-size: 0.975rem;
  color: var(--text-main);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.testimonial-tag {
  color: var(--brand);
  font-size: 0.8rem;
  background-color: var(--brand-subtle);
  border: 1px solid var(--brand-border);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */

/* Tablet and below (<= 768px) */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .mobile-toggle-btn {
    display: inline-flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    width: 100%;
  }

  .hero-section {
    padding: 4rem 0 3.5rem 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
    padding: 1.75rem;
  }

  .timeline {
    padding-left: 1.5rem;
    margin-left: 0;
  }

  .timeline-marker {
    left: calc(-1.5rem - 6px);
  }

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

/* Mobile Small (<= 480px) */
@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

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

  .contact-container {
    padding: 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   Accessibility: Reduced Motion
   -------------------------------------------------------------------------- */
@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;
  }
}

/* --------------------------------------------------------------------------
   Print Stylesheet
   Clean layout for resume/CV export
   -------------------------------------------------------------------------- */
@media print {
  body {
    background-color: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt;
  }

  .site-header,
  .hero-actions,
  .social-links,
  .project-links,
  .contact-form,
  .back-to-top-btn,
  .theme-toggle-btn,
  .mobile-toggle-btn {
    display: none !important;
  }

  .section {
    padding: 1.5rem 0 !important;
    border-bottom: 1px solid #ccc !important;
    page-break-inside: avoid;
  }

  .project-card,
  .stat-card,
  .skill-category-card,
  .timeline-content,
  .contact-container {
    border: 1px solid #ddd !important;
    box-shadow: none !important;
  }
}
