/* ============================================================
   Juan Carlos Cattaneo — Portfolio
   Modern redesign 2026
============================================================ */

/* ===========================
   Custom Properties
=========================== */
:root {
  --bg:            #080808;
  --surface:       #101010;
  --card:          #161616;
  --card-hover:    #1d1d1d;
  --border:        rgba(255, 255, 255, 0.07);
  --border-hover:  rgba(255, 255, 255, 0.14);

  --accent:        #0d9488;
  --accent-light:  #2dd4bf;
  --accent-2:      #f59e0b;
  --gradient:      linear-gradient(135deg, #0d9488 0%, #f59e0b 100%);

  --text:          #f0f0f0;
  --text-muted:    #888;
  --text-subtle:   #444;

  --font:          'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display:  'Plus Jakarta Sans', sans-serif;

  --radius:        12px;
  --radius-lg:     20px;
  --radius-xl:     28px;

  --shadow:        0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg:     0 12px 48px rgba(0, 0, 0, 0.7);
  --glow:          0 0 48px rgba(13, 148, 136, 0.18);

  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --t:             0.3s;
  --t-slow:        0.65s;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

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

ul {
  list-style: none;
}

/* ===========================
   Layout Utilities
=========================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

.container-narrow {
  max-width: 680px;
  text-align: center;
}

.section {
  padding: 110px 0;
}

.section-alt {
  background: var(--surface);
}

/* ===========================
   Typography
=========================== */
h1, h2 {
  font-family: var(--font-display);
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.75;
  margin-bottom: 52px;
}

.container-narrow .section-sub {
  margin-left: auto;
  margin-right: auto;
}

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

/* ===========================
   Buttons
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--t) var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.82;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(13, 148, 136, 0.38);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--card);
  color: var(--text);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

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

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

/* ===========================
   Navigation
=========================== */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  transition: all var(--t) var(--ease);
}

#nav.scrolled {
  background: rgba(8, 8, 8, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 14px 40px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--t) var(--ease);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gradient);
  transition: width var(--t) var(--ease);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 102;
  touch-action: manipulation;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--t) var(--ease);
  transform-origin: center;
}

/* Animate to X when open */
#nav.open .nav-hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#nav.open .nav-hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#nav.open .nav-hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 8, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  padding: 0;
  margin: 0;
}

.mobile-menu-links a {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color var(--t) var(--ease);
}

.mobile-menu-links a:hover {
  color: var(--accent-light);
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  touch-action: manipulation;
}

.mobile-menu-close span {
  display: block;
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.mobile-menu-close span:nth-child(1) { transform: rotate(45deg); }
.mobile-menu-close span:nth-child(2) { transform: rotate(-45deg); }

/* ===========================
   Hero
=========================== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Aurora background */
.aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
}

.blob-1 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, #0d9488 0%, transparent 70%);
  top: -150px;
  left: -100px;
  animation: drift-1 14s ease-in-out infinite alternate;
}

.blob-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #f59e0b 0%, transparent 70%);
  bottom: -120px;
  right: -80px;
  animation: drift-2 16s ease-in-out infinite alternate;
}

@keyframes drift-1 {
  0%   { transform: translate(0px, 0px) scale(1); }
  100% { transform: translate(70px, 50px) scale(1.12); }
}

@keyframes drift-2 {
  0%   { transform: translate(0px, 0px) scale(1); }
  100% { transform: translate(-60px, -40px) scale(1.08); }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
}

.hero-greeting {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  animation: fade-up 0.9s 0.1s var(--ease) both;
}

.hero-name {
  font-size: clamp(2.8rem, 9vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin-bottom: 20px;
  animation: fade-up 0.9s 0.2s var(--ease) both;
}

.hero-title {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 44px;
  letter-spacing: 0.015em;
  animation: fade-up 0.9s 0.3s var(--ease) both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fade-up 0.9s 0.4s var(--ease) both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll hint line */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: fade-up 1s 0.8s var(--ease) both;
}

.scroll-hint span {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  margin: 0 auto;
  animation: pulse-line 2.2s ease-in-out infinite;
}

@keyframes pulse-line {
  0%, 100% { opacity: 0.25; transform: scaleY(0.5) translateY(-8px); }
  50%       { opacity: 0.8;  transform: scaleY(1)   translateY(0); }
}

/* ===========================
   About
=========================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 24px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.82;
  font-size: 1.02rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.photo-wrapper {
  width: 260px;
  height: 310px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), var(--glow);
  flex-shrink: 0;
}

.photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--t-slow) var(--ease);
}

.photo-wrapper:hover img {
  transform: scale(1.04);
}

/* ===========================
   Skills
=========================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: all var(--t) var(--ease);
  cursor: default;
}

.skill-card:hover {
  background: var(--card-hover);
  border-color: rgba(13, 148, 136, 0.3);
  transform: translateY(-5px);
  box-shadow: var(--shadow), 0 0 24px rgba(13, 148, 136, 0.1);
}

.skill-card i {
  font-size: 1.7rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skill-card span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ===========================
   Projects
=========================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--t) var(--ease);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: rgba(13, 148, 136, 0.35);
  transform: translateY(-7px);
  box-shadow: var(--shadow), 0 0 32px rgba(13, 148, 136, 0.12);
}

.project-img {
  width: 100%;
  height: 178px;
  overflow: hidden;
  background: var(--surface);
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--t-slow) var(--ease);
}

.project-img--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.12), rgba(245, 158, 11, 0.08));
  border-bottom: 1px solid var(--border);
}

.project-img--icon i {
  font-size: 3rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

.project-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.project-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.project-tags span {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.1);
  color: var(--accent-light);
  border: 1px solid rgba(13, 148, 136, 0.2);
  letter-spacing: 0.01em;
}

.project-link {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--accent-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--t) var(--ease), opacity var(--t) var(--ease);
}

.project-link:hover {
  gap: 10px;
  opacity: 0.8;
}

.projects-note {
  font-size: 0.78rem;
  color: var(--text-subtle);
  margin-top: 28px;
  text-align: center;
}

/* ===========================
   Game
=========================== */
.game-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.game-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 0.85rem;
  font-weight: 500;
}

.game-stat strong {
  color: var(--accent-light);
  margin-left: 6px;
}

#game-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 640 / 300;
  background: var(--bg);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  cursor: pointer;
  touch-action: none;
}

.game-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

.game-hint {
  font-size: 0.8rem;
  color: var(--accent-light);
  font-weight: 500;
}

.game-hint kbd {
  background: var(--surface);
  border: 1px solid var(--border-hover);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.75rem;
  font-family: var(--font);
}

.game-controls-hint {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.game-result {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.25);
  border-top: none;
  font-size: 0.875rem;
  flex-wrap: wrap;
}

.game-result.visible {
  display: flex;
}

.game-result-text {
  color: var(--text-muted);
}

.game-result-text strong {
  color: var(--accent-light);
}

.game-result-replay {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
  background: rgba(13, 148, 136, 0.12);
  border: 1px solid rgba(13, 148, 136, 0.3);
  border-radius: 999px;
  padding: 5px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--t) var(--ease);
}

.game-result-replay:hover {
  background: rgba(13, 148, 136, 0.25);
}

.game-mobile-btns {
  display: none;
  gap: 8px;
  margin-top: 8px;
}

.game-btn {
  flex: 1;
  height: 90px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border-hover);
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.game-btn:active,
.game-btn.pressed {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

@media (hover: none), (max-width: 768px) {
  .game-mobile-btns {
    display: flex;
  }

  .game-controls-hint {
    display: none;
  }
}

/* ===========================
   Resume
=========================== */
.resume-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 52px;
}

.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.resume-col-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.resume-col-title i {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.resume-item {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.resume-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.resume-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.resume-item-header h4 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.resume-company {
  font-size: 0.82rem;
  color: var(--accent-light);
  font-weight: 500;
}

.resume-note {
  color: var(--text-subtle);
  font-weight: 400;
  font-size: 0.78rem;
}

.resume-date {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-subtle);
  white-space: nowrap;
  padding-top: 2px;
}

.resume-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resume-bullets li {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  padding-left: 14px;
  position: relative;
}

.resume-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-light);
}

.resume-skills {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.resume-skills-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resume-skill-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  font-size: 0.85rem;
  line-height: 1.6;
}

.resume-skill-row strong {
  color: var(--text-muted);
  font-weight: 600;
}

.resume-skill-row span {
  color: var(--text-muted);
}

/* ===========================
   Contact
=========================== */
.contact-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ===========================
   Bug Score (Contact)
=========================== */
.bug-score {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-top: 36px;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: border-color var(--t) var(--ease);
}

.bug-score.has-score {
  border-color: rgba(13, 148, 136, 0.3);
}

.bug-score-emoji {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.bug-score-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 1;
  flex-wrap: wrap;
}

.bug-score-text {
  flex: 1;
  min-width: 0;
}

.bug-score-text strong {
  color: var(--accent-light);
}

.bug-score-text em {
  color: var(--text-muted);
  font-style: normal;
}

.bug-score-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.25);
  border-radius: 999px;
  padding: 5px 14px;
  white-space: nowrap;
  transition: all var(--t) var(--ease);
  flex-shrink: 0;
}

.bug-score-btn:hover {
  background: rgba(13, 148, 136, 0.2);
  border-color: rgba(13, 148, 136, 0.5);
}

/* ===========================
   Footer
=========================== */
#footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

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

.footer-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: all var(--t) var(--ease);
}

.social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
}

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

/* ===========================
   Scroll Reveal
=========================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity   0.75s var(--ease),
    transform 0.75s var(--ease);
}

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

.projects-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.projects-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.projects-grid .reveal:nth-child(4) { transition-delay: 0.04s; }
.projects-grid .reveal:nth-child(5) { transition-delay: 0.12s; }
.projects-grid .reveal:nth-child(6) { transition-delay: 0.20s; }

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

  .resume-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .resume-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .resume-item-header {
    flex-direction: column;
    gap: 4px;
  }

  .resume-date {
    order: -1;
    font-size: 0.72rem;
    color: var(--accent-light);
    opacity: 0.7;
  }

  .resume-bullets li {
    font-size: 0.82rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .about-photo {
    display: flex;
    justify-content: center;
    order: -1;
  }

  .about-text {
    text-align: center;
  }

  .section-sub {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ===========================
   Responsive — Mobile
=========================== */
@media (max-width: 900px) {
  #nav {
    padding: 14px 20px;
  }

  #nav.scrolled {
    padding: 12px 20px;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  #nav.open {
    background: rgba(8, 8, 8, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
  }

  .section {
    padding: 80px 0;
  }

  .container {
    padding: 0 20px;
  }

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

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-wrapper {
    width: 220px;
    height: 260px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .blob-1 {
    width: 360px;
    height: 360px;
  }

  .blob-2 {
    width: 300px;
    height: 300px;
  }
}
