:root {
  --ink: #17233c;
  --muted: #5f6b84;
  --paper: #f7f9fc;
  --card: #ffffff;
  --line: #dfe6f1;
  --blue: #355cff;
  --cyan: #16c7c2;
  --orange: #ff865c;
  --yellow: #ffd166;
  --violet: #8b6cff;
  --shadow: 0 18px 60px rgba(30, 55, 100, 0.10);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background-color: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.custom-container {
  max-width: 1160px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1060;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
}

/* Navbar */
.topbar {
  padding: 20px 0;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.topbar.scrolled {
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(23, 35, 60, 0.08);
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--ink) !important;
}

.mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--ink);
  color: #ffffff;
  font-size: 18px;
  box-shadow: 6px 6px 0 var(--yellow);
}

.navlinks .nav-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  opacity: 0.75;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.navlinks .nav-link:hover,
.navlinks .nav-link.active {
  opacity: 1;
  color: var(--blue);
}

/* Hero */
.hero {
  padding: 150px 0 92px;
  background: linear-gradient(135deg, #ffffff 0%, #f2f7ff 54%, #fff4e9 100%);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  border: 72px solid rgba(22, 199, 194, 0.13);
  border-radius: 50%;
  right: -220px;
  top: 95px;
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 18px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 6px #ffe1d6;
}

.hero h1 {
  font-size: clamp(42px, 6.5vw, 80px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.055em;
  margin: 0 0 26px;
}

.hero h1 span {
  color: var(--blue);
}

.hero-lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 630px;
  margin: 0 0 32px;
}

.btn-neo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 900;
  border: 2px solid var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-neo-primary {
  background: var(--ink);
  color: #ffffff;
  box-shadow: 5px 5px 0 var(--blue);
}

.btn-neo-secondary {
  background: #ffffff;
  color: var(--ink);
}

.btn-neo:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--yellow);
}

/* Hero Card */
.hero-card {
  position: relative;
  z-index: 1;
  background: var(--ink);
  color: #ffffff;
  border-radius: 34px;
  padding: 32px;
  box-shadow: 16px 16px 0 var(--cyan);
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--violet);
  right: -90px;
  top: -75px;
  opacity: 0.8;
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 20px;
  background: var(--orange);
  left: -55px;
  bottom: -50px;
  transform: rotate(25deg);
}

.card-top,
.card-bottom {
  position: relative;
  z-index: 1;
}

.mini-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #aeb8cf;
  font-weight: 800;
}

.hero-card h2 {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 18px 0;
}

.chip {
  padding: 7px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 600;
  color: #e8edff;
}

.availability {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 13px;
}

.status-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #59e391;
  box-shadow: 0 0 0 4px rgba(89, 227, 145, 0.25);
}

/* General Sections */
.section {
  padding: 100px 0;
}

.kicker {
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}

.section h2 {
  font-size: clamp(32px, 4.8vw, 54px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.04;
  margin: 10px 0 0;
}

.section-intro {
  color: var(--muted);
  margin: 0;
}

/* About */
.about-copy {
  font-size: 18px;
  color: var(--muted);
}

.about-copy strong {
  color: var(--ink);
}

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  color: var(--blue);
  letter-spacing: -0.05em;
}

.stat span {
  display: block;
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
  margin-top: 10px;
}

/* Skills */
.skill-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(30, 55, 100, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(30, 55, 100, 0.09);
}

.accent-blue { border-top: 6px solid var(--blue); }
.accent-cyan { border-top: 6px solid var(--cyan); }
.accent-orange { border-top: 6px solid var(--orange); }
.accent-violet { border-top: 6px solid var(--violet); }
.accent-yellow { border-top: 6px solid var(--yellow); }

.skill-icon {
  font-size: 25px;
  line-height: 1;
}

.skill-card h3 {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  margin: 18px 0 10px;
}

.skill-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* Timeline / Experience */
.timeline {
  position: relative;
  border-left: 2px solid var(--line);
  margin-left: 12px;
}

.role {
  position: relative;
  padding: 0 0 42px 32px;
}

.role::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  border: 4px solid var(--paper);
}

.dot-blue::before { background: var(--blue); }
.dot-orange::before { background: var(--orange); }
.dot-cyan::before { background: var(--cyan); }
.dot-violet::before { background: var(--violet); }
.dot-yellow::before { background: var(--yellow); }

.role h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.role .meta {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.role-company {
  color: var(--muted);
  font-weight: 600;
  margin: 4px 0 12px;
}

.role ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.role li {
  margin: 6px 0;
}

/* Projects */
.project {
  border-radius: 24px;
  padding: 28px;
  min-height: 265px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease;
}

.project:hover {
  transform: translateY(-4px);
}

.project-ink {
  background: var(--ink);
  color: #ffffff;
  box-shadow: 10px 10px 0 var(--yellow);
}

.project-blue {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 10px 10px 0 var(--cyan);
}

.project-light {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 10px 10px 0 var(--orange);
}

.project-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.75;
  font-weight: 900;
}

.project h3 {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 18px 0 10px;
}

.project p {
  font-size: 14px;
  opacity: 0.85;
}

.project-link {
  font-weight: 900;
  font-size: 13px;
  margin-top: 12px;
}

/* Education */
.edu-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.edu-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #e9efff;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex: none;
}

.edu-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
}

.edu-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Contact */
.contact {
  padding: 85px 0;
  background: var(--blue);
  color: #ffffff;
}

.text-warning-custom {
  color: var(--yellow);
}

.contact h2 {
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin: 12px 0 20px;
}

.contact p {
  color: #dbe2ff;
  max-width: 480px;
  margin-bottom: 0;
}

.contact-box {
  background: #ffffff;
  color: var(--ink);
  border-radius: 25px;
  padding: 24px;
  box-shadow: 10px 10px 0 var(--ink);
}

.contact-row {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  word-break: break-word;
}

.contact-row:last-child {
  border-bottom: 0;
}

.contact-row b {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #e9efff;
  color: var(--blue);
  display: grid;
  place-items: center;
  flex: none;
}

.copy-btn {
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
}

/* Footer */
.footer {
  padding: 25px 0;
  background: var(--ink);
  color: #b5bed2;
  font-size: 13px;
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .topbar {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
  }
  .hero {
    padding: 125px 0 70px;
  }
  .hero-card {
    min-height: 360px;
    box-shadow: 10px 10px 0 var(--cyan);
  }
  .section {
    padding: 75px 0;
  }
}