:root {
  /* User Color Palette */
  --neon-pink: #f72585ff;
  --raspberry-plum: #b5179eff;
  --indigo-bloom: #7209b7ff;
  --ultrasonic-blue: #560badff;
  --true-azure: #480ca8ff;
  --vivid-royal: #3a0ca3ff;
  --bright-indigo: #3f37c9ff;
  --electric-sapphire: #4361eeff;
  --blue-energy: #4895efff;
  --sky-aqua: #4cc9f0ff;

  /* Gradient Presets */
  --grad-main: linear-gradient(135deg, var(--neon-pink) 0%, var(--indigo-bloom) 42%, var(--electric-sapphire) 75%, var(--sky-aqua) 100%);
  --grad-cool: linear-gradient(135deg, var(--vivid-royal) 0%, var(--electric-sapphire) 50%, var(--sky-aqua) 100%);
  --grad-warm: linear-gradient(135deg, var(--neon-pink) 0%, var(--raspberry-plum) 55%, var(--indigo-bloom) 100%);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', 'Noto Sans Bengali', 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', 'Noto Sans Bengali', 'Noto Sans Devanagari', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing & Radii */
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --nav-height: 76px;
}

/* Night Mode (Default) */
html[data-theme="night"] {
  --bg-page: #060411;
  --bg-elevated: rgba(17, 13, 38, 0.72);
  --bg-card-solid: #100c24;
  --bg-code: #0a0718;
  --bg-nav: rgba(9, 6, 22, 0.72);
  --bg-input: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.11);
  --border-hover: rgba(76, 201, 240, 0.45);
  --text-primary: #f5f4ff;
  --text-secondary: #c0bbd9;
  --text-muted: #908ab0;
  --shadow-3d: 0 22px 50px -12px rgba(5, 2, 18, 0.78), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-glow: 0 14px 40px -8px rgba(114, 9, 183, 0.55);
  --sheen-color: rgba(255, 255, 255, 0.08);
  --orb-opacity: 0.34;
}

/* Day Mode */
html[data-theme="day"] {
  --bg-page: #f5f6ff;
  --bg-elevated: rgba(255, 255, 255, 0.8);
  --bg-card-solid: #ffffff;
  --bg-code: #140f2d;
  --bg-nav: rgba(248, 249, 255, 0.82);
  --bg-input: rgba(58, 12, 163, 0.04);
  --border-glass: rgba(58, 12, 163, 0.13);
  --border-hover: rgba(114, 9, 183, 0.42);
  --text-primary: #140d33;
  --text-secondary: #433b6b;
  --text-muted: #6c6494;
  --shadow-3d: 0 20px 44px -14px rgba(58, 12, 163, 0.16), 0 2px 10px rgba(67, 97, 238, 0.06);
  --shadow-glow: 0 14px 34px -8px rgba(67, 97, 238, 0.35);
  --sheen-color: rgba(76, 201, 240, 0.14);
  --orb-opacity: 0.22;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 18px);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.35s ease;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad-main);
  z-index: 1000;
  box-shadow: 0 0 12px rgba(247, 37, 133, 0.65);
  transition: width 0.08s linear;
}

/* 3D Background Canvas & Ambient Orbs */
#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

.ambient-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: var(--orb-opacity);
  animation: orbFloat 16s ease-in-out infinite alternate;
}

.orb-1 {
  width: 46vw;
  height: 46vw;
  max-width: 560px;
  max-height: 560px;
  background: radial-gradient(circle, var(--neon-pink), var(--indigo-bloom));
  top: -12%;
  left: -10%;
}

.orb-2 {
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  background: radial-gradient(circle, var(--sky-aqua), var(--electric-sapphire));
  bottom: -14%;
  right: -8%;
  animation-delay: -6s;
}

.orb-3 {
  width: 30vw;
  height: 30vw;
  max-width: 380px;
  max-height: 380px;
  background: radial-gradient(circle, var(--bright-indigo), var(--raspberry-plum));
  top: 42%;
  left: 48%;
  animation-delay: -11s;
}

@keyframes orbFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(35px, -28px, 0) scale(1.08); }
}

/* Container & Sections */
.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-header {
  margin-bottom: 44px;
  max-width: 720px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(247, 37, 133, 0.14), rgba(76, 201, 240, 0.14));
  border: 1px solid rgba(114, 9, 183, 0.3);
  color: var(--sky-aqua);
  margin-bottom: 12px;
}

html[data-theme="day"] .section-tag {
  color: var(--vivid-royal);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.section-lead {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 1.03rem;
}

/* Animated Gradient Text */
.gradient-text {
  background: var(--grad-main);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientFlow 7s ease infinite;
}

@keyframes gradientFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* 3D Glass Card Base */
.glass-3d {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-3d);
  transform-style: preserve-3d;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.35s ease;
  will-change: transform;
  overflow: hidden;
}

.glass-3d::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), var(--sheen-color), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.glass-3d:hover::before {
  opacity: 1;
}

.glass-3d:hover {
  border-color: var(--border-hover);
}

/* HEADER / NAVBAR */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.site-header.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.nav-container {
  width: min(1200px, 94vw);
  height: var(--nav-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  white-space: nowrap;
}

.brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--grad-main);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 18px rgba(114, 9, 183, 0.45);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 2px;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--grad-main);
  transition: width 0.28s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  gap: 2px;
}

.lang-btn {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 0.25s ease;
}

.lang-btn.active {
  background: var(--grad-main);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(247, 37, 133, 0.35);
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  background: var(--bg-input);
  display: grid;
  place-items: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

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

.theme-toggle svg {
  width: 19px;
  height: 19px;
}

html[data-theme="night"] .icon-moon { display: none; }
html[data-theme="night"] .icon-sun { display: block; color: var(--sky-aqua); }
html[data-theme="day"] .icon-sun { display: none; }
html[data-theme="day"] .icon-moon { display: block; color: var(--vivid-royal); }

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  background: var(--bg-input);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-primary);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.mobile-drawer {
  display: none;
  flex-direction: column;
  padding: 12px 24px 20px;
  gap: 10px;
  border-top: 1px solid var(--border-glass);
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer a {
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--text-secondary);
}

.mobile-drawer a:hover {
  background: var(--bg-input);
  color: var(--text-primary);
}

/* HERO SECTION */
.hero {
  padding-top: calc(var(--nav-height) + 46px);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-glass);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 18px;
  box-shadow: var(--shadow-3d);
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--neon-pink);
  box-shadow: 0 0 0 0 rgba(247, 37, 133, 0.7);
  animation: pulseRing 2s infinite;
  flex-shrink: 0;
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(247, 37, 133, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(247, 37, 133, 0); }
  100% { box-shadow: 0 0 0 0 rgba(247, 37, 133, 0); }
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 0.98rem;
  color: var(--sky-aqua);
  font-weight: 600;
  margin-bottom: 4px;
}

html[data-theme="day"] .hero-greeting {
  color: var(--electric-sapphire);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.typing-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: clamp(0.98rem, 1.8vw, 1.22rem);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(67, 97, 238, 0.12);
  border: 1px solid rgba(76, 201, 240, 0.28);
  color: var(--text-primary);
  margin-bottom: 18px;
}

.typing-prefix {
  color: var(--neon-pink);
}

.typing-cursor {
  color: var(--sky-aqua);
  animation: blink 0.9s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-subtitle {
  font-size: 1.06rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 20px;
}

.hero-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
}

.meta-chip svg {
  width: 15px;
  height: 15px;
  color: var(--sky-aqua);
}

html[data-theme="day"] .meta-chip svg {
  color: var(--vivid-royal);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.96rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--grad-main);
  background-size: 160% auto;
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.01);
  background-position: right center;
  box-shadow: 0 18px 40px -8px rgba(247, 37, 133, 0.52);
}

.btn-glass {
  background: var(--bg-elevated);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
}

.btn-glass:hover {
  transform: translateY(-3px);
  border-color: var(--sky-aqua);
}

.full-width {
  width: 100%;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  padding: 14px 16px;
  border-radius: var(--radius-md);
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 3D INTERACTIVE PORTRAIT */
.hero-visual {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.portrait-stage {
  position: relative;
  width: min(380px, 82vw);
  aspect-ratio: 1 / 1;
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
  margin-bottom: 18px;
}

.portrait-ring {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1.5px dashed rgba(76, 201, 240, 0.42);
  transform: translateZ(-25px);
  pointer-events: none;
  animation: slowSpin 26s linear infinite;
}

.ring-inner {
  inset: -9px;
  border-style: solid;
  border-color: rgba(247, 37, 133, 0.32);
  animation-direction: reverse;
  animation-duration: 18s;
}

@keyframes slowSpin {
  0% { transform: translateZ(-25px) rotate(0deg); }
  100% { transform: translateZ(-25px) rotate(360deg); }
}

.portrait-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 5px;
  background: var(--grad-main);
  box-shadow: 0 28px 65px -16px rgba(86, 11, 173, 0.68), 0 0 36px rgba(247, 37, 133, 0.25);
  transform: translateZ(20px);
  overflow: hidden;
}

.portrait-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.14), transparent 55%);
  z-index: 2;
  pointer-events: none;
  border-radius: 50%;
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 50%;
}

.portrait-caption {
  position: absolute;
  left: 50%;
  bottom: -16px;
  transform: translateX(-50%) translateZ(48px);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  white-space: nowrap;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-3d);
  color: var(--text-primary);
}

.caption-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.2;
}

.caption-role {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.float-badge {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-3d);
  font-size: 0.82rem;
  font-weight: 700;
  transform: translateZ(52px);
  animation: floatBob 5s ease-in-out infinite;
}

.badge-top {
  top: 14px;
  right: -14px;
}

.badge-bottom {
  bottom: 58px;
  left: -18px;
  animation-delay: -2.4s;
}

.badge-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--grad-main);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

@keyframes floatBob {
  0%, 100% { transform: translateZ(52px) translateY(0); }
  50% { transform: translateZ(52px) translateY(-8px); }
}

/* ABOUT SECTION */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 28px;
  align-items: stretch;
}

.code-card {
  background: var(--bg-code);
  color: #eef1ff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-dots {
  display: flex;
  gap: 7px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot.red { background: var(--neon-pink); }
.dot.yellow { background: var(--blue-energy); }
.dot.green { background: var(--sky-aqua); }

.code-filename {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #a9a5c9;
}

.code-body {
  padding: 22px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.75;
  overflow-x: auto;
}

.c-kw { color: #f72585; font-weight: 600; }
.c-type { color: #4cc9f0; }
.c-fn { color: #4895ef; font-weight: 600; }
.c-str { color: #e2b6ff; }
.c-num { color: #ff8cc6; }

.code-footer {
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--sky-aqua);
}

.about-copy {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.about-copy p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.interest-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.pill {
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(114, 9, 183, 0.16), rgba(67, 97, 238, 0.16));
  border: 1px solid rgba(76, 201, 240, 0.28);
  color: var(--text-primary);
}

/* EDUCATION SECTION */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.edu-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.edu-badge {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffffff;
}

.edu-badge.current { background: var(--grad-cool); }
.edu-badge.grade { background: var(--grad-warm); }
.edu-badge.origin { background: linear-gradient(135deg, var(--bright-indigo), var(--sky-aqua)); }

.edu-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  display: grid;
  place-items: center;
  color: var(--sky-aqua);
  margin-top: 4px;
}

html[data-theme="day"] .edu-icon {
  color: var(--vivid-royal);
}

.edu-icon svg {
  width: 22px;
  height: 22px;
}

.edu-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-top: 4px;
}

.edu-degree {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text-primary);
}

.edu-meta {
  font-size: 0.84rem;
  color: var(--sky-aqua);
  font-weight: 600;
}

html[data-theme="day"] .edu-meta {
  color: var(--electric-sapphire);
}

.edu-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* SKILLS SECTION */
.skills-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 24px;
}

.skill-group {
  padding: 28px;
}

.group-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.group-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--grad-main);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.group-header h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
}

.group-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

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

.skill-name {
  font-weight: 700;
  font-size: 1.02rem;
}

.skill-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(76, 201, 240, 0.14);
  color: var(--sky-aqua);
}

html[data-theme="day"] .skill-tag {
  color: var(--vivid-royal);
}

.skill-note {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.skill-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-input);
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.skill-bar span {
  display: block;
  height: 100%;
  width: var(--w, 80%);
  border-radius: 999px;
  background: var(--grad-main);
  transform-origin: left;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.soft-skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.soft-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

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

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

.soft-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grad-warm);
  margin-top: 6px;
  flex-shrink: 0;
}

.soft-card h4 {
  font-size: 0.96rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.soft-card p {
  font-size: 0.83rem;
  color: var(--text-secondary);
}

/* PROJECTS SECTION */
.projects-banner {
  padding: 40px;
  text-align: center;
}

.banner-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(247, 37, 133, 0.16), transparent 60%);
  pointer-events: none;
}

.coming-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.banner-headline {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.24;
  max-width: 780px;
  margin: 0 auto 14px;
}

.banner-desc {
  max-width: 680px;
  margin: 0 auto 30px;
  color: var(--text-secondary);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  text-align: left;
}

.roadmap-card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

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

.roadmap-step {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--neon-pink);
}

.roadmap-card h4 {
  font-family: var(--font-display);
  font-size: 1.06rem;
}

.roadmap-card p {
  font-size: 0.87rem;
  color: var(--text-secondary);
  flex: 1;
}

.roadmap-status {
  align-self: flex-start;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--grad-cool);
  color: #ffffff;
}

/* CODING PROFILES SECTION */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.profile-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.platform-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--grad-main);
  color: #ffffff;
  display: grid;
  place-items: center;
}

.platform-icon svg {
  width: 22px;
  height: 22px;
}

.watch-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(247, 37, 133, 0.14);
  color: var(--neon-pink);
  border: 1px solid rgba(247, 37, 133, 0.3);
}

.profile-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.handle {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--sky-aqua);
  font-weight: 600;
}

html[data-theme="day"] .handle {
  color: var(--electric-sapphire);
}

.profile-sub {
  font-size: 0.87rem;
  color: var(--text-secondary);
  flex: 1;
}

.profile-cta {
  margin-top: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
}

/* CONTACT SECTION */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 14px;
}

.contact-card {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--grad-cool);
  color: #ffffff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-info {
  flex: 1;
  min-width: 0;
}

.contact-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.contact-value {
  display: block;
  font-weight: 700;
  font-size: 0.98rem;
  word-break: break-word;
}

.copy-btn {
  padding: 7px 13px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.copy-btn:hover {
  border-color: var(--sky-aqua);
}

.ext-arrow {
  font-size: 1.2rem;
  color: var(--sky-aqua);
  font-weight: 700;
}

.contact-form {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.form-sub {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: -8px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.94rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--sky-aqua);
  box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.16);
}

/* FOOTER */
.site-footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--border-glass);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-brand,
.footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.back-top {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--grad-main);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 800;
  transition: transform 0.25s ease;
}

.back-top:hover {
  transform: translateY(-3px);
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--grad-main);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1100;
}

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

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
  .profiles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .edu-grid,
  .roadmap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .hero-grid,
  .about-grid,
  .skills-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: calc(var(--nav-height) + 28px);
  }
  .hero-visual {
    order: -1;
    margin-bottom: 10px;
  }
  .portrait-stage {
    width: min(300px, 76vw);
  }
  .badge-top { right: -8px; }
  .badge-bottom { left: -8px; }
}

@media (max-width: 640px) {
  .section {
    padding: 68px 0;
  }
  .hero-stats,
  .edu-grid,
  .roadmap-grid,
  .profiles-grid,
  .soft-skills-grid {
    grid-template-columns: 1fr;
  }
  .soft-card-wide {
    grid-column: span 1;
  }
  .projects-banner,
  .about-copy,
  .skill-group,
  .contact-form {
    padding: 22px;
  }
  .brand-text {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
