/* Portfolio styles — dark-first, glassmorphism, neon accents */

:root {
  /* light theme defaults (overridden by [data-theme="dark"]) */
  --bg: #f7f7fb;
  --bg-2: #ececf2;
  --fg: #0c0815;
  --fg-2: rgba(12, 8, 21, 0.66);
  --fg-3: rgba(12, 8, 21, 0.42);
  --fg-4: rgba(12, 8, 21, 0.18);
  --glass-bg: rgba(255, 255, 255, 0.5);
  --glass-border: rgba(12, 8, 21, 0.08);
  --card-bg: rgba(255, 255, 255, 0.55);
  --accent: #3b82f6;
  --accent-2: #a855f7;
  --font-sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

[data-theme="dark"] {
  --bg: #07060c;
  --bg-2: #0c0a18;
  --fg: #f3f1ff;
  --fg-2: rgba(243, 241, 255, 0.72);
  --fg-3: rgba(243, 241, 255, 0.46);
  --fg-4: rgba(243, 241, 255, 0.18);
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(255, 255, 255, 0.03);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100vw; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}
body[data-cursor="off"] { cursor: auto; }
.mono { font-family: var(--font-mono); font-feature-settings: normal; }

/* hide native cursor on interactive elements when custom cursor active */
body:not([data-cursor="off"]) a,
body:not([data-cursor="off"]) button,
body:not([data-cursor="off"]) input,
body:not([data-cursor="off"]) textarea {
  cursor: none;
}

/* ── Glass utility ───────────────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

/* ── Animated background ─────────────────────────────────────────── */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  mix-blend-mode: screen;
}
[data-theme="light"] .mesh-blob { mix-blend-mode: multiply; opacity: 0.18; }
.mesh-blob-1 { width: 50vw; height: 50vw; top: -10vw; left: -10vw; animation: meshA 22s ease-in-out infinite alternate; }
.mesh-blob-2 { width: 60vw; height: 60vw; top: 20vh; right: -20vw; background: #6366f1; animation: meshB 28s ease-in-out infinite alternate; }
.mesh-blob-3 { width: 40vw; height: 40vw; bottom: -10vw; left: 30vw; animation: meshC 24s ease-in-out infinite alternate; }
.mesh-blob-4 { width: 45vw; height: 45vw; top: 50vh; left: 5vw; background: #06b6d4; opacity: 0.3; animation: meshD 30s ease-in-out infinite alternate; }

@keyframes meshA { 0% { transform: translate(0, 0); } 100% { transform: translate(20vw, 30vh); } }
@keyframes meshB { 0% { transform: translate(0, 0); } 100% { transform: translate(-15vw, -20vh); } }
@keyframes meshC { 0% { transform: translate(0, 0); } 100% { transform: translate(-10vw, -25vh); } }
@keyframes meshD { 0% { transform: translate(0, 0); } 100% { transform: translate(15vw, -10vh); } }
@keyframes gridGlow { 0% { opacity: 0.4; transform: scale(1); } 100% { opacity: 0.7; transform: scale(1.1); } }
@keyframes floatA { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(8px, -10px) rotate(4deg); } }
@keyframes floatB { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-8px, 6px); } }
@keyframes floatC { 0%, 100% { transform: translate(0, 0) rotate(8deg); } 50% { transform: translate(6px, 10px) rotate(14deg); } }

/* ── Layout ──────────────────────────────────────────────────────── */
.app { position: relative; z-index: 1; min-height: 100vh; }
.section { max-width: 1240px; margin: 0 auto; padding: 140px 48px; position: relative; }
@media (max-width: 720px) { .section { padding: 100px 24px; } }

.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 64px; max-width: 720px; }
.eyebrow { font-size: 11px; letter-spacing: 0.2em; color: var(--fg-3); text-transform: uppercase; }
.section-title {
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0;
  text-wrap: pretty;
}
.section-sub { color: var(--fg-2); font-size: 16px; line-height: 1.55; max-width: 540px; margin: 0; }

.behance-sync { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; color: var(--fg-2); letter-spacing: 0.04em; }
.behance-sync-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-3); }
.behance-sync-live .behance-sync-dot { background: #4ade80; box-shadow: 0 0 10px #4ade80; animation: dotBlink 1.6s ease-in-out infinite; }
.behance-sync-loading .behance-sync-dot { background: #fbbf24; animation: dotBlink 0.8s ease-in-out infinite; }
.behance-sync-sep { color: var(--fg-3); }
.behance-sync-status { color: var(--fg); }
.behance-sync-fallback .behance-sync-status { color: var(--fg-3); }

/* ── Nav ─────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  max-width: calc(100vw - 28px);
}
.nav-brand { display: flex; align-items: center; gap: 10px; padding-right: 14px; border-right: 1px solid var(--glass-border); }
.nav-dot { width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 12px currentColor; }
.nav-name { font-weight: 600; letter-spacing: -0.01em; }
.nav-name-2 { font-weight: 400; color: var(--fg-2); }
.nav-role { font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); letter-spacing: 0.1em; }
@media (max-width: 880px) { .nav-role, .nav-name-2 { display: none; } }
.nav-links { display: flex; gap: 24px; color: var(--fg-2); }
.nav-links a { color: inherit; text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--fg); }
@media (max-width: 720px) { .nav-links { display: none; } }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle { display: inline-flex; padding: 2px; background: var(--glass-border); border-radius: 999px; }
.lang-toggle button { appearance: none; border: 0; background: transparent; color: var(--fg-3); padding: 4px 10px; font-size: 11px; font-family: var(--font-mono); border-radius: 999px; transition: all .2s; }
.lang-toggle button[data-active="true"] { background: var(--fg); color: var(--bg); }
.theme-toggle { appearance: none; border: 0; background: transparent; color: var(--fg-2); width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; transition: background .2s, color .2s; }
.theme-toggle:hover { background: var(--glass-border); color: var(--fg); }
.cv-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; background: var(--accent); color: white; font-size: 12px; font-weight: 500; text-decoration: none; transition: all .25s; box-shadow: 0 0 0 0 var(--accent); }
.cv-btn:hover { box-shadow: 0 0 24px var(--accent); transform: translateY(-1px); }
@media (max-width: 720px) { .cv-btn span { display: none; } }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 120px 48px 80px; max-width: 1320px; margin: 0 auto; }
@media (max-width: 720px) { .hero { padding: 110px 24px 60px; } }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; width: 100%; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero-kicker { display: flex; align-items: center; gap: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--fg-2); margin-bottom: 20px; }
.kicker-line { width: 36px; height: 1px; }
.kicker-loc { color: var(--fg-3); margin-left: auto; }

.hero-avatar-row { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.hero-avatar { position: relative; width: 56px; height: 56px; border-radius: 50%; padding: 2px; border: 1.5px solid; flex-shrink: 0; }
.hero-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.hero-avatar-pulse { position: absolute; inset: -4px; border-radius: 50%; border: 1px solid; opacity: 0; animation: avatarPulse 2.4s ease-out infinite; }
.hero-avatar-status { position: absolute; bottom: 1px; right: 1px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--bg); box-shadow: 0 0 10px currentColor; }
@keyframes avatarPulse { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.45); opacity: 0; } }
.hero-avatar-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hero-avatar-line { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: var(--fg-2); letter-spacing: 0.04em; }
.hero-avatar-dot { width: 6px; height: 6px; border-radius: 50%; box-shadow: 0 0 8px currentColor; animation: dotBlink 1.6s ease-in-out infinite; }
@keyframes dotBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero-avatar-sync { font-size: 10px; color: var(--fg-3); letter-spacing: 0.04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hero-title { font-size: clamp(56px, 9vw, 128px); line-height: 0.92; letter-spacing: -0.045em; font-weight: 500; margin: 0 0 28px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.18em; }
.hero-word { display: inline-block; }
.hero-conj { font-family: var(--font-mono); font-weight: 400; font-size: 0.6em; transform: translateY(-0.05em); display: inline-block; }
.hero-outline { -webkit-text-stroke: 1.5px var(--fg); -webkit-text-fill-color: transparent; color: var(--fg); }

.hero-sub { font-size: 18px; line-height: 1.55; color: var(--fg-2); max-width: 480px; margin: 0 0 36px; text-wrap: pretty; }

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; border: 0; cursor: none; transition: all .25s; font-family: inherit; }
.btn-primary { background: var(--accent); color: white; box-shadow: 0 8px 30px -10px var(--accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 30px var(--accent); }
.btn-primary:disabled { opacity: 0.7; }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--glass-border); }
.btn-ghost:hover { background: var(--glass-bg); border-color: var(--fg-3); }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-top: 28px; border-top: 1px solid var(--glass-border); max-width: 540px; }
@media (max-width: 540px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }
.stat-num { font-size: 32px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.stat-lbl { font-size: 11px; color: var(--fg-3); margin-top: 6px; line-height: 1.3; }

/* Hero 3D area */
.hero-3d { display: flex; justify-content: center; align-items: center; position: relative; min-width: 0; }
.blob-wrap { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.blob-wrap > div:first-child { max-width: 100% !important; max-height: 100% !important; }
@media (max-width: 1100px) { .blob-wrap { max-width: 420px; } }
@media (max-width: 920px) { .blob-wrap { max-width: 360px; } }
.blob-tag { position: absolute; top: 8%; right: 0; padding: 8px 14px; font-size: 11px; display: flex; align-items: center; gap: 8px; border-radius: 999px; }
.blob-tag-dot { width: 6px; height: 6px; border-radius: 50%; }
.blob-tag-2 { position: absolute; bottom: 6%; left: -4%; padding: 8px 14px; font-size: 11px; border-radius: 999px; color: var(--fg-2); }
@media (max-width: 920px) { .blob-tag, .blob-tag-2 { display: none; } }

.scroll-hint { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--fg-3); font-size: 10px; letter-spacing: 0.2em; }
.scroll-line { width: 1px; height: 32px; background: linear-gradient(180deg, var(--fg-3), transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%, 100% { opacity: 0.3; transform: scaleY(0.5); } 50% { opacity: 1; transform: scaleY(1); } }

/* ── About ───────────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
@media (max-width: 920px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }
.about-lead { font-size: 20px; line-height: 1.5; color: var(--fg-2); margin: 0; text-wrap: pretty; }

.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 720px) { .skills-grid { grid-template-columns: 1fr; } }
.skill-card { padding: 24px; border-radius: 18px; transition: transform .3s, border-color .3s; }
.skill-card:hover { transform: translateY(-3px); border-color: var(--fg-4); }
.skill-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.skill-num { font-size: 11px; letter-spacing: 0.1em; }
.skill-title { font-weight: 500; font-size: 16px; }
.skill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.skill-list li { font-size: 13px; color: var(--fg-2); display: flex; align-items: center; gap: 10px; }
.skill-list .dot { width: 4px; height: 4px; border-radius: 50%; opacity: 0.6; }

/* ── Projects ────────────────────────────────────────────────────── */
.proj-grid-glass { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.proj-grid-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; grid-auto-flow: dense; }
.proj-grid-bento > *:nth-child(6n+1) { grid-column: span 4; }
.proj-grid-bento > *:nth-child(6n+2) { grid-column: span 2; }
.proj-grid-bento > *:nth-child(6n+3) { grid-column: span 2; }
.proj-grid-bento > *:nth-child(6n+4) { grid-column: span 4; }
.proj-grid-bento > *:nth-child(6n+5) { grid-column: span 3; }
.proj-grid-bento > *:nth-child(6n+6) { grid-column: span 3; }
.proj-grid-stacked { display: flex; flex-direction: column; gap: 24px; }

@media (max-width: 920px) {
  .proj-grid-glass, .proj-grid-bento { grid-template-columns: 1fr !important; }
  .proj-grid-bento > * { grid-column: span 1 !important; }
}

.proj-card { border-radius: 22px; overflow: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s; position: relative; display: flex; flex-direction: column; }
.proj-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 0%, var(--card-tint), transparent 50%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.proj-card:hover { transform: translateY(-4px); border-color: var(--card-tint) !important; }
.proj-card:hover::before { opacity: 0.12; }

.proj-variant-stacked { flex-direction: row; align-items: stretch; }
.proj-variant-stacked .proj-card-media { flex: 0 0 40%; aspect-ratio: auto; }
.proj-variant-stacked .proj-card-body { flex: 1; }
@media (max-width: 720px) { .proj-variant-stacked { flex-direction: column; } .proj-variant-stacked .proj-card-media { flex: 0 0 200px; } }

.proj-card-media { aspect-ratio: 16 / 10; position: relative; overflow: hidden; }
.proj-mockup { position: absolute; inset: 0; background: linear-gradient(135deg, color-mix(in oklab, var(--c) 22%, var(--bg-2)), var(--bg-2)); }
.proj-mockup-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--c) 1px, transparent 1px), linear-gradient(90deg, var(--c) 1px, transparent 1px); background-size: 40px 40px; opacity: 0.08; }
.proj-mockup-shape { position: absolute; border-radius: 12px; }
.proj-mockup-shape-1 { top: 18%; left: 12%; width: 56%; height: 28%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); }
.proj-mockup-shape-2 { top: 56%; left: 12%; width: 32%; height: 22%; background: var(--c); opacity: 0.7; box-shadow: 0 16px 40px var(--c); }
.proj-mockup-shape-3 { top: 50%; left: 50%; width: 22%; height: 32%; border: 1px solid var(--c); border-radius: 50%; opacity: 0.5; }
.proj-mockup-label { position: absolute; bottom: 10px; right: 12px; font-size: 9px; color: rgba(255,255,255,0.55); letter-spacing: 0.1em; z-index: 2; }
.proj-mockup-img { background: #0a0613; }
.proj-mockup-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.proj-card:hover .proj-mockup-img img { transform: scale(1.04); }
.proj-mockup-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7,6,12,0.55)); z-index: 1; }
.proj-skeleton { position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.04) 75%); background-size: 200% 100%; animation: skeleton-sweep 1.4s ease-in-out infinite; }
.sk-line { height: 0.75rem; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%); background-size: 200% 100%; animation: skeleton-sweep 1.4s ease-in-out infinite; }
.proj-card-skeleton-wrap { animation: sk-fadein .35s ease both; }
@keyframes skeleton-sweep { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes sk-fadein { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.proj-card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 12px; }
.proj-card-meta { display: flex; gap: 8px; font-size: 11px; color: var(--fg-3); align-items: center; }
.proj-card-name { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; margin: 0; }
.proj-card-desc { font-size: 14px; line-height: 1.55; color: var(--fg-2); margin: 0; }
.proj-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.tag { font-size: 10px; padding: 4px 9px; border-radius: 999px; background: var(--glass-border); color: var(--fg-2); letter-spacing: 0.04em; }
.proj-card-links { display: flex; gap: 18px; padding-top: 14px; border-top: 1px solid var(--glass-border); margin-top: 6px; }
.proj-card-links a { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: var(--fg); text-decoration: none; transition: color .2s; }
.proj-card-links a:hover { color: var(--card-tint); }

/* ── Timeline ────────────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 32px; }
.timeline-line { position: absolute; top: 6px; bottom: 6px; left: 7px; width: 1px; }
.timeline-item { position: relative; padding: 0 0 28px 24px; }
.timeline-dot { position: absolute; left: -32px; top: 18px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.timeline-dot span { width: 6px; height: 6px; border-radius: 50%; box-shadow: 0 0 12px currentColor; }
.timeline-content { padding: 22px 26px; transition: transform .3s, border-color .3s; }
.timeline-content:hover { transform: translateX(3px); border-color: var(--fg-4); }
.timeline-period { font-size: 11px; color: var(--fg-3); letter-spacing: 0.1em; margin-bottom: 8px; }
.timeline-role { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 4px; }
.timeline-company { font-size: 13px; color: var(--fg-2); margin-bottom: 10px; }
.timeline-loc { color: var(--fg-3); }
.timeline-desc { font-size: 13px; color: var(--fg-2); line-height: 1.55; margin: 0; }

/* ── Contact ─────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form { padding: 32px; display: flex; flex-direction: column; gap: 18px; border-radius: 22px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field span { font-size: 10px; color: var(--fg-3); letter-spacing: 0.1em; text-transform: lowercase; }
.field input, .field textarea { background: transparent; border: 0; border-bottom: 1px solid var(--glass-border); color: var(--fg); font-family: inherit; font-size: 15px; padding: 10px 0; outline: none; resize: none; transition: border-color .2s; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-3); }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field--error input, .field--error textarea { border-color: #f87171; }
.field-hint { font-size: 11px; color: #f87171; letter-spacing: 0.02em; }
.contact-form .btn { align-self: flex-start; margin-top: 6px; }

.contact-direct-label { font-size: 10px; color: var(--fg-3); letter-spacing: 0.1em; margin-bottom: 14px; }
.socials { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.socials a { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--glass-border); color: var(--fg); text-decoration: none; transition: padding .25s; }
.socials a:hover { padding-left: 8px; color: var(--accent); }
.socials-label { font-size: 16px; font-weight: 500; }
.socials-handle { font-size: 12px; color: var(--fg-3); }

/* ── Footer ──────────────────────────────────────────────────────── */
.footer { padding: 36px 48px; max-width: 1240px; margin: 0 auto; border-top: 1px solid var(--glass-border); }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 11px; color: var(--fg-3); letter-spacing: 0.05em; }
@media (max-width: 720px) { .footer { padding: 28px 24px; } .footer-built { display: none; } }

/* ── Responsive: Touch + Mobile refinements ─────────────────────── */
/* Disable custom cursor on touch devices */
@media (hover: none), (pointer: coarse) {
  body { cursor: auto !important; }
  body a, body button, body input, body textarea { cursor: auto !important; }
}

/* Tablet */
@media (max-width: 920px) {
  .section { padding: 100px 32px; }
  .section-head { margin-bottom: 48px; }
  .hero { padding: 110px 32px 70px; }
  .hero-title { font-size: clamp(48px, 11vw, 96px); }
  .hero-sub { font-size: 17px; }
}

/* Mobile */
@media (max-width: 720px) {
  .section { padding: 80px 20px; }
  .section-head { margin-bottom: 36px; gap: 10px; }
  .section-title { font-size: clamp(32px, 8vw, 44px); }
  .section-sub { font-size: 14px; }
  .hero { padding: 100px 20px 60px; min-height: auto; }
  .hero-grid { gap: 32px; }
  .hero-title { font-size: clamp(44px, 13vw, 72px); margin: 0 0 20px; gap: 0.12em; }
  .hero-sub { font-size: 16px; margin: 0 0 28px; }
  .hero-kicker { font-size: 10px; gap: 10px; margin-bottom: 16px; }
  .kicker-line { width: 24px; }
  .hero-ctas { margin-bottom: 40px; gap: 10px; }
  .hero-ctas .btn { padding: 12px 18px; font-size: 13px; flex: 1; justify-content: center; min-width: 140px; }
  .hero-stats { gap: 18px; padding-top: 22px; }
  .stat-num { font-size: 26px; }
  .stat-lbl { font-size: 10px; }
  .hero-3d { display: none; }

  /* Nav: compact on mobile */
  .nav { gap: 14px; padding: 6px 6px 6px 14px; font-size: 12px; top: 10px; }
  .nav-brand { padding-right: 10px; gap: 8px; }
  .nav-actions { gap: 6px; }
  .lang-toggle button { padding: 3px 8px; font-size: 10px; }
  .theme-toggle { width: 28px; height: 28px; }
  .cv-btn { padding: 6px 10px; }

  /* About */
  .about-lead { font-size: 17px; }
  .skill-card { padding: 20px; }

  /* Projects */
  .proj-grid-glass, .proj-grid-bento, .proj-grid-stacked { gap: 16px; }
  .proj-card-body { padding: 20px 22px 22px; gap: 10px; }
  .proj-card-name { font-size: 20px; }
  .proj-card-desc { font-size: 13px; }

  /* Timeline */
  .timeline { padding-left: 24px; }
  .timeline-item { padding: 0 0 22px 16px; }
  .timeline-dot { left: -24px; width: 14px; height: 14px; }
  .timeline-content { padding: 18px 20px; }
  .timeline-role { font-size: 16px; }
  .timeline-period { font-size: 10px; }

  /* Contact */
  .contact-form { padding: 24px; }
  .contact-grid { gap: 28px; }
  .socials a { padding: 16px 0; gap: 10px; }
  .socials-label { font-size: 15px; }

  /* Sync chip */
  .behance-sync { font-size: 10px; padding: 6px 12px; gap: 8px; flex-wrap: wrap; }
}

/* Very small phones */
@media (max-width: 380px) {
  .section { padding: 70px 16px; }
  .hero { padding: 96px 16px 52px; }
  .hero-title { font-size: 42px; }
  .nav { gap: 10px; padding: 5px 5px 5px 12px; }
  .nav-name-2, .nav-role { display: none; }
  .cv-btn { padding: 6px 8px; }
  .footer { padding: 24px 16px; }
  .footer-row { font-size: 10px; }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #22c55e;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 24px rgba(34,197,94,.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 9999;
}
.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Back to top ─────────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, background .2s ease, border-color .2s ease;
}
.back-to-top--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: color-mix(in oklab, var(--accent) 20%, rgba(255,255,255,0.08));
  border-color: color-mix(in oklab, var(--accent) 60%, transparent);
}
