:root {
  --bg: #070b16;
  --bg-soft: #0b1120;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-solid: #0e1526;
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --text: #e8edf7;
  --text-soft: #9aa5bd;
  --accent: #f2c811;
  --accent-2: #37d3ff;
  --accent-grad: linear-gradient(120deg, #f2c811, #f78f1e);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --nav-bg: rgba(7, 11, 22, 0.72);
  --code-bg: #0b1120;
  --scroll-track: #0b1120;
  --scroll-thumb: #2a3452;
  --glass-blur: blur(16px);
}

[data-theme="light"] {
  --bg: #f4f6fb;
  --bg-soft: #eef1f8;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --surface-hover: rgba(255, 255, 255, 0.95);
  --border: rgba(15, 25, 60, 0.12);
  --text: #111a33;
  --text-soft: #4c5875;
  --accent: #d19a00;
  --accent-2: #0c9bd8;
  --accent-grad: linear-gradient(120deg, #d19a00, #e86f1e);
  --shadow: 0 18px 44px rgba(30, 45, 90, 0.14);
  --nav-bg: rgba(244, 246, 251, 0.8);
  --code-bg: #0d1220;
  --scroll-track: #e8ecf5;
  --scroll-thumb: #b9c2d6;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Sora", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(800px 420px at 85% -5%, rgba(242, 200, 17, 0.12), transparent 60%),
    radial-gradient(700px 420px at -10% 35%, rgba(55, 211, 255, 0.1), transparent 60%);
  pointer-events: none;
  z-index: -2;
}

[data-theme="light"] body::before {
  background:
    radial-gradient(800px 420px at 85% -5%, rgba(209, 154, 0, 0.14), transparent 60%),
    radial-gradient(700px 420px at -10% 35%, rgba(12, 155, 216, 0.12), transparent 60%);
}

::selection { background: var(--accent); color: #070b16; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--scroll-track); }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 8px; }

.container { width: min(1120px, 92%); margin-inline: auto; }

.gradient-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- background decor ---------- */
.bg-decor { position: fixed; inset: 0; z-index: -3; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; animation: float 16s ease-in-out infinite; }
.orb-1 { width: 340px; height: 340px; background: rgba(242, 200, 17, 0.22); top: -80px; right: -60px; }
.orb-2 { width: 300px; height: 300px; background: rgba(55, 211, 255, 0.18); bottom: -60px; left: -80px; animation-delay: -6s; }
.orb-3 { width: 220px; height: 220px; background: rgba(178, 102, 255, 0.14); top: 45%; left: 55%; animation-delay: -11s; }
[data-theme="light"] .orb-1 { background: rgba(209, 154, 0, 0.2); }
[data-theme="light"] .orb-2 { background: rgba(12, 155, 216, 0.16); }

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 75%);
  opacity: 0.5;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.08); }
}

/* ---------- scroll progress ---------- */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--accent-grad); z-index: 1200; transition: width 0.1s linear;
}

/* ---------- navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
.navbar.scrolled { box-shadow: var(--shadow); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.brand-mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--accent-grad); color: #070b16; border-radius: 11px;
  font-weight: 800; font-size: 1.1rem; box-shadow: 0 6px 18px rgba(242, 200, 17, 0.35);
}
.brand-dot { color: var(--accent); }

.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--text-soft); text-decoration: none; font-size: 0.95rem; font-weight: 600; position: relative; padding: 4px 0; transition: color 0.25s ease; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px; background: var(--accent-grad); transition: width 0.3s ease; border-radius: 2px; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

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

.theme-toggle {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  cursor: pointer; transition: background 0.3s ease, transform 0.2s ease;
}
.theme-toggle:hover { background: var(--surface-hover); transform: translateY(-2px); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 13px; font-weight: 700; font-size: 0.95rem;
  font-family: inherit; text-decoration: none; cursor: pointer; border: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent-grad); color: #070b16; box-shadow: 0 10px 26px rgba(242, 200, 17, 0.32); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(242, 200, 17, 0.42); }
.btn-outline { background: var(--surface); color: var(--text); border: 1px solid var(--border); backdrop-filter: blur(6px); }
.btn-outline:hover { background: var(--surface-hover); transform: translateY(-3px); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text-soft); padding-inline: 8px; }
.btn-ghost:hover { color: var(--text); transform: translateX(4px); }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 130px 0 40px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px;
  border: 1px solid var(--border); border-radius: 100px; background: var(--surface);
  font-size: 0.8rem; font-weight: 600; color: var(--text-soft); backdrop-filter: blur(8px);
  margin-bottom: 26px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fd479; position: relative; }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #2fd479; animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

.hero-title { font-size: clamp(2.5rem, 5.5vw, 4rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; margin-bottom: 14px; }

.hero-role { font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 700; color: var(--accent); min-height: 1.7em; margin-bottom: 12px; font-family: "JetBrains Mono", monospace; }
.caret { display: inline-block; width: 3px; height: 1.1em; background: var(--accent); margin-left: 4px; vertical-align: text-bottom; animation: blink 0.9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-tagline { color: var(--text-soft); font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 500px; margin-bottom: 34px; }

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

.hero-meta { display: flex; flex-wrap: wrap; gap: 34px; }
.meta-item { display: flex; flex-direction: column; }
.meta-item strong { font-size: 1.35rem; font-weight: 800; color: var(--text); }
.meta-item span { font-size: 0.82rem; color: var(--text-soft); }

/* hero photo */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}
.hero-photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}
.hero-photo {
  position: relative;
  width: min(320px, 80%);
  aspect-ratio: 4 / 4.5;
  border-radius: 28px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  transition: transform 0.4s ease;
  z-index: 1;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 36px;
  background: var(--accent-grad);
  opacity: 0.16;
  filter: blur(34px);
  z-index: -1;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 28px;
  border: 1px solid rgba(242, 200, 17, 0.35);
  pointer-events: none;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}
.hero-photo-wrap:hover .hero-photo {
  transform: rotate(0deg) scale(1.02);
}
.photo-badge {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  border-radius: 100px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  box-shadow: var(--shadow);
  white-space: nowrap;
  z-index: 2;
}

/* code card */
.code-card {
  background: var(--code-bg); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px; padding: 0; overflow: hidden; position: relative;
  box-shadow: var(--shadow); transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
  transition: transform 0.5s ease;
  animation: codeFloat 7s ease-in-out infinite;
}
.code-card:hover { transform: perspective(1200px) rotateY(0deg) rotateX(0deg); }
@keyframes codeFloat { 0%, 100% { transform: perspective(1200px) rotateY(-6deg) rotateX(3deg) translateY(0); } 50% { transform: perspective(1200px) rotateY(-6deg) rotateX(3deg) translateY(-12px); } }
.code-card-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.78rem; color: #8b94ad; font-family: "JetBrains Mono", monospace; background: rgba(255, 255, 255, 0.03); }
.dots { display: flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; display: inline-block; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.code-card pre { padding: 22px 22px 26px; overflow-x: auto; font-size: 0.86rem; line-height: 1.75; font-family: "JetBrains Mono", monospace; color: #c9d4ee; }
.c-kw { color: #c586ff; }
.c-fn { color: #4fc1ff; }
.c-str { color: #ce9178; }
.c-cmt { color: #6a7a9e; }

.hero-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 24px; height: 40px; border: 2px solid var(--text-soft); border-radius: 14px; display: flex; justify-content: center; padding-top: 7px; }
.hero-scroll span { width: 4px; height: 8px; border-radius: 3px; background: var(--accent); animation: scrollDot 1.6s ease-in-out infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }

/* ---------- stats ---------- */
.stats { padding: 30px 0 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card {
  text-align: center; padding: 30px 18px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.stat-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.stat-num { font-size: 2.4rem; font-weight: 800; display: block; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.stat-label { font-size: 0.88rem; color: var(--text-soft); font-weight: 600; }

/* ---------- sections ---------- */
section { padding: 90px 0; }

.section-head { text-align: center; margin-bottom: 54px; }
.section-tag {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: -0.02em; font-weight: 800; }

.glass {
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 46px; align-items: start; }
.about-text p { color: var(--text-soft); margin-bottom: 18px; font-size: 1.02rem; }
.about-text strong { color: var(--text); }
.about-points { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.about-points span {
  padding: 9px 16px; border-radius: 100px; font-size: 0.85rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
}
.about-points span:nth-child(odd) { border-color: rgba(242, 200, 17, 0.4); }

.about-card { padding: 30px; border-radius: 22px; box-shadow: var(--shadow); }
.about-card-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.avatar {
  width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center;
  background: var(--accent-grad); color: #070b16; font-weight: 800; font-size: 1.4rem;
  box-shadow: 0 10px 24px rgba(242, 200, 17, 0.35); flex-shrink: 0;
}
.about-card-head h3 { font-size: 1.2rem; }
.about-card-head p { color: var(--text-soft); font-size: 0.85rem; }
.about-list { list-style: none; margin-bottom: 26px; }
.about-list li { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--border); font-size: 0.95rem; }
.about-list li span { color: var(--text-soft); }
.about-list li strong { font-weight: 700; }

/* ---------- experience / timeline ---------- */
.timeline { max-width: 820px; margin-inline: auto; position: relative; }
.timeline::before { content: ""; position: absolute; left: 16px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--accent), var(--accent-2)); border-radius: 2px; }
.timeline-item { position: relative; padding-left: 64px; }
.timeline-dot { position: absolute; left: 9px; top: 34px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(242, 200, 17, 0.18); z-index: 1; }
.timeline-card { padding: 30px 32px; border-radius: 20px; box-shadow: var(--shadow); }
.timeline-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.timeline-card-head h3 { font-size: 1.25rem; }
.timeline-company { color: var(--accent); font-weight: 700; font-size: 0.92rem; margin-top: 3px; }
.timeline-company span { color: var(--text-soft); font-weight: 500; }
.timeline-date { padding: 6px 14px; border-radius: 100px; background: rgba(242, 200, 17, 0.12); border: 1px solid rgba(242, 200, 17, 0.35); font-size: 0.78rem; font-weight: 700; color: var(--accent); white-space: nowrap; }
.timeline-summary { color: var(--text-soft); margin-bottom: 18px; }
.timeline-points { list-style: none; }
.timeline-points li { position: relative; padding: 7px 0 7px 26px; color: var(--text-soft); font-size: 0.96rem; }
.timeline-points li::before { content: "▹"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ---------- skills ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.skill-card {
  padding: 26px 24px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.skill-card:hover { transform: translateY(-8px); border-color: var(--accent); box-shadow: var(--shadow); }
.skill-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.skill-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(242, 200, 17, 0.12); border: 1px solid rgba(242, 200, 17, 0.3);
  color: var(--accent); font-weight: 800; font-size: 0.82rem; font-family: "JetBrains Mono", monospace;
}
.skill-icon.powerbi { background: linear-gradient(135deg, #f2c811, #f78f1e); color: #070b16; border: none; }
.skill-top h3 { font-size: 1.02rem; flex: 1; }
.skill-pct { font-weight: 800; font-size: 1rem; color: var(--accent); font-family: "JetBrains Mono", monospace; }
.skill-bar { height: 7px; border-radius: 6px; background: rgba(127, 140, 180, 0.2); overflow: hidden; margin-bottom: 14px; }
.skill-bar span {
  display: block; height: 100%; width: 0; border-radius: 6px;
  background: var(--accent-grad); transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.skill-card p { font-size: 0.85rem; color: var(--text-soft); }

/* ---------- projects ---------- */
.projects-grid { display: grid; gap: 24px; }
.project-card {
  border-radius: 24px; overflow: hidden; display: grid; grid-template-columns: 0.95fr 1.05fr;
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow); transition: transform 0.3s ease, border-color 0.3s ease;
}
.project-card:hover { transform: translateY(-6px); border-color: var(--accent); }

.project-visual { position: relative; background: var(--code-bg); padding: 26px; display: flex; align-items: center; justify-content: center; min-height: 300px; }
.project-chip { position: absolute; top: 18px; left: 18px; padding: 6px 14px; border-radius: 100px; font-size: 0.75rem; font-weight: 700; background: rgba(242, 200, 17, 0.15); border: 1px solid rgba(242, 200, 17, 0.4); color: var(--accent); }

.mini-dash {
  width: 100%; max-width: 380px; padding: 18px; border-radius: 16px;
  background: #0d1424; border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.mini-dash-bar { display: flex; align-items: flex-end; gap: 8px; height: 150px; }
.mini-dash-bar span { flex: 1; height: 0; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #f2c811, #e96f1e); animation: barGrow 1.4s ease-out forwards; }
.mini-dash-bar span:nth-child(2) { animation-delay: 0.15s; }
.mini-dash-bar span:nth-child(3) { animation-delay: 0.3s; }
.mini-dash-bar span:nth-child(4) { animation-delay: 0.45s; }
.mini-dash-bar span:nth-child(5) { animation-delay: 0.6s; }
.mini-dash-bar span:nth-child(6) { animation-delay: 0.75s; }
@keyframes barGrow { from { height: 0; } to { height: var(--h); } }
.mini-dash-side { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 12px; }
.donut {
  width: 92px; height: 92px; border-radius: 50%; position: relative; flex-shrink: 0;
  background: conic-gradient(#37d3ff 0 68%, rgba(255, 255, 255, 0.09) 68% 100%);
  display: grid; place-items: center;
}
.donut::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: #0d1424; }
.donut span { position: relative; font-weight: 800; font-size: 0.95rem; color: #eaf1ff; }
.mini-legend { display: flex; gap: 6px; }
.mini-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.l1 { background: #37d3ff; }
.l2 { background: #f2c811; }
.l3 { background: #c586ff; }

.project-body { padding: 34px; display: flex; flex-direction: column; justify-content: center; }
.project-body h3 { font-size: 1.5rem; margin-bottom: 14px; }
.project-body p { color: var(--text-soft); font-size: 0.97rem; margin-bottom: 20px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.project-tags span { padding: 6px 14px; border-radius: 100px; font-size: 0.78rem; font-weight: 600; background: var(--surface-hover); border: 1px solid var(--border); color: var(--text); }
.project-links { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- achievements ---------- */
.achievements-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.achieve-card {
  padding: 30px 24px; border-radius: 20px; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.achieve-card:hover { transform: translateY(-8px) scale(1.02); border-color: var(--accent); }
.achieve-emoji { font-size: 2.2rem; display: block; margin-bottom: 14px; }
.achieve-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.achieve-card p { font-size: 0.87rem; color: var(--text-soft); }
.achieve-card strong { color: var(--text); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 46px; align-items: start; }
.contact-intro { color: var(--text-soft); margin-bottom: 30px; font-size: 1.02rem; }

.contact-item { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--border); }
.c-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem; background: var(--surface); border: 1px solid var(--border); flex-shrink: 0; }
.contact-item small { display: block; color: var(--text-soft); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-item a, .contact-item span { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.98rem; transition: color 0.2s ease; }
.contact-item a:hover { color: var(--accent); }

.socials { display: flex; gap: 12px; margin-top: 26px; }
.socials a {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.socials a svg { width: 20px; height: 20px; }
.socials a:hover { transform: translateY(-4px); background: var(--accent-grad); color: #070b16; border-color: transparent; }

.contact-form { padding: 32px; border-radius: 22px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.form-group input, .form-group textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font-family: inherit; font-size: 0.95rem; transition: border-color 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(242, 200, 17, 0.15); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-soft); opacity: 0.6; }
.form-note { margin-top: 14px; font-size: 0.88rem; font-weight: 600; min-height: 1.2em; text-align: center; }
.form-note.ok { color: #2fd479; }
.form-note.err { color: #ff5f57; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 34px 0; margin-top: 40px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer p { color: var(--text-soft); font-size: 0.88rem; }
.footer-love span { color: #ff5f57; }
.footer .brand { margin-bottom: 4px; }

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(3, 1fr); }
  .achievements-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .code-card { max-width: 560px; transform: none; animation: none; }
  .code-card:hover { transform: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 1fr; }
  .project-visual { min-height: 260px; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 70px; left: 0; right: 0; flex-direction: column;
    background: var(--nav-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    padding: 18px 6%; gap: 4px; border-bottom: 1px solid var(--border);
    transform: translateY(-130%); transition: transform 0.35s ease; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 6px; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .hamburger { display: flex; }
  .nav-actions .btn { display: none; }
  section { padding: 66px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .hero-meta { gap: 24px; }
}

@media (max-width: 520px) {
  .skills-grid { grid-template-columns: 1fr; }
  .achievements-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .timeline-item { padding-left: 44px; }
  .timeline-card { padding: 22px; }
  .hero { padding-top: 110px; }
}
