/* ============================================================
   RYDER REID PORTFOLIO — style.css
   Pastel glassmorphism · Syne display · Inter body
   ============================================================ */

/* ── CUSTOM PROPERTIES ─────────────────────────────────────── */
:root {
  /* Pastel palette */
  --mint:       #A8E6CF;
  --mint-dim:   #7dd4b0;
  --sky:        #87CEEB;
  --sky-dim:    #5ab8e0;
  --butter:     #FFF3A3;
  --butter-dim: #f0e055;
  --lavender:   #C9B8FF;
  --lavender-dim: #a890f5;
  --seafoam:    #B2EBE0;

  /* Dark base */
  --bg:         #FAF7F2;
  --bg-2:       #F3EFE8;
  --bg-3:       #EDE7DC;
  --surface:    rgba(0, 0, 0, 0.04);
  --surface-hov: rgba(0, 0, 0, 0.07);

  /* Glass */
  --glass-bg:     rgba(255, 255, 255, 0.55);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-blur:   blur(16px);

  /* Text */
  --text-primary:   #1a1a2e;
  --text-secondary: #5a5a7a;
  --text-muted:     #9a9ab0;

  /* Type */
  --font-display: 'Syne', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Spacing */
  --section-pad: clamp(80px, 12vw, 140px);
  --container:   1200px;
  --radius:      16px;
  --radius-sm:   10px;
  --radius-lg:   24px;

  /* Animation */
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:    160ms;
  --dur-mid:     320ms;
  --dur-slow:    500ms;

  /* Nav */
  --nav-h: 72px;
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

@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;
  }
}

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

/* ── PARTICLES CANVAS ───────────────────────────────────────── */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

/* ── SKIP LINK ──────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--mint-dim);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
  transition: top var(--dur-fast);
}
.skip-link:focus { top: 16px; }

/* ── NAVIGATION ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(250, 247, 242, 0.80);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--dur-mid) var(--ease),
              box-shadow var(--dur-mid) var(--ease);
}
.site-header.scrolled {
  background: rgba(250, 247, 242, 0.96);
  box-shadow: 0 4px 32px rgba(0,0,0,0.08);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--dur-fast);
}
.nav-logo:hover { color: var(--mint); }
.logo-bracket {
  color: var(--mint);
  opacity: 0.8;
}

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

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  transition: color var(--dur-fast), background var(--dur-fast);
  letter-spacing: 0.01em;
}
.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--surface-hov);
}
.nav-link.active { color: var(--mint-dim); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--dur-mid) var(--ease), opacity var(--dur-fast);
}

/* ── GLASS CARD ─────────────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: transform var(--dur-mid) var(--ease-spring),
              box-shadow var(--dur-mid) var(--ease),
              border-color var(--dur-mid) var(--ease);
}
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
  border-color: rgba(100, 180, 140, 0.35);
}

/* ── CONTAINER ──────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
  position: relative;
  z-index: 1;
}

/* ── SECTIONS ───────────────────────────────────────────────── */
.section {
  padding: var(--section-pad) 0;
  position: relative;
  z-index: 1;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: #3a9a70;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.9;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: clamp(40px, 6vw, 70px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ── HOME ───────────────────────────────────────────────────── */
.section--home {
  min-height: 100vh;
  padding-top: var(--nav-h);
padding-bottom: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow */
.section--home::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(168,230,207,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.home-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 24px;
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  margin-bottom: 28px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  background: var(--mint);
  border-radius: 50%;
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.home-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--mint-dim) 70%, var(--sky-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-role {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.5vw, 1.375rem);
  color: var(--text-secondary);
  margin-bottom: 28px;
  min-height: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.role-prefix { color: var(--text-muted); }

.typed-text {
  color: var(--sky);
  font-weight: 500;
}

.typed-cursor {
  color: var(--mint);
  font-weight: 300;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.home-bio {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 40px;
}

.home-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Floating badges */
.home-badges {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.badge {
  position: absolute;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 100px;
  animation: float-badge linear infinite;
}
.badge--1 {
  top: 22%;
  left: 8%;
  animation-duration: 7s;
  animation-delay: 0s;
  border-color: rgba(168,230,207,0.3);
}
.badge--2 {
  top: 40%;
  right: 7%;
  animation-duration: 9s;
  animation-delay: 1.5s;
  border-color: rgba(135,206,235,0.3);
}
.badge--3 {
  bottom: 28%;
  left: 10%;
  animation-duration: 8s;
  animation-delay: 0.8s;
  border-color: rgba(255,243,163,0.3);
}
.badge--4 {
  bottom: 22%;
  right: 8%;
  animation-duration: 10s;
  animation-delay: 2s;
  border-color: rgba(201,184,255,0.3);
}

@keyframes float-badge {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  33% { transform: translateY(-10px) rotate(1deg); }
  66% { transform: translateY(6px) rotate(-0.5deg); }
}

@media (max-width: 768px) {
  .home-badges { display: none; }
}

/* Scroll hint */
.home-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--mint-dim), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.scroll-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--dur-mid) var(--ease-spring);
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, var(--mint-dim), var(--sky-dim));
  color: #ffffff;
  border-color: transparent;
}
.btn--primary:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 28px rgba(100,180,150,0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--glass-border);
}
.btn--ghost:hover {
  background: var(--surface-hov);
  border-color: rgba(168,230,207,0.4);
  color: var(--mint);
  transform: translateY(-2px);
}

.btn--full { width: 100%; }

/* ── ABOUT ──────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 0.975rem;
  line-height: 1.75;
}
.about-text p:first-child { color: var(--text-primary); font-size: 1.05rem; }
.about-text strong { color: #3a9a70; font-weight: 600; }

.about-facts {
  display: flex;
  gap: 24px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.fact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fact-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}
.fact-value.mint { color: #3a9a70; }
.fact-value.sky { color: #3080b0; }
.fact-value.butter { color: #a08010; }

.fact-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.about-avatar {
  position: relative;
  width: 100px;
  height: 100px;
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mint), var(--sky), var(--lavender));
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-initials {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: #0D1117;
}

.avatar-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(var(--bg), var(--bg)) padding-box,
              linear-gradient(135deg, var(--mint), var(--sky), var(--lavender)) border-box;
  animation: spin-ring 8s linear infinite;
}
.avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
@keyframes spin-ring {
  to { transform: rotate(360deg); }
}

.about-card-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.about-card-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.about-card-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.about-card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.about-stat-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.stat-num.mint { color: #3a9a70; }
.stat-num.sky { color: #3080b0; }

.stat-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ── TAGS ───────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tag--mint    { background: rgba(100,190,150,0.15); color: #3a9a70; border: 1px solid rgba(100,190,150,0.3); }
.tag--sky     { background: rgba(80,160,210,0.12); color: #3080b0; border: 1px solid rgba(80,160,210,0.25); }
.tag--butter  { background: rgba(200,170,40,0.12); color: #a08010; border: 1px solid rgba(200,170,40,0.25); }
.tag--lavender{ background: rgba(150,120,230,0.12); color: #7050c0; border: 1px solid rgba(150,120,230,0.25); }

/* ── SKILLS ─────────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.skill-category {
  padding: 28px 24px;
}

.skill-cat-icon {
  font-size: 1.75rem;
  margin-bottom: 14px;
  display: block;
}

.skill-cat-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.skill-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

.skill-bar {
  height: 5px;
  background: rgba(0,0,0,0.08);
  border-radius: 3px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  border-radius: 3px;
  transition: width 1.2s var(--ease) 0.3s;
}
.skill-fill.mint     { background: linear-gradient(90deg, var(--mint-dim), var(--mint)); }
.skill-fill.sky      { background: linear-gradient(90deg, var(--sky-dim), var(--sky)); }
.skill-fill.butter   { background: linear-gradient(90deg, var(--butter-dim), var(--butter)); }
.skill-fill.lavender { background: linear-gradient(90deg, var(--lavender-dim), var(--lavender)); }

.skill-fill.animated { width: var(--pct); }

/* Tech chips row */
.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tech-chip {
  padding: 8px 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 100px;
  cursor: default;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.tech-chip:hover {
  color: #3a9a70;
  border-color: rgba(100,190,150,0.4);
}

/* ── PROJECTS ───────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  letter-spacing: 0.02em;
}
.filter-btn:hover {
  color: var(--text-primary);
  background: var(--surface-hov);
}
.filter-btn.active {
  background: linear-gradient(135deg, rgba(100,190,150,0.2), rgba(80,160,210,0.2));
  color: #3a9a70;
  border-color: rgba(100,190,150,0.4);
}
.filter-btn:focus-visible {
  outline: 2px solid var(--mint-dim);
  outline-offset: 2px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--dur-mid) var(--ease-spring),
              opacity var(--dur-mid) var(--ease),
              box-shadow var(--dur-mid) var(--ease);
}
.project-card.hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

.project-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.project-icon {
  font-size: 1.75rem;
  line-height: 1;
}

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

.project-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  flex-grow: 1;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mono-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 9px;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 6px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.project-links {
  display: flex;
  gap: 16px;
  margin-top: auto;
}

.project-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: #3080b0;
  text-decoration: none;
  transition: color var(--dur-fast), gap var(--dur-fast);
  letter-spacing: 0.02em;
}
.project-link:hover { color: #3a9a70; }

/* ── TIMELINE ───────────────────────────────────────────────── */
.timeline {
  list-style: none;
  position: relative;
  padding: 0;
}

/* Center line */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom,
    transparent,
    rgba(100,190,150,0.4) 10%,
    rgba(100,190,150,0.4) 90%,
    transparent
  );
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0 32px;
  margin-bottom: 48px;
  align-items: start;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--mint-dim);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--mint-dim);
  align-self: 20px;
  margin-top: 20px;
  position: relative;
  z-index: 2;
  transition: transform var(--dur-mid) var(--ease-spring);
}
.timeline-dot--pulse {
  animation: pulse-timeline 2s ease-in-out infinite;
}
@keyframes pulse-timeline {
  0%, 100% { box-shadow: 0 0 0 2px var(--mint-dim); }
  50% { box-shadow: 0 0 0 8px rgba(100,190,150,0.15); }
}

.timeline-card {
  padding: 24px;
  position: relative;
}

.timeline-card--active {
  border-color: rgba(100,190,150,0.35);
  background: rgba(100,190,150,0.06);
}

/* Alternate sides */
.timeline-item[data-side="left"] .timeline-card {
  grid-column: 1;
  grid-row: 1;
  text-align: right;
}
.timeline-item[data-side="left"] .timeline-dot {
  grid-column: 2;
  grid-row: 1;
}
.timeline-item[data-side="left"] .timeline-card + * {
  grid-column: 3;
}

.timeline-item[data-side="right"] .timeline-card {
  grid-column: 3;
  grid-row: 1;
}
.timeline-item[data-side="right"] .timeline-dot {
  grid-column: 2;
  grid-row: 1;
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 8px;
}
.timeline-year.mint     { color: #3a9a70; }
.timeline-year.sky      { color: #3080b0; }
.timeline-year.butter   { color: #a08010; }
.timeline-year.lavender { color: #7050c0; }

.timeline-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.timeline-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.timeline-item[data-side="left"] .timeline-tags {
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .timeline::before { left: 20px; }
  .timeline-item {
    grid-template-columns: auto 1fr;
    gap: 0 20px;
  }
  .timeline-item[data-side="left"] .timeline-card,
  .timeline-item[data-side="right"] .timeline-card {
    grid-column: 2;
    text-align: left;
  }
  .timeline-item[data-side="left"] .timeline-dot,
  .timeline-item[data-side="right"] .timeline-dot {
    grid-column: 1;
  }
  .timeline-item[data-side="left"] .timeline-tags,
  .timeline-item[data-side="right"] .timeline-tags {
    justify-content: flex-start;
  }
}

/* ── CONTACT ────────────────────────────────────────────────── */
.section--contact {
  position: relative;
}
.section--contact::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(80,160,210,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.contact-intro {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.75;
}

/* ── SOCIALS GRID ───────────────────────────────────────────── */
.socials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  max-width: 860px;
}

.social-card {
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.social-card--location {
  cursor: default;
}
.social-card--location:hover {
  transform: none;
}

.social-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.04);
  border-radius: 12px;
}

.social-details {
  flex: 1;
  min-width: 0;
}

.social-platform {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.social-handle {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-arrow {
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: color var(--dur-fast), transform var(--dur-fast);
  flex-shrink: 0;
}

.social-card:hover .social-arrow {
  color: #3a9a70;
  transform: translateX(3px);
}

.social-card:hover .social-handle {
  color: #3a9a70;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 32px 0;
  border-top: 1px solid var(--glass-border);
}

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

.footer-copy,
.footer-made {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
.footer-made span { color: #ff8080; }

/* ── BACK TO TOP ────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 50;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-mid) var(--ease),
              transform var(--dur-mid) var(--ease-spring),
              background var(--dur-fast);
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: rgba(100,190,150,0.2);
  border-color: rgba(100,190,150,0.4);
  color: #3a9a70;
}

/* ── REVEAL ANIMATION ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s var(--ease),
              transform 0.65s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── FOCUS STYLES ───────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--mint-dim);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: rgba(100,190,150,0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(100,190,150,0.5); }

/* ── SELECTION ──────────────────────────────────────────────── */
::selection {
  background: rgba(168,230,207,0.35);
  color: var(--text-primary);
}

/* ── RESPONSIVE NAV ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(250, 247, 242, 0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform var(--dur-mid) var(--ease),
                opacity var(--dur-mid) var(--ease);
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 14px 18px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .contact-form { padding: 24px 20px; }
}

@media (max-width: 480px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .about-stat-cards {
    grid-template-columns: 1fr 1fr;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
}


/* ══════════════════════════════════════════════════════════════
   ADDITIONS — icons, certs, skills polish, slideshow
   ══════════════════════════════════════════════════════════════ */

/* ── SECTION INTRO ──────────────────────────────────────────── */
.section-intro {
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 52px;
  line-height: 1.75;
  font-size: 1.02rem;
}
.section-intro code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: rgba(0,0,0,0.06);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ── SKILL CATEGORY CARD — tighter, more human ──────────────── */
.skill-cat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--text-muted);
}

/* Remove the rigid box on the skill card, keep it lighter */
.skill-category.glass-card {
  background: rgba(255,255,255,0.45);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  padding: 28px 24px 24px;
}

.skill-cat-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Skill bar — thinner track, rounder fill */
.skill-bar {
  height: 3px;
  background: rgba(0,0,0,0.07);
  border-radius: 99px;
  overflow: hidden;
}

.skill-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ── CERTIFICATIONS — horizontal layout, no icon boxes ──────── */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.cert-card {
  padding: 24px 22px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease);
  position: relative;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--glass-border);
}

.cert-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.07);
}

.cert-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.cert-icon--mint    { background: rgba(168,230,207,0.15); color: var(--mint-dim); }
.cert-icon--sky     { background: rgba(135,206,235,0.15); color: var(--sky-dim); }
.cert-icon--butter  { background: rgba(255,243,163,0.2);  color: #a08010; }
.cert-icon--lavender{ background: rgba(201,184,255,0.15); color: var(--lavender-dim); }

.cert-body { flex: 1; }

.cert-issuer {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.cert-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.cert-date {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.cert-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 16px;
}

/* smaller tags inside cert cards */
.cert-skills .tag {
  font-size: 0.66rem;
  padding: 3px 8px;
  border-radius: 99px;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mint-dim);
  background: rgba(168,230,207,0.12);
  border: 1px solid rgba(168,230,207,0.25);
  border-radius: 99px;
  padding: 4px 10px;
  align-self: flex-start;
  width: fit-content;
}

.cert-badge--gold {
  color: #a08010;
  background: rgba(255,243,163,0.18);
  border-color: rgba(240,224,85,0.35);
}

/* ── PHOTOGRAPHY SECTION ─────────────────────────────────────── */
.section--photography {
  padding-bottom: 0;
  overflow: hidden;
}

/* ── SLIDESHOW ──────────────────────────────────────────────── */
.slideshow {
  position: relative;
  width: 100%;
  /* full-bleed from container */
  margin-top: 16px;
  user-select: none;
}

.slideshow-track {
  display: flex;
  gap: 20px;
  overflow-x: hidden;
  /* Peek: show 2.2 slides on desktop */
  padding: 0 max(calc((100vw - 1200px)/2), 24px) 60px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide {
  flex: 0 0 calc(60vw - 32px);
  max-width: 720px;
  min-width: 280px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--glass-border);
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  opacity: 0.55;
  transform: scale(0.97);
  cursor: pointer;
}

.slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.slide-img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-3);
}

.slide-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.slide:hover .slide-img-wrap img {
  transform: scale(1.03);
}

.slide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  background: var(--bg-3);
  min-height: 220px;
}

.slide-placeholder svg { opacity: 0.35; }
.slide-placeholder span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.55;
}

.slide-caption {
  padding: 16px 20px 20px;
}

.slide-cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.slide-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Arrow buttons */
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 30px));
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: background var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease-spring);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.slide-btn:hover {
  background: white;
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
  transform: translateY(calc(-50% - 30px)) scale(1.08);
}

.slide-btn--prev { left: max(calc((100vw - 1200px)/2 - 60px), 8px); }
.slide-btn--next { right: max(calc((100vw - 1200px)/2 - 60px), 8px); }

/* Dot indicators */
.slide-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-bottom: 48px;
}

.slide-dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--text-muted);
  opacity: 0.3;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, width 0.2s, background 0.2s;
  padding: 0;
}

.slide-dot.is-active {
  width: 22px;
  opacity: 1;
  background: var(--mint-dim);
}

/* ── PROJECT ICON & SOCIAL ICON SVG sizing ───────────────────── */
.project-icon svg, .social-icon svg, .badge svg { flex-shrink: 0; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .slide {
    flex: 0 0 calc(80vw - 32px);
  }
}

@media (max-width: 600px) {
  .slide {
    flex: 0 0 calc(92vw - 32px);
  }
  .slide-btn--prev { left: 8px; }
  .slide-btn--next { right: 8px; }
  .certs-grid { grid-template-columns: 1fr; }
}

.avatar-ring {
  padding: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
/* ── RESUME CARD ─────────────────────────────────────────────── */
.social-card--resume {
  background: linear-gradient(135deg, rgba(168,230,207,0.15), rgba(135,206,235,0.1));
  border-color: rgba(100,190,150,0.25);
}

.social-card--resume:hover {
  background: linear-gradient(135deg, rgba(168,230,207,0.28), rgba(135,206,235,0.18));
  border-color: rgba(100,190,150,0.45);
}

.social-card--resume .social-icon {
  background: linear-gradient(135deg, rgba(168,230,207,0.35), rgba(135,206,235,0.25));
  color: #3a9a70;
}

.social-card--resume .social-platform { color: #3a9a70; }

.social-card--resume .social-handle {
  font-weight: 600;
  color: #3a9a70;
}

.resume-download-icon {
  color: #3a9a70;
  display: flex;
  align-items: center;
  transition: transform var(--dur-fast);
}

.social-card--resume:hover .resume-download-icon {
  transform: translateY(3px);
}
