/* ════════════════════════════════════════════════════════════
   SOUVIK DEB — PORTFOLIO
   Dark warm editorial system · DM Serif Display + Plus Jakarta Sans
════════════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --bg:           #0D0C0A;
  --bg-elevated:  #161411;
  --bg-card:      #1C1A17;
  --bg-inset:     #232018;
  --text:         #EDE9DF;
  --text-mid:     #8B8680;
  --text-dim:     #4B4844;
  --accent:       #FF5C2B;
  --accent-rgb:   255, 92, 43;
  --accent-dim:   rgba(255, 92, 43, 0.12);
  --green:        #22C55E;
  --border:       #252220;
  --border-mid:   #302D28;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font:         'Plus Jakarta Sans', system-ui, sans-serif;
  --nav-h:        68px;
  --radius:       16px;
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: none; background: none; cursor: none; font-family: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

/* ── Grain Texture ── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── Scroll Progress ── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 10000;
  pointer-events: none;
}

/* ── Loader ── */
.loader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-inner { text-align: center; }
.loader-avatar {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin: 0 auto 24px;
  border: 1px solid var(--border-mid);
}
.loader-bar-track {
  width: 200px;
  height: 1px;
  background: var(--border-mid);
  border-radius: 99px;
  overflow: hidden;
  margin: 0 auto;
}
.loader-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.05s linear;
}

/* ── Custom Cursor ── */
.cursor {
  position: fixed;
  top: -100px; left: -100px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--text);
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.25s;
}
.cursor.hovered { width: 52px; height: 52px; }
.cursor.clicked { width: 8px; height: 8px; }
@media (hover: none) {
  .cursor { display: none; }
  body, button { cursor: auto; }
  a, button { cursor: pointer; }
}

/* ── Nav ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(13, 12, 10, 0.78);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-mid);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
  flex-shrink: 0;
}
.nav-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.nav-logo:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-mid);
  position: relative;
  transition: color 0.25s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}
.nav-link:hover,
.nav-link.active { color: var(--text); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 30px;
  padding: 4px;
}
.menu-line {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 99px;
  transition: transform 0.35s var(--ease), opacity 0.3s;
}
.nav-menu-btn.open .menu-line:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-menu-btn.open .menu-line:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

/* ── Mobile Menu ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 32px 48px;
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu ul {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.mobile-link {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 11vw, 4.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.25s, padding-left 0.35s var(--ease);
}
.mobile-link:hover {
  color: var(--accent);
  padding-left: 12px;
}
.mobile-footer { display: flex; gap: 24px; }
.mobile-footer a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color 0.2s;
}
.mobile-footer a:hover { color: var(--accent); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 70px) 0 90px;
}
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

/* Eyebrow */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 26px;
  opacity: 0;
}
.eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--border-mid);
  flex-shrink: 0;
}
.eyebrow-sep { color: var(--accent); }

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 4px;
  padding: 6px 12px;
  margin-bottom: 38px;
  opacity: 0;
  background: rgba(var(--accent-rgb), 0.06);
}
.badge-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  flex-shrink: 0;
}
.badge-pulse::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.25);
  animation: pulse 2.5s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Hero Name */
.hero-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(80px, 14vw, 210px);
  letter-spacing: -0.025em;
  line-height: 0.92;
  margin-bottom: 30px;
}
.hn-row {
  display: block;
  overflow: hidden;
}
.hn-indent { padding-left: clamp(40px, 7vw, 110px); }
.char {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  will-change: transform, opacity;
}
.accent-char { color: var(--accent); }

/* Hero Meta */
.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 24px;
  opacity: 0;
}
.hm-sep {
  width: 36px;
  height: 1px;
  background: var(--border-mid);
}

/* Hero Desc */
.hero-desc {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-mid);
  font-weight: 300;
  max-width: 460px;
  line-height: 1.65;
  margin-bottom: 46px;
  opacity: 0;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  opacity: 0;
}
.hero-socials {
  display: flex;
  gap: 12px;
  align-items: center;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-mid);
  color: var(--text-mid);
  transition: border-color 0.25s, color 0.25s, background 0.25s, transform 0.3s var(--ease);
}
.social-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-3px);
}

/* Rotating Badge Ring */
.hero-badge-ring {
  position: absolute;
  bottom: clamp(60px, 10vw, 110px);
  right: clamp(24px, 6vw, 100px);
  width: 150px;
  height: 150px;
  color: var(--text-dim);
  opacity: 0;
  animation: spin 20s linear infinite;
  cursor: default;
  z-index: 1;
}
.hero-badge-ring:hover { animation-duration: 6s; }
.hero-badge-ring svg { width: 100%; height: 100%; }
.badge-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
  animation: spin-reverse 20s linear infinite;
  transition: color 0.3s;
}
.hero-badge-ring:hover .badge-ring-center { color: var(--text); }
@keyframes spin         { to { transform: rotate(360deg); } }
@keyframes spin-reverse { to { transform: rotate(-360deg); } }

/* Hero Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  z-index: 1;
}
.scroll-bar {
  width: 1px;
  height: 48px;
  background: var(--border-mid);
  border-radius: 99px;
  position: relative;
  overflow: hidden;
}
.scroll-bar::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { top: -100%; }
  50%  { top: 100%; }
  100% { top: 100%; }
}
.hero-scroll span {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 99px;
  padding: 13px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.3s;
}
.btn:active { transform: scale(0.97); }
.btn-fill {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.btn-fill:hover {
  background: #FF6E42;
  border-color: #FF6E42;
  box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.35);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-mid);
}
.btn-ghost:hover {
  border-color: var(--text-mid);
  background: rgba(237, 233, 223, 0.04);
  transform: translateY(-2px);
}
.btn-lg {
  font-size: 1.0625rem;
  padding: 17px 36px;
}

/* legacy aliases */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.btn-primary:hover {
  background: #FF6E42;
  border-color: #FF6E42;
  box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.35);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-mid);
}
.btn-outline:hover {
  border-color: var(--text-mid);
  background: rgba(237, 233, 223, 0.04);
  transform: translateY(-2px);
}

/* ── Sections ── */
.section { padding: clamp(90px, 11vw, 160px) 0; }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(42px, 6.5vw, 88px);
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin-bottom: 56px;
}
.section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--text-mid);
}

/* ── Section Ghost Numbers ── */
.section-bg-num {
  position: absolute;
  top: -0.18em;
  right: -0.05em;
  font-family: var(--font-display);
  font-size: clamp(110px, 19vw, 240px);
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--border-mid);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 0;
}
.section-label, .section-title, .about-grid,
.work-list, .contact-inner, .reel-hint, .projects-footer { position: relative; z-index: 1; }

/* ── Reveal Animations ── */
.reveal-up {
  opacity: 0;
  transform: translateY(36px);
}

/* ── Marquee Strip ── */
.marquee-strip {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  background: var(--bg-elevated);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-strip:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  white-space: nowrap;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-mid);
}
.marquee-group span { transition: color 0.25s; }
.marquee-group span:not(.msep):hover { color: var(--accent); }
.msep {
  color: var(--accent);
  font-size: 0.55em;
  line-height: 1;
  opacity: 0.7;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-left .section-title { margin-bottom: 32px; }
.about-body p {
  font-size: 1.0625rem;
  line-height: 1.8;
  font-weight: 300;
  color: var(--text-mid);
  margin-bottom: 20px;
}
.about-body strong { color: var(--text); font-weight: 600; }

/* Capabilities */
.about-caps {
  display: flex;
  flex-direction: column;
  margin: 36px 0 4px;
  border-top: 1px solid var(--border);
}
.cap-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.35s var(--ease), border-color 0.3s;
}
.cap-item:hover {
  padding-left: 12px;
  border-bottom-color: var(--border-mid);
}
.cap-n {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.cap-item > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex: 1;
  flex-wrap: wrap;
}
.cap-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.25s;
}
.cap-item:hover .cap-title { color: var(--accent); }
.cap-sub {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.about-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.875rem;
  color: var(--text-mid);
}
.meta-item svg { flex-shrink: 0; color: var(--text-dim); }

/* Skills */
.skills-block {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
  transition: border-color 0.3s;
}
.skills-block:hover { border-color: var(--border-mid); }
.skills-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 7px 15px;
  border-radius: 99px;
  border: 1px solid var(--border-mid);
  background: var(--bg-inset);
  color: var(--text-mid);
  transition: border-color 0.25s, color 0.25s, background 0.25s, transform 0.25s var(--ease);
}
.skill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}
.about-cta { margin-top: 20px; }

/* ── Stats ── */
.stats-row {
  display: flex;
  gap: 44px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat-item { display: flex; flex-direction: column; gap: 6px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}
.stat-num[data-target] { transition: none; }
.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── Projects — Horizontal Reel ── */
.reel-hint {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: -28px 0 36px;
}
.projects-reel {
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  user-select: none;
  -webkit-user-select: none;
}
.projects-reel::-webkit-scrollbar { display: none; }
.projects-reel.is-dragging { cursor: grabbing; }
.projects-reel.is-dragging .project-card { pointer-events: none; }
.projects-reel-inner {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 0 clamp(20px, 5vw, 80px) 8px;
}
.projects-reel .project-card {
  flex: 0 0 clamp(290px, 30vw, 400px);
}

/* Project Card */
.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.45s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}
.project-card:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(var(--accent-rgb), 0.12);
}
.project-card-dark { background: var(--bg-elevated); border-color: var(--border); }
.project-card-dark:hover { border-color: rgba(var(--accent-rgb), 0.5); }
.project-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.project-preview {
  position: relative;
  height: 230px;
  overflow: hidden;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-card:hover .preview-browser { transform: translateY(-4px) scale(1.015); }
.preview-num {
  position: absolute;
  top: 18px; right: 20px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.4);
  font-variant-numeric: tabular-nums;
}
.preview-num.light { color: rgba(255, 255, 255, 0.4); }

/* Preview gradient themes */
.preview-cafe        { background: linear-gradient(135deg, #1E40AF 0%, #0EA5E9 100%); }
.preview-oscar       { background: linear-gradient(135deg, #050D1A 0%, #0F2848 55%, #0284C7 100%); }
.preview-aestheria   { background: linear-gradient(135deg, #0F0F0F 0%, #1C1C1C 100%); border-bottom: 1px solid #2A2A2A; }
.preview-green       { background: linear-gradient(135deg, #064E3B 0%, #059669 60%, #34D399 100%); }
.preview-socrates    { background: linear-gradient(135deg, #0A0A0F 0%, #0D1B2A 55%, #1A1040 100%); }
.preview-breadcrumm  { background: linear-gradient(135deg, #0A0A0A 0%, #111111 60%, #181308 100%); border-bottom: 1px solid #252015; }

/* Socrates IDE mockup */
.socrates-ui { display: flex; flex-direction: column; gap: 4px; padding: 6px; }
.bb-socrates-editor { display: flex; gap: 4px; height: 72px; }
.bb-socrates-sidebar { width: 28px; display: flex; flex-direction: column; gap: 3px; padding: 2px; background: rgba(255,255,255,0.04); border-radius: 3px; }
.bb-soc-file { height: 6px; background: rgba(255,255,255,0.15); border-radius: 2px; }
.bb-soc-file.active { background: rgba(99,102,241,0.7); }
.bb-socrates-code { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 4px; }
.bb-soc-line { height: 5px; background: rgba(255,255,255,0.12); border-radius: 2px; }
.bb-soc-line.error { background: rgba(239,68,68,0.6); width: 60%; }
.bb-soc-line.short { width: 45%; }
.bb-socrates-terminal { height: 18px; background: rgba(0,0,0,0.4); border-radius: 3px; border: 1px solid rgba(255,255,255,0.06); }

/* Browser mockup inside cards */
.preview-browser {
  width: 100%;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: transform 0.5s var(--ease);
}
.dark-browser {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.bdot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}
.browser-url {
  flex: 1;
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.4);
  font-family: monospace;
  text-align: center;
  letter-spacing: 0.02em;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  padding: 2px 8px;
}
.light-url { color: rgba(255, 255, 255, 0.5); }
.browser-body { padding: 10px; display: flex; flex-direction: column; gap: 6px; }

/* Mockup blocks */
.bb-nav      { height: 8px;  background: rgba(255,255,255,0.15); border-radius: 4px; }
.bb-hero     { height: 36px; background: rgba(255,255,255,0.12); border-radius: 4px; }
.bb-fullhero { height: 52px; background: rgba(255,255,255,0.12); border-radius: 4px; }
.bb-fullhero.short { height: 36px; }
.bb-hero.short-hero { height: 28px; }
.bb-line     { height: 6px;  background: rgba(255,255,255,0.15); border-radius: 99px; width: 80%; }
.bb-line.short { width: 55%; }
.bb-cards    { display: flex; gap: 5px; }
.bb-cards.two { gap: 5px; }
.bb-cards.four { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.bb-card     { flex: 1; height: 24px; background: rgba(255,255,255,0.1); border-radius: 4px; }
.bb-card.tall { height: 32px; }
.bb-card.sm   { height: 18px; }
.bb-cols     { display: flex; gap: 5px; }
.bb-col      { flex: 1; height: 28px; background: rgba(255,255,255,0.08); border-radius: 4px; }
.bb-logo     { font-size: 0.7rem; font-weight: 700; color: rgba(255,255,255,0.6); padding: 2px 4px; letter-spacing: 0.02em; }
.dark-hero   { background: rgba(255,255,255,0.05); }

/* Oscar card mockup */
.oscar-ui { padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.bb-oscar-tagline { height: 5px; width: 70%; background: rgba(255,255,255,0.15); border-radius: 99px; }
.bb-oscar-widget {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 7px 10px;
}
.bb-oscar-mic { font-size: 0.55rem; color: #38BDF8; line-height: 1; flex-shrink: 0; }
.bb-oscar-wave { display: flex; align-items: center; gap: 2px; flex: 1; }
.bb-oscar-wave span {
  display: block;
  width: 2px;
  border-radius: 1px;
  background: rgba(56,189,248,0.55);
}
.bb-oscar-wave span:nth-child(1) { height: 4px; }
.bb-oscar-wave span:nth-child(2) { height: 9px; }
.bb-oscar-wave span:nth-child(3) { height: 5px; }
.bb-oscar-wave span:nth-child(4) { height: 12px; }
.bb-oscar-wave span:nth-child(5) { height: 7px; }
.bb-oscar-wave span:nth-child(6) { height: 4px; }
.bb-oscar-kbd {
  font-size: 0.5rem;
  font-family: monospace;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 3px;
  padding: 2px 5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.bb-oscar-features { display: flex; gap: 5px; }
.bb-oscar-feat {
  font-size: 0.5rem;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 2px 6px;
  letter-spacing: 0.04em;
}

/* Project Info */
.project-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.project-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.project-link-icon {
  font-size: 1.1rem;
  color: var(--text-dim);
  transition: color 0.25s, transform 0.3s var(--ease);
}
.project-card:hover .project-link-icon {
  color: var(--accent);
  transform: translate(3px, -3px);
}
.project-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  white-space: nowrap;
}
.project-desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  font-weight: 300;
  color: var(--text-mid);
  flex: 1;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.ptag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 99px;
  border: 1px solid var(--border-mid);
  color: var(--text-mid);
  background: var(--bg-inset);
  transition: border-color 0.25s, color 0.25s;
}
.ptag:hover { border-color: var(--text-dim); color: var(--text); }
.ptag.live {
  border-color: rgba(34, 197, 94, 0.3);
  color: var(--green);
  background: rgba(34, 197, 94, 0.08);
}
.ptag.building {
  border-color: rgba(251, 191, 36, 0.3);
  color: #FBBF24;
  background: rgba(251, 191, 36, 0.08);
}

/* Breadcrumm menubar app mockup */
.breadcrumm-ui { display: flex; flex-direction: column; gap: 6px; padding: 8px; }
.bb-breadcrumm-header { display: flex; align-items: center; justify-content: space-between; }
.bb-breadcrumm-title { font-size: 0.55rem; font-weight: 600; color: rgba(255,255,255,0.75); font-family: monospace; }
.bb-breadcrumm-time { font-size: 0.5rem; color: rgba(255,255,255,0.3); font-family: monospace; }
.bb-breadcrumm-task { height: 6px; background: rgba(251,191,36,0.25); border-radius: 3px; width: 75%; }
.bb-breadcrumm-trail { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.bb-breadcrumm-item { display: flex; align-items: center; gap: 5px; }
.bb-bc-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.bb-bc-dot.editor   { background: rgba(139,92,246,0.8); }
.bb-bc-dot.browser  { background: rgba(59,130,246,0.8); }
.bb-bc-dot.terminal { background: rgba(34,197,94,0.8); }
.bb-bc-bar { height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; }
.bb-bc-bar.long   { width: 70%; }
.bb-bc-bar.medium { width: 50%; }
.bb-bc-bar.short  { width: 35%; }
.projects-footer { margin-top: 56px; display: flex; justify-content: center; }

/* ── Dark Section (Projects) ── */
.section-dark { background: var(--bg-elevated); }
.section-dark .section-bg-num { -webkit-text-stroke-color: rgba(237, 233, 223, 0.06); }
.section-dark .project-card {
  background: var(--bg-card);
  border-color: var(--border-mid);
}
.section-dark .project-card:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(var(--accent-rgb), 0.16);
}
.section-dark .ptag { background: var(--bg-elevated); }
.section-dark .ptag.live { background: rgba(34, 197, 94, 0.08); }
.section-dark .projects-footer .btn-ghost,
.section-dark .projects-footer .btn-outline {
  border-color: var(--border-mid);
}
.section-dark .projects-footer .btn-ghost:hover,
.section-dark .projects-footer .btn-outline:hover {
  border-color: var(--text-mid);
  background: rgba(237, 233, 223, 0.05);
}

/* ── Work ── */
.work-list {
  display: flex;
  flex-direction: column;
}
.work-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  padding: 44px 0;
  border-top: 1px solid var(--border);
  transition: background 0.3s, padding-left 0.4s var(--ease);
}
.work-item:hover { padding-left: 8px; }
.work-item:last-child { border-bottom: 1px solid var(--border); }
.work-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 6px;
}
.work-period {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mid);
  font-variant-numeric: tabular-nums;
}
.work-status {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 99px;
  padding: 3px 10px;
  width: fit-content;
}
.work-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.work-role {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.25s;
}
.work-item:hover .work-role { color: var(--accent); }
.work-company {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  transition: opacity 0.2s;
}
.work-company:hover { opacity: 0.7; }
.work-company-plain {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-mid);
}
.work-desc {
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 300;
  color: var(--text-mid);
  margin-bottom: 16px;
  max-width: 600px;
}
.work-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── Contact ── */
.contact-section,
.contact-dark { background: var(--bg-elevated); }
.contact-inner { max-width: 820px; }
.contact-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(54px, 8.5vw, 118px);
  letter-spacing: -0.02em;
  line-height: 0.98;
  margin-bottom: 30px;
  color: var(--text);
}
.contact-headline em {
  font-style: italic;
  font-weight: 300;
  color: var(--text-mid);
}
.contact-dark .accent-char { color: var(--accent); }
.contact-sub {
  font-size: 1.125rem;
  line-height: 1.75;
  font-weight: 300;
  color: var(--text-mid);
  margin-bottom: 46px;
  max-width: 560px;
}
.contact-actions { margin-bottom: 36px; }

/* Big Contact Email (scramble target) */
.contact-email-big {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.6vw, 3.4rem);
  letter-spacing: -0.01em;
  color: var(--text);
  border-bottom: 1px solid var(--border-mid);
  padding-bottom: 12px;
  transition: color 0.3s, border-color 0.3s;
  cursor: pointer;
}
.contact-email-big:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.email-arr {
  font-size: 0.55em;
  opacity: 0.5;
  display: inline-block;
  transition: opacity 0.2s, transform 0.35s var(--ease);
}
.contact-email-big:hover .email-arr {
  opacity: 1;
  transform: translate(6px, -6px);
}

/* Contact Divider */
.contact-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px 0 28px;
}
.contact-div-line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--border-mid);
}
.contact-div-text {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Contact Links */
.contact-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.clink {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-mid);
  position: relative;
  transition: color 0.25s;
}
.clink::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}
.clink:hover { color: var(--text); }
.clink:hover::after { width: 100%; }
.clink-sep { color: var(--border-mid); }

/* ── Footer ── */
.footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-dark { background: var(--bg-elevated); border-top-color: var(--border); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-dim);
}
.footer-top {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color 0.25s;
}
.footer-top:hover { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-name { font-size: clamp(72px, 13.5vw, 160px); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }
  .hero { padding: calc(var(--nav-h) + 48px) 0 70px; }
  .hero-name { font-size: clamp(58px, 16vw, 110px); }
  .hn-indent { padding-left: clamp(28px, 8vw, 64px); }
  .hero-badge-ring { display: none; }
  .hero-eyebrow { flex-wrap: wrap; gap: 10px; font-size: 0.6875rem; }
  .eyebrow-line { width: 28px; }
  .section-bg-num { font-size: clamp(80px, 22vw, 130px); right: -8px; }
  .reel-hint { margin: -16px 0 28px; }
  .work-item { grid-template-columns: 1fr; gap: 16px; }
  .work-item:hover { padding-left: 0; }
  .work-left { flex-direction: row; align-items: center; }
  .contact-headline { font-size: clamp(46px, 12.5vw, 76px); }
  .contact-email-big { font-size: clamp(1.25rem, 6.5vw, 2.1rem); }
  .footer-inner { flex-direction: column; text-align: center; gap: 12px; }
  .section-title { margin-bottom: 40px; }
  .cap-item > div { flex-direction: column; gap: 2px; align-items: flex-start; }
}

@media (max-width: 480px) {
  .container    { padding: 0 20px; }
  .nav-inner    { padding: 0 20px; }
  .hero-content { padding: 0 20px; }
  .hero-name { font-size: clamp(50px, 17vw, 84px); }
  .hero-actions { gap: 14px; }
  .hero-meta { font-size: 0.625rem; gap: 10px; }
  .hm-sep { width: 24px; }
  .about-grid { gap: 40px; }
  .projects-reel .project-card { flex-basis: clamp(260px, 82vw, 320px); }
  .project-preview { height: 200px; }
  .btn { padding: 12px 24px; font-size: 0.875rem; }
  .stats-row { gap: 30px; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .char { transform: none !important; opacity: 1 !important; }
  .reveal-up { opacity: 1 !important; transform: none !important; }
  .hero-eyebrow, .hero-badge, .hero-meta, .hero-desc,
  .hero-actions, .hero-scroll, .hero-badge-ring { opacity: 1 !important; }
  .marquee-track { animation: none !important; }
}
