/* =============================================
   SUJAL KHAMAR PORTFOLIO — STYLESHEET
   Aesthetic: Editorial minimal + Data-dashboard
   Fonts: DM Serif Display + Syne + DM Mono
   ============================================= */

/* ---- CSS Variables ---- */
:root {
  --bg: #020617; /* Deepest Navy/Slate */
  --bg2: #0f172a;
  --bg3: #1e293b;
  --surface: rgba(15, 23, 42, 0.6);
  --surface2: rgba(30, 41, 59, 0.8);
  --text: #f8fafc;
  --text2: #94a3b8;
  --text3: #64748b;
  --accent: #3b82f6; /* Blue 500 */
  --accent2: #2563eb; /* Blue 600 */
  --accent3: #60a5fa; /* Blue 400 */
  --accent-light: rgba(59, 130, 246, 0.15);
  --border: rgba(59, 130, 246, 0.2);
  --border2: rgba(59, 130, 246, 0.08);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);
  --radius: 12px;
  --radius-lg: 24px;
  --nav-h: 80px;
  --glass-blur: blur(16px);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.1);

  /* Typography */
  --font-h: 'Outfit', sans-serif;
  --font-b: 'Inter', sans-serif;
  --font-m: 'DM Mono', monospace;

  /* Chart & Gradient colors */
  --c1: #60a5fa;
  --c2: #3b82f6;
  --c3: #2563eb;
  --g1: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
  --g2: linear-gradient(145deg, rgba(96, 165, 250, 0.15) 0%, rgba(37, 99, 235, 0.05) 100%);
}

[data-theme="dark"] {
  --bg: #eff6ff; /* Light Blue 50 */
  --bg2: #dbeafe;
  --bg3: #bfdbfe;
  --surface: rgba(255, 255, 255, 0.8);
  --surface2: rgba(255, 255, 255, 0.95);
  --text: #0f172a; /* Slate 900 */
  --text2: #1e293b; /* Slate 800 */
  --text3: #334155; /* Slate 700 */
  --accent: #2563eb; /* Blue 600 */
  --accent2: #1d4ed8; /* Blue 700 */
  --accent3: #3b82f6; /* Blue 500 */
  --accent-light: rgba(37, 99, 235, 0.1);
  --border: rgba(37, 99, 235, 0.2);
  --border2: rgba(37, 99, 235, 0.08);
  --shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 48px -8px rgba(15, 23, 42, 0.12);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --g1: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
  --g2: linear-gradient(145deg, rgba(59, 130, 246, 0.1) 0%, rgba(29, 78, 216, 0.04) 100%);
}

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

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

body {
  font-family: var(--font-b);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

.pointer-glow {
  position: fixed;
  width: 30rem;
  height: 30rem;
  left: 0;
  top: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.1;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 0.3s;
}

.page-orb { display: none; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 999px; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  background: rgba(10, 18, 35, 0.52);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

[data-theme="dark"] .navbar.scrolled {
  background: rgba(255, 255, 255, 0.42);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, 92%);
  margin: 0 auto;
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.03em;
  text-shadow: 0 0 18px rgba(138, 125, 255, 0.18);
}

.nav-links {
  display: flex;
  gap: 2.4rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text2);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.25s;
  border-radius: 2px;
}

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.nav-socials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 0.2rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text2);
  transition: color 0.2s, background 0.2s, transform 0.2s;
}

.social-icon:hover {
  color: var(--accent);
  background: var(--surface2);
  transform: translateY(-2px);
}

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

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-highlight), var(--shadow);
}

.theme-toggle:hover { border-color: var(--accent); }
.toggle-icon { position: absolute; transition: transform 0.3s, opacity 0.3s; }
.toggle-icon.moon { opacity: 0; transform: translateY(20px); }

[data-theme="dark"] .toggle-icon.sun { opacity: 0; transform: translateY(-20px); }
[data-theme="dark"] .toggle-icon.moon { opacity: 1; transform: translateY(0); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.dot { color: var(--accent); }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-family: 'Syne', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s, border-color 0.25s;
  border: 1.5px solid transparent;
  transform-style: preserve-3d;
  will-change: transform;
  transform: translateZ(0);
}

.btn-primary {
  background: var(--g1);
  color: #fff;
  border-color: transparent;
}
.btn-primary:hover {
  filter: saturate(1.2);
  transform: translateY(-4px) rotateX(8deg);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.3), 0 18px 36px rgba(59, 130, 246, 0.4), 0 0 30px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
  background: var(--surface2);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-highlight), var(--shadow);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-4px) rotateX(8deg);
}

.btn-ghost {
  background: transparent;
  color: var(--text2);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--accent); transform: translateY(-3px); }

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 2rem) 1rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

.demo-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  background: var(--surface2);
  border: 1px solid var(--accent-light);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.15);
}

.demo-card.featured .demo-visual {
  height: 100%;
  min-height: 300px;
}

@media (max-width: 768px) {
  .demo-card.featured {
    grid-template-columns: 1fr;
  }
}

.demo-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--g1);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.hero-panel {
  position: relative;
  padding: 2rem;
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.6), rgba(30, 41, 59, 0.32));
  border: 1px solid rgba(59, 130, 246, 0.12);
  box-shadow: var(--glass-highlight), var(--shadow-lg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

[data-theme="dark"] .hero-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.5));
}

.hero-bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--border2) 1px, transparent 1px),
    linear-gradient(90deg, var(--border2) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.65;
  pointer-events: none;
}

.hero-orb { display: none; }

.hero-orb-a {
  width: 16rem;
  height: 16rem;
  right: 12%;
  top: 10%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent 72%);
  filter: blur(24px);
}

.hero-orb-b {
  width: 14rem;
  height: 14rem;
  right: 3%;
  bottom: 18%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.4), transparent 70%);
  filter: blur(24px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 1.5rem;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-highlight), var(--shadow);
}

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0); }
}

.hero-name {
  font-family: var(--font-h);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero-name em {
  font-style: normal;
  background: var(--g1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero-title {
  font-size: 1rem;
  color: var(--text2);
  font-weight: 500;
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
  min-height: 1.5rem;
}

.hero-separator {
  display: inline-block;
  margin: 0 0.45rem;
  color: var(--text3);
}

.typewriter {
  font-family: 'DM Mono', monospace;
  color: var(--accent);
  font-size: 0.9rem;
}

.hero-tagline {
  color: var(--text2);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 42rem;
}

/* Work Hero (Gallery Page) */
.work-hero {
  padding: calc(var(--nav-h) + 4rem) 0 4rem;
  background: linear-gradient(180deg, rgba(14, 20, 36, 1) 0%, rgba(10, 15, 28, 0) 100%);
  border-bottom: 1px solid var(--border);
}

.work-hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  margin: 1.5rem 0;
  line-height: 0.95;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.center-actions {
  justify-content: center;
}

.hero-socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.hero-social-icon {
  width: 48px;
  height: 48px;
  background: var(--surface2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--text2);
  transition: all 0.3s ease;
}

.hero-social-icon:hover {
  background: var(--surface3);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.proof-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.16));
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
  box-shadow: var(--glass-highlight), var(--shadow);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  transform: translateZ(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.proof-item:hover {
  transform: translateY(-6px) rotateX(8deg) rotateY(-6deg);
  box-shadow: var(--glass-highlight), var(--shadow-lg), 0 0 24px rgba(138, 125, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.72);
}

.proof-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
  font-family: 'DM Mono', monospace;
  margin-bottom: 0.35rem;
}

.proof-item strong {
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-card-stack {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 460px;
  transform-style: preserve-3d;
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  will-change: transform;
}

.mini-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: transform 0.3s, border-color 0.3s;
}

.mini-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

/* Hero Card Elements */
.mc1 { background: linear-gradient(160deg, rgba(124, 77, 255, 0.12), rgba(255, 255, 255, 0) 70%), var(--surface); }
.mc2 { background: linear-gradient(160deg, rgba(0, 179, 199, 0.12), rgba(255, 255, 255, 0) 70%), var(--surface); }
.mc3 { background: linear-gradient(160deg, rgba(255, 122, 89, 0.12), rgba(255, 255, 255, 0) 70%), var(--surface); }

.mc-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text3);
  margin-bottom: 0.5rem;
}

.mc-value {
  font-family: 'DM Serif Display', serif;
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
}

.hero-chart-wrap {
  grid-column: 1 / -1;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.hc-title {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'DM Mono', monospace;
  color: var(--text3);
  margin-bottom: 0.65rem;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-family: 'DM Mono', monospace;
  color: var(--text3);
  letter-spacing: 0.1em;
  animation: float 2.5s ease-in-out infinite;
  white-space: nowrap;
}

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

/* =============================================
   SECTIONS (shared)
   ============================================= */
.section {
  padding: 6rem 0;
}

.section:nth-child(even) {
  background: var(--bg2);
}

.section {
  position: relative;
}

.section-label {
  font-family: var(--font-m);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

.section-label.compact {
  margin-bottom: 0.35rem;
}

.section-heading {
  font-family: var(--font-h);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.section-sub {
  color: var(--text2);
  font-size: 1rem;
  margin-bottom: 3rem;
}

/* Scoping reveals for JS primarily */
.reveal {
  opacity: 1; 
  transform: none;
}

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

/* =============================================
   BENTO IMPACT SECTION
   ============================================= */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 1.5rem;
  margin-top: 3rem;
}

.bento-item {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1), box-shadow 0.4s;
  will-change: transform;
  transform: translateZ(0);
}

.bento-item:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: var(--shadow-lg), 0 20px 40px rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.3);
}

.bento-main { grid-column: span 7; }
.bento-mid { grid-column: span 5; }
.bento-wide { grid-column: span 12; min-height: 200px; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }

.bento-kicker {
  font-family: var(--font-m);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.bento-item h3 {
  font-family: var(--font-h);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

.bento-item p {
  color: var(--text2);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 95%;
}

.bento-visual {
  position: absolute;
  top: -10%; right: -10%;
  width: 60%; height: 60%;
  z-index: -1;
  opacity: 0.1;
  filter: blur(40px);
  background: radial-gradient(circle, var(--accent), transparent 70%);
  transition: opacity 0.4s, transform 0.6s;
}

.bento-item:hover .bento-visual {
  opacity: 0.25;
  transform: scale(1.3);
}

@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-main, .bento-mid, .bento-wide { grid-column: span 1; }
  .bento-wide { grid-template-columns: 1fr; }
}

/* =============================================
   ABOUT
   ============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  color: var(--text2);
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

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

.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.pill {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(196, 98, 45, 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.fact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s, transform 0.2s;
}

.fact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--g2);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.fact-card:hover {
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: var(--glass-highlight), var(--shadow-lg), 0 0 22px rgba(55, 217, 244, 0.14);
  transform: translateY(-8px) rotateX(7deg);
}
.fact-card > * { position: relative; z-index: 1; }
.fact-card:hover::before { opacity: 1; }

.fact-icon { font-size: 1.5rem; flex-shrink: 0; }
.fact-card strong { font-size: 0.95rem; font-weight: 700; }
.fact-card p { font-size: 0.85rem; color: var(--text3); margin-top: 0.15rem; }

.workflow-panel {
  margin-top: 2rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  align-items: center;
}

.workflow-copy h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.workflow-copy p {
  color: var(--text2);
  line-height: 1.7;
}

.workflow-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.workflow-steps span {
  display: inline-flex;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--surface2);
  border: 1px solid var(--border);
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  color: var(--text2);
  box-shadow: var(--glass-highlight), var(--shadow);
}

/* =============================================
   SKILLS
   ============================================= */
.skills-section { background: var(--bg2); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.skill-category:hover {
  border-color: rgba(255, 255, 255, 0.82);
  transform: translateY(-8px) rotateX(8deg);
  box-shadow: var(--glass-highlight), var(--shadow-lg), 0 0 24px rgba(138, 125, 255, 0.16);
}
.skill-category:nth-child(1) { border-top: 3px solid #7c4dff; }
.skill-category:nth-child(2) { border-top: 3px solid #00b3c7; }
.skill-category:nth-child(3) { border-top: 3px solid #ff7a59; }
.skill-category:nth-child(4) { border-top: 3px solid #5b8cff; }

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.skill-cat-icon { font-size: 1.1rem; }

.skill-bar-list { display: flex; flex-direction: column; gap: 0.9rem; }

.skill-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 0.35rem;
}

.skill-bar {
  height: 6px;
  background: var(--bg3);
  border-radius: 999px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 999px;
  width: 0;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.tool-tag {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text2);
  font-family: 'DM Mono', monospace;
  transition: border-color 0.2s, color 0.2s;
}

.tool-tag:hover { border-color: rgba(255, 255, 255, 0.8); color: var(--accent); transform: translateY(-4px); }

/* =============================================
   PROJECTS
   ============================================= */
.project-filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-family: 'Syne', sans-serif;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text2);
  transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--g1);
  border-color: transparent;
  color: #fff;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  transition: border-color 0.25s, transform 0.3s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  min-height: 320px;
}

.project-card:hover {
  border-color: var(--accent);
}

.project-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-visual {
  position: relative;
  width: 45%;
  flex-shrink: 0;
  overflow: hidden;
  border-right: 1px solid var(--border);
  background: var(--bg2);
}

.pv-window,
.phone-mock,
.planet-card,
.inventory-board,
.storefront {
  position: absolute;
  inset: 0;
}

.pv-window {
  padding: 0.9rem;
}

.pv-header {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
}

.pv-header span {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.pv-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  height: calc(100% - 1.4rem);
}

.pv-col {
  border-radius: 0.9rem;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  opacity: 0.8;
}

.pv-col.tall { height: 100%; }
.pv-col.short { height: 58%; align-self: end; }
.pv-col.medium { height: 76%; align-self: end; }

.phone-mock {
  width: 9rem;
  margin: 0.8rem auto;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, #0f172a, #1e293b);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.phone-notch {
  width: 3.8rem;
  height: 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0.7rem auto 0;
}

.phone-screen {
  padding: 1rem 0.8rem 0.8rem;
}

.phone-card {
  height: 2.2rem;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, var(--accent2), var(--accent3));
  opacity: 0.6;
}

.phone-card.wide {
  height: 3rem;
  margin-bottom: 0.7rem;
}

.phone-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin-bottom: 0.7rem;
}

.phone-row span {
  display: block;
  height: 1.4rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.12);
}

.planet-card {
  display: flex;
  align-items: center;
  justify-content: center;
}

.planet {
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent), var(--accent2) 42%, var(--bg3) 82%);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.3);
  position: relative;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.orbit-a {
  width: 7.5rem;
  height: 3rem;
  transform: rotate(18deg);
}

.orbit-b {
  width: 7rem;
  height: 2.5rem;
  transform: rotate(-18deg);
}

.inventory-board {
  padding: 1rem;
}

.inventory-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.inventory-row span {
  display: block;
  height: 2rem;
  border-radius: 0.7rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(138, 125, 255, 0.18));
}

.inventory-tag {
  width: 4.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
}

.storefront {
  padding: 1rem;
}

.store-search {
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  margin-bottom: 0.9rem;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.store-grid span {
  display: block;
  height: 3rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, var(--accent3), var(--accent));
  opacity: 0.5;
}

.pv-portfolio { background: var(--g2); }
.pv-student { background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(59, 130, 246, 0.08)); }
.pv-carbon { background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(34, 211, 238, 0.08)); }
.pv-inventory { background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(59, 130, 246, 0.08)); }
.pv-amazon { background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(34, 211, 238, 0.12)); }
.project-card:nth-child(odd) {
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.05), rgba(255, 255, 255, 0) 60%), var(--surface);
}
.project-card:nth-child(even) {
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.05), rgba(255, 255, 255, 0) 60%), var(--surface);
}

.project-img-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg3);
  overflow: hidden;
  border-bottom: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.project-img-placeholder {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.project-card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--g1);
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.82);
  transform: translateY(-12px) rotateX(9deg) rotateY(-7deg);
  box-shadow: var(--glass-highlight), var(--shadow-lg), 0 0 32px rgba(55, 217, 244, 0.14);
}

.project-card:hover::before { opacity: 1; }

.project-card.hidden { display: none; }

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.project-number {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  color: var(--border);
  line-height: 1;
  letter-spacing: -0.05em;
}

.project-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tag {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--bg3);
  color: var(--text2);
}

.tag-data { background: rgba(74, 155, 143, 0.15); color: #4a9b8f; }
.tag-app { background: rgba(124, 77, 255, 0.16); color: #6b45dd; }
.tag-iot { background: rgba(255, 122, 89, 0.16); color: #e55f3b; }

.project-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.project-metric {
  margin-bottom: 1rem;
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius);
  background: var(--accent-light);
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.6;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.project-section { margin-bottom: 1rem; }

.ps-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 0.35rem;
  font-family: 'DM Mono', monospace;
}

.project-section p, .project-section li {
  font-size: 0.875rem;
  color: var(--text2);
  line-height: 1.65;
}

.project-section.insights li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
}

.project-section.insights li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border2);
}

.project-tools {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--text3);
}

.project-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.03em;
  transition: letter-spacing 0.2s;
}

.project-link:hover { letter-spacing: 0.08em; }

/* =============================================
   PLAYGROUND
   ============================================= */
.playground-wrap {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

.playground-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.control-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text3);
  margin-bottom: 0.75rem;
}

.range-input {
  width: 100%;
  height: 6px;
  background: var(--bg3);
  border-radius: 999px;
  appearance: none;
  outline: none;
  cursor: pointer;
}

.range-input::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border: 3px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}

.select-input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
}

.playground-metric-box {
  margin-top: auto;
  padding: 1.5rem;
  background: var(--g2);
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
}

.p-metric-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  color: var(--text3);
}

.p-metric-value {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  color: var(--accent3);
}

.playground-chart {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid var(--border2);
  min-height: 300px;
}

/* =============================================
   PREMIUM UTILS
   ============================================= */
.lenis-smooth {
  scroll-behavior: auto !important;
}

html.lenis {
  height: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.magnetic-wrap {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* =============================================
   RESPONSIVE (Playground)
   ============================================= */
@media (max-width: 900px) {
  .playground-wrap {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   FOOTER (Remapped)
   ============================================= */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.03));
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text3);
  font-style: italic;
}

.footer-links {
  display: flex;
  gap: 2rem;
  margin: 0.5rem 0;
}

.footer-links a {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text2);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

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

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-visual { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-badge { margin: 0 auto 1.5rem; }
  .hero-proof { grid-template-columns: 1fr; }

  .about-grid { grid-template-columns: 1fr; }
  .about-sidebar { order: -1; }
  .workflow-panel { grid-template-columns: 1fr; text-align: center; }
  .workflow-steps { justify-content: center; }
  .impact-grid { grid-template-columns: 1fr; }

  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .charts-row { grid-template-columns: 1fr; }
  .insight-row { grid-template-columns: 1fr; }

  .resume-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .page-orb { opacity: 0.28; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform 0.35s;
    z-index: 999;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open { transform: translateY(0); }

  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 0.85rem; font-size: 1rem; }

  .hamburger { display: flex; }

  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .projects-grid { gap: 2rem; }
  .project-card { flex-direction: column; min-height: 0; }
  .project-visual { width: 100%; height: 200px; border-right: none; border-bottom: 1px solid var(--border); }
  .project-content { padding: 1.5rem; }
  .hero-card-stack { max-width: 100%; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 4rem 0; }
  .project-content { padding: 1.3rem; }
  .proof-item:hover,
  .mini-card:hover,
  .impact-card:hover,
  .fact-card:hover,
  .skill-category:hover,
  .project-card:hover,
  .github-stat-card:hover,
  .resume-block:hover,
  .achievement-card:hover,
  .cert-card:hover,
  .contact-card:hover {
    transform: translateY(-6px);
  }
}

@media (max-width: 480px) {
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .hero-name { font-size: 3rem; }
  .scroll-hint { display: none; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
}


/* =============================================
   SCROLL PROGRESS BAR
   ============================================= */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 10001;
  will-change: transform;
}

/* Performance Diet: Mobile Overrides */
@media (max-width: 1024px) {
  * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .page-orb, .pointer-glow { display: none !important; }
  .tilt-card { transform: none !important; }
  .hero-panel { background: var(--surface2); }
}

/* =============================================
   FINAL PERFORMANCE OVERRIDES
   ============================================= */

.hero-panel-centered {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 3rem;
  border-radius: 12px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

.custom-cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
  display: block;
}

.custom-cursor.hover {
  transform: translate(-50%, -50%) scale(4);
  background: transparent;
  border: 1px solid var(--accent);
}

.hero-orb, .pointer-glow {
  display: none !important;
}

[data-theme='light'] .hero-panel-centered {
  background: #f8f9fa;
}

.repo-link-accent {
  color: var(--accent);
  text-decoration: none;
}

.project-actions-flex {
  display: flex;
  gap: 1rem;
}

/* Nav Resume Button */
.btn-nav {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 8px;
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent);
  text-decoration: none;
  border: 1px solid rgba(6, 182, 212, 0.2);
  transition: all 0.3s ease;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-nav:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  color: var(--text2);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Terminal Hero */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.terminal-mockup {
  background: #0f172a;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  overflow: hidden;
  text-align: left;
}

.terminal-header {
  background: #1e293b;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.term-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.term-dot.r { background: #ff5f56; }
.term-dot.y { background: #ffbd2e; }
.term-dot.g { background: #27c93f; }

.terminal-body {
  padding: 1.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.9rem;
  color: #a5b4fc;
  line-height: 1.6;
}
.term-kw { color: #f472b6; }
.term-str { color: #34d399; }
.term-func { color: #60a5fa; }

@media (max-width: 992px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Bento Box Skills */
.bento-skills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.bento-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.15);
}

.bento-card.wide {
  grid-column: span 2;
}

.bento-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.bento-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.bento-desc {
  font-size: 0.85rem;
  color: var(--text2);
}

@media (max-width: 768px) {
  .bento-skills {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .bento-skills {
    grid-template-columns: 1fr;
  }
  .bento-card.wide {
    grid-column: span 1;
  }
}


/* Scroll Progress Bar */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 10002;
}

.scroll-progress-bar {
  height: 100%;
  background: var(--accent);
  width: 0%;
  box-shadow: 0 0 10px var(--accent);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 45px;
  height: 45px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Timeline Styles */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 1rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  width: 2px;
  height: 100%;
  background: var(--border);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 3rem;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 3rem;
}

.timeline-dot {
  position: absolute;
  top: 0;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -8px;
}

.timeline-content {
  background: var(--surface2);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 3rem !important;
    padding-right: 0 !important;
    text-align: left !important;
  }
  .timeline-dot {
    left: 12px !important;
  }
}

/* Filter Buttons */
.filter-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 99px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text2);
  cursor: pointer;
  transition: all 0.3s ease;
}

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

/* 404 Page Specific Styles */
.error-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.error-code {
  font-size: 10rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Auto-extracted inline styles */
.inline-style-43cc1c6e { margin-top: 120px; }
.inline-style-eda62db4 { margin-bottom: 100px; }
.inline-style-0c0e72b8 { background: linear-gradient(135deg, var(--bg3), var(--surface2)); height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; border-right: 1px solid var(--border); }
.inline-style-6e387a7e { font-family: var(--font-m); font-size: 2.5rem; margin-bottom: 1rem; color: var(--accent); }
.inline-style-7dc5e730 { font-family: var(--font-m); font-size: 0.9rem; text-align: center; color: var(--text2); }
.inline-style-46105dcd { padding: 2rem; }
.inline-style-c903ccf8 { font-size: 1.8rem; margin-bottom: 1rem; }
.inline-style-1c8a19cc { font-size: 1rem; line-height: 1.6; color: var(--text2); margin-bottom: 1.5rem; }
.inline-style-b88e1d15 { background: linear-gradient(135deg, #0f172a, #1e293b); height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; border-right: 1px solid var(--border); }
.inline-style-b472e7d9 { text-align: center; margin-top: 5rem; }
.inline-style-d3297f95 { margin-bottom: 1.5rem; }
.inline-style-b3f290c2 { font-size: 2rem; margin-bottom: 2rem; font-family: var(--font-h); }
.inline-style-215fd710 { padding: 1.25rem 3rem; font-size: 1.1rem; box-shadow: 0 0 32px rgba(34, 211, 238, 0.2); }
.inline-style-e1f7f299 { margin-top: 1.5rem; color: var(--text3); font-size: 0.95rem; font-family: var(--font-m); }
.inline-style-185d793c { margin-top: 1.5rem; }
.inline-style-8588e44d { width:100%; }
.inline-style-a36cd51e { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); display: flex; align-items: center; justify-content: center; }
.inline-style-8f24c154 { width: 70%; height: 70%; padding: 1rem; }
.inline-style-f51f732b { background: #ef4444; }
.inline-style-25aab211 { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); display: flex; align-items: center; justify-content: center; }
.inline-style-e6ff8047 { width: 60%; height: 60%; border: 2px solid var(--accent); border-radius: 8px; position: relative; overflow: hidden; }
.inline-style-787b40ea { position: absolute; bottom: 0; left: 10%; width: 20%; height: 40%; background: var(--accent); opacity: 0.3; }
.inline-style-76bb391f { position: absolute; bottom: 0; left: 40%; width: 20%; height: 70%; background: var(--accent); opacity: 0.6; }
.inline-style-a8ed9c28 { position: absolute; bottom: 0; left: 70%; width: 20%; height: 55%; background: var(--accent); }
.inline-style-d2bb436a { border-style: dashed; opacity: 0.8; }
.inline-style-58b25c0c { background: var(--surface2); }
.inline-style-717f8e48 { font-size: clamp(2.5rem, 6vw, 4rem); margin: 1rem 0; }
.inline-style-882a7d52 { margin-bottom: 1rem; opacity: 0.5; }
.inline-style-3c92e1e6 { margin-top: 3rem; }
.inline-style-9e2c2d67 { margin-bottom: 1rem; font-family: var(--font-h); }
.inline-style-988c5fa7 { margin-top: 1rem; }
.inline-style-f667c45e { background: var(--accent); color: var(--surface); }
.inline-style-edcc8eaa { color: rgba(0,0,0,0.6); }
.inline-style-4f1f4efc { color: inherit; font-weight: 700; text-decoration: none; }
.inline-style-8fd05c47 { margin-top: 5rem; border-top: 1px solid var(--border); padding-top: 3rem; }
.inline-style-2bd86eac { font-family: var(--font-h); margin-bottom: 2rem; }
.inline-style-ebf135c6 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.inline-style-ac79cce7 { margin-bottom: 0.5rem; }
.inline-style-bf5c449b { font-size: 0.95rem; color: var(--text2); }
.inline-style-cdd8ca06 { text-align: center; }
.inline-style-c104189e { margin-top: 2rem; color: var(--text3); font-size: 0.9rem; }
