/* ============================================
   Kamal Ahmed — Portfolio
   vCard · Dark/Light · Fluid type · Animations
   ============================================ */

/* ----- Dark theme (default) ----- */
:root,
[data-theme="dark"] {
  --color-bg: #0d0f12;
  --color-bg-soft: #16181d;
  --color-surface: #1c1f26;
  --color-border: #2a2e38;
  --color-text: #e6e8ec;
  --color-text-muted: #8b909a;
  --color-accent: #e8a84a;
  --color-accent-hover: #f0b85c;
  --color-accent-soft: rgba(232, 168, 74, 0.12);
  --color-shadow: rgba(0, 0, 0, 0.3);
  --color-shape-1: #e8a84a;
  --color-shape-2: #6b7fd7;
  --color-shape-3: #5cb88a;
}

/* ----- Light theme ----- */
[data-theme="light"] {
  --color-bg: #f5f6f8;
  --color-bg-soft: #eef0f3;
  --color-surface: #ffffff;
  --color-border: #e2e5ea;
  --color-text: #1a1d23;
  --color-text-muted: #5c6270;
  --color-accent: #c77a1a;
  --color-accent-hover: #a66314;
  --color-accent-soft: rgba(199, 122, 26, 0.12);
  --color-shadow: rgba(0, 0, 0, 0.08);
  --color-shape-1: #c77a1a;
  --color-shape-2: #5a6bc7;
  --color-shape-3: #3d9b6a;
}

:root {
  /* Typography — fluid (clamp: min, preferred, max) */
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --text-base: clamp(0.9375rem, 1.2vw + 0.75rem, 1.0625rem);
  --text-sm: clamp(0.8125rem, 0.8vw + 0.65rem, 0.9rem);
  --text-xs: clamp(0.75rem, 0.5vw + 0.6rem, 0.8125rem);
  --text-lg: clamp(1.0625rem, 1.5vw + 0.85rem, 1.2rem);
  --text-xl: clamp(1.25rem, 2vw + 1rem, 1.5rem);
  --text-2xl: clamp(1.5rem, 3vw + 1rem, 2.25rem);
  --text-hero: clamp(2.25rem, 6vw + 1.5rem, 4rem);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Layout */
  --container-max: 720px;
  --header-height: 72px;
  --vcard-radius: 16px;
  --vcard-padding: clamp(1.25rem, 4vw, 2rem);

  /* Animation */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-s: 0.4s;
  --duration-m: 0.6s;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

html {
  /* Theme is set by JS on <html> */
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ----- Header & Nav ----- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: color-mix(in srgb, var(--color-bg) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.theme-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: var(--color-surface);
  border: 2px solid var(--color-accent);
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--color-accent);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
  background: var(--color-accent-soft);
  border-color: var(--color-accent-hover);
  color: var(--color-accent-hover);
  transform: scale(1.05);
}

.theme-icon {
  position: absolute;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
  color: inherit;
}

/* Dark = default: show moon. Light: show sun */
.theme-icon-sun { opacity: 0; transform: scale(0.8); pointer-events: none; }
.theme-icon-moon { opacity: 1; transform: scale(1); }
[data-theme="light"] .theme-icon-sun { opacity: 1; transform: scale(1); }
[data-theme="light"] .theme-icon-moon { opacity: 0; transform: scale(0.8); pointer-events: none; }

.nav-logo {
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: 0.05em;
  color: var(--color-text);
}

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

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-xl);
  margin-left: auto;
}

.nav-links a {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
}

/* ----- Main: one-page scroll ----- */
main {
  position: relative;
}

/* Section card container (about, skills, experience, contact) ----- */
.section {
  padding: var(--space-3xl) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
}

.vcard-inner {
  width: 100%;
  max-width: 100%;
  padding: var(--vcard-padding);
  margin: var(--space-lg);
  background: var(--color-surface);
  border-radius: var(--vcard-radius);
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 32px var(--color-shadow);
}

@media (max-width: 480px) {
  .vcard-inner {
    margin: var(--space-md);
    border-radius: 12px;
  }
}

/* ----- Hero ----- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: var(--header-height) var(--space-lg) var(--space-3xl);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--color-accent-soft), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(42, 46, 56, 0.6), transparent);
  pointer-events: none;
}

[data-theme="light"] .hero-bg {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(199, 122, 26, 0.08), transparent),
    radial-gradient(ellipse 70% 50% at 80% 40%, rgba(238, 240, 243, 0.95), transparent),
    radial-gradient(ellipse 60% 40% at 20% 60%, rgba(199, 122, 26, 0.05), transparent);
}

/* ----- Creative shapes: ribbons, blobs (per-section, colored) ----- */
.deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Ribbons: oval, twisted, multi-color (gentle with design) */
.ribbon {
  position: absolute;
  pointer-events: none;
}

.ribbon-hero {
  width: 320px;
  height: 120px;
  top: 12%;
  right: 5%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse 100% 50% at 50% 50%,
    transparent 30%,
    color-mix(in srgb, var(--color-shape-1) 25%, transparent) 50%,
    color-mix(in srgb, var(--color-shape-2) 18%, transparent) 70%,
    transparent
  );
  transform: rotate(-15deg) scale(1.1);
  opacity: 0.5;
}

.ribbon-about {
  width: 180px;
  height: 280px;
  top: 50%;
  right: -20px;
  transform: translateY(-50%) rotate(8deg) skewY(-6deg);
  border-radius: 50% 45% 48% 52%;
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--color-shape-2) 22%, transparent),
    color-mix(in srgb, var(--color-shape-3) 18%, transparent) 40%,
    color-mix(in srgb, var(--color-accent) 15%, transparent) 70%,
    transparent
  );
  opacity: 0.45;
}

.ribbon-skills {
  width: 280px;
  height: 90px;
  bottom: 18%;
  left: -8%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse 80% 45% at 50% 50%,
    transparent 25%,
    color-mix(in srgb, var(--color-shape-3) 20%, transparent) 45%,
    color-mix(in srgb, var(--color-shape-1) 18%, transparent) 65%,
    transparent
  );
  transform: rotate(6deg) skewX(-4deg);
  opacity: 0.5;
}

.ribbon-experience {
  width: 140px;
  height: 320px;
  top: 50%;
  left: -30px;
  transform: translateY(-50%) rotate(-12deg) skewY(5deg);
  border-radius: 48% 52% 50% 48%;
  background: linear-gradient(
    200deg,
    transparent,
    color-mix(in srgb, var(--color-shape-1) 20%, transparent) 35%,
    color-mix(in srgb, var(--color-shape-2) 18%, transparent) 60%,
    transparent
  );
  opacity: 0.4;
}

.ribbon-contact {
  width: 300px;
  height: 100px;
  bottom: 20%;
  right: -10%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse 90% 50% at 50% 50%,
    transparent 30%,
    color-mix(in srgb, var(--color-shape-3) 22%, transparent) 50%,
    color-mix(in srgb, var(--color-accent) 18%, transparent) 75%,
    transparent
  );
  transform: rotate(-5deg) skewX(3deg);
  opacity: 0.48;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.25;
}

.blob-hero-1 {
  width: 200px;
  height: 200px;
  background: var(--color-shape-2);
  top: 20%;
  right: 15%;
  animation: blobFloat 15s ease-in-out infinite;
}

.blob-hero-2 {
  width: 160px;
  height: 160px;
  background: var(--color-shape-3);
  bottom: 25%;
  left: 10%;
  animation: blobFloat 18s ease-in-out infinite reverse;
  animation-delay: -5s;
}

.blob-exp-1 {
  width: 180px;
  height: 180px;
  background: var(--color-shape-1);
  top: 10%;
  right: 5%;
  opacity: 0.2;
  animation: blobFloat 20s ease-in-out infinite;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(15px, -20px) scale(1.05); }
  66% { transform: translate(-10px, 15px) scale(0.95); }
}

.shape {
  position: absolute;
  opacity: 0.15;
}

.shape-about-1 {
  width: 100px;
  height: 100px;
  top: 30%;
  left: 5%;
  background: var(--color-shape-1);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  animation: geoFloat 20s ease-in-out infinite;
}

.shape-skills-1 {
  width: 60px;
  height: 60px;
  top: 15%;
  right: 10%;
  background: var(--color-shape-2);
  border-radius: 12px;
  transform: rotate(20deg);
  animation: geoFloat 22s ease-in-out infinite reverse;
}

.shape-skills-2 {
  width: 50px;
  height: 50px;
  bottom: 20%;
  left: 8%;
  background: var(--color-shape-3);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  animation: geoFloat 18s ease-in-out infinite;
  animation-delay: -8s;
}

.shape-contact-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  right: 15%;
  background: var(--color-shape-2);
  border-radius: 50%;
  opacity: 0.2;
  animation: blobFloat 14s ease-in-out infinite;
}

/* ----- Geometry shapes (pure CSS, no images) ----- */
.geo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.geo-hero .geo-shape { animation: geoFloat 20s ease-in-out infinite; }
.geo-section .geo-shape { animation: geoFloat 25s ease-in-out infinite reverse; }

.geo-shape {
  position: absolute;
  opacity: 0.08;
  border: 1px solid var(--color-accent);
}

.geo-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  top: 15%;
  right: 10%;
  animation-delay: 0s;
}

.geo-hero .geo-triangle {
  width: 0;
  height: 0;
  border: none;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 86px solid var(--color-accent);
  background: none;
  top: 60%;
  left: 8%;
  animation-delay: -5s;
}

.geo-section .geo-triangle {
  width: 0;
  height: 0;
  border: none;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 70px solid var(--color-accent);
  background: none;
  bottom: 20%;
  right: 5%;
}

.geo-square {
  width: 80px;
  height: 80px;
  transform: rotate(15deg);
  bottom: 25%;
  right: 15%;
  animation-delay: -8s;
}

.geo-hexagon {
  width: 60px;
  height: 34px;
  background: var(--color-accent);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border: none;
  top: 20%;
  left: 12%;
  animation-delay: -12s;
}

.geo-diamond {
  width: 50px;
  height: 50px;
  transform: rotate(45deg);
  top: 70%;
  right: 20%;
  animation-delay: -3s;
}

@keyframes geoFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(10px, -15px) rotate(5deg); }
  50% { transform: translate(-5px, 10px) rotate(-3deg); }
  75% { transform: translate(15px, 5px) rotate(4deg); }
}

.geo-square { animation-name: geoFloat15; }
.geo-diamond { animation-name: geoFloat45; }

@keyframes geoFloat15 {
  0%, 100% { transform: translate(0, 0) rotate(15deg); }
  25% { transform: translate(10px, -15px) rotate(20deg); }
  50% { transform: translate(-5px, 10px) rotate(12deg); }
  75% { transform: translate(15px, 5px) rotate(19deg); }
}

@keyframes geoFloat45 {
  0%, 100% { transform: translate(0, 0) rotate(45deg); }
  25% { transform: translate(10px, -15px) rotate(50deg); }
  50% { transform: translate(-5px, 10px) rotate(42deg); }
  75% { transform: translate(15px, 5px) rotate(49deg); }
}

.geo-section .geo-circle {
  width: 80px;
  height: 80px;
  top: 10%;
  left: 5%;
}

.geo-section .geo-diamond {
  width: 40px;
  height: 40px;
  bottom: 15%;
  left: 8%;
}

.geo-section .geo-square {
  width: 50px;
  height: 50px;
  top: 50%;
  right: 10%;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 640px;
}

/* Hero entrance animation */
.hero-greeting { animation: fadeInUp var(--duration-m) var(--ease-out-expo) 0.1s both; }
.hero-name { animation: fadeInUp var(--duration-m) var(--ease-out-expo) 0.2s both; }
.hero-tagline { animation: fadeInUp var(--duration-m) var(--ease-out-expo) 0.3s both; }
.hero-years { animation: fadeInUp var(--duration-m) var(--ease-out-expo) 0.4s both; }
.hero-cta { animation: fadeInUp var(--duration-m) var(--ease-out-expo) 0.5s both; }
.hero-scroll { animation: fadeInUp var(--duration-m) var(--ease-out-expo) 0.8s both; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll-triggered reveal (JS adds .is-visible) */
.animate-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--duration-m) var(--ease-out-expo), transform var(--duration-m) var(--ease-out-expo);
}

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

.animate-in.stagger-1 { transition-delay: 0.05s; }
.animate-in.stagger-2 { transition-delay: 0.1s; }
.animate-in.stagger-3 { transition-delay: 0.15s; }
.animate-in.stagger-4 { transition-delay: 0.2s; }
.animate-in.stagger-5 { transition-delay: 0.25s; }

.hero-greeting {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-name {
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 var(--space-md);
}

.hero-tagline {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.hero-years {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-border), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

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

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-out-expo), box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(232, 168, 74, 0.35);
}

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

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

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text);
}

/* ----- Sections ----- */
.section .container {
  padding: 0 var(--space-lg);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2xl);
  color: var(--color-text);
}

.subsection-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  color: var(--color-text-muted);
}

/* ----- About ----- */
.about-grid {
  display: grid;
  gap: var(--space-2xl);
}

@media (min-width: 700px) {
  .about-grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.about-content p {
  margin-bottom: var(--space-md);
  color: var(--color-text-muted);
}

.about-lead {
  color: var(--color-text) !important;
  font-size: var(--text-base);
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.about-langs {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.about-links a {
  font-size: var(--text-sm);
}

.about-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: var(--space-xl);
  min-width: 180px;
  text-align: center;
}

.about-card-label {
  display: block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.about-card-value {
  display: block;
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.about-card-desc {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
}

/* ----- Skills ----- */
.skills {
  background: var(--color-bg-soft);
}

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

.skill-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: var(--space-xl);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.3s var(--ease-out-expo);
}

.skill-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent-soft), 0 8px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(-4px);
}

.skill-icon {
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--color-accent);
}

.skill-icon-php {
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.skill-card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin: 0 0 var(--space-sm);
  color: var(--color-text);
}

.skill-card p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ----- Experience ----- */
.experience-timeline {
  position: relative;
}

.timeline-item {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  transition: opacity var(--duration-m) var(--ease-out-expo), transform var(--duration-m) var(--ease-out-expo);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 4px var(--color-accent-soft);
}

.timeline-dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  margin-top: 6px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.timeline-content h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin: 0 0 var(--space-xs);
  color: var(--color-text);
}

.timeline-company {
  font-size: var(--text-sm);
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.timeline-content p:last-child {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

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

.projects-list li {
  padding: var(--space-sm) 0;
  padding-left: var(--space-lg);
  position: relative;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.projects-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 600;
}

/* ----- Contact ----- */
.contact {
  background: var(--color-bg-soft);
}

.contact-intro {
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  max-width: 480px;
}

.contact-form {
  max-width: 480px;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: border-color 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

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

.contact-form .btn-submit {
  margin-top: var(--space-sm);
}

.form-status {
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  min-height: 1.4em;
}

.form-status.success {
  color: #6ee7b7;
}

.form-status.error {
  color: #f87171;
}

/* ----- Footer ----- */
.footer {
  padding: var(--space-xl) var(--space-lg);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

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

.footer-note {
  margin-top: var(--space-sm);
  font-size: var(--text-xs);
  opacity: 0.8;
}

/* ----- Mobile menu ----- */
@media (max-width: 600px) {
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg-soft);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    transform: translateY(-100%);
    visibility: hidden;
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }

  .nav-links.is-open {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  /* Touch-friendly theme toggle */
  .theme-toggle {
    min-width: 44px;
    min-height: 44px;
  }
}
