:root {
  --bg: #080b12;
  --card: rgba(255,255,255,0.055);
  --card-hover: rgba(255,255,255,0.085);
  --text: #f0f4fb;
  --muted: #8892a4;
  --muted2: #b8c2d4;
  --accent: #6366f1;
  --accent2: #22d3ee;
  --border: rgba(255,255,255,0.1);
  --border-soft: rgba(255,255,255,0.06);
  --radius: 18px;
  --radius-sm: 10px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(99,102,241,0.22) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 0%, rgba(34,211,238,0.12) 0%, transparent 45%),
    #080b12;
  min-height: 100vh;
}

/* ── NAV ─────────────────────────────── */

nav {
  position: sticky;
  top: 0;
  z-index: 50;
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  background: rgba(8,11,18,0.82);
  border-bottom: 1px solid var(--border-soft);
}

.nav-inner {
  max-width: 1080px;
  margin: auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

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

/* ── HEADER ──────────────────────────── */

header {
  padding: 90px 24px 70px;
}

.hero {
  max-width: 1080px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 999px;
  background: rgba(34,197,94,0.07);
  color: #4ade80;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 22px;
}

.badge-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

.badge-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(2.8); opacity: 0; }
  100% { transform: scale(1);   opacity: 0; }
}

h1 {
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  color: var(--muted2);
  font-size: 17px;
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 30px;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  border-radius: 999px;
  text-decoration: none;
  color: white;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  transition: transform 0.2s, filter 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
}

.btn.alt {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  color: var(--muted2);
}

.btn.alt:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text);
}

/* Profile card */

.profile-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
}

.avatar-wrap {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  margin-bottom: 16px;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 17px;
  overflow: hidden;
  background: #1a1f2e;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-card h2 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}

.profile-role {
  color: var(--accent2);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 18px;
}

.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border-soft);
  padding-top: 16px;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.meta-row svg {
  flex-shrink: 0;
  opacity: 0.55;
}

/* ── MAIN ────────────────────────────── */

main {
  max-width: 1080px;
  margin: auto;
  padding: 16px 24px 80px;
}

section {
  margin-bottom: 64px;
}

.section-title {
  margin-bottom: 28px;
}

.section-title > span {
  display: inline-block;
  color: var(--accent2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.8px;
}

/* Card */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  transition: background 0.25s;
}

.card:hover {
  background: var(--card-hover);
}

.card p {
  color: var(--muted2);
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.75;
}

.card p:last-child {
  margin-bottom: 0;
}

/* ── TIMELINE ────────────────────────── */

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

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent2) 60%, transparent);
  border-radius: 2px;
  opacity: 0.5;
}

.timeline-item {
  position: relative;
  margin-bottom: 16px;
}

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

.tl-dot {
  position: absolute;
  left: -24px;
  top: 20px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.tl-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: background 0.25s;
}

.tl-content:hover {
  background: var(--card-hover);
}

.tl-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.tl-head h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.tl-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.tl-badge.current {
  background: rgba(34,197,94,0.1);
  border-color: rgba(34,197,94,0.25);
  color: #4ade80;
}

.tl-company {
  color: var(--muted2);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}

.tl-location {
  color: var(--muted);
  font-size: 13px;
}

/* ── SKILLS ──────────────────────────── */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: background 0.25s;
}

.skill-card:hover {
  background: var(--card-hover);
}

.skill-card h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 16px;
}

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

.tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--muted2);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.tag:hover {
  background: rgba(99,102,241,0.15);
  border-color: rgba(99,102,241,0.35);
  color: var(--text);
}

/* ── CONTACT ─────────────────────────── */

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
}

.contact-intro {
  color: var(--muted2);
  font-size: 16px;
  margin-bottom: 20px;
  max-width: 520px;
  line-height: 1.7;
}

.contact-email {
  display: inline-block;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
}

.contact-email:hover {
  color: var(--accent2);
  border-color: var(--accent2);
}

/* ── FOOTER ──────────────────────────── */

footer {
  border-top: 1px solid var(--border-soft);
  padding: 28px 24px;
}

.footer-inner {
  max-width: 1080px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-brand {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

/* ── ANIMATIONS ──────────────────────── */

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ──────────────────────── */

@media (max-width: 860px) {
  header {
    padding: 60px 20px 48px;
  }

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

  .profile-card {
    max-width: 360px;
  }

  .nav-links {
    gap: 0;
  }

  .nav-link {
    font-size: 13px;
    padding: 5px 9px;
  }

  .contact-card {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .nav-brand {
    display: none;
  }

  .nav-inner {
    justify-content: center;
  }

  h1 {
    letter-spacing: -1.5px;
  }

  .tl-head {
    flex-direction: column;
    gap: 6px;
  }

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