:root {
  --ac: #D4A5C9;
  --ac-dim: rgba(212, 165, 201, 0.15);
  --ac-border: rgba(212, 165, 201, 0.22);
  --ac-text: #1a0a18;
  --bg: #0c0a0f;
  --bg-card: rgba(255, 255, 255, 0.025);
  --bg-card-hover: rgba(212, 165, 201, 0.05);
  --text: #f0eaee;
  --text-muted: rgba(240, 234, 238, 0.45);
  --text-faint: rgba(240, 234, 238, 0.22);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(212, 165, 201, 0.3);
  --font: 'DM Sans', system-ui, sans-serif;
  --mono: 'DM Mono', monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 1100px;
  --transition: 0.2s ease;
}

/* ── LIGHT MODE ── */
[data-theme="light"] {
  --bg: #f5f0f4;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-hover: rgba(212, 165, 201, 0.08);
  --text: #1a0a18;
  --text-muted: rgba(26, 10, 24, 0.6);
  --text-faint: rgba(26, 10, 24, 0.35);
  --border: rgba(26, 10, 24, 0.08);
  --border-hover: rgba(212, 165, 201, 0.5);
  --ac-dim: rgba(212, 165, 201, 0.15);
  --ac-border: rgba(180, 120, 168, 0.3);
  --ac-text: #fff;
}
[data-theme="light"] .nav { background: rgba(245, 240, 244, 0.92); }
[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(180, 120, 168, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 120, 168, 0.07) 1px, transparent 1px);
}
[data-theme="light"] .hero-glow { background: radial-gradient(circle, rgba(212, 165, 201, 0.12) 0%, transparent 70%); }
[data-theme="light"] ::-webkit-scrollbar-track { background: #f5f0f4; }
[data-theme="light"] .mobile-menu { background: rgba(245, 240, 244, 0.98); }
[data-theme="light"] .photo-wrap { background: rgba(212, 165, 201, 0.1); }
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea { background: rgba(255, 255, 255, 0.8); color: var(--text); }
[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus { background: #fff; }
[data-theme="light"] .proj-img { filter: brightness(0.95) saturate(0.95); }
[data-theme="light"] .proj-card:hover .proj-img { filter: brightness(0.55) saturate(0.8); }
[data-theme="light"] .exp-photo { filter: brightness(0.96) saturate(0.9); border-color: rgba(180, 120, 168, 0.25); }
[data-theme="light"] .proj-card:hover .proj-preview-overlay { background: rgba(30, 10, 28, 0.65); }

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

html { scroll-behavior: smooth; background-color: var(--bg); }

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

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--ac);
  color: var(--ac-text);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 8px; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--ac-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--ac); }

/* ── SELECTION ── */
::selection { background: rgba(212, 165, 201, 0.25); color: var(--text); }

/* =============================================
   NAVIGATION
============================================= */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  border-bottom: 0.5px solid var(--border);
  background: rgba(12, 10, 15, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 20px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.nav-logo {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  font-family: var(--font);
  padding: 0;
}
.nav-logo:focus-visible { outline: 2px solid var(--ac); outline-offset: 4px; border-radius: 4px; }

.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--ac);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ── THEME TOGGLE ── */
.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 0.5px solid var(--border-hover);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--ac-dim);
  color: var(--ac);
  border-color: var(--ac-border);
  transform: rotate(18deg) scale(1.08);
}
.theme-toggle:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }

.lang-toggle {
  display: flex;
  border: 0.5px solid var(--border-hover);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.lang-btn {
  font-size: 11px;
  padding: 5px 12px;
  background: transparent;
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  transition: background var(--transition), color var(--transition);
}
.lang-btn.active { background: var(--ac-dim); color: var(--ac); }
.lang-btn:hover:not(.active) { background: rgba(255,255,255,0.04); color: var(--text); }

.btn-cv {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 8px 18px;
  background: var(--ac);
  color: var(--ac-text);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: opacity var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-cv:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-cv:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: rgba(12,10,15,0.98);
  border-bottom: 0.5px solid var(--border);
  position: sticky;
  top: 64px;
  z-index: 99;
  transition: background 0.25s ease;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 15px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 16px 40px;
  border-bottom: 0.5px solid var(--border);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.02em;
}
.mobile-menu a:hover { color: var(--text); background: var(--bg-card); }
.mobile-menu .mobile-cv {
  color: var(--ac);
  font-weight: 500;
  padding: 16px 40px 24px;
  border-bottom: none;
}

/* =============================================
   HERO
============================================= */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 165, 201, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 165, 201, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  transition: background-image 0.25s ease;
}

.hero-glow {
  position: absolute;
  top: -120px;
  right: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 165, 201, 0.07) 0%, transparent 70%);
  pointer-events: none;
  transition: background 0.25s ease;
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-left { flex: 1; max-width: 520px; }

.badge-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 165, 201, 0.1);
  border: 0.5px solid rgba(212, 165, 201, 0.28);
  border-radius: 99px;
  padding: 6px 16px;
  font-size: 12px;
  color: var(--ac);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ac);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero-name {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 10px;
}

.ac { color: var(--ac); }
.ac-txt { color: var(--ac); }

.hero-role {
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  margin-bottom: 22px;
  font-family: var(--mono);
}

.hero-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 440px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  padding: 11px 24px;
  background: var(--ac);
  color: var(--ac-text);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 500;
  transition: opacity var(--transition), transform var(--transition);
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  padding: 11px 24px;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  border: 0.5px solid var(--border-hover);
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(212,165,201,0.5); transform: translateY(-2px); }

.hero-socials {
  display: flex;
  gap: 20px;
}
.soc-link {
  font-size: 12px;
  color: var(--text-faint);
  text-decoration: none;
  letter-spacing: 0.05em;
  font-family: var(--mono);
  transition: color var(--transition);
}
.soc-link:hover { color: var(--ac); }

/* Photo */
.hero-right { flex-shrink: 0; }

.photo-wrap {
  width: 260px;
  height: 320px;
  border-radius: 20px;
  border: 0.5px solid var(--ac-border);
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 20px;
  display: block;
}

.photo-fallback .hero-photo { display: none; }
.photo-fallback .photo-placeholder { display: flex !important; }

.photo-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ac-border);
}
.photo-placeholder svg { stroke: var(--ac-border); }
.photo-placeholder span {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  font-family: var(--mono);
}

.photo-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--ac);
  border-style: solid;
  border-width: 0;
  opacity: 0.4;
  z-index: 2;
}
.photo-corner.tl { top: 12px; left: 12px; border-top-width: 1px; border-left-width: 1px; border-radius: 4px 0 0 0; }
.photo-corner.tr { top: 12px; right: 12px; border-top-width: 1px; border-right-width: 1px; border-radius: 0 4px 0 0; }
.photo-corner.bl { bottom: 12px; left: 12px; border-bottom-width: 1px; border-left-width: 1px; border-radius: 0 0 0 4px; }
.photo-corner.br { bottom: 12px; right: 12px; border-bottom-width: 1px; border-right-width: 1px; border-radius: 0 0 4px 0; }

/* =============================================
   STATS BAR
============================================= */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}
.stat {
  padding: 24px 40px;
  border-right: 0.5px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 5px;
  font-family: var(--mono);
}
.stat-num em { color: var(--ac); font-style: normal; font-size: 20px; }
.stat-lbl {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-family: var(--mono);
}

/* =============================================
   SECTIONS
============================================= */
.section { padding: 80px 40px; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-header { margin-bottom: 40px; }

.sec-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ac);
  text-transform: uppercase;
  font-family: var(--mono);
  font-weight: 500;
  margin-bottom: 8px;
}
.sec-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.03em;
}

.divider {
  height: 0.5px;
  background: var(--border);
  max-width: 100%;
}

/* =============================================
   PROJECTS
============================================= */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.proj-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  outline: none;
}
.proj-card:hover, .proj-card:focus-visible {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.proj-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.proj-ico {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--ac-dim);
  border: 0.5px solid var(--ac-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ac);
}
.proj-links {
  display: flex;
  gap: 10px;
}
.proj-links a {
  color: var(--text-faint);
  display: flex;
  align-items: center;
  transition: color var(--transition);
  padding: 4px;
}
.proj-links a:hover { color: var(--ac); }

.proj-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.proj-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}
.proj-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.ptag {
  font-size: 10px;
  padding: 3px 9px;
  background: var(--ac-dim);
  border: 0.5px solid var(--ac-border);
  border-radius: 5px;
  color: var(--ac);
  font-family: var(--mono);
  opacity: 0.85;
}
.ptag.live {
  background: rgba(29, 158, 117, 0.1);
  border-color: rgba(29, 158, 117, 0.25);
  color: #1D9E75;
  opacity: 1;
}

/* =============================================
   EXPERIENCE
============================================= */
.exp-list { display: flex; flex-direction: column; }
.exp-item {
  display: flex;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 0.5px solid var(--border);
}
.exp-item:last-child { border-bottom: none; }

.exp-meta { min-width: 100px; padding-top: 2px; }
.exp-year {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  font-family: var(--mono);
  line-height: 1.5;
}
.exp-body { flex: 1; }
.exp-role-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.exp-role {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}
.exp-now {
  font-size: 9px;
  padding: 2px 8px;
  background: var(--ac-dim);
  border: 0.5px solid var(--ac-border);
  border-radius: 4px;
  color: var(--ac);
  font-family: var(--mono);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.exp-co {
  font-size: 12px;
  color: var(--ac);
  margin-bottom: 10px;
  opacity: 0.8;
  font-family: var(--mono);
}
.exp-pts { list-style: none; }
.exp-pts li {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.75;
  padding-left: 16px;
  position: relative;
}
.exp-pts li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(212, 165, 201, 0.35);
}

/* =============================================
   SKILLS
============================================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.sg-title {
  font-size: 10px;
  color: var(--text-faint);
  margin-bottom: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--mono);
}
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-size: 11px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  border: 0.5px solid var(--border);
  color: var(--text-muted);
  background: rgba(255,255,255,0.025);
  font-family: var(--mono);
  transition: border-color var(--transition), color var(--transition);
}
[data-theme="light"] .chip { background: rgba(0,0,0,0.025); }
.chip:hover { border-color: var(--ac-border); color: var(--ac); }
.chip.hi {
  border-color: var(--ac-border);
  color: var(--ac);
  background: var(--ac-dim);
  opacity: 0.88;
}

/* =============================================
   CERTIFICATIONS
============================================= */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.cert-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color var(--transition), background var(--transition);
}
.cert-card:hover { border-color: var(--ac-border); }
.cert-issuer {
  font-size: 10px;
  color: var(--ac);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-family: var(--mono);
  opacity: 0.8;
}
.cert-name {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 8px;
}
.cert-year {
  font-size: 11px;
  color: var(--text-faint);
  font-family: var(--mono);
}

/* =============================================
   ARTISTIC NOTE
============================================= */
.artistic-note { padding: 0 40px 60px; }
.artistic-note .section-inner {
  border-left: 1.5px solid rgba(212, 165, 201, 0.28);
  padding-left: 24px;
}
.artistic-note p {
  font-size: 13px;
  color: var(--text-faint);
  line-height: 1.85;
  font-style: italic;
  max-width: 600px;
}
.artistic-note a {
  color: var(--ac);
  text-decoration: none;
  opacity: 0.85;
  border-bottom: 0.5px solid rgba(212,165,201,0.35);
  transition: opacity var(--transition);
}
.artistic-note a:hover { opacity: 1; }

/* =============================================
   CONTACT
============================================= */
.contact-sec { text-align: left; }
.contact-inner { max-width: 640px; }
.contact-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.04em;
  margin-bottom: 12px;
  margin-top: 8px;
  text-align: left;
}
.contact-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 32px;
  text-align: left;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--mono);
}
.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text);
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  width: 100%;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faint); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--ac-border);
  background: rgba(212,165,201,0.04);
}
.form-group input:focus-visible,
.form-group textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(212,165,201,0.2);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 13px;
  padding: 11px 24px;
  background: var(--ac);
  color: var(--ac-text);
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-family: var(--font);
  transition: opacity var(--transition), transform var(--transition);
}
.btn-submit:hover { opacity: 0.88; transform: translateY(-2px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-submit.success { background: #1D9E75; }
.btn-submit.error { background: #E24B4A; }

.contact-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  color: var(--text-faint);
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 0.06em;
}
.contact-divider::before,
.contact-divider::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--border);
}

.contact-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.contact-links a {
  font-size: 12px;
  color: var(--text-faint);
  text-decoration: none;
  letter-spacing: 0.05em;
  font-family: var(--mono);
  transition: color var(--transition);
}
.contact-links a:hover { color: var(--ac); }

/* =============================================
   FOOTER
============================================= */
.footer {
  padding: 20px 40px;
  border-top: 0.5px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-left, .footer-right {
  font-size: 11px;
  color: var(--text-faint);
  font-family: var(--mono);
}

/* =============================================
   SCROLL TO TOP
============================================= */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ac);
  color: var(--ac-text);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform var(--transition);
  z-index: 50;
  box-shadow: 0 4px 20px rgba(212, 165, 201, 0.25);
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-3px); }

/* =============================================
   SCROLL REVEAL
============================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* =============================================
   EDUCATION
============================================= */
.edu-list { display: flex; flex-direction: column; gap: 0; }
.edu-item {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 0.5px solid var(--border);
  align-items: flex-start;
}
.edu-item:last-child { border-bottom: none; }
.edu-left { flex-shrink: 0; padding-top: 2px; }
.edu-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--ac-dim);
  border: 0.5px solid var(--ac-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ac);
}
.edu-body { flex: 1; }
.edu-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.edu-degree {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}
.edu-school {
  font-size: 12px;
  color: var(--ac);
  font-family: var(--mono);
  opacity: 0.8;
}
.edu-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.edu-year {
  font-size: 11px;
  color: var(--text-faint);
  font-family: var(--mono);
  white-space: nowrap;
}
.edu-gpa {
  font-size: 11px;
  padding: 2px 8px;
  background: var(--ac-dim);
  border: 0.5px solid var(--ac-border);
  border-radius: 4px;
  color: var(--ac);
  font-family: var(--mono);
  white-space: nowrap;
}
.edu-pts { list-style: none; }
.edu-pts li {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.75;
  padding-left: 16px;
  position: relative;
}
.edu-pts li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(212, 165, 201, 0.35);
}

/* =============================================
   PHOTO FALLBACK — initials SZ
============================================= */
.photo-initials {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: var(--ac-dim);
  font-size: 48px;
  font-weight: 300;
  color: var(--ac);
  letter-spacing: -0.04em;
  border-radius: 20px;
}
.photo-fallback .hero-photo { display: none; }
.photo-fallback .photo-initials { display: flex !important; }
.photo-fallback .photo-placeholder { display: none !important; }

/* =============================================
   PROJECT PREVIEW IMAGE + OVERLAY
============================================= */
.proj-preview {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: rgba(212,165,201,0.06);
  border-bottom: 0.5px solid var(--border);
}
.proj-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.85) saturate(0.9);
  background: linear-gradient(90deg, rgba(212,165,201,0.08) 25%, rgba(212,165,201,0.04) 50%, rgba(212,165,201,0.08) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
}
.proj-img.loaded { animation: none; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

.proj-card:hover .proj-img { transform: scale(1.04); filter: brightness(0.5) saturate(0.7); }

.proj-preview-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.proj-card:hover .proj-preview-overlay { opacity: 1; }

.overlay-btn {
  font-size: 11px;
  padding: 7px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-family: var(--font);
  letter-spacing: 0.02em;
  transition: transform 0.2s, opacity 0.2s;
  background: var(--ac);
  color: var(--ac-text);
}
.overlay-btn.outline {
  background: transparent;
  color: #fff;
  border: 0.5px solid rgba(255,255,255,0.5);
}
.overlay-btn:hover { transform: translateY(-2px); opacity: 0.9; }

.proj-body { padding: 18px 20px 20px; }
.proj-body .proj-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

/* Mobile */
@media (hover: none) {
  .proj-preview-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(12,10,15,0.7) 0%, transparent 60%);
    align-items: flex-end;
    padding: 12px;
    justify-content: flex-start;
  }
  .proj-card:hover .proj-img { transform: none; filter: brightness(0.85) saturate(0.9); }
}

/* =============================================
   EXPERIENCE ACCORDION
============================================= */
.exp-role-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font);
  text-align: left;
  width: 100%;
  color: var(--text);
}
.exp-role-btn:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; border-radius: 4px; }

.exp-chevron {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--text-faint);
  transition: transform 0.3s ease, color 0.2s;
  display: flex;
  align-items: center;
}
.exp-role-btn[aria-expanded="true"] .exp-chevron { transform: rotate(180deg); color: var(--ac); }
.exp-role-btn:hover .exp-chevron { color: var(--ac); }

.exp-hint {
  font-size: 10px;
  color: var(--text-faint);
  font-family: var(--mono);
  margin-top: 3px;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

.exp-accordion {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, opacity 0.35s ease, padding 0.3s ease;
  opacity: 0;
}
.exp-accordion.open { max-height: 600px; opacity: 1; padding-top: 14px; }

.exp-photo {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 0.5px solid var(--ac-border);
  object-fit: cover;
  filter: brightness(0.88) saturate(0.85);
  transition: filter 0.3s ease;
}
.exp-photo:hover { filter: brightness(1) saturate(1); }

/* =============================================
   PRINT
============================================= */
@media print {
  .nav, .scroll-top, .hero-grid, .hero-glow, .badge-open, .theme-toggle { display: none !important; }
  body { background: white !important; color: black !important; }
  .section { padding: 20px 0 !important; }
}

/* =============================================
   REDUCED MOTION
============================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .badge-dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 900px) {
  .nav { height: 56px; padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { min-height: auto; }
  .hero-content { padding: 48px 20px 40px; gap: 32px; flex-direction: column; align-items: flex-start; }
  .hero-right { align-self: center; width: 100%; display: flex; justify-content: center; }
  .photo-wrap { width: 180px; height: 220px; }
  .photo-initials { font-size: 40px; }
  .stats-bar { grid-template-columns: repeat(2,1fr); }
  .stat { padding: 16px 20px; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3) { border-top: 0.5px solid var(--border); }
  .stat:nth-child(4) { border-top: 0.5px solid var(--border); border-right: none; }
  .section { padding: 48px 20px; }
  .artistic-note { padding: 0 20px 40px; }
  .proj-grid { grid-template-columns: 1fr; }
  .exp-item { flex-direction: column; gap: 6px; padding: 20px 0; }
  .exp-meta { min-width: unset; }
  .skills-grid { grid-template-columns: 1fr; gap: 20px; }
  .edu-item { flex-direction: column; gap: 12px; }
  .edu-head { flex-direction: column; gap: 8px; }
  .edu-meta { align-items: flex-start; flex-direction: row; }
  .cert-grid { grid-template-columns: repeat(2,1fr); }
  .form-row { grid-template-columns: 1fr; }
  .contact-title { font-size: 28px; }
  .footer { padding: 16px 20px; flex-direction: column; gap: 4px; text-align: center; }
  .mobile-menu a { padding: 14px 20px; }
  .mobile-menu .mobile-cv { padding: 14px 20px 20px; }
  .scroll-top { width: 48px; height: 48px; bottom: 20px; right: 16px; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 30px; }
  .hero-desc { font-size: 13px; }
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-ghost { text-align: center; justify-content: center; width: 100%; }
  .cert-grid { grid-template-columns: 1fr; }
  .stat-num { font-size: 22px; }
  .lang-toggle { display: none; }
  .nav-logo { font-size: 16px; }
  .btn-cv span { display: none; }
  .btn-cv { padding: 8px 12px; }
  .contact-title { font-size: 24px; }
  .btn-submit { width: 100%; justify-content: center; }
  .proj-preview { height: 150px; }
}

/* ── SKILL LEVELS ── */
.skills-level-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 24px;
}
.skill-level-group {}
.skill-level-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.skill-level-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-mahir   { background: var(--ac); box-shadow: 0 0 6px rgba(212,165,201,0.5); }
.dot-familiar{ background: rgba(212,165,201,0.5); }
.dot-used    { background: var(--border-hover); }

.chip.mid {
  border-color: rgba(212,165,201,0.2);
  color: var(--text-muted);
  background: rgba(212,165,201,0.06);
  opacity: 0.9;
}
.chip.lo {
  border-color: var(--border);
  color: var(--text-faint);
  background: transparent;
  opacity: 0.7;
}

.skill-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 0.5px solid var(--border);
  font-size: 11px;
  color: var(--text-faint);
  font-family: var(--mono);
  letter-spacing: 0.05em;
}
.skill-legend span:nth-child(odd) { flex-shrink: 0; }

/* ── TESTIMONIALS ── */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.testi-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition);
}
.testi-card:hover { border-color: var(--ac-border); }
.testi-quote {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 2px solid var(--ac);
}
.testi-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.testi-role {
  font-size: 11px;
  color: var(--text-faint);
  font-family: var(--mono);
  margin-top: 3px;
}

@media (max-width: 900px) {
  .testi-grid { grid-template-columns: 1fr; }
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ac-dim);
  border: 0.5px solid var(--ac-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--ac);
  flex-shrink: 0;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
