/* ==========================================================================
   Design System & Core Variables
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root,
[data-theme="dark"] {
  /* Color Palette - Dark Mode (Default) */
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-card: rgba(18, 26, 46, 0.75);
  --bg-card-hover: rgba(28, 39, 68, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.05);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(70, 29, 124, 0.5);

  --accent-primary: #FDD023;
  --accent-secondary: #461D7C;
  --accent-glow: rgba(253, 208, 35, 0.25);
  --accent-gradient: var(--accent-primary);
  --accent-gradient-subtle: linear-gradient(135deg, rgba(70, 29, 124, 0.15), rgba(253, 208, 35, 0.15));

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --header-bg: rgba(9, 13, 22, 0.82);
  --card-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  --profile-card-bg: linear-gradient(180deg, rgba(28, 38, 64, 0.6) 0%, rgba(13, 19, 36, 0.9) 100%);
  --glow-opacity: 0.35;
  color-scheme: dark;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --container-width: 1120px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  /* Color Palette - Light Mode */
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(0, 0, 0, 0.04);

  --border-subtle: rgba(15, 23, 42, 0.1);
  --border-focus: rgba(70, 29, 124, 0.6);

  --accent-primary: #461D7C;
  --accent-secondary: #FDD023;
  --accent-glow: rgba(70, 29, 124, 0.2);
  --accent-gradient: var(--accent-primary);
  --accent-gradient-subtle: linear-gradient(135deg, rgba(70, 29, 124, 0.08), rgba(253, 208, 35, 0.08));

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --header-bg: rgba(248, 250, 252, 0.85);
  --card-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  --profile-card-bg: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  --glow-opacity: 0.12;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Ambient Glows */
body::before,
body::after {
  content: '';
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(140px);
  opacity: var(--glow-opacity);
  transition: opacity var(--transition-normal);
}

body::before {
  top: -150px;
  left: 10%;
  background: radial-gradient(circle, var(--accent-primary), transparent 70%);
}

body::after {
  top: 30%;
  right: -100px;
  background: radial-gradient(circle, var(--accent-secondary), transparent 70%);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.main-content {
  flex: 1;
  padding-top: 100px;
  padding-bottom: 80px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast);
  outline: none;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  transform: scale(1.06);
  box-shadow: 0 0 12px var(--accent-glow);
}

.theme-toggle-btn svg {
  transition: transform var(--transition-fast);
}

.theme-toggle-btn:active svg {
  transform: rotate(35deg);
}

/* Light / Dark icon display */
[data-theme="dark"] .icon-sun {
  display: block;
}

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

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

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

.brand-logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  box-shadow: 0 0 16px var(--accent-glow);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.nav-link {
  padding: 8px 18px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--accent-secondary);
  background: var(--bg-glass);
}

.nav-link.active {
  color: #fff;
  background: rgba(70, 29, 124, 0.16);
  border: 1px solid rgba(70, 29, 124, 0.35);
}

/* ==========================================================================
   Typography & Common Elements
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a5b4fc;
  background: rgba(70, 29, 124, 0.12);
  border: 1px solid rgba(70, 29, 124, 0.3);
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.page-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead-text {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 32px;
}

/* Buttons */
.btn-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--bg-primary);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--accent-secondary);
  color: var(--bg-primary);
  box-shadow: 0 6px 25px rgba(253, 208, 35, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Cards */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition-normal);
}

.card:hover {
  border-color: rgba(70, 29, 124, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Hero Section (index.html)
   ========================================================================== */
.hero-section {
  padding: 40px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-card-preview {
  position: relative;
}

.profile-card {
  background: var(--profile-card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
}

.profile-avatar-large {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  box-shadow: 0 0 30px var(--accent-glow);
}

.profile-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.profile-role {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-item p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Feature Highlights */
.features-section {
  margin-top: 60px;
}

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

.features-grid .card {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--bg-primary);
}

.features-grid .card:hover {
  background: var(--accent-secondary);
  border-color: var(--accent-secondary);
}

.features-grid .card .feature-title,
.features-grid .card .feature-desc {
  color: var(--bg-primary);
}

.features-grid .card .feature-icon {
  background: var(--bg-primary);
  color: var(--accent-primary);
}

.features-grid .card:hover .feature-icon {
  color: var(--accent-secondary);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(70, 29, 124, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 18px;
  color: #a5b4fc;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Resume Page (resume.html)
   ========================================================================== */
.resume-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 48px;
}

.resume-section {
  margin-bottom: 44px;
}

.section-heading {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  padding-left: 24px;
  border-left: 2px solid rgba(70, 29, 124, 0.25);
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -31px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-card {
  padding: 20px 24px;
}

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

.role-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.role-period {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.company-name {
  font-size: 0.92rem;
  color: #818cf8;
  margin-bottom: 12px;
  font-weight: 500;
}

.timeline-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.timeline-location {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: -6px;
  margin-bottom: 12px;
}

.timeline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.timeline-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.timeline-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 0.95rem;
}

.contact-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.contact-pill svg {
  color: var(--accent-primary);
  flex-shrink: 0;
}

.contact-pill a {
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.contact-pill a:hover {
  color: #a5b4fc;
  text-decoration: underline;
}

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

.community-card {
  padding: 20px 24px;
}

.community-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.community-role {
  font-size: 0.88rem;
  color: #818cf8;
  margin-bottom: 8px;
}

.community-period {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.skill-category-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.tag:hover {
  color: #ffffff;
  border-color: rgba(70, 29, 124, 0.4);
  background: rgba(70, 29, 124, 0.1);
}

/* ==========================================================================
   Projects Page (project.html)
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 32px;
  margin-top: 12px;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  cursor: pointer;
  position: relative;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(70, 29, 124, 0.45);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45), 0 0 30px rgba(70, 29, 124, 0.15);
}

[data-theme="light"] .project-card:hover {
  border-color: rgba(70, 29, 124, 0.4);
  box-shadow: 0 20px 40px rgba(70, 29, 124, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
}

.project-thumbnail {
  width: 100%;
  height: 250px;
  background: #090d16;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="light"] .project-thumbnail {
  background: #f1f5f9;
}

.project-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.project-badge-floating {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #c7d2fe;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

[data-theme="light"] .project-badge-floating {
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-primary);
  border-color: rgba(70, 29, 124, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.project-thumbnail-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 13, 22, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 2;
}

.project-card:hover .project-thumbnail-overlay {
  opacity: 1;
}

.overlay-action-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gradient);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(6px);
  transition: transform 0.25s ease;
}

.project-card:hover .overlay-action-chip {
  transform: translateY(0);
}

.project-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.project-category {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-primary);
}

.project-format-tag {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.project-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
  line-height: 1.35;
}

.project-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.project-title a:hover {
  color: #a5b4fc;
}

.project-subtitle {
  font-size: 0.92rem;
  font-weight: 600;
  color: #818cf8;
  margin-bottom: 14px;
}

[data-theme="light"] .project-subtitle {
  color: #461D7C;
}

.project-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.project-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.project-highlight-item {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.project-highlight-icon {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  color: #818cf8;
  margin-top: 3px;
}

[data-theme="light"] .project-highlight-icon {
  color: var(--accent-primary);
}

.project-highlight-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.project-footer .btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.88rem;
  gap: 8px;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--header-bg);
  padding: 36px 0;
  margin-top: auto;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

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

.footer-text {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-link {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.social-link:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .project-thumbnail {
    height: 220px;
  }
}

@media (max-width: 640px) {
  .site-header .container {
    flex-direction: row;
  }

  .nav-links {
    gap: 4px;
  }

  .nav-link {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .main-content {
    padding-top: 88px;
  }

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

  .btn {
    width: 100%;
  }

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