:root {
  --bg: #0b1020;
  --bg-grad-start: #1d2a58;
  --header-bg: rgba(11, 16, 32, 0.75);
  --header-border: rgba(255, 255, 255, 0.08);
  --surface: #121933;
  --surface-2: #1b2448;
  --text: #e7ebff;
  --muted: #aeb7d9;
  --primary: #6ea8fe;
  --ring: #8fc5ff;
  --tag-bg: rgba(110, 168, 254, 0.18);
  --tag-text: #cfe4ff;
  --panel-border: rgba(255, 255, 255, 0.08);
  --button-border: rgba(255, 255, 255, 0.15);
  --menu-bg: #0d1430;
  --menu-border: rgba(255, 255, 255, 0.16);
  --chip-bg: rgba(255, 255, 255, 0.08);
  --chip-border: rgba(255, 255, 255, 0.1);
  --link: #b4dbff;
  --theme-toggle-bg: rgba(255, 255, 255, 0.08);
  --theme-toggle-border: rgba(255, 255, 255, 0.2);
}

body.light {
  --bg: #f2f6ff;
  --bg-grad-start: #dbe8ff;
  --header-bg: rgba(255, 255, 255, 0.82);
  --header-border: rgba(20, 37, 79, 0.12);
  --surface: #ffffff;
  --surface-2: #edf3ff;
  --text: #0f1c3a;
  --muted: #536081;
  --primary: #3a7bff;
  --ring: #2063eb;
  --tag-bg: rgba(58, 123, 255, 0.14);
  --tag-text: #1548ad;
  --panel-border: rgba(15, 28, 58, 0.09);
  --button-border: rgba(15, 28, 58, 0.15);
  --menu-bg: #ffffff;
  --menu-border: rgba(15, 28, 58, 0.14);
  --chip-bg: rgba(58, 123, 255, 0.08);
  --chip-border: rgba(58, 123, 255, 0.2);
  --link: #1d58cc;
  --theme-toggle-bg: rgba(15, 28, 58, 0.07);
  --theme-toggle-border: rgba(15, 28, 58, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(circle at top right, var(--bg-grad-start), var(--bg) 40%);
  color: var(--text);
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}

.nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.2px;
  margin-right: auto;
}

.theme-toggle {
  background: var(--theme-toggle-bg);
  border: 1px solid var(--theme-toggle-border);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--ring);
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
}

.nav-list a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.nav-list a:hover {
  color: var(--text);
}

.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
}

.tag {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-text);
  margin-bottom: 1rem;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.muted {
  color: var(--muted);
}

.hero-card,
.cv-card,
article,
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent), var(--surface);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 1rem;
}

.quick-profile {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 0;
  flex-shrink: 0;
}

.quick-profile a {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6ea8fe, #87f5c7);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.linkedin-avatar {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #0d1430;
}

.quick-info-layout {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.quick-info-list {
  margin: 0;
  padding-left: 1.1rem;
}

.quick-info-list li + li {
  margin-top: 0.45rem;
}

.hero-actions,
.cv-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  color: var(--text);
  padding: 0.6rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--button-border);
}

.btn-primary {
  background: var(--primary);
  color: #041226;
  font-weight: 700;
  border: 0;
}

.btn-ghost:hover {
  border-color: var(--ring);
}

.section-head {
  margin-bottom: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card h3 {
  margin-bottom: 0.4rem;
}

.card-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.card-links a {
  color: var(--link);
  text-decoration: none;
}

.skills-wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.skill-group {
  background: var(--surface-2);
  border-radius: 14px;
  padding: 1rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.skill-tags span {
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.9rem;
}

.timeline {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
}

.video-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
}

.video-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-links a {
  color: var(--link);
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--panel-border);
  color: var(--muted);
  padding: 1.5rem 0;
}

@media (max-width: 920px) {
  .hero,
  .grid,
  .skills-wrap {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .menu-btn {
    display: inline-block;
  }

  .theme-toggle {
    font-size: 0.85rem;
    padding: 0.38rem 0.7rem;
  }

  .nav-list {
    position: absolute;
    top: 70px;
    right: 4%;
    flex-direction: column;
    background: var(--menu-bg);
    border: 1px solid var(--menu-border);
    border-radius: 12px;
    padding: 0.8rem;
    min-width: 190px;
    display: none;
  }

  .nav-list.open {
    display: flex;
  }

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