:root {
  --bg: #ffffff;
  --ink: #0b0b0b;
  --muted: #8b8b8b;
  --accent: #111827;
  --accent-2: #fd3d3d;
  --glass: rgba(255, 255, 255, 0.7);
  --radius: 18px;
  --max-width: 1200px;
  --big: 120px;
  --gutter: 28px;
  --mono: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --display: 'Poppins', var(--mono);
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Container */
.site {
  max-width: min(95vw, var(--max-width));
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
header.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Hamburger Menu */
.hamburger {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--accent);
  padding: 5px;
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav .nav-link {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
}

.mobile-nav-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 0 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 10px;
}

.mobile-nav-buttons .btn {
  width: 100%;
  text-align: center;
}

.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(20px, 4vw, 28px);
  letter-spacing: -1px;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 18px;
}

.nav-link {
  color: var(--muted) !important;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
}
.nav-link:hover {
  color: var(--accent-2) !important;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
  min-height: 80vh;
}

.hero-left {
  padding: 20px;
}

.eyebrow {
  font-size: clamp(14px, 2vw, 18px);
  color: var(--muted);
  margin-bottom: 8px;
}

.title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(42px, 8vw, 110px);
  line-height: 0.9;
  letter-spacing: -2px;
}

.subtitle {
  font-size: clamp(15px, 2.5vw, 18px);
  color: var(--muted);
  margin-top: 16px;
}

/* Portrait */
.portrait-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  height: 520px;
  overflow: visible;
}

.portrait {
  width: 86%;
  max-width: 420px;
  transform: translateY(20px);
  filter: grayscale(100%) contrast(110%);
  border-radius: 14px;
  box-shadow: 0 30px 60px rgba(5, 10, 20, 0.06);
}

.portrait-ghost {
  position: absolute;
  left: 10%;
  top: 32%;
  font-size: 160px;
  font-family: var(--display);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 2px rgba(0, 0, 0, 0.08);
  pointer-events: none;
  user-select: none;
}

/* Buttons */
.cta-row {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-dark {
  background: var(--accent-2);
  color: #fff;
  border-radius: 12px;
  padding: 12px 22px;
  border: 0;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.12);
  transition: transform 0.2s;
}
.btn-dark:hover {
  transform: scale(1.05);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(11, 11, 11, 0.12);
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 700;
}

/* Sections */
section {
  padding: 60px 0;
  border-top: 1px solid rgba(11, 11, 11, 0.03);
}

h2.section-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 36px);
  margin-bottom: 18px;
  letter-spacing: -1px;
}

p.lead {
  color: var(--muted);
  font-size: clamp(15px, 2.5vw, 17px);
}

/* Skill cards */
.skill {
  background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(248,248,248,0.8));
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(12, 12, 12, 0.04);
}
.skill h5 {
  margin: 0 0 8px 0;
  font-weight: 700;
}
.skill .meta {
  font-size: 13px;
  color: var(--muted);
}

/* Progress */
.progress-wrap {
  display: flex;
  gap: 16px;
  align-items: center;
}
.progress {
  height: 12px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  overflow: hidden;
  flex: 1;
}
.progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
}

/* Projects */
.project {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  min-height: 160px;
}
.project .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.35));
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity .25s;
}
.project:hover .overlay { opacity: 1; }
.project .meta {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: white;
  font-weight: 700;
}

/* Timeline */
.timeline {
  border-left: 2px solid rgba(11, 11, 11, 0.06);
  padding-left: 26px;
}
.timeline-item {
  margin-bottom: 28px;
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.12);
}

/* Footer */
footer {
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* 🌐 Responsive Media Queries */
@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: unset;
    text-align: center;
  }

  .hero-left {
    padding: 10px;
  }

  .portrait-wrap {
    height: 400px;
    margin-top: 30px;
  }

  .portrait {
    transform: none;
    width: 80%;
  }

  .portrait-ghost {
    display: none;
  }

  header.navbar ul {
    gap: 12px;
  }

  .btn-dark, .btn-outline {
    width: 100%;
    text-align: center;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .hero {
    gap: 20px;
    margin-top: 20px;
  }

  .site {
    padding: 0 12px;
  }

  .brand {
    font-size: 20px;
  }

  .portrait-wrap {
    height: 320px;
  }

  section {
    padding: 40px 0;
  }

  .skill {
    padding: 16px;
  }
}
