/* ── CSS VARIABLES ── */
:root {
  --bg: #0a0d0f;
  --bg2: #0f1418;
  --bg3: #141a20;
  --teal: #00c9a7;
  --teal2: #00e5c0;
  --teal-dim: rgba(0,201,167,0.12);
  --teal-border: rgba(0,201,167,0.25);
  --text: #e8edf2;
  --text-muted: #7a8a96;
  --text-dim: #4a5a66;
  --white: #ffffff;
  --accent-warm: #f0c060;
  --line: rgba(255,255,255,0.07);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--line);
  background: rgba(10,13,15,0.85);
  backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,201,167,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,201,167,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,201,167,0.08) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  pointer-events: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 64px 80px;
  position: relative;
  z-index: 2;
}

.hero-tag {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.2s;
}

.hero-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(52px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 12px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.35s;
}

.hero-name span {
  color: var(--teal);
  display: block;
}

.hero-title {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 2.2vw, 26px);
  color: var(--text-muted);
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.5s;
}

.hero-desc {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.65s;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.8s;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.hero-meta-item .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.95s;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--teal);
  color: var(--bg);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--teal2); transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--teal);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--teal-border);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-ghost:hover {
  background: var(--teal-dim);
  border-color: var(--teal);
  transform: translateY(-2px);
}

/* ── HERO PHOTO PANEL ── */
.hero-photo-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg3);
  border-left: 1px solid var(--line);
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 1s ease forwards 0.4s;
}

.hero-photo-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(0,201,167,0.05));
}

.photo-frame {
  position: relative;
  width: 280px;
  height: 340px;
}

.photo-frame::before {
  content: '';
  position: absolute;
  top: -12px; left: -12px;
  right: 12px; bottom: 12px;
  border: 1px solid var(--teal-border);
  z-index: 0;
}

.photo-frame::after {
  content: '';
  position: absolute;
  top: 12px; left: 12px;
  right: -12px; bottom: -12px;
  border: 1px solid rgba(0,201,167,0.1);
  z-index: 0;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
  filter: grayscale(20%);
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 1;
  border: 1px dashed var(--teal-border);
}

.photo-caption {
  position: absolute;
  bottom: 40px;
  left: 0; right: 0;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── SECTIONS ── */
section { padding: 100px 64px; }

.section-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 64px;
}

.section-num {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--teal);
  text-transform: uppercase;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3vw, 42px);
  color: var(--white);
  letter-spacing: -0.02em;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--line);
  margin-left: 20px;
  align-self: center;
}

/* ── SKILLS ── */
#skills { background: var(--bg2); }

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

.skill-group {
  background: var(--bg3);
  padding: 36px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}
.skill-group.visible { opacity: 1; transform: none; }

.skill-group::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.skill-group:hover::after { transform: scaleX(1); }

.skill-group-title {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}

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

.skill-tag {
  font-size: 13px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  color: var(--text-muted);
  transition: all 0.2s;
}

.skill-tag:hover,
.skill-tag.highlight {
  border-color: var(--teal-border);
  color: var(--teal);
  background: var(--teal-dim);
}

.skill-tag.highlight {
  border-style: solid;
}

/* ── EXPERIENCE ── */
#experience { background: var(--bg); }

.exp-timeline {
  position: relative;
  padding-left: 32px;
}

.exp-timeline::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, var(--teal), transparent);
}

.exp-item {
  position: relative;
  margin-bottom: 72px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s ease;
}
.exp-item.visible { opacity: 1; transform: none; }
.exp-item:last-child { margin-bottom: 0; }

.exp-dot {
  position: absolute;
  left: -38px;
  top: 6px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--teal);
  background: var(--bg);
  border-radius: 50%;
}

.exp-dot::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--teal);
  border-radius: 50%;
}

.exp-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.exp-period {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-dim);
  border: 1px solid var(--teal-border);
  padding: 4px 12px;
}

.exp-company {
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.exp-role {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.exp-location {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
  letter-spacing: 0.1em;
}

.exp-achievements {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exp-achievements li {
  display: flex;
  gap: 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.exp-achievements li::before {
  content: '→';
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 1px;
}

.exp-achievements li strong {
  color: var(--text);
  font-weight: 500;
}

/* ── KEY ACHIEVEMENTS / IMPACT ── */
#impact { background: var(--bg2); }

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

.impact-card {
  background: var(--bg3);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.5s ease;
  cursor: default;
}
.impact-card.visible { opacity: 1; transform: none; }
.impact-card:hover { background: #191f27; }

.impact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
}

.impact-icon {
  font-size: 28px;
  margin-bottom: 20px;
  display: block;
}

.impact-metric {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 36px;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 8px;
}

.impact-title {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.3;
}

.impact-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ── CREDENTIALS & EDUCATION ── */
#credentials { background: var(--bg); }

.credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.cred-block-title {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.cred-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cred-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  opacity: 0;
  transform: translateX(-12px);
  transition: all 0.5s ease;
}
.cred-item.visible { opacity: 1; transform: none; }

.cred-badge {
  width: 42px;
  height: 42px;
  border: 1px solid var(--teal-border);
  background: var(--teal-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.cred-info { flex: 1; }

.cred-name {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--white);
  margin-bottom: 4px;
}

.cred-sub {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.cred-period {
  font-size: 12px;
  color: var(--teal);
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* ── LANGUAGES ── */
.lang-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-name {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--white);
  width: 80px;
  flex-shrink: 0;
}

.lang-level-text {
  font-size: 13px;
  color: var(--text-dim);
  width: 80px;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

.lang-bar {
  flex: 1;
  height: 2px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.lang-bar-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: linear-gradient(90deg, var(--teal), var(--teal2));
  width: 0;
  transition: width 1s ease;
}

/* ── TARGET ROLES ── */
#target { background: var(--bg2); }

.target-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.target-card {
  background: var(--bg3);
  padding: 48px 44px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}
.target-card.visible { opacity: 1; transform: none; }

.target-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--teal);
}

.target-role-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.target-role-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.target-company {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 28px;
  letter-spacing: 0.05em;
}

.match-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.match-list li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.match-list li .check { color: var(--teal); flex-shrink: 0; }

/* ── CONTACT ── */
#contact {
  background: var(--bg);
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 100px 64px;
}

.contact-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}

.contact-heading {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 5vw, 64px);
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1;
}

.contact-heading em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--teal);
  font-weight: 300;
}

.contact-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid var(--line);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  transition: all 0.2s;
}
.contact-link:hover {
  border-color: var(--teal-border);
  color: var(--teal);
  background: var(--teal-dim);
}

.footer-note {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--teal-border); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-photo-panel { height: 400px; border-left: none; border-top: 1px solid var(--line); }
  .skills-grid, .impact-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .target-grid { grid-template-columns: 1fr; }
  nav { padding: 20px 24px; }
  section { padding: 80px 24px; }
  .hero-content { padding: 120px 24px 60px; }
}

@media (max-width: 640px) {
  .skills-grid, .impact-grid, .credentials-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}