/* ============================================
   PROFESSIONAL PORTFOLIO DESIGN SYSTEM
   Redesigned with modern aesthetics & hierarchy
   ============================================ */

/* === COLOR SYSTEM === */
:root {
  /* Dark Theme - Deep Professional */
  --bg-primary: #0a0e1a;
  --bg-secondary: #141b2d;
  --bg-tertiary: #1a2332;
  --bg-overlay: rgba(20, 27, 45, 0.92);

  --text-primary: #f0f4f9;
  --text-secondary: #b8c5d6;
  --text-muted: #7a8a9e;
  --text-inverse: #0a0e1a;

  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-tertiary: #f59e0b;
  --accent-success: #10b981;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.18);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.28);
  --shadow-accent: 0 8px 32px rgba(99, 102, 241, 0.24);

  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
  --gradient-hero: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.15), transparent 50%),
                   radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.12), transparent 60%);
}

body.theme-light {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-overlay: rgba(255, 255, 255, 0.95);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --accent-primary: #4f46e5;
  --accent-secondary: #7c3aed;
  --accent-tertiary: #f59e0b;
  --accent-success: #059669;

  --border-subtle: rgba(15, 23, 42, 0.06);
  --border-medium: rgba(15, 23, 42, 0.10);
  --border-strong: rgba(15, 23, 42, 0.16);

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 48px rgba(15, 23, 42, 0.12);
  --shadow-accent: 0 8px 32px rgba(79, 70, 229, 0.16);

  --gradient-hero: radial-gradient(ellipse at top, rgba(79, 70, 229, 0.08), transparent 50%),
                   radial-gradient(ellipse at bottom right, rgba(124, 58, 237, 0.06), transparent 60%);
}

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  min-height: 100vh;
  transition: background-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* === TYPOGRAPHY SYSTEM === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* === ACCESSIBILITY === */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  padding: 16px 32px;
  background: var(--accent-primary);
  color: var(--text-inverse);
  border-radius: 16px;
  font-weight: 600;
  font-size: 15px;
  z-index: 999;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 24px;
  outline: 3px solid var(--accent-tertiary);
  outline-offset: 4px;
}

/* === LAYOUT CONTAINERS === */
.container {
  width: min(1280px, 92%);
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section:first-of-type {
  padding-top: 200px;
}

.section-kicker {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-primary);
  margin-bottom: 16px;
  display: inline-block;
}

.section-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-intro {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.section.highlight {
  background: var(--gradient-hero);
  position: relative;
}

.section.highlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(99, 102, 241, 0.04) 0%,
    transparent 50%,
    rgba(139, 92, 246, 0.04) 100%);
  pointer-events: none;
}

.section.support {
  background: linear-gradient(135deg,
    rgba(245, 158, 11, 0.06) 0%,
    transparent 60%);
}

/* === HEADER === */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-overlay);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  transition: all 0.3s ease;
}

.header-grid {
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  align-items: center;
  gap: 32px;
  padding: 20px 0;
}

.brand {
  font-family: 'Fira Code', 'SF Mono', 'Monaco', 'Consolas', 'Courier New', monospace;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.5px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.8;
}

.brand-dot {
  color: var(--accent-primary);
  -webkit-text-fill-color: var(--accent-primary);
  animation: brand-pulse 2s ease-in-out infinite;
}

@keyframes brand-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

.theme-toggle {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border-medium);
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  justify-self: end;
}

.theme-toggle:hover {
  transform: translateY(-2px) scale(1.05);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
}

.theme-toggle:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 3px;
}

.site-nav {
  display: flex;
  gap: 8px;
  justify-self: end;
}

.site-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 12px 20px;
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 24px;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.site-nav a.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* === HERO SECTION === */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  opacity: 1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.3fr 0.7fr;
    gap: 80px;
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 720px;
}

.code-line {
  font-family: 'Fira Code', 'SF Mono', 'Monaco', 'Consolas', 'Courier New', monospace;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.code-line span {
  color: var(--accent-primary);
}

.headline {
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 600;
  color: var(--text-primary);
  padding: 32px 40px;
  border-radius: 24px;
  background: linear-gradient(135deg,
    rgba(99, 102, 241, 0.12),
    rgba(139, 92, 246, 0.08));
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(12px);
  position: relative;
  line-height: 1.6;
  box-shadow: var(--shadow-md);
}

.lead::before {
  content: "▶";
  position: absolute;
  left: 16px;
  top: 32px;
  font-size: 20px;
  color: var(--accent-primary);
}

.lead-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.quote {
  border-left: 4px solid var(--accent-primary);
  padding-left: 28px;
  padding-top: 8px;
  padding-bottom: 8px;
  font-style: italic;
  color: var(--text-secondary);
  margin-top: 8px;
}

.quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 14px;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 16px;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid var(--border-strong);
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
}

.btn:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 4px;
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  color: var(--text-inverse);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  box-shadow: 0 12px 48px rgba(99, 102, 241, 0.36);
  transform: translateY(-3px) scale(1.02);
}

/* === HERO VISUAL === */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .hero-visual {
    justify-self: end;
  }
}

.avatar-frame {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
  border-radius: 40px;
  overflow: hidden;
  border: 2px solid var(--border-medium);
  box-shadow: var(--shadow-lg);
  background: var(--bg-secondary);
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(99, 102, 241, 0.08) 100%);
  pointer-events: none;
}

.stat-card {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 28px;
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-age {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(64px, 10vw, 88px);
  font-weight: 900;
  line-height: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-body {
  font-size: 14px;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

/* === TWO COLUMN LAYOUTS === */
.two-column {
  display: grid;
  gap: 64px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
}

.section.highlight .two-column {
  align-items: start;
}

.section.highlight .card {
  margin-top: 120px;
}

/* === CARDS === */
.card {
  background: var(--bg-secondary);
  border-radius: 28px;
  padding: 48px 40px;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.75;
}

.card p:last-of-type {
  margin-bottom: 0;
}

/* === LINKS === */
.cta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}

.link {
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 15px;
  position: relative;
  transition: color 0.2s ease;
}

.link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.link:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 4px;
  border-radius: 4px;
}

/* === PROJECT GRID === */
.project-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  margin-top: 48px;
}

.project-card {
  background: var(--bg-secondary);
  border-radius: 24px;
  padding: 36px 32px;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
}

.project-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.project-card p {
  color: var(--text-secondary);
  flex-grow: 1;
  line-height: 1.7;
}

.more-projects {
  margin-top: 48px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
}

.more-projects a {
  color: var(--accent-primary);
  font-weight: 700;
}

/* === CATEGORY FILTER === */
.category-filter {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 40px;
}

.filter-btn {
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid var(--border-medium);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.filter-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-primary);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

/* === PROJECT IMAGE === */
.project-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.project-badge svg {
  color: var(--accent-primary);
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.project-badge-text {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
}

.project-description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.project-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.project-link {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-medium);
  background: var(--bg-tertiary);
  color: var(--accent-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-link:hover {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* === SHOW MORE === */
.show-more-container {
  text-align: center;
  margin-top: 56px;
}

.project-card.hidden {
  display: none;
}

/* === PROJECT ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

.project-card {
  animation: fadeInUp 0.5s ease-out;
  animation-fill-mode: both;
}

.project-card:nth-child(1) { animation-delay: 0.05s; }
.project-card:nth-child(2) { animation-delay: 0.1s; }
.project-card:nth-child(3) { animation-delay: 0.15s; }
.project-card:nth-child(4) { animation-delay: 0.2s; }
.project-card:nth-child(5) { animation-delay: 0.25s; }
.project-card:nth-child(6) { animation-delay: 0.3s; }

.project-card.fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}

/* === LOADING STATE === */
.projects-loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
  font-size: 18px;
}

.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-medium);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* === IMAGE ERROR HANDLING === */
.project-image.error {
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
}

.project-image.error::after {
  content: '📷 Image not available';
}

/* === CONTACT SECTION === */
.contact-grid {
  display: grid;
  gap: 56px;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  align-items: start;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 32px;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-label {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.contact-list a {
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 17px;
  transition: color 0.2s ease;
}

.contact-list a:hover {
  color: var(--accent-secondary);
}

/* === CONTACT FORM === */
.contact-form {
  display: grid;
  gap: 20px;
  background: var(--bg-secondary);
  padding: 48px 40px;
  border-radius: 28px;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-md);
}

.form-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: -8px;
}

.form-input {
  width: 100%;
  padding: 16px 20px;
  border-radius: 14px;
  border: 2px solid var(--border-medium);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:hover {
  border-color: var(--border-strong);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
  background: var(--bg-primary);
}

.form-input::placeholder {
  color: var(--text-muted);
}

/* === FOOTER === */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  backdrop-filter: blur(16px);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-grid .link {
  font-size: 14px;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
  .section {
    padding: 96px 0;
  }

  .section:first-of-type {
    padding-top: 160px;
  }

  .header-grid {
    grid-template-columns: max-content max-content;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-self: start;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .section:first-of-type {
    padding-top: 140px;
  }

  .container {
    width: 94%;
  }

  .hero-grid {
    gap: 48px;
  }

  .section-title {
    font-size: clamp(32px, 8vw, 48px);
  }

  .cta-group {
    width: 100%;
  }

  .btn {
    flex: 1 1 auto;
    min-width: 160px;
  }

  .two-column {
    gap: 48px;
  }

  .card {
    padding: 36px 28px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* === ANIMATIONS === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* === TIMELINE (if needed) === */
.timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-year {
  font-family: 'Fira Code', monospace;
  color: var(--accent-primary);
  font-weight: 600;
  margin-right: 16px;
}

.timeline li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  color: var(--text-secondary);
}

/* === FEATURE LIST === */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
}

.feature-list li {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === MAINTENANCE MODAL === */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.modal-content {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  max-width: 480px;
  width: 90%;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--text-primary);
}

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

.modal-title {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.modal-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Maintenance link button style */
.maintenance-link {
  cursor: pointer;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
