/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px; /* fixes navbar anchor gaps */
}

/* BODY */
body {
  background-color: #1e1e1e;
  color: #eaeaea;
  line-height: 1.6; /* IMPORTANT: your old 2.6 created huge gaps */
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 22px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(20, 20, 20, 0.9);
  backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-left {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

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

.nav-links a {
  color: #eaeaea;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 650;
  opacity: 0.92;
  transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
  color: #ff5f8f;
  transform: translateY(-1px);
}

.nav-sep {
  color: #888;
  font-size: 1.25rem;
  font-weight: 700;
  user-select: none;
}

/* Navbar icons */
.nav-icon img {
  width: 22px;
  height: 22px;
  filter: invert(1);
  opacity: 0.85;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-icon img:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* HERO */
.hero-left {
  min-height: 70vh;
  padding: 130px 10% 60px 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-wrap {
  position: relative;
}

/* keeps text from going under the right-side pfp */
.hero-main {
  padding-right: 300px;
}

.pfp {
  width: 304px;
  height: 304px;
  border-radius: 50%;
  border: 3px solid rgba(255, 95, 143, 0.45);
  box-shadow: 0 0 30px rgba(167, 139, 250, 0.25);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  position: absolute;
  top: 120px;
  right: -50px;
}

.pfp img {
  width: 120%;
  height: 120%;
  object-fit: cover;
  margin-top: -125px;
  
}

.pfp-fallback-text {
  font-weight: 900;
  font-size: 2.2rem;
  color: rgba(234, 234, 234, 0.85);
  letter-spacing: 0.5px;
}

.pfp.pfp-fallback {
  border-color: rgba(167, 139, 250, 0.5);
}

.hero-left h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #eaeaea;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.hero-text {
  font-size: 1.15rem;
  color: #c9c9c9;
  max-width: 820px;
  line-height: 1.7;
  margin-bottom: 18px;
}

/* HERO TEXT CARD + DIVIDER */
.hero-card {
  margin-top: 8px;
  max-width: 820px;
  padding: 22px 26px;
  border-radius: 18px;
  background: rgba(38, 38, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(
    600px 200px at 20% 0%,
    rgba(167, 139, 250, 0.25),
    rgba(255, 95, 143, 0.10),
    transparent 70%
  );
  pointer-events: none;
}

.hero-divider {
  margin: 16px 0;
  height: 4px;
  width: 540px;              /* makes it like your example (short line) */
  border-radius: 999px;
  background: linear-gradient(90deg, #ff5f8f, #a78bfa);
  opacity: 0.95;
}


/* PILLS */
.hero-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.pill {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  padding: 11px 18px;
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 800;
  color: #131313;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

.pill:hover {
  transform: translateY(-4px);
  filter: brightness(1.03);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
}

.pill .icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.pill .label {
  white-space: nowrap;
}

.pill .chev {
  margin-left: 4px;
  font-weight: 900;
  opacity: 0.8;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.pill:hover .chev {
  transform: translateX(3px);
  opacity: 1;
}

.pill-svg {
  width: 18px;
  height: 18px;
  fill: #131313;
  opacity: 0.95;
}

.github {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
}

.linkedin {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.email {
  background: linear-gradient(135deg, #ff5f8f, #ff8fab);
}

.contact-btn {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.resume-btn {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
}

/* SECTIONS */
.section {
  padding: 110px 10%;
}

.section h2 {
  font-size: 2.8rem;
  margin-bottom: 22px;
  color: #ff5f8f;
  font-weight: 900;
  letter-spacing: -0.5px;
}

/* EXPERIENCE */
.exp-timeline {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 1050px;
}

.exp-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: stretch;
}

.exp-marker {
  position: relative;
  display: flex;
  justify-content: center;
}

.exp-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.75);
  margin-top: 26px;
  z-index: 2;
}

.exp-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.95), rgba(255, 95, 143, 0.65));
  border-radius: 8px;
  opacity: 0.9;
}

.exp-card {
  position: relative;
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 18px;
  padding: 34px 26px;
  border-radius: 18px;
  background: rgba(38, 38, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.exp-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(700px 220px at 20% 10%, rgba(167, 139, 250, 0.35), rgba(255, 95, 143, 0.12), transparent 70%);
  pointer-events: none;
}

.exp-logo {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 2;
}

.exp-logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.exp-content {
  position: relative;
  z-index: 2;
}

.exp-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.exp-role {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.exp-company {
  color: #bdbdbd;
  font-weight: 650;
}

.exp-date {
  background: rgba(167, 139, 250, 0.15);
  color: #d9ccff;
  border: 1px solid rgba(167, 139, 250, 0.25);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 850;
  white-space: nowrap;
}

.exp-bullets {
  margin-top: 14px;
  margin-left: 18px;
  color: #d7d7d7;
}

.exp-bullets li {
  margin: 10px 0;
}

.exp-bullets li::marker {
  color: #a78bfa;
  font-size: 1.2em;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tag {
  background: rgba(167, 139, 250, 0.18);
  border: 1px solid rgba(167, 139, 250, 0.25);
  color: #e7ddff;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
}

/* PROJECTS */
.tag-purple {
  background: rgba(167, 139, 250, 0.18);
  border-color: rgba(167, 139, 250, 0.28);
}

.proj-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 1100px;
}

.proj-controls {
  display: flex;
  gap: 10px;
}

.proj-arrow {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(38, 38, 38, 0.9);
  color: #eaeaea;
  font-size: 1.8rem;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.proj-arrow:hover {
  transform: translateY(-2px);
  border-color: rgba(167, 139, 250, 0.35);
}

.proj-arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.proj-viewport {
  max-width: 1100px;
  overflow: hidden;
  border-radius: 22px;
}

.proj-track {
  display: flex;
  width: 100%;
  transition: transform 0.35s ease;
}

.proj-card {
  min-width: 100%;
  display: grid;
  grid-template-columns: 310px 1fr;
  background: rgba(38, 38, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
}

.proj-media {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  min-height: 250px;
  display: grid;
  place-items: center;
}

.proj-media img {
  width: 100%;
  height: 103%;
  object-fit: cover;
}

.proj-media.proj-media-fallback::after {
  content: "Add project image in /assets";
  color: rgba(234, 234, 234, 0.65);
  font-weight: 700;
}

.proj-date {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #f1f1f1;
  backdrop-filter: blur(10px);
}

.proj-body {
  padding: 22px 24px;
}

.proj-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 10px;
  color: #d9ccff;
}

.proj-desc {
  color: #d7d7d7;
  font-size: 1.05rem;
  max-width: 720px;
  margin-bottom: 18px;
}

.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.proj-links {
  display: flex;
  gap: 16px;
}

.proj-links a {
  color: #eaeaea;
  text-decoration: none;
  font-weight: 800;
  opacity: 0.9;
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
}

.proj-links a:hover {
  opacity: 1;
  border-color: #ff5f8f;
  color: #ff8fab;
}

/* CONTACT (NEW) */
.contact {
  padding-bottom: 140px; /* no more huge empty space */
}

.contact-head {
  max-width: 980px;
}

.contact-title {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -0.6px;
  color: #eaeaea;
}

.accent {
  color: #a78bfa;
}

.contact-underline {
  width: 130px;
  height: 6px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 95, 143, 1), rgba(167, 139, 250, 1));
}

.contact-lead {
  margin-top: 22px;
  color: #c9c9c9;
  font-size: 1.25rem;
  line-height: 1.7;
  max-width: 860px;
}

/* 3 cards */
.contact-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1100px;
}

.contact-card {
  position: relative;
  border-radius: 22px;
  padding: 26px;
  background: rgba(38, 38, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(700px 260px at 20% 0%, rgba(167, 139, 250, 0.35), rgba(255, 95, 143, 0.14), transparent 70%);
  pointer-events: none;
}

.contact-card-title {
  position: relative;
  z-index: 1;
  font-size: 1.9rem;
  font-weight: 900;
  margin-bottom: 12px;
  color: #eaeaea;
}

.contact-card-text {
  position: relative;
  z-index: 1;
  color: #c9c9c9;
  line-height: 1.7;
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.contact-mini-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mini-tag {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(234, 234, 234, 0.92);
  margin-top: 4px;
}

.contact-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 900;
  border-radius: 999px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
  color: #eaeaea;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.contact-cta:hover {
  transform: translateY(-2px);
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(0, 0, 0, 0.35);
}

/* small tint per card */
.contact-card--email .contact-card-title {
  color: #ff8fab;
}

.contact-card--linkedin .contact-card-title {
  color: #60a5fa;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .navbar {
    padding: 18px 18px;
    gap: 12px;
  }

  .nav-right {
    gap: 14px;
  }

  .nav-links {
    gap: 16px;
  }

  .hero-left {
    padding: 120px 7% 50px 7%;
    min-height: 60vh;
  }

  .hero-main {
    padding-right: 0;
  }

  .pfp {
    position: static;
    margin-bottom: 16px;
    width: 90px;
    height: 90px;
  }

  .hero-left h1 {
    font-size: 2.3rem;
  }

  .hero-text {
    font-size: 1.05rem;
  }

  .exp-item {
    grid-template-columns: 34px 1fr;
  }

  .exp-card {
    grid-template-columns: 1fr;
  }

  .exp-logo {
    display: none;
  }

  .exp-role {
    font-size: 1.6rem;
  }

  .proj-card {
    grid-template-columns: 1fr;
  }

  .proj-media {
    min-height: 210px;
  }

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

  .contact-title {
    font-size: 2.4rem;
  }
}