/* ==========================================================
   EXECUTIVE PORTFOLIO
   DESIGN SYSTEM
   Version 1.0
   ========================================================== */

/* ==========================================================
   GOOGLE FONT
   ========================================================== */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@200..800&display=swap");

/* ==========================================================
   RESET
   ========================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

/* ==========================================================
   DESIGN TOKENS
   ========================================================== */

:root {
  /* COLORS */

  --background: #0b0b0b;

  --surface: #111111;

  --card: #161616;

  --card-hover: #1b1b1b;

  --text: #f0ede8;

  --text-secondary: rgba(240, 237, 232, 0.7);

  --text-muted: rgba(240, 237, 232, 0.35);

  --accent: #c8f04e;

  --border: rgba(255, 255, 255, 0.08);

  --success: #6ee7a8;

  --danger: #ff6767;

  /* TYPOGRAPHY */

  --hero-size: 72px;

  --title-size: 38px;

  --subtitle-size: 22px;

  --section-size: 30px;

  --card-title: 22px;

  --body-size: 16px;

  --small-size: 14px;

  --caption-size: 12px;

  /* SPACING */

  --space-1: 8px;

  --space-2: 16px;

  --space-3: 24px;

  --space-4: 32px;

  --space-5: 40px;

  --space-6: 48px;

  --space-7: 64px;

  --space-8: 96px;

  /* RADIUS */

  --radius-small: 8px;

  --radius-medium: 16px;

  --radius-large: 28px;

  --radius-xl: 36px;

  --radius-pill: 9999px;

  /* SHADOW */

  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.18);

  --shadow-hero: 0 25px 60px rgba(0, 0, 0, 0.3);

  /* PAGE */

  --page-width: 1180px;
}

/* ==========================================================
   PAGE
   ========================================================== */

body {
  display: flex;
  justify-content: center;
  padding: 64px;
}

/* ─── NAVBAR ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  width: calc(100% - 2rem);
  max-width: 940px;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.62rem 1.1rem;
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  border-radius: var(--r-pill);
  backdrop-filter: blur(32px) saturate(200%) brightness(1.06);
  -webkit-backdrop-filter: blur(32px) saturate(200%) brightness(1.06);
  box-shadow:
    0 2px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: box-shadow var(--trans-med);
}
.nav.scrolled .nav__inner {
  box-shadow:
    0 4px 48px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.nav__logo {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.025em;
}
.nav__logo span {
  color: var(--accent);
}
.nav__links {
  display: flex;
  gap: 0.05rem;
  align-items: center;
}
.nav__links a {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.36rem 0.78rem;
  border-radius: var(--r-pill);
  letter-spacing: 0.005em;
  transition:
    color var(--trans-fast),
    background var(--trans-fast);
}
.nav__links a:hover,
.nav__links a.active {
  color: var(--text-primary);
  background: var(--surface);
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__actions > button:not(.theme-toggle) {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.42rem 1.1rem;
  background: var(--accent);
  color: #0b0b0b;
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.nav__actions > button:not(.theme-toggle):hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200, 240, 78, 0.3);
}

.nav__actions > button:not(.theme-toggle):active {
  transform: translateY(0);
}
.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--trans-fast);
}
.theme-toggle:hover {
  color: var(--text-primary);
  background: var(--border);
}
.theme-toggle svg {
  width: 15px;
  height: 15px;
}
.icon-sun {
  display: none;
}
[data-theme="light"] .icon-sun {
  display: block;
}
[data-theme="light"] .icon-moon {
  display: none;
}
.nav__cta {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.42rem 1.1rem;
  background: var(--accent);
  /* color: #0b0b0b; */
  color: var(--text-cta);
  border-radius: var(--r-pill);

  border-radius: var(--r-pill);
  letter-spacing: 0.01em;
  transition:
    transform var(--trans-fast),
    box-shadow var(--trans-fast);
}
.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
}
.nav__hamburger {
  display: none;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  flex-direction: column;
  gap: 5px;
}
.nav__hamburger span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}
.nav__hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}
.nav__mobile {
  display: none;
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  right: 0;
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  padding: 0.8rem;
  gap: 0.3rem;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.nav__mobile.open {
  display: flex;
}
.nav__mobile a {
  padding: 0.7rem 1rem;
  border-radius: var(--r-md);
  font-weight: 500;
  color: var(--text-secondary);
  transition:
    color var(--trans-fast),
    background var(--trans-fast);
}
.nav__mobile a:hover {
  color: var(--text-primary);
  background: var(--surface);
}
@media (max-width: 780px) {
  .nav__links,
  .nav__cta {
    display: none;
  }
  .nav__hamburger {
    display: flex;
  }
}

/* ─── END NAVBAR ─────────────────────────────────────────── */

.cv-container {
  width: min(100%, var(--page-width));
}

/* .page {
  width: 210mm;
  min-height: 297mm;
  margin: auto;
  padding: 56px;
  display: flex;
  flex-direction: column;
  gap: 48px;
} */
.page {
  width: min(1180px, 100%);
  min-height: 297mm;
  margin: auto;
  padding: 56px;
}

.hero {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.hero__grid {
  display: grid;
  /* grid-template-columns: 2fr 340px; */
  grid-template-columns: minmax(0, 1fr) 300px;

  gap: 48px;
  align-items: center;
}
.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__sidebar {
  /* display: flex;
  justify-content: flex-end; */
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
/* .hero__photo {
  width: 230px;
  height: 230px;
  border-radius: 32px;
  object-fit: cover;
  border: 1px solid var(--border);
} */
.hero__photo {
  width: 220px;
  height: 220px;
  border-radius: 24px;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.hero__name {
  /* margin-top: 12px; */
  margin-top: 8px;
  margin-bottom: 12px;
  font-size: 72px;
  line-height: 0.95;
  letter-spacing: -3px;
}
.hero__headline {
  margin-top: 18px;
  font-size: 24px;
  color: var(--text-secondary);
  font-weight: 600;
}
.hero__summary {
  margin-top: 28px;
  max-width: 640px;
  font-size: 18px;
  line-height: 1.8;
}
.hero__bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  /* justify-content: space-between; */
  gap: 40px;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__contact {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================
   METRICS
   ========================================================== */

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
}

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

.metric:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.metric__value {
  display: block;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}

.metric__label {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.hero__eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 700;
}

/* ==========================================================
   TYPOGRAPHY
   ========================================================== */

h1 {
  font-size: var(--hero-size);

  line-height: 1;

  font-weight: 800;

  letter-spacing: -3px;
}

h2 {
  font-size: var(--title-size);

  font-weight: 700;
}

h3 {
  font-size: var(--card-title);

  font-weight: 700;
}

p {
  font-size: var(--body-size);

  color: var(--text-secondary);
}

/* ==========================================================
   SECTION
   ========================================================== */

.section {
  display: flex;

  flex-direction: column;

  gap: var(--space-4);
}

.section-title {
  font-size: var(--section-size);

  font-weight: 700;

  letter-spacing: -1px;
}

/* ==========================================================
   GRID
   ========================================================== */

.grid {
  display: grid;

  gap: 32px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ==========================================================
   CARD
   ========================================================== */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  padding: 40px;
  transition: 0.25s ease;
  box-shadow: var(--shadow-card);
}

.card:hover {
  border-color: var(--accent);

  transform: translateY(-4px);

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

/* ==========================================================
   BADGE
   ========================================================== */

.badge {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding: 10px 18px;

  border-radius: var(--radius-pill);

  background: rgba(200, 240, 78, 0.1);

  color: var(--accent);

  border: 1px solid rgba(200, 240, 78, 0.25);

  font-size: 13px;

  font-weight: 700;

  letter-spacing: 0.3px;
}

/* ==========================================================
   CHIP
   ========================================================== */

.chip {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  padding: 10px 16px;

  border-radius: 999px;

  border: 1px solid var(--border);

  background: var(--surface);

  font-size: 13px;

  color: var(--text-secondary);
}

/* ==========================================================
   FEATURED PROJECTS
   ========================================================== */

.featured {
  margin-top: 96px;
}

.section-heading {
  display: flex;

  align-items: flex-start;

  gap: 18px;

  margin-bottom: 36px;
}

.section-marker {
  width: 4px;

  height: 34px;

  border-radius: 999px;

  background: var(--accent);

  margin-top: 4px;
}

.section-description {
  margin-top: 10px;

  color: var(--text-secondary);

  max-width: 620px;
}

.projects-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 28px;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  transition: 0.25s;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-6px);

  border-color: var(--accent);
}
.project-card:hover {
  transform: translateY(-6px);

  border-color: var(--accent);
}
.project-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}
.project-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.project-body h3 {
  font-size: 24px;
}
.project-body h4 {
  color: var(--accent);
  font-size: 16px;
  line-height: 1.4;
}
.project-body p {
  font-size: 15px;
  line-height: 1.8;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

/* ==========================================================
   PROFESSIONAL EXPERIENCE
   ========================================================== */

.experience {
  margin-top: 80px;
}

.timeline {
  position: relative;
  margin-left: 18px;
  padding-left: 42px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

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

.timeline-dot {
  position: absolute;
  left: -42px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--background);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.timeline-content h3 {
  font-size: 24px;
  margin-bottom: 4px;
}

.timeline-content h4 {
  color: var(--accent);
  font-size: 16px;
  margin-bottom: 12px;
}

.timeline-content p {
  max-width: 700px;
  line-height: 1.6;
}

.timeline-date {
  color: var(--text-muted);
  font-size: 14px;
  white-space: nowrap;
}

/* Expperinece*/

.experience-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  align-items: start;
}

.stack-column {
  position: sticky;
  top: 40px;
}
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.tech-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px;
  transition: 0.2s;
}

.tech-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ==========================================================
   TEACHING & TRAINING
   ========================================================== */

.teaching {
  margin-top: 80px;
}

.teaching .project-card {
  min-height: 0;
}

.teaching .project-body {
  gap: 14px;
}

.teaching .project-tags {
  margin-top: 4px;
}

/* ==========================================================
   MOBILE — EXECUTIVE PORTFOLIO
   ========================================================== */

@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    margin: 0;
    padding: 0;
  }

  .page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 32px 20px 48px;
    overflow-x: hidden;
  }

  /* HERO */

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero__eyebrow {
    margin-bottom: 14px;
    font-size: 11px;
    letter-spacing: 1.6px;
  }

  .hero__name {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: clamp(44px, 13vw, 58px);
    line-height: 0.98;
    letter-spacing: -2px;
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero__headline {
    margin-top: 14px;
    font-size: 20px;
    line-height: 1.45;
  }

  .hero__summary {
    margin-top: 20px;
    max-width: 100%;
    font-size: 15px;
    line-height: 1.65;
  }

  .hero__badges {
    gap: 8px;
    margin-top: 22px;
  }

  .badge {
    padding: 8px 14px;
    font-size: 12px;
  }

  .hero__sidebar {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  .hero__photo {
    width: min(180px, 70vw);
    height: min(180px, 70vw);
    max-width: 100%;
  }

  /* CONTACTS */

  .hero__bottom {
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .hero__contact {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  /* METRICS */

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 40px;
  }

  .metric {
    min-width: 0;
    padding: 18px;
    border-radius: 18px;
  }

  .metric__value {
    font-size: 32px;
  }

  .metric__label {
    margin-top: 8px;
    font-size: 12px;
  }

  /* SECTIONS */

  .section-heading {
    gap: 12px;
    margin-bottom: 24px;
  }

  .section-title {
    font-size: 24px;
  }

  .section-description {
    font-size: 14px;
    line-height: 1.6;
  }

  .featured,
  .experience,
  .teaching {
    margin-top: 56px;
  }

  /* PROJECTS */

  .projects-grid {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-card {
    width: 100%;
    min-width: 0;
  }

  .project-body {
    padding: 20px;
    gap: 12px;
  }

  .project-body h3 {
    font-size: 21px;
  }

  .project-body h4 {
    font-size: 14px;
  }

  .project-body p {
    font-size: 14px;
    line-height: 1.65;
  }

  .chip {
    padding: 8px 12px;
    font-size: 12px;
  }

  /* EXPERIENCE + STACK */

  .experience-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .experience-column,
  .stack-column {
    width: 100%;
    min-width: 0;
  }

  .stack-column {
    position: static;
  }

  .stack-column .tech-grid {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    box-sizing: border-box;
  }

  .tech-chip {
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    font-size: 12px;
  }

  /* TIMELINE */

  .timeline {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .timeline-item {
    min-width: 0;
    max-width: 100%;
  }

  .timeline-header {
    flex-wrap: wrap;
  }

  .timeline-content {
    min-width: 0;
    max-width: 100%;
  }

  .timeline-content p {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 480px) {
  .page {
    padding: 24px 16px 40px;
  }

  .hero__photo {
    width: 150px;
    height: 150px;
  }

  .hero__name {
    font-size: clamp(40px, 12.5vw, 52px);
  }

  .hero__headline {
    font-size: 18px;
  }

  .hero__summary {
    font-size: 14px;
  }

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

  .metric {
    padding: 16px;
  }

  .metric__value {
    font-size: 28px;
  }

  .hero__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-header {
    display: block;
  }

  .timeline-date {
    display: block;
    margin-top: 4px;
  }
}
