/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
  --color-bg: #0a0a0b;
  --color-bg-alt: #111113;
  --color-surface: #1a1a1e;
  --color-surface-hover: #222228;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-text: #e8e8ed;
  --color-text-muted: #8a8a9a;
  --color-text-dim: #5a5a6a;
  --color-primary: #6366f1;
  --color-primary-light: #818cf8;
  --color-accent: #a78bfa;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --nav-height: 72px;
  --container-max: 1120px;
  --radius: 12px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Animated Background Canvas
   ============================================ */
#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(10, 10, 11, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-smooth), background 0.3s var(--ease-smooth);
}

.navbar.scrolled {
  border-bottom-color: var(--color-border);
  background: rgba(10, 10, 11, 0.95);
}

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

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  transition: color 0.3s;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: 8px;
  transition: color 0.3s, background 0.3s;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text);
  background: var(--color-surface);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(167, 139, 250, 0.08), transparent);
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-height);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
  padding: 80px 0;
}

/* Avatar */
.hero-avatar-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
}

.avatar-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(99, 102, 241, 0.3);
  animation: ring-spin 20s linear infinite;
}

.avatar-ring::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--color-primary);
}

.avatar-ring-2 {
  inset: -20px;
  border-color: rgba(167, 139, 250, 0.15);
  animation-direction: reverse;
  animation-duration: 30s;
}

.avatar-ring-2::before {
  background: var(--color-accent);
  box-shadow: 0 0 12px var(--color-accent);
}

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

.hero-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-surface);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.15);
}

/* Hero Text */
.hero-greeting {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 12px;
}

.hero-title {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--color-text-dim);
  margin-bottom: 32px;
}

.hero-location svg {
  opacity: 0.6;
}

/* Hero CTA */
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

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

.btn-primary:hover {
  background: var(--color-primary-light);
  box-shadow: 0 6px 30px rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-light);
  transform: translateY(-2px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-indicator span {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-dim);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--color-border);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-primary);
  animation: scroll-line-move 2s var(--ease-smooth) infinite;
}

@keyframes scroll-line-move {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* ============================================
   Sections Common
   ============================================ */
.section {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary-light);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-line {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 3px;
  margin: 0 auto;
}

/* ============================================
   Projects — Horizontal Showcase Carousel
   ============================================ */
.projects {
  padding-bottom: 80px;
}

.showcase-track-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.showcase-track {
  display: flex;
  gap: 32px;
  padding: 0 max(24px, calc((100vw - 1120px) / 2 + 24px));
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.showcase-track:active {
  cursor: grabbing;
}

.showcase-track::-webkit-scrollbar {
  display: none;
}

/* === Individual Showcase Card === */
.showcase-card {
  flex: 0 0 min(680px, 85vw);
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: 1fr auto;
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.5s var(--ease-out), border-color 0.4s;
}

.showcase-card:hover {
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.15);
}

/* Colored accent side bar */
.showcase-accent {
  grid-row: 1 / -1;
  background: var(--card-accent, var(--color-primary));
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  position: relative;
}

.showcase-num {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: -0.02em;
}

.showcase-accent-line {
  flex: 1;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 12px 0;
}

.showcase-tags-vert {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.showcase-tags-vert span {
  writing-mode: vertical-lr;
  text-orientation: mixed;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.6);
  transform: rotate(180deg);
}

/* Visual / Image area */
.showcase-visual {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--card-accent) 30%, #111113),
      var(--color-bg-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  min-height: 300px;
}

.showcase-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s var(--ease-out);
}

.showcase-card:hover .showcase-img-wrap {
  transform: scale(1.04) translateY(-4px);
}

.showcase-img-wrap img {
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
}

/* Info area below image */
.showcase-info {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.showcase-info h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.showcase-info p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.showcase-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary-light);
  margin-top: 4px;
  transition: gap 0.3s var(--ease-out), color 0.3s;
}

.showcase-link:hover {
  gap: 14px;
  color: var(--color-accent);
}

.showcase-link--muted {
  color: var(--color-text-dim);
  pointer-events: none;
}

/* === Carousel Navigation === */
.showcase-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px 24px 0;
}

.showcase-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.showcase-btn:hover {
  color: var(--color-text);
  border-color: var(--color-primary);
  background: rgba(99, 102, 241, 0.08);
  transform: scale(1.08);
}

.showcase-progress {
  width: 120px;
  height: 3px;
  background: var(--color-border);
  border-radius: 3px;
  overflow: hidden;
}

.showcase-progress-fill {
  height: 100%;
  width: 14%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 3px;
  transition: width 0.4s var(--ease-out);
}

/* ============================================
   About Section
   ============================================ */
.about {
  background: var(--color-bg-alt);
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-text {
  margin-bottom: 56px;
}

.about-lead {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

/* Skills grid — now 3 cols for 6 cards */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

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

.skill-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.skill-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  color: var(--color-primary-light);
}

.skill-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

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

/* Tools */
.tools {
  text-align: center;
}

.tools-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-dim);
  margin-bottom: 20px;
}

.tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tool-tag {
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}

.tool-tag:hover {
  color: var(--color-primary-light);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  position: relative;
  z-index: 1;
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
}

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

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-muted);
  transition: color 0.3s;
}

.footer-logo:hover {
  color: var(--color-text);
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--color-text-dim);
  transition: color 0.3s;
}

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

.footer-copy {
  font-size: 0.8rem;
  color: var(--color-text-dim);
}

/* ============================================
   Animations
   ============================================ */

/* Fade in */
.fade-in {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
}

/* Slide up */
.slide-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reveal (for sections) */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ============================================
   Project Detail Pages
   ============================================ */

/* Hero */
.proj-hero {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-height) + 40px) 0 80px;
  overflow: hidden;
}

.proj-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--proj-accent, #6366f1) 15%, #0a0a0b),
      var(--color-bg));
  z-index: 0;
}

.proj-hero-container {
  position: relative;
  z-index: 1;
}

.proj-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  transition: color 0.3s, gap 0.3s var(--ease-out);
}

.proj-back:hover {
  color: var(--color-text);
  gap: 12px;
}

.proj-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.proj-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.proj-tags span {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: 50px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-primary-light);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.proj-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.proj-desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 480px;
}

.proj-hero-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.proj-hero-img img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.3));
  border-radius: var(--radius);
}

/* Project sections */
.proj-section {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.proj-section--dark {
  background: var(--color-bg-alt);
}

.proj-block {
  max-width: 900px;
  margin: 0 auto;
}

.proj-block--centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.proj-logo-img {
  max-width: 280px;
  max-height: 120px;
  object-fit: contain;
}

.proj-block-text {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 500px;
}

.proj-full-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.proj-block-full {
  width: 100%;
  overflow: hidden;
}

.proj-cover-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

/* Next Project CTA */
.proj-next {
  position: relative;
  z-index: 1;
  padding: 80px 0;
  border-top: 1px solid var(--color-border);
}

.proj-next-inner {
  text-align: center;
}

.proj-next-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-dim);
  margin-bottom: 16px;
}

.proj-next-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--color-text);
  transition: color 0.3s, gap 0.3s var(--ease-out);
}

.proj-next-link:hover {
  color: var(--color-primary-light);
  gap: 20px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 40px;
    background: var(--color-bg);
    border-left: 1px solid var(--color-border);
    transition: right 0.4s var(--ease-out);
    gap: 4px;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-link {
    font-size: 1rem;
    padding: 12px 16px;
    width: 100%;
  }

  .section {
    padding: 80px 0;
  }

  .hero-content {
    padding: 60px 0 40px;
  }

  .hero-avatar-wrapper {
    width: 120px;
    height: 120px;
  }

  .hero-avatar {
    width: 120px;
    height: 120px;
  }

  .showcase-card {
    flex: 0 0 min(520px, 88vw);
    min-height: auto;
  }

  .showcase-visual {
    padding: 20px;
    min-height: 220px;
  }

  .showcase-img-wrap img {
    max-height: 200px;
  }

  .showcase-info {
    padding: 20px 22px 24px;
  }

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

  .scroll-indicator {
    display: none;
  }

  .proj-hero-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .proj-hero-img img {
    max-height: 280px;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .showcase-card {
    flex: 0 0 92vw;
    grid-template-columns: 40px 1fr;
  }

  .showcase-accent {
    padding: 14px 0;
  }

  .showcase-num {
    font-size: 0.9rem;
  }

  .showcase-visual {
    padding: 16px;
    min-height: 180px;
  }

  .showcase-img-wrap img {
    max-height: 160px;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}
