/* =========================================================================
   Jayed Jaman Seen — Pure Solid Black Hero · Airy Multi-Layer 3D Portfolio
   GSAP Masked Text Reveals · Real Rigged 3D GLB · Fully Responsive (Phone/Tab/Laptop)
   ========================================================================= */

:root {
  --bg: #000000;
  --bg-soft: #06080a;
  --surface: rgba(12, 16, 20, 0.78);
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --text: #e6ecea;
  --text-bright: #ffffff;
  --muted: #909e9c;
  --emerald: #2dd4bf;
  --emerald-deep: #0f766e;
  --gold: #fbbf24;
  --gold-deep: #b45309;
  --font-display: 'Geist', 'Inter', system-ui, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

::selection {
  background: var(--emerald-deep);
  color: #ffffff;
}

section[id] {
  scroll-margin-top: 86px;
}

.hidden { display: none !important; }
.emerald-accent { color: var(--emerald); }
.gold-accent { color: var(--gold); }

.accent-gradient {
  background: linear-gradient(118deg, #ffffff 8%, var(--emerald) 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* GSAP Smooth Reveal Container (overflow visible prevents any descender clipping!) */
.reveal-mask {
  overflow: visible;
  display: block;
}

/* ==================== SOFT GPU MOUSE BACKGROUND AURA & CURSOR ==================== */
.mouse-aura {
  position: fixed;
  top: 0;
  left: 0;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.11) 0%, rgba(251, 191, 36, 0.045) 38%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  will-change: transform;
  transition: opacity 0.4s ease;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(45, 212, 191, 0.45);
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.2);
  pointer-events: none;
  z-index: 999;
  will-change: transform;
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, opacity 0.25s ease;
  opacity: 0;
}

.cursor-ring.is-hover {
  width: 58px;
  height: 58px;
  border-color: var(--gold);
  background: rgba(251, 191, 36, 0.07);
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
}

@media (pointer: coarse) {
  .cursor-ring, .cursor-dot { display: none; }
}

/* Subtle Animated Breathing Corner Glow (Top-Right — Dim, Harmonious, Pulsing) */
@keyframes cornerGlowPulse {
  0%, 100% {
    opacity: 0.42;
    transform: translate3d(0, 0, 0) scale(0.94);
  }
  50% {
    opacity: 0.92;
    transform: translate3d(-14px, 12px, 0) scale(1.08);
  }
}

.hero-corner-glow {
  position: fixed;
  top: -120px;
  right: -120px;
  width: min(560px, 72vw);
  height: min(560px, 72vw);
  border-radius: 50%;
  background: radial-gradient(
    circle at 62% 38%,
    rgba(45, 212, 191, 0.20) 0%,
    rgba(20, 184, 166, 0.11) 28%,
    rgba(251, 191, 36, 0.045) 52%,
    transparent 74%
  );
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
  animation: cornerGlowPulse 7.5s ease-in-out infinite;
}

/* Unified Ultra-Subtle Continuous Ambient Edge Tints (Zero Seam Across All Sections) */
.side-glow {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 38vw;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.side-glow-left { left: 0; background: radial-gradient(circle at 0% 62%, rgba(45, 212, 191, 0.045), transparent 62%); }
.side-glow-right { right: 0; background: radial-gradient(circle at 100% 38%, rgba(45, 212, 191, 0.045), rgba(251, 191, 36, 0.025) 35%, transparent 62%); }

/* ==================== PERSISTENT MINIMAL HEADER ==================== */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 22px 42px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.65) 68%, transparent 100%);
  pointer-events: none;
}

.top-header > * { pointer-events: auto; }

.header-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-bright);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
}

.seen-mark {
  width: 30px;
  height: 24px;
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
}

.seen-mark svg { width: 100%; height: 100%; }

.header-email {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.84rem;
  cursor: pointer;
  transition: color 0.25s ease;
}

.header-email:hover { color: var(--emerald); }

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

.nav-item {
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  position: relative;
  transition: color 0.25s ease;
}

.nav-item::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  transition: width 0.28s ease;
}

.nav-item:hover { color: var(--emerald); }
.nav-item:hover::after { width: 100%; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 9px;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-bright);
}

/* ==================== FIXED RAILS ==================== */
.social-rail {
  position: fixed;
  left: 30px;
  bottom: 30px;
  z-index: 75;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.social-rail a {
  width: 19px;
  height: 19px;
  color: rgba(230, 236, 234, 0.62);
  transition: color 0.25s ease, transform 0.25s ease;
}

.social-rail a:hover { color: var(--emerald); transform: translateY(-3px); }
.social-rail svg { width: 100%; height: 100%; }

.resume-corner-btn {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 75;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: color 0.25s ease;
}

.resume-corner-btn:hover { color: var(--gold); }

/* ==================== MAIN CONTAINER ==================== */
.main-scroll {
  position: relative;
}

/* ==================== 1. PURE SOLID BLACK MINIMAL HERO (SEAMLESS CONTINUOUS FLOW) ==================== */
.landing-section {
  min-height: 100vh;
  background: transparent;
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 32px 100px;
  text-align: center;
}

.hero-pure-center {
  max-width: 980px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.landing-hello {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--emerald);
}

.hero-mega-name {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8.2vw, 6.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--text-bright);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.22em;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.85rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #cdd8d6;
  margin-top: 8px;
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  color: var(--muted);
  transition: color 0.25s ease;
}

.scroll-cue:hover { color: var(--emerald); }

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--emerald), var(--gold), transparent);
}

/* ==================== BUTTONS ==================== */
.minimal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-bright);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.22s ease, box-shadow 0.25s ease;
}

.minimal-cta:hover {
  background: rgba(45, 212, 191, 0.16);
  transform: translateY(-2px);
}

.minimal-cta.cta-accent {
  border: none;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.82), rgba(180, 83, 9, 0.62));
}

.minimal-cta.cta-accent:hover {
  box-shadow: 0 10px 28px rgba(45, 212, 191, 0.22);
}
.minimal-cta.cta-sm { padding: 7px 14px; font-size: 0.76rem; }
.minimal-cta.full { width: 100%; }

/* ==================== 2. ABOUT ME + STILL BORDERLESS PORTRAIT ==================== */
.about-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 150px 72px;
}

.about-grid {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 72px;
  align-items: center;
}

.avatar-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar-borderless-wrap {
  position: relative;
  width: min(410px, 86vw);
  aspect-ratio: 3 / 4;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-still-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
  border: none;
  mix-blend-mode: lighten;
  /* Pure pitch-black studio portrait melting 100% invisibly on all sides with zero cut edges or box */
  -webkit-mask-image: radial-gradient(ellipse 48% 50% at 50% 48%, #000 52%, rgba(0, 0, 0, 0.65) 70%, rgba(0, 0, 0, 0.14) 85%, transparent 96%);
  mask-image: radial-gradient(ellipse 48% 50% at 50% 48%, #000 52%, rgba(0, 0, 0, 0.65) 70%, rgba(0, 0, 0, 0.14) 85%, transparent 96%);
}

#glb-avatar-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  position: relative;
  z-index: 2;
}

#glb-avatar-canvas:active { cursor: grabbing; }

.glb-status {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--emerald);
  background: rgba(0, 0, 0, 0.72);
  padding: 4px 12px;
  border-radius: 999px;
  z-index: 3;
  pointer-events: none;
}

.eyebrow-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--emerald);
  margin-bottom: 16px;
}

.about-lead {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.3rem);
  font-weight: 500;
  line-height: 1.28;
  color: var(--text-bright);
  margin-bottom: 20px;
}

.about-lead strong { color: var(--gold); }

.about-body {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 30px;
}

.about-body strong { color: var(--text-bright); }

.about-quick-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 34px;
}

.about-fact {
  padding: 12px 0;
  border: none;
  background: transparent;
}

.about-fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--emerald);
}

.about-fact span { font-size: 0.8rem; color: var(--muted); }

.about-cta-strip { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==================== 3. MULTI-LAYER STUDIO EXPLORER ==================== */
.studio-section {
  padding: 145px 72px;
}

.studio-container {
  width: min(1220px, 100%);
  margin: 0 auto;
}

.studio-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--text-bright);
  margin-bottom: 14px;
}

.section-sub { color: var(--muted); font-size: 0.98rem; }

.layer-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.layer-tab {
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.layer-tab:hover { color: var(--text-bright); background: rgba(255, 255, 255, 0.08); }

.layer-tab.active {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.85), rgba(180, 83, 9, 0.6));
  color: #ffffff;
}

.layer-panel { display: none; }
.layer-panel.active { display: block; }

/* Layer 1: Borderless Open Editorial Columns */
.whatido-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.bracket-card {
  position: relative;
  padding: 24px 0;
  border: none;
  background: transparent;
  transition: transform 0.3s ease;
}

.bracket-card .corner { display: none; }

.bracket-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.bracket-head h3 { font-family: var(--font-display); font-size: 1.75rem; color: var(--text-bright); }
.bracket-arrow { color: var(--gold); font-size: 1.2rem; }
.bracket-sub { font-size: 0.94rem; color: var(--emerald); margin-bottom: 12px; }
.bracket-desc { font-size: 0.94rem; color: var(--muted); margin-bottom: 20px; }

.bracket-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.bracket-tags span {
  font-size: 0.76rem;
  color: #dce8e5;
  padding: 6px 13px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.055);
}

.standards-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-top: 24px;
}

.standards-row > div {
  padding: 12px 0;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.standards-row span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--gold); }
.standards-row strong { font-size: 0.94rem; color: var(--text-bright); }
.standards-row small { font-size: 0.78rem; color: var(--muted); }

/* Layer 2: Career & Education */
.career-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding: 16px 0;
}

.timeline-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.timeline-beam {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.15), var(--emerald) 65%, var(--gold));
}

.timeline-dot {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fef3c7;
  box-shadow: 0 0 16px 4px var(--gold);
}

.career-row {
  display: grid;
  grid-template-columns: 1fr 140px 1fr;
  gap: 36px;
  align-items: start;
}

.career-left { text-align: right; padding-right: 12px; }
.career-left h3 { font-family: var(--font-display); font-size: 1.32rem; color: var(--text-bright); margin-bottom: 6px; }
.career-org { font-size: 0.86rem; color: var(--emerald); }

.career-year {
  text-align: center;
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--text-bright);
  background: var(--bg);
  position: relative;
  z-index: 2;
}

.career-year.now {
  background: linear-gradient(135deg, #ffffff, var(--emerald), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.career-right { padding-left: 12px; font-size: 0.94rem; color: var(--muted); }
.career-right strong { color: var(--text-bright); }

.credentials-strip {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.cred-pill {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 8px 16px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.cred-pill strong { color: var(--text-bright); }

/* Layer 3: Borderless Packages & Estimator */
.mini-pkg-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 32px; }

.mini-pkg {
  text-align: left;
  padding: 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: none;
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.25s ease, transform 0.22s ease;
}

.mini-pkg.featured,
.mini-pkg:hover { background: rgba(45, 212, 191, 0.1); transform: translateY(-2px); }
.mini-pkg-tag { font-family: var(--font-mono); font-size: 0.7rem; color: var(--gold); }
.mini-pkg small { font-size: 0.8rem; color: var(--muted); }

.est-body-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; }
.est-controls { display: flex; flex-direction: column; gap: 14px; }
.est-lbl { font-size: 0.82rem; font-weight: 600; color: var(--text-bright); }
.est-srv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.est-srv {
  padding: 12px 14px;
  border-radius: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.84rem;
  cursor: pointer;
}

.est-srv.active { background: rgba(45, 212, 191, 0.18); color: #ffffff; }
.est-slider-row { display: flex; justify-content: space-between; align-items: center; }
.est-range { width: 100%; accent-color: var(--emerald); }
.est-addons { display: flex; flex-direction: column; gap: 10px; font-size: 0.86rem; color: var(--muted); }
.est-addons label { display: flex; align-items: center; gap: 8px; cursor: pointer; }

.est-summary {
  padding: 26px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.est-sum-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.est-kicker { font-family: var(--font-mono); font-size: 0.68rem; color: var(--gold); }
.est-days { font-family: var(--font-display); font-size: 1.3rem; color: var(--emerald); white-space: nowrap; }
.est-list { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 0.84rem; color: var(--muted); }
.est-list li::before { content: '✦ '; color: var(--gold); }
.est-actions { display: flex; flex-direction: column; gap: 10px; }

/* ==================== 4. MY WORK ==================== */
.work-section {
  padding: 145px 72px;
}

.work-header {
  width: min(1260px, 100%);
  margin: 0 auto 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.work-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 600;
  color: var(--text-bright);
  line-height: 1.05;
}

.work-hint { font-size: 0.9rem; color: var(--muted); margin-top: 10px; }
.work-arrows { display: flex; gap: 10px; }

.work-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-bright);
  font-size: 1.1rem;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.work-arrow-btn:hover { border-color: var(--emerald); background: rgba(45, 212, 191, 0.14); }

.work-track {
  width: min(1260px, 100%);
  margin: 0 auto;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  border: none;
  gap: 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(45, 212, 191, 0.4) transparent;
}

.work-col {
  flex: 0 0 360px;
  min-height: 490px;
  padding: 24px 12px;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  scroll-snap-align: start;
  transition: transform 0.3s ease;
}

.work-col:hover { transform: translateY(-4px); }
.work-col.alt-order { flex-direction: column-reverse; }
.work-col-meta { display: flex; flex-direction: column; gap: 10px; }

.work-num-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.work-num { font-family: var(--font-display); font-size: 2.25rem; font-weight: 700; color: var(--text-bright); line-height: 1; }
.work-cat { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--gold); text-transform: uppercase; }
.work-col h3 { font-family: var(--font-display); font-size: 1.24rem; color: var(--text-bright); line-height: 1.25; }
.work-tools-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); margin-top: 4px; }
.work-tools-text { font-size: 0.84rem; color: var(--muted); }

.work-preview-box {
  height: 228px;
  border-radius: 16px;
  overflow: hidden;
  border: none;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.work-preview-box:hover { transform: translateY(-4px) scale(1.015); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); }

.wp-apex { background: linear-gradient(145deg, #0b1f29, #115e59 55%, #0d9488); }
.wp-velora { background: linear-gradient(145deg, #f8f4ec, #e5d5bc); color: #1c1917; }
.wp-id { background: linear-gradient(145deg, #0c1f2e, #0f766e 55%, #0284c7); }
.wp-pulse { background: linear-gradient(145deg, #1f1708, #92400e 55%, #d97706); }
.wp-brand { background: linear-gradient(145deg, #09241b, #047857 55%, #0f766e); }

.work-preview-top { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.68rem; opacity: 0.88; }
.work-preview-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; line-height: 1.15; }
.work-preview-foot { display: flex; justify-content: space-between; font-size: 0.78rem; font-weight: 600; }

/* ==================== 5. MY TECHSTACK (BORDERLESS EDITORIAL LIST) ==================== */
.techstack-section {
  padding: 140px 72px;
}

.techstack-clean-wrap {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.techstack-overlay-title { text-align: left; max-width: 780px; margin-bottom: 52px; }
.stack-kicker { display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.22em; color: var(--gold); margin-bottom: 10px; }
.techstack-overlay-title h2 { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4.3rem); font-weight: 600; letter-spacing: 0.04em; color: var(--text-bright); }

.tech-editorial-list {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.tech-group {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  align-items: baseline;
  border: none;
  background: transparent;
}

.tech-group-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--emerald);
}

.tech-names {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-bright);
}

/* ==================== 6. BORDERLESS CONTACT WITH ICONS + END SIGNATURE ==================== */
.contact-section {
  padding: 145px 72px 84px;
  border: none;
}

.contact-container { width: min(1220px, 100%); margin: 0 auto; }

.contact-mega {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 5.6rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-bright);
  margin-bottom: 52px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr 0.9fr;
  gap: 44px;
  margin-bottom: 76px;
}

.contact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.contact-icon-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-icon-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: none;
  background: transparent;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.22s ease, background 0.25s ease;
}

.contact-icon-row:hover {
  background: rgba(45, 212, 191, 0.09);
  transform: translateX(4px);
}

.c-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-bright);
  flex-shrink: 0;
}

.c-icon svg { width: 18px; height: 18px; }
.c-icon-emerald { color: var(--emerald); background: rgba(45, 212, 191, 0.12); }
.c-icon-gold { color: var(--gold); background: rgba(251, 191, 36, 0.12); }

.c-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  flex: 1;
  min-width: 0;
}

.c-text strong {
  font-family: var(--font-display);
  font-size: 0.96rem;
  color: var(--text-bright);
  overflow-wrap: anywhere;
}

.c-text small { font-size: 0.74rem; color: var(--muted); }
.c-ext { color: var(--muted); font-size: 0.9rem; }
.contact-icon-row:hover .c-ext { color: var(--gold); }

.contact-note { font-size: 0.92rem; color: var(--muted); margin-bottom: 20px; }
.contact-tool-btns { display: flex; flex-direction: column; gap: 12px; }
.admin-trigger-btn { color: var(--muted); }

/* ==================== 7. BORDERLESS END-OF-PAGE SIGNATURE (ORIGINAL PHOTO) ==================== */
.end-signature-wrap {
  display: flex;
  justify-content: center;
  padding-top: 48px;
  border: none;
}

.end-signature-card {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  border: none;
  max-width: 100%;
}

.end-sig-photo {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  object-fit: cover;
  border: none;
  flex-shrink: 0;
}

.end-sig-info { display: flex; flex-direction: column; gap: 2px; }
.end-sig-tag { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.16em; color: var(--gold); }
.end-sig-info h3 { font-family: var(--font-display); font-size: 1.08rem; color: var(--text-bright); }
.end-sig-info p { font-size: 0.84rem; color: var(--emerald); font-weight: 500; }
.end-sig-loc { font-size: 0.74rem; color: var(--muted); margin-top: 2px; }

/* ==================== MODALS & ADMIN PANEL ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-backdrop.open { display: flex; }

.modal-box {
  background: #0a0d11;
  border: 1px solid rgba(45, 212, 191, 0.32);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.9);
}

.modal-xl { width: min(1240px, 100%); height: min(88vh, 840px); }
.modal-lg { width: min(920px, 100%); max-height: 88vh; }

.modal-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.modal-head-left { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #22c55e; }

.device-toggle-group,
.resume-bar-actions,
.modal-head-right { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.dev-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.dev-btn.active { background: var(--emerald); color: #000000; border-color: var(--emerald); }

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.demo-stage { flex: 1; background: #000; display: flex; align-items: center; justify-content: center; padding: 16px; overflow: auto; }
.demo-frame { height: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: width 0.25s ease; }
.vp-desktop { width: 100%; }
.vp-tablet { width: 768px; max-width: 100%; }
.vp-mobile { width: 390px; max-width: 100%; }

.modal-scroll-body { padding: 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }

.cv-search-box {
  width: 100%;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
}

.cv-sheet { background: #ffffff; color: #0f172a; border-radius: 14px; padding: 28px; }
.cv-sheet mark { background: #fde047; color: #0f172a; }
.cv-visual-head { display: flex; align-items: center; gap: 18px; padding-bottom: 16px; border-bottom: 2px solid #e2e8f0; margin-bottom: 18px; }
.cv-photo { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.cv-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 20px; }
.cv-block { margin-bottom: 14px; }
.cv-block h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: #0f766e; border-bottom: 1px solid #cbd5e1; padding-bottom: 4px; margin-bottom: 8px; }
.cv-block p, .cv-block li { font-size: 0.83rem; color: #334155; line-height: 1.5; }
.cv-block ul { padding-left: 16px; }

/* Admin Panel */
.admin-note { font-size: 0.9rem; color: var(--muted); margin-bottom: 14px; }
.admin-pin-row { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-pin-row input,
.admin-field input,
.admin-field textarea {
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
}
.admin-pin-row input { flex: 1; min-width: 180px; }
.admin-err { color: #f87171; font-size: 0.82rem; margin-top: 8px; min-height: 20px; }

.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.admin-field { display: flex; flex-direction: column; gap: 6px; }
.admin-field.full-span { grid-column: 1 / -1; }
.admin-field span { font-size: 0.78rem; color: var(--muted); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Toast */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  z-index: 400;
  padding: 10px 18px;
  border-radius: 999px;
  background: #0d1316;
  border: 1px solid rgba(45, 212, 191, 0.55);
  color: #ffffff;
  font-size: 0.82rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media print {
  .no-print, .side-glow, .main-scroll { display: none !important; }
  body { background: #fff !important; }
  #resume-modal { position: static; display: block !important; background: #fff; padding: 0; }
  .modal-box { border: none; box-shadow: none; background: #fff; max-height: none; }
  .modal-scroll-body { padding: 0; overflow: visible; }
  .cv-sheet { padding: 0; }
}

/* ==================== RESPONSIVE: TABLET (<=1024px) & PHONE (<=720px) ==================== */
@media (max-width: 1024px) {
  .top-header { padding: 18px 26px; }
  .header-email { display: none; }
  .about-section, .studio-section, .work-section, .contact-section { padding: 104px 32px; }
  .about-grid, .whatido-grid, .contact-grid, .est-body-grid, .mini-pkg-row, .cv-grid { grid-template-columns: 1fr; }
  .standards-row { grid-template-columns: repeat(2, 1fr); }
  .career-row { grid-template-columns: 1fr; gap: 10px; padding-left: 28px; }
  .career-left { text-align: left; padding-right: 0; }
  .career-year { text-align: left; font-size: 1.8rem; }
  .career-right { padding-left: 0; }
  .timeline-track { left: 8px; }
  .social-rail { left: 16px; bottom: 18px; }
  .resume-corner-btn { right: 16px; bottom: 18px; }
}

@media (max-width: 720px) {
  .top-header { padding: 16px 18px; }
  .mobile-menu-btn { display: flex; }
  .header-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    gap: 16px;
    padding: 22px;
    border-radius: 16px;
    background: rgba(6, 8, 10, 0.96);
    border: 1px solid var(--line);
    backdrop-filter: blur(18px);
  }
  .header-nav.open { display: flex; }
  .about-section, .studio-section, .work-section, .contact-section { padding: 84px 20px; }
  .about-quick-facts, .standards-row, .est-srv-grid, .admin-grid, .tech-group { grid-template-columns: 1fr; }
  .techstack-section { padding: 84px 20px; }
  .work-col { flex: 0 0 86vw; min-height: 460px; padding: 26px 20px; }
  .social-rail { display: none; }
  .resume-corner-btn { bottom: 14px; right: 14px; background: rgba(0, 0, 0, 0.8); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); }
  .end-signature-card { flex-direction: column; text-align: center; padding: 20px; }
}
