/* ====================================================
   NOBITA PORTFOLIO — STYLE.CSS
   ==================================================== */

/* ── CSS VARIABLES / THEMES ── */
:root {
  --bg: #0b0e14;
  --bg2: #111520;
  --bg3: #161b27;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eaf0;
  --text-muted: #8892a4;
  --text-faint: #4a5568;

  /* default: green-blue */
  --acc1: #22d3ee;
  --acc2: #4ade80;
  --grad: linear-gradient(135deg, #22d3ee, #4ade80);
  --grad-soft: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(74, 222, 128, 0.15));
  --grad-text: linear-gradient(135deg, #22d3ee 0%, #4ade80 100%);
  --progress-color: #22d3ee;
  --shadow-acc: 0 0 40px rgba(34, 211, 238, 0.2);
  --shadow-acc2: 0 0 60px rgba(74, 222, 128, 0.15);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --nav-h: 68px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── THEME OVERRIDES ── */
[data-theme="light-blue"] {
  --acc1: #38bdf8;
  --acc2: #7dd3fc;
  --grad: linear-gradient(135deg, #38bdf8, #7dd3fc);
  --grad-soft: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(125, 211, 252, 0.15));
  --grad-text: linear-gradient(135deg, #38bdf8 0%, #7dd3fc 100%);
  --progress-color: #38bdf8;
  --shadow-acc: 0 0 40px rgba(56, 189, 248, 0.2);
  --shadow-acc2: 0 0 60px rgba(125, 211, 252, 0.15);
}

[data-theme="dark-blue"] {
  --acc1: #3b82f6;
  --acc2: #1e40af;
  --grad: linear-gradient(135deg, #1e3a5f, #2563eb);
  --grad-soft: linear-gradient(135deg, rgba(30, 58, 95, 0.3), rgba(37, 99, 235, 0.2));
  --grad-text: linear-gradient(135deg, #60a5fa 0%, #93c5fd 100%);
  --progress-color: #3b82f6;
  --shadow-acc: 0 0 40px rgba(59, 130, 246, 0.25);
  --shadow-acc2: 0 0 60px rgba(37, 99, 235, 0.2);
}

[data-theme="blue"] {
  --acc1: #6366f1;
  --acc2: #818cf8;
  --grad: linear-gradient(135deg, #3b82f6, #818cf8);
  --grad-soft: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(129, 140, 248, 0.15));
  --grad-text: linear-gradient(135deg, #818cf8 0%, #a5b4fc 100%);
  --progress-color: #818cf8;
  --shadow-acc: 0 0 40px rgba(99, 102, 241, 0.2);
  --shadow-acc2: 0 0 60px rgba(129, 140, 248, 0.15);
}

[data-theme="red"] {
  --acc1: #f87171;
  --acc2: #fb923c;
  --grad: linear-gradient(135deg, #f87171, #fb923c);
  --grad-soft: linear-gradient(135deg, rgba(248, 113, 113, 0.15), rgba(251, 146, 60, 0.15));
  --grad-text: linear-gradient(135deg, #f87171 0%, #fb923c 100%);
  --progress-color: #f87171;
  --shadow-acc: 0 0 40px rgba(248, 113, 113, 0.2);
  --shadow-acc2: 0 0 60px rgba(251, 146, 60, 0.15);
}

[data-theme="dark-red"] {
  --acc1: #dc2626;
  --acc2: #991b1b;
  --grad: linear-gradient(135deg, #7f1d1d, #dc2626);
  --grad-soft: linear-gradient(135deg, rgba(127, 29, 29, 0.3), rgba(220, 38, 38, 0.2));
  --grad-text: linear-gradient(135deg, #f87171 0%, #fca5a5 100%);
  --progress-color: #dc2626;
  --shadow-acc: 0 0 40px rgba(220, 38, 38, 0.25);
  --shadow-acc2: 0 0 60px rgba(153, 27, 27, 0.2);
}

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

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

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

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

/* ── LOADER ── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  text-align: center;
}

.loader-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  animation: fadeUp 0.5s 0.2s ease both;
}

.code-bracket {
  color: var(--acc1);
  font-weight: 700;
}

.code-main {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loader-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  margin-bottom: 20px;
  animation: fadeUp 0.5s 0.3s ease both;
}

.loader-text-main {
  display: inline-block;
}

.loader-cursor {
  display: inline-block;
  color: var(--acc1);
  animation: blink 0.7s steps(1) infinite;
  margin-left: 4px;
  font-weight: 700;
}

.loader-progress {
  width: 180px;
  height: 2px;
  background: rgba(232, 234, 240, 0.1);
  border-radius: 1px;
  margin: 20px auto;
  overflow: hidden;
  animation: fadeUp 0.5s 0.4s ease both;
}

.loader-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--grad);
  border-radius: 1px;
  animation: loadFill 2s 0.4s ease forwards;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.loader-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: rgba(232, 234, 240, 0.5);
  letter-spacing: 0.1em;
  margin-top: 16px;
  animation: fadeUp 0.5s 0.5s ease both;
}

@keyframes loadFill {
  to {
    width: 100%;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(11, 14, 20, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(11, 14, 20, 0.92);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 800;
  font-size: 1.2rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all var(--transition);
}

.logo-bracket {
  opacity: 0.6;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 6px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.25s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: var(--surface-hover);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--grad);
  border-radius: 99px;
  transition: background var(--transition);
}

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

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}

.theme-toggle-btn:hover {
  background: var(--surface-hover);
  color: var(--acc1);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.15);
}

.theme-icon {
  width: 18px;
  height: 18px;
  transition: color var(--transition);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all 0.3s;
}

.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);
}

/* Theme Panel */
.theme-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 24px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  width: 240px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-panel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: none;
}

.theme-panel-header {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 600;
}

.theme-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.theme-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.2s;
  text-align: left;
}

.theme-opt:hover {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--border);
}

.theme-opt.active {
  background: var(--grad-soft);
  color: var(--text);
  border-color: var(--acc1);
}

.theme-swatch {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu.open {
  transform: none;
  opacity: 1;
  visibility: visible;
}

.mob-link {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.2s;
}

.mob-link:hover {
  background: var(--surface-hover);
  color: var(--text);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.1) 0%, transparent 70%);
  bottom: -50px;
  left: -80px;
  animation-delay: 3s;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.06) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 5s;
}

@keyframes blobFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(20px, -20px) scale(1.03);
  }

  66% {
    transform: translate(-15px, 15px) scale(0.97);
  }
}

/* Recolor blobs on theme change */
[data-theme="light-blue"] .blob-1 {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
}

[data-theme="light-blue"] .blob-2 {
  background: radial-gradient(circle, rgba(125, 211, 252, 0.1) 0%, transparent 70%);
}

[data-theme="dark-blue"] .blob-1 {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14) 0%, transparent 70%);
}

[data-theme="dark-blue"] .blob-2 {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
}

[data-theme="blue"] .blob-1 {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
}

[data-theme="blue"] .blob-2 {
  background: radial-gradient(circle, rgba(129, 140, 248, 0.1) 0%, transparent 70%);
}

[data-theme="red"] .blob-1 {
  background: radial-gradient(circle, rgba(248, 113, 113, 0.12) 0%, transparent 70%);
}

[data-theme="red"] .blob-2 {
  background: radial-gradient(circle, rgba(251, 146, 60, 0.1) 0%, transparent 70%);
}

[data-theme="dark-red"] .blob-1 {
  background: radial-gradient(circle, rgba(220, 38, 38, 0.14) 0%, transparent 70%);
}

[data-theme="dark-red"] .blob-2 {
  background: radial-gradient(circle, rgba(127, 29, 29, 0.1) 0%, transparent 70%);
}

/* Grid overlay */
.grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Meta row (status + clock) */
.hero-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.25s;
  cursor: pointer;
}

.status-badge:hover {
  background: var(--surface-hover);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: statusPulse 2s ease infinite;
}

.status-dot.dnd {
  background: #f87171;
  box-shadow: 0 0 8px #f87171;
  animation: none;
}

.status-dot.idle {
  background: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
  animation: statusPulseIdle 3s ease infinite;
}

.status-dot.offline {
  background: #6b7280;
  box-shadow: none;
  animation: none;
}

@keyframes statusPulse {

  0%,
  100% {
    box-shadow: 0 0 4px #4ade80;
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 12px #4ade80;
    transform: scale(1.1);
  }
}

@keyframes statusPulseIdle {

  0%,
  100% {
    box-shadow: 0 0 4px #fbbf24;
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 10px #fbbf24;
    transform: scale(1.05);
  }
}

.live-clock {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.live-clock svg {
  flex-shrink: 0;
  stroke: var(--acc1);
  transition: stroke var(--transition);
}

/* Hero Avatar */
.hero-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
}

.hero-avatar::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--grad);
  z-index: 0;
  animation: avatarGlow 3s ease-in-out infinite;
}

.hero-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  border: 3px solid var(--bg);
}

@keyframes avatarGlow {

  0%,
  100% {
    box-shadow: 0 0 15px var(--acc1), 0 0 30px rgba(34, 211, 238, 0.2);
  }

  50% {
    box-shadow: 0 0 25px var(--acc1), 0 0 50px rgba(74, 222, 128, 0.3);
  }
}

.hero-avatar:hover .hero-avatar-img {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* Hero text */
.hero-greeting {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.hero-name {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  font-family: 'JetBrains Mono', monospace;
}

.name-highlight {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: background var(--transition);
}

.hero-handle {
  margin-bottom: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  color: var(--acc1);
  transition: color var(--transition);
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 28px;
  max-width: 420px;
  line-height: 1.5;
  font-family: 'JetBrains Mono', monospace;
}

/* Code syntax colors */
.code-open, .code-close {
  color: var(--acc1);
  font-weight: 700;
}

.code-comment {
  color: rgba(156, 163, 175, 0.8);
}

.code-func {
  color: #c084fc;
}

.code-var {
  color: #60a5fa;
}

.code-op {
  color: var(--acc1);
}

.code-str {
  color: #34d399;
}

/* Info chips */
.hero-info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.info-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.83rem;
  color: var(--text-muted);
  transition: all 0.25s;
}

.info-chip:hover {
  background: var(--surface-hover);
  border-color: var(--acc1);
  color: var(--text);
}

.info-chip svg {
  width: 14px;
  height: 14px;
  stroke: var(--acc1);
  flex-shrink: 0;
  transition: stroke var(--transition);
}

/* CTA buttons */
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 13px 28px;
  background: var(--grad);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  color: #0b0e14;
  box-shadow: var(--shadow-acc);
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-acc), 0 8px 30px rgba(0, 0, 0, 0.3);
  filter: brightness(1.08);
}

.btn-outline {
  padding: 13px 28px;
  border: 1px solid var(--acc1);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--acc1);
  background: transparent;
  transition: all 0.25s;
}

.btn-outline:hover {
  background: var(--grad-soft);
  transform: translateY(-2px);
}

/* Code Card */
.hero-right {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--shadow-acc);
  transition: box-shadow var(--transition);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}

.card-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.card-dot.red {
  background: #f87171;
}

.card-dot.yellow {
  background: #fbbf24;
}

.card-dot.green {
  background: var(--acc2);
  transition: background var(--transition);
}

.card-filename {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.card-code {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.code-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.83rem;
  line-height: 1.7;
  white-space: pre;
}

.code-line.pad {
  padding-left: 2rem;
}

.c-keyword {
  color: #c792ea;
}

.c-var {
  color: #82aaff;
}

.c-op {
  color: #89ddff;
}

.c-punc {
  color: #89ddff;
}

.c-key {
  color: #f78c6c;
}

.c-str {
  color: #c3e88d;
}

.c-num {
  color: #f78c6c;
}

.c-bool {
  color: #ff5370;
}

.c-comment {
  color: var(--text-faint);
  font-style: italic;
}

.cursor-blink {
  color: var(--acc1);
  transition: color var(--transition);
  animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeUp 1s 2s ease both;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text-faint);
  border-bottom: 2px solid var(--text-faint);
  transform: rotate(45deg);
  animation: scrollBounce 1.5s ease infinite;
  transition: border-color var(--transition);
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: rotate(45deg) translateY(0);
  }

  50% {
    transform: rotate(45deg) translateY(5px);
  }
}

/* ── SECTIONS ── */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  transition: background var(--transition);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.2;
  font-family: 'JetBrains Mono', monospace;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 52px;
  font-family: 'JetBrains Mono', monospace;
}

/* ── SKILLS ── */
.skills-section {
  padding: 100px 0;
  background: var(--bg);
  position: relative;
}

.skills-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  pointer-events: none;
  transition: background var(--transition);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  position: relative;
  z-index: 1;
}

.skill-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.skill-card:hover {
  border-color: var(--acc1);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), var(--shadow-acc);
}

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

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.skill-icon {
  width: 52px;
  height: 52px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.deploy-icon {
  stroke: var(--acc1);
  transition: stroke var(--transition);
}

.skill-info {
  flex: 1;
}

.skill-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 2px;
}

.skill-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  transition: background var(--transition);
}

.progress-wrap {
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 14px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--grad);
  border-radius: 99px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1), background var(--transition);
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acc1);
  box-shadow: 0 0 8px var(--acc1);
  transition: background var(--transition), box-shadow var(--transition);
}

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

.skill-tags span {
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── PROJECTS ── */
.projects-section {
  padding: 100px 0;
  background: var(--bg2);
  position: relative;
}

.projects-grid {
  display: grid;
yeh   grid-template-columns: 1fr;
  justify-items: center;
  gap: 24px;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--bg3);
  transition: all 0.35s ease;
}

.project-card-bg {
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity 0.35s;
}

.project-card:hover {
  border-color: var(--acc1);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), var(--shadow-acc);
}

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

.project-card-content {
  padding: 14px 16px 12px 16px;
  position: relative;
  z-index: 1;
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.project-icon-wrap {
  width: 56px;
  height: 56px;
  background: var(--grad);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b0e14;
  box-shadow: var(--shadow-acc);
  transition: background var(--transition), box-shadow var(--transition);
}

.project-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.badge {
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.active-badge {
  background: rgba(74, 222, 128, 0.18);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.4);
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: statusPulse 2s ease infinite;
}

.tech-badge {
  background: rgba(0, 255, 255, 0.08);
  color: #00ffff;
  border: 1px solid rgba(0, 255, 255, 0.2);
  transition: all 0.25s ease;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
  color: #fff;
}

.project-desc {
  font-size: 0.9rem;
  color: rgba(232, 234, 240, 0.75);
  line-height: 1.6;
  margin-bottom: 12px;
  font-weight: 400;
}

.project-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}

.tech-tag {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 255, 255, 0.15);
  font-size: 0.72rem;
  color: rgba(232, 234, 240, 0.7);
  font-weight: 500;
  transition: all 0.2s ease;
}

.project-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.feat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.feat-item svg {
  stroke: var(--acc1);
  flex-shrink: 0;
  transition: stroke var(--transition);
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.btn-learn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  background: var(--grad);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  color: #0b0e14;
  transition: all 0.25s;
}

.btn-learn:hover {
  transform: translateX(3px);
  filter: brightness(1.1);
}

.project-stats {
  display: flex;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Classical Flixo Card Styles */
.flixo-classical-card {
  border: 1px solid rgba(0, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(11, 14, 20, 0.98), rgba(17, 21, 32, 0.92));
  max-width: 580px;
  width: 95%;
  margin: 0 auto;
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.flixo-classical-card:hover {
  border-color: rgba(0, 255, 255, 0.25);
  box-shadow: 0 20px 60px rgba(0, 255, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.flixo-icon-main {
  width: 70px !important;
  height: 70px !important;
  background: linear-gradient(135deg, #00ffff, #0ea5e9) !important;
  padding: 0;
  border-radius: 14px !important;
  box-shadow: 0 0 24px rgba(0, 255, 255, 0.25) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.35s ease !important;
  text-decoration: none;
  cursor: pointer;
}

.flixo-icon-main:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 0 32px rgba(0, 255, 255, 0.35) !important;
}

.flixo-title-glow {
  background: linear-gradient(to right, #ffffff 0%, #00ffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: brightness(1.05);
}

.project-features-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.feat-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(232, 234, 240, 0.7);
}

.feat-list-item svg {
  stroke: #00ffff;
  background: rgba(0, 255, 255, 0.12);
  padding: 4px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.btn-learn-classical {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #00ffff, #0ea5e9);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  color: #0b0e14;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 20px rgba(0, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-learn-classical:hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.1);
  box-shadow: 0 12px 28px rgba(0, 255, 255, 0.3);
}

.project-stats-classical {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(232, 234, 240, 0.6);
  margin-top: 10px;
}

.project-stats-classical span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Flixo: Premium toggle + Add button styles */
.toggle-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(232, 234, 240, 0.7);
  cursor: pointer;
}
.toggle-switch input { display: none; }
.toggle-switch .switch-track {
  width: 46px;
  height: 26px;
  background: var(--surface);
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-block;
  position: relative;
}
.toggle-switch .switch-knob {
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  box-shadow: 0 4px 10px rgba(2, 6, 23, 0.6);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.toggle-switch input:checked + .switch-track .switch-knob {
  transform: translateX(20px);
  background: linear-gradient(135deg,#ffd54a,#ffc107);
  box-shadow: 0 8px 22px rgba(255,193,7,0.18);
}
.toggle-switch .switch-label {
  font-size: 0.78rem;
  color: rgba(232, 234, 240, 0.7);
  margin-left: 6px;
  cursor: pointer;
}

.footer-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(0, 255, 255, 0.08);
  border-radius: 8px;
  border: 1px solid var(--acc1);
  color: var(--acc1);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.88rem;
  transition: all 0.22s;
}
.btn-add:hover { background: rgba(0, 255, 255, 0.15); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 255, 255, 0.15); }
.btn-add.disabled, .btn-add[aria-disabled="true"] { opacity: 0.6; pointer-events: none; filter: grayscale(0.3); }

/* Premium visual theme for Flixo card */
.flixo-classical-card.premium .flixo-icon-main {
  background: linear-gradient(135deg, #FFD54A, #FFC107) !important;
  box-shadow: 0 0 32px rgba(255, 193, 7, 0.22) !important;
}
.flixo-classical-card.premium .flixo-title-glow {
  background: linear-gradient(to right, #fff, #ffd54a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255,193,7,0.12);
}
.flixo-classical-card .flixo-icon-main img {
  transition: filter 0.35s, transform 0.35s;
  border-radius: 12px;
}
.flixo-classical-card.premium .flixo-icon-main img {
  filter: sepia(1) saturate(6) hue-rotate(-40deg) brightness(1.05);
  transform: scale(1.02);
}
.flixo-classical-card.premium .badge-dot { background: #ffd54a; box-shadow: 0 0 8px #ffd54a; }

/* Placeholder card */
.project-placeholder {
  background: var(--bg3);
  border-style: dashed;
}

.placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  text-align: center;
  gap: 12px;
}

.placeholder-icon {
  color: var(--text-faint);
}

.placeholder-inner h3 {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.placeholder-inner p {
  color: var(--text-faint);
  font-size: 0.88rem;
}

/* ── CONTACT ── */
.contact-section {
  padding: 100px 0;
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.25s;
}

.contact-card:hover {
  border-color: var(--acc1);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--grad-soft);
  border: 1px solid var(--acc1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}

.contact-icon svg {
  stroke: var(--acc1);
  width: 20px;
  height: 20px;
  transition: stroke var(--transition);
}

.contact-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}

.contact-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}

a.contact-value:hover {
  color: var(--acc1);
}

/* ── FOOTER ── */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.footer-logo {
  font-weight: 800;
  font-size: 1.3rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 8px;
  transition: background var(--transition);
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-faint);
}

.heart {
  color: var(--acc1);
  transition: color var(--transition);
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.modal-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 560px;
  width: 100%;
  position: relative;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.open .modal-box {
  transform: none;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(248, 113, 113, 0.1);
  border-color: #f87171;
  color: #f87171;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.modal-icon {
  width: 60px;
  height: 60px;
  background: var(--grad);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b0e14;
  flex-shrink: 0;
  transition: background var(--transition);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.modal-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.modal-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.modal-features {
  margin-bottom: 20px;
}

.modal-features h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.modal-features ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-features li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}

.modal-features li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--acc1);
  transition: color var(--transition);
}

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

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

.reveal.revealed {
  opacity: 1;
  transform: none;
}

.reveal-right {
  transform: translateX(28px);
}

.reveal-right.revealed {
  transform: none;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--acc1);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-meta-row {
    justify-content: center;
  }

  .hero-info-grid {
    justify-content: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-right {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: calc(var(--nav-h) + 40px);
  }

  .hero-name {
    font-size: 2.6rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .theme-panel {
    right: 10px;
    width: calc(100vw - 20px);
    max-width: 280px;
  }

  .modal-box {
    padding: 24px 20px;
  }
}