/* ===== THEME VARIABLES ===== */
:root,
[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-alt: #111113;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: #17171c;
  --surface-hover: rgba(99, 102, 241, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(99, 102, 241, 0.35);
  --text: #f3f4f6;
  --text-muted: rgba(255, 255, 255, 0.65);
  --text-dim: rgba(255, 255, 255, 0.42);
  --header-bg: rgba(10, 10, 10, 0.85);
  --grid-line: rgba(255, 255, 255, 0.025);
  --accent: #6366f1;
  --accent-2: #a855f7;
  --accent-3: #ec4899;
  --accent-soft: rgba(99, 102, 241, 0.12);
  --accent-text: #a78bfa;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --cursor-color: #ffffff;
  --cursor-ring: rgba(255, 255, 255, 0.45);
  --code-bg: #121218;
}

[data-theme="light"] {
  --bg: #faf9ff;
  --bg-alt: #f1f0fa;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-strong: #ffffff;
  --surface-hover: rgba(79, 70, 229, 0.06);
  --border: rgba(61, 43, 103, 0.12);
  --border-hover: rgba(79, 70, 229, 0.35);
  --text: #211b35;
  --text-muted: #59536e;
  --text-dim: #6d6680;
  --header-bg: rgba(250, 249, 255, 0.92);
  --grid-line: rgba(79, 70, 229, 0.04);
  --accent: #4f46e5;
  --accent-2: #9333ea;
  --accent-3: #db2777;
  --accent-soft: rgba(79, 70, 229, 0.1);
  --accent-text: #4f46e5;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  --cursor-color: #0f172a;
  --cursor-ring: rgba(79, 70, 229, 0.5);
  --code-bg: #1e293b;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

/* Keep native cursors usable even when optional cursor elements are absent. */
input, textarea { cursor: text; }
[role="button"] { cursor: pointer; }

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

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

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

input, textarea {
  font: inherit;
}

ul {
  list-style: none;
}

::selection {
  background: rgba(99, 102, 241, 0.35);
  color: #fff;
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  z-index: 99999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 20px;
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  z-index: 10001;
  transition: width 0.08s linear;
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--cursor-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10002;
  transition: transform 0.1s ease;
  opacity: 0;
}

.cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--cursor-ring);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transition: transform 0.15s ease-out, width 0.25s, height 0.25s, border-color 0.25s;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.cursor.active,
.cursor-follower.active {
  opacity: 1;
}

.cursor-follower.hover {
  width: 54px;
  height: 54px;
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.08);
}

/* ===== LOADER ===== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

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

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

.loader-line {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  margin: 0 auto 20px;
  overflow: hidden;
  position: relative;
}

.loader-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  border-radius: 2px;
  animation: load 1.4s ease forwards;
}

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

.loader-text {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  display: block;
  margin-bottom: 6px;
}

.loader-counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.48);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 60px);
  transition: all 0.35s ease;
}

.header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px clamp(20px, 5vw, 60px);
}

.header.hidden {
  transform: translateY(-100%);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  transition: transform 0.3s;
}

.logo:hover .logo-dot {
  transform: scale(1.45);
}

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

.nav-link {
  font-size: 0.86rem;
  font-weight: 500;
  position: relative;
  color: var(--text-muted);
  transition: color 0.3s;
  padding: 4px 0;
}

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

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

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

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

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  z-index: 110;
  padding: 4px 0;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.menu-btn.open span:first-child {
  transform: translateY(8px) rotate(45deg);
}

.menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.menu-btn.open span:last-child {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 13px 28px;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.82rem;
  border-radius: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.4);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 110px clamp(20px, 5vw, 60px) 70px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.35;
  animation: orbFloat 9s ease-in-out infinite;
}

[data-theme="light"] .gradient-orb {
  opacity: 0.22;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #6366f1, transparent 70%);
  top: -12%;
  right: -6%;
}

.orb-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #a855f7, transparent 70%);
  bottom: -12%;
  left: -6%;
  animation-delay: 2s;
}

.orb-3 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #ec4899, transparent 70%);
  top: 42%;
  left: 38%;
  animation-delay: 4s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(30px, -20px); }
  50% { transform: translate(-20px, 30px); }
  75% { transform: translate(20px, 10px); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.05); }
}

.hero-title {
  font-size: clamp(2.3rem, 6.2vw, 4.6rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero-title .line {
  display: block;
}

.hero-title em {
  font-style: normal;
}

.highlight {
  background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.typewriter {
  color: var(--text);
}

.type-cursor {
  display: inline-block;
  color: var(--accent);
  font-weight: 300;
  margin-left: 2px;
  animation: blink 0.9s infinite;
}

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

.hero-desc {
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 34px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 54px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 40px);
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat strong {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  display: inline;
}

.hero-stat span {
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 700;
}

.hero-stat p {
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.35; transform: scaleY(0.55); }
}

.scroll-indicator span {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ===== SECTION COMMONS ===== */
.section {
  padding: clamp(72px, 10vw, 128px) 0;
}

.section-dark {
  background: var(--bg-alt);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}

.section-header {
  margin-bottom: 52px;
}

.section-header-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.section-tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--text);
}

.section-title em {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-style: italic;
  color: var(--accent-2);
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 56px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image-inner {
  aspect-ratio: 4/4.6;
  min-height: 480px;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.16), rgba(168, 85, 247, 0.16));
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.about-avatar {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 28px;
}

.avatar-ring {
  padding: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
}

.avatar-placeholder {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: #12121a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.about-code-card {
  width: 100%;
  background: var(--code-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
}

.code-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.code-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
}

.code-dots span:nth-child(2) {
  background: #f59e0b;
}

.code-dots span:nth-child(3) {
  background: #22c55e;
}

.about-code-card pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #e2e8f0;
  overflow-x: auto;
}

.c-kw { color: #c084fc; }
.c-str { color: #34d399; }
.c-bool { color: #fb923c; }

.about-image-decoration {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(99, 102, 241, 0.25), transparent 60%);
  pointer-events: none;
}

.about-image-tag {
  position: absolute;
  bottom: -14px;
  right: 18px;
  z-index: 3;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
}

.about-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 16px;
}

.about-content > p:not(.about-intro) {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.8;
}

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

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.detail-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px 18px;
  transition: all 0.3s;
}

.detail-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.detail-icon {
  font-size: 1.3rem;
}

.detail-card strong {
  display: block;
  font-size: 0.84rem;
  color: var(--text);
  margin-bottom: 2px;
}

.detail-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.about-cta {
  margin-top: 24px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 52px;
}

.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.3s;
}

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

.skill-category-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-icon {
  font-size: 1.25rem;
}

.skill-item {
  margin-bottom: 18px;
}

.skill-item:last-child {
  margin-bottom: 0;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.84rem;
}

.skill-info span:first-child {
  color: var(--text-muted);
}

.skill-info span:last-child {
  color: var(--accent);
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

.skill-bar {
  height: 7px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

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

.tools-section {
  text-align: center;
}

.tools-section h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tools-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 24px;
  transition: all 0.3s;
  min-width: 106px;
}

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

.tool-icon {
  font-size: 1.45rem;
}

.tool-card span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s;
}

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

.service-number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
}

.service-icon-wrap {
  font-size: 2rem;
  margin-bottom: 14px;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tags span {
  font-size: 0.74rem;
  font-weight: 500;
  padding: 5px 13px;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent-text);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ===== PROJECTS ===== */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.25s ease;
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-color: transparent;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.35s ease;
  cursor: pointer;
}

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

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

.project-image {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}

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

.project-view {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  padding: 11px 22px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.project-label {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: 100px;
}

.project-art {
  position: relative;
  z-index: 1;
}

.art-circle {
  width: 82px;
  height: 82px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  animation: spin 8s linear infinite;
}

.art-circle-2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  animation-direction: reverse;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.art-square {
  width: 64px;
  height: 64px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  transform: rotate(45deg);
  animation: spin 7s linear infinite;
}

.art-square-2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 38px;
  height: 38px;
  animation-direction: reverse;
}

.art-bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 82px;
}

.art-bars i {
  width: 12px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  display: block;
  animation: barPulse 1.8s ease-in-out infinite alternate;
}

.art-bars i:nth-child(2) { animation-delay: 0.25s; }
.art-bars i:nth-child(3) { animation-delay: 0.5s; }
.art-bars i:nth-child(4) { animation-delay: 0.75s; }
.art-bars i:nth-child(5) { animation-delay: 1s; }

@keyframes barPulse {
  from { opacity: 0.45; transform: scaleY(0.85); }
  to { opacity: 1; transform: scaleY(1); }
}

.art-leaf {
  font-size: 4rem;
  animation: leafFloat 3s ease-in-out infinite;
}

@keyframes leafFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-10px) rotate(8deg); }
}

.project-info {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.project-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.project-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.project-year {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), rgba(99, 102, 241, 0.12));
}

.timeline-item {
  position: relative;
  padding-bottom: 34px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -40px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  z-index: 2;
}

.timeline-dot-edu {
  border-color: var(--accent-2);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.35);
}

.timeline-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  transition: all 0.3s;
}

.timeline-content:hover {
  border-color: var(--border-hover);
  transform: translateX(6px);
}

.timeline-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.timeline-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 0.86rem;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.timeline-content > p:last-of-type {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-tags span {
  font-size: 0.74rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent-text);
  border: 1px solid rgba(99, 102, 241, 0.16);
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.testimonial-stars {
  color: #fbbf24;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.testimonial-card > p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
}

.testimonial-author span {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ===== CONTACT ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  margin-bottom: 56px;
}

.contact-left .section-title {
  margin-bottom: 18px;
}

.contact-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.3s;
}

.contact-link:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateX(4px);
}

.contact-link-icon {
  font-size: 1.45rem;
}

.contact-link strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 2px;
}

.contact-link span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--text);
  font-size: 0.94rem;
  transition: all 0.25s;
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.contact-socials {
  text-align: center;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.contact-socials p {
  font-size: 0.86rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.social-link {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all 0.3s;
}

.social-link svg {
  width: 19px;
  height: 19px;
}

.social-link:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

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

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 620px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.modal-backdrop.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.75);
}

.modal-banner {
  height: 140px;
  background: linear-gradient(135deg, #4f46e5, #9333ea);
  display: flex;
  align-items: flex-end;
  padding: 20px 28px;
}

.modal-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.32);
  padding: 6px 14px;
  border-radius: 100px;
}

.modal-body {
  padding: 28px;
}

.modal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-meta h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 18px;
}

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

.modal-highlights h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.modal-highlights ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.modal-highlights li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.modal-tags span {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent-text);
}

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

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

.footer p {
  font-size: 0.84rem;
  color: var(--text-dim);
}

.back-top {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s;
}

.back-top:hover {
  color: var(--accent);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--surface-strong);
  color: var(--text);
  padding: 14px 26px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 10005;
  transition: transform 0.35s ease;
  border: 1px solid var(--border-hover);
  box-shadow: var(--shadow);
  text-align: center;
  max-width: calc(100vw - 32px);
}

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

/* ===== ANIMATIONS ===== */
.anim-up {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.anim-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.4s; }

.reveal-up {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== CURRENT PORTFOLIO COMPONENTS ===== */
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 5px; }
section[id], main[id] { scroll-margin-top: 95px; }
body.menu-open, body.modal-open { overflow: hidden; }
.header:focus-within { transform: none; }
@media (min-width: 1151px) { .nav { gap: 18px; } }
.logo { gap: 12px; flex-shrink: 0; }
.logo-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 12px; color: var(--accent-text); }
.logo-caption { display: block; font: 0.56rem 'JetBrains Mono', monospace; letter-spacing: 0.12em; color: var(--text-dim); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: clamp(30px, 5vw, 80px); width: 100%; position: relative; z-index: 2; }
.hero-content { min-width: 0; text-align: left; }
.hero-eyebrow { color: var(--text-muted); font: 0.74rem 'JetBrains Mono', monospace; letter-spacing: 0.15em; margin-bottom: 12px; }
.hero-title { font-size: clamp(2.7rem, 5.5vw, 5rem); }
.hero-title-dot { color: var(--accent-text); }
.hero-role { min-height: 3.6em; font-size: clamp(1rem, 1.8vw, 1.35rem); margin-bottom: 15px; }
.hero-desc { margin-left: 0; }
.hero-actions { justify-content: flex-start; margin-bottom: 30px; }
.hero-footnote, .hero-location { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 0.76rem; color: var(--text-muted); }
.hero-footnote-divider { width: 1px; height: 14px; background: var(--border); }
.hero-visual { min-width: 0; position: relative; padding-bottom: 34px; }
.profile-card { border: 1px solid var(--border); border-radius: 24px; background: var(--surface-strong); padding: 26px; box-shadow: var(--shadow); }
.profile-topline { display: flex; justify-content: space-between; gap: 8px; font: 0.64rem 'JetBrains Mono', monospace; color: var(--text-muted); }
.profile-status-dot, .code-note-dot { display: inline-block; width: 6px; height: 6px; background: #34d399; border-radius: 50%; margin-right: 5px; }
.profile-art { position: relative; display: grid; place-items: center; height: 270px; overflow: hidden; }
.profile-monogram { font-size: clamp(5rem, 10vw, 8rem); font-weight: 800; color: var(--accent-text); z-index: 1; letter-spacing: -0.08em; }
.profile-monogram span { color: var(--text); }
.profile-orbit { position: absolute; width: 230px; height: 230px; border: 1px solid var(--border); border-radius: 50%; }
.orbit-two { width: 175px; height: 175px; border-style: dashed; transform: rotate(-25deg); }
.profile-coordinate { position: absolute; color: var(--text-dim); font: 0.62rem 'JetBrains Mono', monospace; }
.coordinate-top { top: 22px; left: 0; } .coordinate-bottom { bottom: 22px; right: 0; }
.floating-code { position: absolute; color: var(--accent-text); font: 1.1rem 'JetBrains Mono', monospace; }
.code-left { left: 8px; bottom: 45px; } .code-right { right: 8px; top: 48px; }
.profile-identity h2 { font-size: 1.35rem; } .profile-identity p { color: var(--text-muted); font-size: 0.82rem; margin-top: 5px; }
.profile-school { display: flex; align-items: center; gap: 13px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.school-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); font: 0.75rem 'JetBrains Mono', monospace; }
.profile-school strong, .profile-school span:not(.school-mark) { display: block; font-size: 0.75rem; } .profile-school div > span { color: var(--text-muted); margin-top: 4px; }
.code-note { position: absolute; left: -20px; right: 20px; bottom: 0; display: flex; align-items: center; gap: 13px; padding: 17px; border: 1px solid var(--border); background: var(--surface-strong); border-radius: 15px; box-shadow: var(--shadow); }
.code-note-icon { color: var(--accent-text); font: 1rem 'JetBrains Mono', monospace; }
.code-note div { flex: 1; } .code-note div > span { display: block; color: var(--text-dim); font-size: 0.58rem; letter-spacing: 0.1em; } .code-note strong { font-size: 0.72rem; }
.section-description { color: var(--text-muted); margin: -25px 0 32px; max-width: 680px; }
.category-symbol { display: block; margin-bottom: 20px; color: var(--accent-text); font: 0.74rem 'JetBrains Mono', monospace; }
.skill-category > p { color: var(--text-muted); font-size: 0.86rem; margin-bottom: 22px; }
.skill-list li { padding: 13px 0; border-top: 1px solid var(--border); }
.skill-list strong, .skill-list span { display: block; font-size: 0.8rem; }
.skill-list span { color: var(--text-muted); margin-top: 4px; font-size: 0.73rem; }
.values-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.value-card { border-top: 1px solid var(--border); padding-top: 22px; }
.value-number { color: var(--accent-text); font: 0.75rem 'JetBrains Mono', monospace; }
.value-card h3 { margin: 15px 0 10px; font-size: 1.05rem; } .value-card p { color: var(--text-muted); font-size: 0.9rem; }
.section-header-flex { margin-bottom: 40px; }
.project-preview { position: relative; width: 85%; max-width: 430px; border-radius: 12px; overflow: hidden; box-shadow: 0 15px 35px #0003; }
.preview-browser, .preview-editor { background: #111322; color: #f3f4f6; }
.preview-toolbar { display: flex; gap: 5px; align-items: center; padding: 10px 14px; background: #ffffff0c; }
.preview-toolbar i { width: 6px; height: 6px; border-radius: 50%; background: #b0a8d9; }
.preview-toolbar span { margin-left: 10px; font: 0.53rem 'JetBrains Mono', monospace; color: #bbc0cf; }
.preview-browser-body { position: relative; padding: 25px 22px; }
.preview-kicker { display: block; font: 0.48rem 'JetBrains Mono', monospace; letter-spacing: 0.1em; margin-bottom: 12px; }
.preview-browser-body > strong { display: block; font-size: clamp(0.9rem, 2vw, 1.35rem); line-height: 1.3; } .preview-browser-body strong span { color: #b9a6ff; }
.preview-lines { margin: 12px 0; } .preview-lines i { display: block; background: #ffffff25; width: 50%; height: 4px; margin-bottom: 5px; } .preview-lines i:last-child { width: 35%; }
.preview-button { display: inline-block; padding: 7px 10px; background: #7863d3; border-radius: 5px; font-size: 0.48rem; }
.preview-avatar { position: absolute; right: 20px; top: 35%; font-size: 2.8rem; font-weight: 800; color: #b9a6ff; }
.preview-editor pre { padding: 18px; font: clamp(0.43rem, 1vw, 0.68rem)/1.8 'JetBrains Mono', monospace; white-space: pre-wrap; }
.preview-comment { color: #9ca3af; } .preview-terminal { padding: 9px 18px; border-top: 1px solid #ffffff12; color: #86efac; font-size: 0.53rem; }
.preview-todo { background: #fff8fa; color: #522838; padding: 23px; max-width: 350px; }
.preview-todo > strong { display: block; margin-bottom: 15px; font-size: 1rem; }
.todo-demo { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #52283815; font-size: 0.68rem; }
.todo-demo > span { width: 15px; height: 15px; border: 1px solid #b88595; border-radius: 4px; text-align: center; } .todo-demo.done { color: #946477; }
.todo-demo-add { margin-top: 12px; font-size: 0.65rem; color: #a34366; }
.preview-next { text-align: center; color: #fff; box-shadow: none; padding: 12px; }
.next-asterisk { display: block; font-size: 3rem; color: #c5f7d6; margin-bottom: 10px; }
.preview-next strong { display: block; font-size: 1.8rem; line-height: 1.25; }
.next-caption { display: block; margin-top: 17px; font-size: 0.62rem; }
.project-label { z-index: 3; top: 10px; left: 10px; padding: 4px 9px; font-size: 0.56rem; }
.project-card:focus-visible .project-overlay { opacity: 1; }
.project-info > div, .contact-wrapper > div, .form-group, .about-grid > div, .about-code-card { min-width: 0; }
.about-image-inner { width: 100%; }
.about-avatar { height: 100%; min-height: inherit; }
.about-code-card pre { max-width: 100%; }
.contact-link { width: 100%; text-align: left; overflow-wrap: anywhere; }
.contact-link > span:last-child { min-width: 0; }
.form-group input, .form-group textarea { width: 100%; min-width: 0; }
.form-heading h3 { font-size: 1.2rem; } .form-heading h3 span { color: var(--accent-text); }
.form-heading p { color: var(--text-muted); font-size: 0.75rem; margin-top: 5px; }
.form-feedback:empty { display: none; }
.form-feedback { font-size: 0.85rem; overflow-wrap: anywhere; }
.form-feedback[data-state="error"] { color: var(--text); }
.form-feedback[data-state="success"] { color: var(--accent-text); }
.submit-button:disabled, #submit-btn:disabled { opacity: 0.6; cursor: wait; }
.modal-backdrop { overflow-y: auto; }
.modal-card { max-height: calc(100dvh - 40px); overflow-y: auto; }
.toast { pointer-events: none; }
@media (max-width: 1150px) and (min-width: 769px) {
  .header { padding-inline: 20px; gap: 16px; } .nav { gap: 12px; } .nav-link { font-size: 0.73rem; }
  .header-cta, .logo-caption { display: none; }
}
@media (max-width: 768px) {
  .hero { padding: 115px 0 65px; }
  .hero-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-visual { width: 100%; max-width: 430px; margin-inline: auto; }
  .hero-title { font-size: clamp(2.6rem, 9vw, 4.2rem); }
  .hero-role { min-height: 3em; }
  .hero-footnote { font-size: 0.68rem; }
  .code-note { left: 10px; right: 10px; }
  .values-grid { grid-template-columns: 1fr; }
  .header-actions { position: relative; z-index: 110; }
  .menu-btn { min-width: 36px; min-height: 44px; justify-content: center; }
  .nav { height: 100dvh; overflow-y: auto; padding: 80px 20px 30px; }
  .contact-form { padding: 22px; }
  .project-info { padding: 17px; gap: 10px; }
  .project-info h3 { font-size: 0.92rem; }
  .project-info p { font-size: 0.72rem; }
  .project-year { font-size: 0.65rem; padding: 5px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .cursor,
  .cursor-follower {
    display: none !important;
  }

  .header-cta {
    display: none;
  }

  .nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.35s ease;
    z-index: 99;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-link {
    font-size: 1.25rem;
  }

  .menu-btn {
    display: flex;
  }

  .scroll-indicator {
    display: none;
  }

  .skills-grid,
  .services-grid,
  .projects-grid,
  .contact-wrapper,
  .about-details,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-stat-divider {
    display: none;
  }

  .hero-stats {
    gap: 24px;
  }

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