/* ==============================================
   DEVVERLY PORTFOLIO — FULL REDESIGN
   Aesthetic: "Digital Architect"
   Fonts: Syne (display) + DM Sans (body) + JetBrains Mono (code)
   ============================================== */

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

:root {
  /* Palette */
  --bg: #060d18;
  --bg-raised: #0b1527;
  --bg-card: rgba(12, 22, 42, 0.55);
  --bg-card-hover: rgba(18, 32, 58, 0.7);

  --accent: #3b9eff;
  --accent-bright: #60b4ff;
  --accent-dim: #1a5fa8;
  --accent-glow: rgba(59, 158, 255, 0.15);
  --accent-secondary: #6e7bff;

  --text-primary: #e8edf5;
  --text-secondary: #8a95a8;
  --text-muted: #5a6577;
  --text-accent: var(--accent-bright);

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(59, 158, 255, 0.25);

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --max-w: 1200px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur: 0.5s;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

/* --- Grain Overlay --- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}

/* --- Ambient Glow --- */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
}

.ambient__orb--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 158, 255, 0.1) 0%, transparent 70%);
  top: -15%;
  left: -10%;
  animation: orbit 35s ease-in-out infinite;
}

.ambient__orb--2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(110, 123, 255, 0.08) 0%, transparent 70%);
  bottom: 10%;
  right: -8%;
  animation: orbit 40s ease-in-out infinite reverse;
}

.ambient__orb--3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(59, 158, 255, 0.06) 0%, transparent 70%);
  top: 50%;
  left: 30%;
  animation: drift 30s ease-in-out infinite;
}

@keyframes orbit {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -25px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.97); }
  75% { transform: translate(25px, 30px) scale(1.03); }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); opacity: 0.6; }
  50% { transform: translate(-40px, 30px); opacity: 1; }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-xl);
  background: rgba(6, 13, 24, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur) ease, box-shadow var(--dur) ease;
}

.nav.scrolled {
  background: rgba(6, 13, 24, 0.85);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.nav__logo-accent {
  color: var(--accent);
}

.nav__links {
  display: flex;
  gap: var(--space-xl);
}

.nav__link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding: var(--space-xs) 0;
  transition: color 0.3s ease;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out);
}

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

.nav__link:hover::after {
  width: 100%;
}

.nav__cta {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  transition: transform 0.3s var(--ease-spring), background 0.3s ease, box-shadow 0.3s ease;
}

.nav__cta:hover {
  transform: translateY(-1px);
  background: var(--accent-bright);
  box-shadow: 0 4px 20px rgba(59, 158, 255, 0.35);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}

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

.nav__burger.active span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav__burger.active span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(6, 13, 24, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xl);
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.mobile-menu__link:hover {
  color: var(--accent);
}

.mobile-menu__cta {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  padding: 0.75rem 2rem;
  border-radius: 100px;
  margin-top: var(--space-lg);
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
.reveal[data-delay="4"] { transition-delay: 0.48s; }
.reveal[data-delay="5"] { transition-delay: 0.6s; }

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.7rem 1.5rem;
  border-radius: 100px;
  transition: all 0.4s var(--ease-spring);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

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

.btn--primary:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 158, 255, 0.35);
}

.btn--primary svg {
  transition: transform 0.3s var(--ease-spring);
}

.btn--primary:hover svg {
  transform: translateX(3px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn--ghost:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

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

.hero__container {
  max-width: 860px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-bright);
  background: rgba(59, 158, 255, 0.08);
  border: 1px solid rgba(59, 158, 255, 0.2);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  margin-bottom: var(--space-md);
  letter-spacing: 0.03em;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(59, 158, 255, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(59, 158, 255, 0); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.hero__desc {
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto var(--space-sm);
  line-height: 1.65;
}

.hero__subtext {
  font-size: clamp(0.82rem, 1.5vw, 0.92rem);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto var(--space-lg);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

/* Hero Stats */
.hero__stats {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__stat {
  text-align: center;
  padding: var(--space-lg) var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-width: 140px;
  flex: 1;
  max-width: 190px;
  transition: all 0.4s var(--ease-spring);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero__stat:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(59, 158, 255, 0.1);
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero__stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-weight: 500;
}

/* Hero Scroll */
.hero__scroll {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.6s ease;
}

.hero__scroll:hover {
  opacity: 1;
}

.hero__scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-pulse 2.5s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Sections Common --- */
.section {
  position: relative;
  z-index: 1;
  padding: var(--space-5xl) var(--space-xl);
}

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

.section__header {
  margin-bottom: var(--space-3xl);
}

.section__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

/* --- Work / Projects --- */
.work {
  background: linear-gradient(180deg, transparent 0%, rgba(12, 22, 42, 0.3) 30%, rgba(12, 22, 42, 0.3) 70%, transparent 100%);
}

.featured {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3xl);
  align-items: start;
  padding: var(--space-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-3xl);
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.featured:hover {
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(0, 60, 180, 0.1);
}

.featured__img-wrap {
  position: relative;
  display: block;
  width: 180px;
  height: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
}

.featured__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.featured__img-wrap:hover .featured__img {
  transform: scale(1.06);
}

.featured__img-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(59, 158, 255, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.featured__img-wrap:hover .featured__img-glow {
  opacity: 1;
}

.featured__name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.featured__name-link .featured__name {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.featured__name-link {
  display: inline-block;
  position: relative;
}

.featured__name-link::after {
  content: '';
  display: block;
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  margin-top: 4px;
  border-radius: 2px;
  transition: width 0.5s var(--ease-spring);
}

.featured__name-link:hover::after {
  width: 100%;
}

.featured__role {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 0.5rem;
}

.featured__desc {
  color: var(--text-muted);
  margin-top: var(--space-md);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Games Gallery */
.games__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.games__track {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  padding-bottom: var(--space-md);
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.games__track::-webkit-scrollbar {
  display: none;
}

.game-card {
  flex-shrink: 0;
  width: 170px;
  text-align: center;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-sm);
  transition: all 0.4s var(--ease-spring);
}

.game-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 158, 255, 0.12);
}

.game-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: var(--space-sm);
}

.game-card__name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-card__visits {
  font-size: 0.72rem;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-top: 0.2rem;
}

/* --- Skills --- */
.skills__tagline-box {
  position: relative;
  border: 1px solid rgba(59, 158, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-3xl);
  max-width: 500px;
  background: rgba(59, 158, 255, 0.03);
}

.skills__tagline {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.skills__loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: var(--space-4xl) 0;
  font-style: italic;
}

.skill-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: left;
  overflow: hidden;
  transition: all 0.4s var(--ease-spring);
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.skill-card:hover::before {
  transform: scaleX(1);
}

.skill-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(59, 158, 255, 0.1);
  background: var(--bg-card-hover);
}

/* Override for after reveal animation completes */
.skill-card.visible:hover {
  transform: translateY(-4px) !important;
}

.skill-card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-md);
  border-radius: 10px;
  padding: 8px;
  background: rgba(59, 158, 255, 0.08);
}

.skill-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.skill-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.skill-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.skill-card__list li img {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 3px;
  opacity: 0.7;
}

.skills__footer {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: var(--space-xl) auto 0;
  text-align: center;
  line-height: 1.7;
}

/* --- Contact --- */
.contact {
  background: linear-gradient(180deg, transparent 0%, rgba(12, 22, 42, 0.25) 50%, transparent 100%);
}

.contact__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: calc(var(--space-2xl) * -1 + var(--space-md)) auto var(--space-3xl);
  text-align: center;
  line-height: 1.7;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  max-width: 800px;
  margin: 0 auto;
}

.contact__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.contact__card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 15px 45px rgba(0, 60, 180, 0.08);
}

.contact__card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--space-xl);
  color: var(--text-primary);
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact__item-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-bright);
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
}

.contact__item-value {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact__item-value.copyable {
  user-select: all;
  cursor: copy;
}

.contact__community {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.community-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.7rem 1.1rem;
  background: rgba(59, 158, 255, 0.08);
  border: 1px solid rgba(59, 158, 255, 0.15);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
  transition: all 0.4s var(--ease-spring);
}

.community-btn:hover {
  background: rgba(59, 158, 255, 0.15);
  border-color: rgba(59, 158, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 158, 255, 0.15);
}

.community-btn img {
  width: 18px;
  height: 18px;
  transition: transform 0.4s var(--ease-spring);
}

.community-btn:hover img {
  transform: rotate(90deg);
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: var(--space-xl);
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==============================
   RESPONSIVE
   ============================== */

@media (max-width: 1024px) {
  .skills__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
    --space-3xl: 3rem;
    --space-4xl: 4rem;
    --space-5xl: 5rem;
  }

  /* Nav */
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

  /* Hero */
  .hero {
    padding-top: 5rem;
    padding-bottom: 2rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }

  .hero__stats {
    flex-direction: row;
    justify-content: center;
  }

  .hero__stat {
    max-width: 160px;
    min-width: 100px;
    padding: var(--space-md) var(--space-lg);
  }

  .hero__stat-value {
    font-size: 1.4rem;
  }

  /* Featured Project */
  .featured {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-xl);
  }

  .featured__visual {
    display: flex;
    justify-content: center;
  }

  .featured__img-wrap {
    width: 140px;
    height: 140px;
  }

  /* Skills */
  .skills__grid {
    grid-template-columns: 1fr;
  }

  .skills__tagline-box {
    max-width: 100%;
  }

  /* Contact */
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .contact__desc {
    text-align: left;
  }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.85rem;
  }

  .section__title {
    font-size: 1.6rem;
  }

  .featured__name {
    font-size: 1.4rem;
  }

  .featured {
    padding: var(--space-lg);
  }

  .skill-card {
    padding: var(--space-lg);
  }

  .contact__card {
    padding: var(--space-lg);
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .ambient__orb {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}