/* ═══════════════════════════════════════════════════════
   AASHISH SUBEDI PORTFOLIO — STYLESHEET
   Dark Bento Portfolio with White & Gold Light Theme
   ═══════════════════════════════════════════════════════ */

/* ─── CSS CUSTOM PROPERTIES ─────────────────────────── */
:root {
  --bg:           #0c0c0c;
  --bg-card:      #141414;
  --bg-card-2:    #1a1a1a;
  --text:         #f0ede8;
  --text-muted:   #888880;
  --text-dim:     #555550;
  --accent:       #f0ede8;
  --accent-glow:  rgba(240, 237, 232, 0.08);
  --border:       rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.15);
  --pill-bg:      #1e1e1e;
  --pill-text:    #c0bdb8;
  --nav-bg:       rgba(12, 12, 12, 0.85);
  --shadow:       0 4px 24px rgba(0,0,0,0.4);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.6);
  --radius:       20px;
  --radius-sm:    12px;
  --transition:   0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg:           #f4f0e8;
  --bg-card:      #ffffff;
  --bg-card-2:    #f9f6f0;
  --text:         #1a150a;
  --text-muted:   #7a6a50;
  --text-dim:     #b0a080;
  --accent:       #b8860b;
  --accent-glow:  rgba(184, 134, 11, 0.1);
  --border:       rgba(0, 0, 0, 0.07);
  --border-hover: rgba(184, 134, 11, 0.3);
  --pill-bg:      #e8e0cc;
  --pill-text:    #7a6a50;
  --nav-bg:       rgba(244, 240, 232, 0.9);
  --shadow:       0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 40px rgba(184,134,11,0.15);
}

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

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

body {
  font-family: 'Figtree', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

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

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

/* ─── TYPOGRAPHY ─────────────────────────────────────── */
.display {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.02em;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

/* ─── SECTION BASE ───────────────────────────────────── */
.section {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  background: var(--pill-bg);
  color: var(--pill-text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--border);
  margin-bottom: 32px;
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 500px;
  margin: -20px auto 40px;
}

/* ─── NAVBAR ─────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: var(--text);
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav-divider {
  opacity: 0.4;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: color 0.2s;
  text-transform: uppercase;
}

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

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  cursor: pointer;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  transition: all 0.2s;
}

.theme-toggle:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

/* ─── HERO ───────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg-wrap {
  position: absolute;
  inset: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.55);
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero:hover .hero-bg-img {
  transform: scale(1.0);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12,12,12,0.3) 0%,
    rgba(12,12,12,0.05) 40%,
    rgba(12,12,12,0.6) 100%
  );
}

[data-theme="light"] .hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.05) 40%,
    rgba(0,0,0,0.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}
.hero-greeting {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(12px);
  animation: heroFadeUp 0.7s ease 0.2s forwards;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 14vw, 13rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
  margin-bottom: 28px;
}

.hero-line { display: block; }

.hero-word {
  display: block;
  opacity: 0;
  transform: translateY(60px) skewY(4deg);
  animation: heroWordIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-word[data-word-delay="0"]   { animation-delay: 0.4s; }
.hero-word[data-word-delay="200"] { animation-delay: 0.6s; }

@keyframes heroWordIn {
  to { opacity: 1; transform: translateY(0) skewY(0deg); }
}

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-roles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  animation: heroFadeUp 0.7s ease 1s forwards;
}

.hero-role-prefix {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.75rem, 2.5vw, 1.05rem);
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.hero-roles-ticker {
  position: relative;
  height: clamp(1.6rem, 4vw, 2.4rem);
  overflow: hidden;
  border-bottom: 2px solid rgba(255,255,255,0.4);
  min-width: clamp(140px, 30vw, 320px);
}

.ticker-item {
  display: block;
  position: absolute;
  left: 0; top: 0; width: 100%;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  letter-spacing: 0.06em;
  color: #ffffff;
  line-height: 1;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.ticker-item.active { opacity: 1; transform: translateY(0); }
.ticker-item.exit   { opacity: 0; transform: translateY(-100%); }
/* ─── HERO GREETING ──────────────────────────────────── */
.hero-greeting {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.65rem, 2vw, 0.82rem);
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(12px);
  animation: heroFadeUp 0.7s ease 0.2s forwards;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 14vw, 13rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
  margin-bottom: 28px;
}

.hero-line {
  display: block;
}

/* ─── HERO WORD SLIDE-IN ─────────────────────────────── */
.hero-word {
  display: block;
  opacity: 0;
  transform: translateY(60px) skewY(4deg);
  animation: heroWordIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-word[data-word-delay="0"]   { animation-delay: 0.4s; }
.hero-word[data-word-delay="200"] { animation-delay: 0.6s; }

@keyframes heroWordIn {
  to {
    opacity: 1;
    transform: translateY(0) skewY(0deg);
  }
}

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── HERO ROLES TICKER ──────────────────────────────── */
.hero-roles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  animation: heroFadeUp 0.7s ease 1s forwards;
}

.hero-role-prefix {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.75rem, 2.5vw, 1.05rem);
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.hero-roles-ticker {
  position: relative;
  height: clamp(1.6rem, 4vw, 2.4rem);
  overflow: hidden;
  border-bottom: 2px solid rgba(255,255,255,0.4);
  min-width: clamp(140px, 30vw, 320px);
}

.ticker-item {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  letter-spacing: 0.06em;
  color: #ffffff;
  line-height: 1;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16,1,0.3,1);
}

.ticker-item.active {
  opacity: 1;
  transform: translateY(0);
}

.ticker-item.exit {
  opacity: 0;
  transform: translateY(-100%);
}

.hero-bottom {
  position: absolute;
  bottom: 36px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 40px;
}

.hero-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.08em;
}

.scroll-badge {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-text {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.7);
  width: 80px;
  height: 80px;
  animation: rotate 10s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0;
  white-space: nowrap;
  overflow: hidden;
  text-indent: -9999px;
  background-image: conic-gradient(transparent, transparent);
}

.scroll-arrow {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  animation: bounce 2s ease infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ─── BENTO CARD BASE ────────────────────────────────── */
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition), box-shadow var(--transition), transform 0.3s;
  overflow: hidden;
}

.bento-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* ─── ABOUT BENTO ────────────────────────────────────── */
.bento-about {
  display: grid;
  grid-template-columns: 1fr 1fr 1.8fr;
  grid-template-rows: auto auto;
  gap: 12px;
}

.skill-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill-icon {
  font-size: 1.8rem;
}

.skill-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: var(--text);
}

.skill-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.profile-card {
  grid-column: 3;
  grid-row: 1 / 3;
  padding: 0;
  position: relative;
  min-height: 420px;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
}

.profile-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  border-radius: 0 0 var(--radius) var(--radius);
}

.profile-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.profile-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  margin-top: 4px;
  line-height: 1.5;
}

.vibe-card {
  padding: 0;
  position: relative;
  min-height: 200px;
}

.vibe-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.vibe-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  padding: 6px 14px;
  border-radius: 100px;
  letter-spacing: 0.06em;
}

/* ─── SKILLS BARS ────────────────────────────────────── */
.skills-section {
  padding-top: 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 60px;
}

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

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-bar-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text);
}

.skill-bar-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.skill-bar-track {
  height: 3px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 10px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── WORK BENTO ─────────────────────────────────────── */
.bento-work {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  min-height: 480px;
}

.work-card {
  padding: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.work-large {
  grid-row: 1 / 3;
}

.work-img-wrap {
  position: absolute;
  inset: 0;
}

.work-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s ease;
}

.work-card:hover .work-img {
  transform: scale(1.04);
}

.work-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 50%);
}

.work-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

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

.work-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.9);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.15);
}

.work-arrow {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.work-card:hover .work-arrow {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

/* ─── PROCESS ────────────────────────────────────────── */
.process-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.process-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.25s, background 0.25s;
  cursor: default;
}

.process-step:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-2);
}

.step-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: var(--text-dim);
  line-height: 1;
  padding-top: 4px;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step-icon {
  font-size: 1.1rem;
}

.step-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: var(--text);
}

.step-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.process-img-wrap {
  position: sticky;
  top: 100px;
  border-radius: var(--radius);
  overflow: hidden;
  height: 560px;
}

.process-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── SERVICES ───────────────────────────────────────── */
.services-layout {
  max-width: 860px;
  margin: 0 auto;
}

.services-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-item {
  border-bottom: 1px solid var(--border);
  transition: background 0.25s;
}

.service-item:last-child {
  border-bottom: none;
}

.service-header {
  display: grid;
  grid-template-columns: 48px 1fr 32px;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  cursor: pointer;
  background: var(--bg-card);
  transition: background 0.2s;
}

.service-header:hover {
  background: var(--bg-card-2);
}

.service-item.active .service-header {
  background: var(--bg-card-2);
}

.service-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.service-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.service-arrow {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: transform 0.3s;
  text-align: center;
}

.service-item.active .service-arrow {
  transform: rotate(180deg);
}

.service-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: var(--bg-card);
}

.service-item.active .service-body {
  max-height: 400px;
}

.service-inner {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 0 28px 24px;
  padding-left: calc(28px + 48px + 16px);
}

.service-preview {
  width: 140px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.service-desc p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

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

.service-tags span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--border-hover);
  padding: 3px 10px;
  border-radius: 100px;
}

/* ─── CURRENT ROLES ──────────────────────────────────── */
.roles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 0.6fr 0.6fr;
  gap: 12px;
  align-items: start;
}

.role-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--transition), transform 0.3s;
  position: relative;
}

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

.role-icon {
  font-size: 1.8rem;
}

.role-company {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1.2;
}

.role-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.role-location {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--pill-bg);
  color: var(--text-dim);
  border: 1px solid var(--border);
  width: fit-content;
}

.active-badge {
  background: rgba(0, 180, 100, 0.1);
  color: #00b464;
  border-color: rgba(0, 180, 100, 0.2);
}

.active-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00b464;
  display: inline-block;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.role-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  min-height: 120px;
}

.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1.4;
}

/* ─── PHOTOGRAPHY ────────────────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 12px;
}

.photo-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.photo-item.tall {
  grid-row: span 2;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s;
  filter: brightness(0.85);
}

.photo-item:hover img {
  transform: scale(1.05);
  filter: brightness(1);
}

.photo-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.8);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 100px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}

.photo-item:hover .photo-label {
  opacity: 1;
  transform: translateY(0);
}

/* ─── ATHLETICS ──────────────────────────────────────── */
.athletics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.sport-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
  align-items: center;
  transition: border-color var(--transition), transform 0.3s, box-shadow 0.3s;
}

.sport-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.sport-emoji {
  font-size: 2.8rem;
}

.sport-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--text);
}

.sport-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ─── TESTIMONIALS ───────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color var(--transition), transform 0.3s;
}

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

.testimonial-card:nth-child(2) {
  margin-top: 30px;
}

.testimonial-card:nth-child(4) {
  margin-top: -20px;
}

.quote-mark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: var(--text-dim);
  line-height: 1;
}

.testimonial-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.author-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.author-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* ─── FOOTER ─────────────────────────────────────────── */
.footer {
  margin-top: 40px;
}

.footer-cta {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: 0 40px;
}

.footer-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  filter: brightness(0.35);
}

.footer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
}

.footer-cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  color: #ffffff;
  letter-spacing: 0.03em;
  line-height: 0.9;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.5);
  color: rgba(255,255,255,0.9);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 100px;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.footer-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
  color: #fff;
}

.footer-bottom {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 48px 80px;
}

.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-col p, .footer-col a {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.9;
  display: block;
  transition: color 0.2s;
}

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

.footer-copyright {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 80px;
}

.footer-copyright span:first-child {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: var(--text);
}

.footer-copyright span:last-child {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

/* ─── SCROLL ANIMATIONS ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

[data-delay="0"]  { transition-delay: 0ms; }
[data-delay="60"] { transition-delay: 60ms; }
[data-delay="80"] { transition-delay: 80ms; }
[data-delay="100"] { transition-delay: 100ms; }
[data-delay="120"] { transition-delay: 120ms; }
[data-delay="150"] { transition-delay: 150ms; }
[data-delay="160"] { transition-delay: 160ms; }
[data-delay="180"] { transition-delay: 180ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="240"] { transition-delay: 240ms; }
[data-delay="250"] { transition-delay: 250ms; }
[data-delay="300"] { transition-delay: 300ms; }
[data-delay="320"] { transition-delay: 320ms; }
[data-delay="400"] { transition-delay: 400ms; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — Mobile-first, all breakpoints
   1280 → 1024 → 768 → 480 → 360
   ═══════════════════════════════════════════════════════ */

/* ─── 1280px: Large tablet / small desktop ───────────── */
@media (max-width: 1280px) {
  .section { padding: 72px 32px; }

  .bento-work {
    min-height: 420px;
  }

  .roles-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .role-stat { min-height: 100px; }

  .footer-bottom { padding: 40px 48px; gap: 28px; }
  .footer-copyright { padding: 16px 48px; }
}

/* ─── 1024px: Tablet landscape ───────────────────────── */
@media (max-width: 1024px) {
  .section { padding: 64px 28px; }

  /* NAV */
  .navbar { padding: 14px 28px; }
  .nav-center { font-size: 0.7rem; gap: 8px; }

  /* ABOUT BENTO */
  .bento-about {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 10px;
  }
  .profile-card {
    grid-column: 1 / 3;
    grid-row: auto;
    min-height: 340px;
  }
  .vibe-card { grid-column: 1 / 3; min-height: 200px; }

  /* SKILLS */
  .skills-grid { grid-template-columns: 1fr; gap: 16px 0; }

  /* WORK */
  .bento-work {
    grid-template-columns: 1fr 1fr;
    min-height: auto;
    gap: 10px;
  }
  .work-large {
    grid-column: 1 / 3;
    grid-row: auto;
    min-height: 300px;
  }
  .work-card { min-height: 200px; }

  /* PROCESS */
  .process-layout { grid-template-columns: 1fr 1fr; gap: 24px; }
  .process-img-wrap { height: 440px; }

  /* ROLES */
  .roles-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .role-stat { grid-column: span 1; min-height: 100px; }

  /* PHOTO */
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
  }

  /* ATHLETICS */
  .athletics-grid { gap: 10px; }

  /* TESTIMONIALS */
  .testimonials-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .testimonial-card:nth-child(2),
  .testimonial-card:nth-child(4) { margin-top: 0; }

  /* FOOTER */
  .footer-cta { margin: 0 20px; height: 360px; }
  .footer-bottom { padding: 36px 28px; gap: 20px; grid-template-columns: repeat(2, 1fr); }
  .footer-copyright { padding: 16px 28px; }
}

/* ─── 768px: Tablet portrait / large phones ──────────── */
@media (max-width: 768px) {
  :root { --radius: 16px; --radius-sm: 10px; }

  .section { padding: 52px 18px; }
  .section-pill { font-size: 0.65rem; padding: 7px 16px; }
  .section-sub { font-size: 0.9rem; }

  /* NAV */
  .navbar { padding: 12px 18px; }
  .nav-center { display: none; }
  .nav-right { gap: 12px; }
  .nav-link { display: none; }
  .theme-toggle { padding: 6px 12px; font-size: 0.68rem; }
  .nav-logo { font-size: 1.4rem; }

  /* HERO */
  .hero { min-height: 100svh; }
  .hero-greeting { font-size: 0.65rem; margin-bottom: 12px; }
  .hero-title { margin-bottom: 20px; }
  .hero-bottom { padding: 0 18px; bottom: 24px; }
  .scroll-badge { width: 64px; height: 64px; }

  /* ABOUT BENTO */
  .bento-about {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .profile-card {
    grid-column: 1;
    min-height: 280px;
  }
  .vibe-card {
    grid-column: 1;
    min-height: 180px;
  }
  .bento-card { padding: 20px; }
  .skill-title { font-size: 1rem; }
  .skill-desc { font-size: 0.82rem; }

  /* SKILLS */
  .skills-grid { grid-template-columns: 1fr; gap: 14px; }

  /* WORK */
  .bento-work {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 8px;
  }
  .work-large {
    grid-column: 1;
    min-height: 240px;
  }
  .work-card { min-height: 180px; }
  .work-tag { font-size: 0.6rem; }

  /* PROCESS */
  .process-layout { grid-template-columns: 1fr; gap: 8px; }
  .process-img-wrap { display: none; }
  .process-step { grid-template-columns: 44px 1fr; gap: 12px; padding: 16px 18px; }
  .step-number { font-size: 2rem; }
  .step-title { font-size: 1rem; }
  .step-desc { font-size: 0.8rem; }

  /* SERVICES */
  .services-layout { max-width: 100%; }
  .services-accordion { border-radius: var(--radius); }
  .service-header { grid-template-columns: 36px 1fr 28px; padding: 16px 18px; }
  .service-name { font-size: 1.1rem; }
  .service-inner { padding: 0 18px 18px; padding-left: calc(18px + 36px + 12px); flex-direction: column; }
  .service-preview { width: 100%; height: 120px; }

  /* ROLES */
  .roles-grid { grid-template-columns: 1fr; gap: 8px; }
  .role-card { padding: 18px; }
  .role-stat { min-height: 90px; grid-column: 1; }
  .stat-num { font-size: 2.8rem; }

  /* PHOTO */
  .photo-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 170px;
    gap: 8px;
  }
  .photo-item.tall { grid-row: span 1; }
  .photo-label { opacity: 1; transform: translateY(0); font-size: 0.58rem; }

  /* ATHLETICS */
  .athletics-grid { grid-template-columns: 1fr; gap: 8px; }
  .sport-card { padding: 24px 20px; }
  .sport-emoji { font-size: 2.2rem; }
  .sport-name { font-size: 1.2rem; }
  .sport-desc { font-size: 0.82rem; }

  /* TESTIMONIALS */
  .testimonials-grid { grid-template-columns: 1fr; gap: 8px; }
  .testimonial-card:nth-child(2),
  .testimonial-card:nth-child(4) { margin-top: 0; }
  .testimonial-card { padding: 20px; }
  .testimonial-card p { font-size: 0.82rem; }

  /* FOOTER */
  .footer-cta { margin: 0; border-radius: 0; height: 300px; }
  .footer-title { font-size: clamp(2rem, 9vw, 3.5rem); }
  .footer-bottom { grid-template-columns: 1fr 1fr; padding: 28px 18px; gap: 20px; }
  .footer-copyright { padding: 14px 18px; flex-direction: column; gap: 6px; text-align: center; }
}

/* ─── 480px: Most smartphones ────────────────────────── */
@media (max-width: 480px) {
  :root { --radius: 14px; --radius-sm: 9px; }

  .section { padding: 44px 14px; }

  /* NAV */
  .navbar { padding: 10px 14px; }
  .nav-logo { font-size: 1.25rem; }
  .theme-toggle .toggle-label { display: none; }
  .theme-toggle { padding: 6px 10px; }

  /* HERO */
  .hero-roles { flex-direction: column; gap: 4px; align-items: center; }
  .hero-role-prefix { font-size: 0.7rem; }
  .hero-roles-ticker { min-width: 180px; }
  .hero-bottom { bottom: 18px; }
  .scroll-badge { width: 56px; height: 56px; }

  /* ABOUT */
  .bento-card { padding: 16px; }
  .skill-icon { font-size: 1.4rem; }
  .profile-card { min-height: 240px; }
  .profile-name { font-size: 1.4rem; }
  .profile-tagline { font-size: 0.75rem; }

  /* SKILLS */
  .skill-bar-name { font-size: 0.72rem; }
  .skill-bar-val { font-size: 0.68rem; }

  /* WORK */
  .work-large { min-height: 200px; }
  .work-card { min-height: 160px; }
  .work-info { bottom: 14px; left: 14px; right: 14px; }

  /* PROCESS */
  .process-step { padding: 14px 14px; }
  .step-number { font-size: 1.7rem; }

  /* SERVICES */
  .service-header { padding: 14px 14px; }
  .service-name { font-size: 1rem; }
  .service-inner { padding: 0 14px 14px; padding-left: 14px; }

  /* ROLES */
  .role-card { padding: 16px; }
  .role-company { font-size: 0.9rem; }
  .role-title { font-size: 0.75rem; }
  .stat-num { font-size: 2.4rem; }
  .stat-label { font-size: 0.6rem; }

  /* PHOTO */
  .photo-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
    gap: 8px;
  }
  .photo-item.tall { grid-row: span 1; }

  /* ATHLETICS */
  .sport-card { padding: 20px 16px; }

  /* TESTIMONIALS */
  .testimonial-card { padding: 16px; }
  .quote-mark { font-size: 2.4rem; }
  .testimonial-card p { font-size: 0.8rem; }

  /* FOOTER */
  .footer-cta { height: 260px; }
  .footer-btn { font-size: 0.68rem; padding: 10px 20px; }
  .footer-bottom { grid-template-columns: 1fr; gap: 24px; padding: 24px 14px; }
  .footer-col h4 { margin-bottom: 10px; }
  .footer-col p, .footer-col a { line-height: 1.7; font-size: 0.8rem; }
  .footer-copyright { padding: 12px 14px; }
}

/* ─── 360px: Very small phones ───────────────────────── */
@media (max-width: 360px) {
  .section { padding: 36px 12px; }
  .navbar { padding: 10px 12px; }
  .hero-title { line-height: 0.85; }
  .hero-roles { gap: 3px; }
  .bento-card { padding: 14px; border-radius: var(--radius); }
  .process-step { grid-template-columns: 36px 1fr; gap: 10px; }
  .step-number { font-size: 1.4rem; }
  .service-header { grid-template-columns: 30px 1fr 24px; gap: 10px; padding: 12px; }
  .footer-bottom { padding: 20px 12px; }
}

/* ─── Safe area support (iPhone notch) ───────────────── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .footer-copyright {
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }
}
