/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */
:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text: #1E293B;
  --text-muted: #64748B;
  --accent: #2563EB;
  --accent-dark: #1D4ED8;
  --border: #E2E8F0;
  --status-green: #059669;

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  --max-width: 1180px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  --transition: 0.35s cubic-bezier(.4,0,.2,1);
}

/* Dark theme variables */
[data-theme="dark"] {
  --bg: #0F172A;
  --surface: #1E293B;
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --accent: #3B82F6;
  --accent-dark: #2563EB;
  --border: #334155;
  --status-green: #10B981;
}

/* ==========================================================================
   RESET
   ========================================================================== */
* { margin: 0; padding: 0; 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;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; border: none; background: none; cursor: pointer; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* subtle grain texture over the cool background */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   LAYOUT HELPERS
   ========================================================================== */
.section { padding: 7.5rem 2rem; }
.section-muted { background: #F1F5F9; }

[data-theme="dark"] .section-muted { 
  background: #152236;
}



[data-theme="dark"] .hero-blob {
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, rgba(59,130,246,0) 72%);
}

[data-theme="dark"] .project-image--ai {
  background:
    radial-gradient(circle at 30% 30%, rgba(59,130,246,0.06) 0%, rgba(59,130,246,0) 60%),
    #1E293B;
}

[data-theme="dark"] .tag {
  background: #334155;
  color: var(--accent);
}

[data-theme="dark"] .timeline-item::before {
  box-shadow: 0 0 0 4px var(--bg);
}
.section-inner { max-width: var(--max-width); margin: 0 auto; }

.section-head { max-width: 620px; margin-bottom: 3.5rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 46ch;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.32);
}

.btn-outline {
  border: 1.5px solid var(--text);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover {
  background: var(--text);
  color: var(--bg);
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-small { padding: 0.6rem 1.3rem; font-size: 0.85rem; }

/* ==========================================================================
   HEADER / NAV — Floating pill
   ========================================================================== */
.site-header {
  position: fixed;
  top: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: #1E293B;
  border-radius: var(--radius-pill);
  width: calc(100% - 3rem);
  max-width: 900px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  transition: box-shadow var(--transition), background var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.26);
}

[data-theme="dark"] .site-header {
  background: #0F172A;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  gap: 1rem;
}

.logo {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  gap: 1.6rem;
  align-items: center;
}

.nav-link {
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.58);
  position: relative;
  padding-bottom: 3px;
  transition: color var(--transition);
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: #fff;
  transition: width var(--transition);
}

.nav-link:hover {
  color: #fff;
}
.nav-link:hover::after { width: 100%; }

.nav-link--active {
  color: #fff;
}
.nav-link--active::after {
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.18);
}

.theme-icon {
  position: absolute;
  transition: all var(--transition);
}

.sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.moon-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .sun-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

[data-theme="dark"] .moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 22px;
}
.nav-toggle span {
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9rem 2rem 4rem;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

/* Right visual col no longer used */
.hero-visual { display: none; }

.hero-content {
  max-width: 820px;
  text-align: center;
  margin: 0 auto;
}

.hero-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  font-weight: 400;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--status-green);
  position: relative;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--status-green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.8); opacity: 0; }
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 1.8rem;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto 2.6rem;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* infinite marquee strip along the bottom of the hero */
.hero-marquee {
  margin-top: 5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
  overflow: hidden;
  width: 100%;
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-track .term {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.marquee-track .term--accent {
  color: var(--accent);
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.marquee-track .dot {
  display: inline-block;
  color: var(--accent);
  font-size: 1.05rem;
  line-height: 1;
  margin: 0 1.1rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   PROJECT GRID
   ========================================================================== */
.project-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  justify-content: center;
}

.filter-btn {
  padding: 0.6rem 1.2rem;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(30, 41, 59, 0.08);
}

.project-card.hidden {
  display: none;
}

/* Pagination */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.08);
}

.pagination-btn,
.pagination-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.pagination-btn:hover:not(:disabled),
.pagination-number:hover {
  background: var(--border);
  color: var(--text);
}

.pagination-number.active {
  background: var(--accent);
  color: #fff;
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination-btn svg {
  width: 16px;
  height: 16px;
}

.project-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--border);
}
.project-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card:hover .project-image img { transform: scale(1.06); }

/* Abstract SVG covers used in place of screenshots */
.project-image--ai {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(37,99,235,0.06) 0%, rgba(37,99,235,0) 60%),
    #F1F5F9;
}
.project-image--ai svg {
  width: 88%;
  height: 88%;
  transition: transform 0.6s ease;
}
.project-card:hover .project-image--ai svg { transform: scale(1.05); }

.pg-line { stroke: var(--border); stroke-width: 1.5; }
.pg-curve { stroke: var(--border); stroke-width: 1.5; fill: none; }
.pg-node { fill: var(--surface); stroke: var(--accent); stroke-width: 1.5; }
.pg-node--main { fill: var(--accent); stroke: none; }
.pg-shape { fill: var(--surface); stroke: var(--border); stroke-width: 1.5; }
.pg-shape--fill { fill: #E2E8F0; stroke: none; }
.pg-shape--thin { fill: var(--border); stroke: none; }
.pg-shape--accent { fill: var(--accent); stroke: none; opacity: 0.85; }

.project-body { padding: 1.6rem; }

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tag-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: #F1F5F9;
  color: var(--accent-dark);
  letter-spacing: 0.02em;
}

.project-year {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  transition: color var(--transition);
}
.project-card:hover .project-title { color: var(--accent); }

.project-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.3rem;
}

.project-links { display: flex; gap: 1.3rem; }
.project-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.project-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ==========================================================================
   TECH STACK
   ========================================================================== */
.stack-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.stack-group-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.badge-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 500;
  transition: border-color var(--transition), transform var(--transition);
}
.badge:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

/* ==========================================================================
   ABOUT
   ========================================================================== */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  border-left: 1px solid var(--border);
  padding-left: 2rem;
}

.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.44rem;
  top: 0.35rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}

.timeline-year {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.timeline-meta {
  margin-bottom: 0.8rem;
}

.timeline-company {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.timeline-location {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.timeline-description {
  color: var(--text-muted);
  font-size: 0.94rem;
  max-width: 48ch;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.timeline-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 0.5rem;
}

.timeline-toggle:hover {
  color: var(--accent-dark);
}

.timeline-arrow {
  transition: transform var(--transition);
}

.timeline-toggle.expanded .timeline-arrow {
  transform: rotate(180deg);
}

.timeline-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.timeline-details.expanded {
  max-height: 300px;
}

.timeline-points {
  padding: 1rem 0;
  margin: 0;
  list-style: none;
}

.timeline-points li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.7rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.timeline-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

.timeline-points li:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--text);
  color: var(--bg);
  padding: 6rem 2rem 2.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-headline {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  max-width: 16ch;
}

.footer-sub {
  color: #C9BFB7;
  font-size: 1.05rem;
  max-width: 46ch;
  margin-bottom: 3rem;
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4.5rem;
}

.footer-contact-link {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.3rem 1.4rem;
  border: 1px solid rgba(250,247,242,0.16);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}
.footer-contact-link:hover {
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
  transform: translateY(-3px);
}

.contact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #A79C93;
}
.contact-value {
  font-size: 1.02rem;
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(250,247,242,0.14);
  font-size: 0.85rem;
  color: #A79C93;
}

.back-to-top {
  font-weight: 600;
  color: var(--bg);
  transition: color var(--transition);
}
.back-to-top:hover { color: var(--accent); }

/* Footer — dark theme override */
[data-theme="dark"] .site-footer {
  background: #071525;
  color: #CBD5E1;
}
[data-theme="dark"] .footer-sub {
  color: #64748B;
}
[data-theme="dark"] .footer-contact-link {
  border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .footer-contact-link:hover {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.08);
}
[data-theme="dark"] .contact-label {
  color: #475569;
}
[data-theme="dark"] .contact-value {
  color: #CBD5E1;
}
[data-theme="dark"] .footer-bottom {
  border-color: rgba(255, 255, 255, 0.07);
  color: #475569;
}
[data-theme="dark"] .back-to-top {
  color: #94A3B8;
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: calc(var(--delay, 0) * 0.09s);
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1000px) {
  .stack-columns { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .project-grid { grid-template-columns: 1fr; }
  .hero-content { max-width: 100%; }
}

@media (max-width: 720px) {
  .main-nav--left,
  .main-nav--right {
    position: fixed;
    top: 4.5rem;
    left: 1.5rem;
    right: 1.5rem;
    background: #1E293B;
    border-radius: var(--radius-md);
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    gap: 1rem;
    transform: translateY(-140%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
    z-index: 99;
  }
  .main-nav--left.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  /* hide right nav on mobile */
  .main-nav--right { display: none; }
  .nav-toggle { display: flex; }
  .header-right { gap: 0.7rem; }
  .theme-toggle {
    width: 36px;
    height: 36px;
  }

  .project-filters { 
    justify-content: flex-start;
    gap: 0.4rem;
  }
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .pagination {
    gap: 0.3rem;
    padding: 0.4rem;
  }
  
  .pagination-btn,
  .pagination-number {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .stack-columns { grid-template-columns: 1fr; }
  .section { padding: 5.5rem 1.5rem; }
  .hero { padding-top: 7.5rem; }
  .footer-contacts { flex-direction: column; }
}

/* ==========================================================================
   Resume Section
   ========================================================================== */
#resume {
  padding-top: 8rem;
  padding-bottom: 8rem;
  min-height: 65vh;
  display: flex;
  align-items: center;
}

#resume .section-inner {
  width: 100%;
}

.section-head--center {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3.5rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-head--center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.resume-card--centered {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.resume-card--centered:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.resume-card--centered .resume-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

[data-theme="dark"] .resume-card--centered .resume-icon {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
}

.resume-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.resume-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.resume-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

@media (max-width: 640px) {
  .resume-card--centered {
    padding: 2.5rem 1.5rem;
  }

  .resume-buttons {
    flex-direction: column;
  }

  .resume-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   GTranslate Theme Integration
   ========================================================================== */
.gtranslate_wrapper {
  z-index: 190 !important;
}

/* Custom styling for GTranslate floating switcher container & elements */
.gtranslate_wrapper select,
.gt_switcher,
.gt_switcher .gt_option,
.gt_container,
.gt_float_switcher {
  font-family: var(--font-body) !important;
  background-color: var(--surface) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
  border-radius: var(--radius-pill) !important;
}

[data-theme="dark"] .gtranslate_wrapper select,
[data-theme="dark"] .gt_switcher,
[data-theme="dark"] .gt_switcher .gt_option,
[data-theme="dark"] .gt_container,
[data-theme="dark"] .gt_float_switcher {
  background-color: #1E293B !important;
  color: #F1F5F9 !important;
  border-color: #334155 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

/* GTranslate dropdown links / item text */
.gt_switcher a,
.gt_float_switcher a {
  color: var(--text) !important;
}

[data-theme="dark"] .gt_switcher a,
[data-theme="dark"] .gt_float_switcher a {
  color: #F1F5F9 !important;
}

.gt_switcher a:hover,
.gt_float_switcher a:hover {
  background-color: rgba(37, 99, 235, 0.1) !important;
  color: var(--accent) !important;
}
