:root {
  --bg: #03030a;
  --text: #f4f3ff;
  --muted: #b0adca;
  --border: rgba(255, 255, 255, 0.09);
  --panel: rgba(14, 12, 28, 0.6);
  --panel-strong: rgba(15, 12, 31, 0.82);
  --primary: #be8cff;
  --secondary: #6c95ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
  --heading-font: "Segoe UI", "Trebuchet MS", sans-serif;
  --body-font: "Segoe UI", "Aptos", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--body-font);
  background:
    radial-gradient(circle at 50% -6%, rgba(201, 157, 255, 0.54), rgba(186, 126, 255, 0.08) 18%, transparent 34%),
    radial-gradient(circle at 82% 20%, rgba(86, 114, 255, 0.14), transparent 22%),
    linear-gradient(180deg, #04030c 0%, #05040f 30%, #03030a 70%, #04030b 100%);
  overflow-x: hidden;
}

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

button {
  font: inherit;
}

.starfield,
.grid-overlay,
.orbital-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.starfield {
  z-index: 0;
}

.orbital-glow {
  z-index: 1;
  background:
    radial-gradient(circle at 52% 5%, rgba(247, 239, 255, 0.8), rgba(183, 126, 255, 0.44) 11%, rgba(82, 56, 170, 0.1) 21%, transparent 36%);
  filter: blur(24px);
  opacity: 0.88;
}

.grid-overlay {
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 88%);
  opacity: 0.26;
}

.site-shell {
  position: relative;
  z-index: 2;
  width: min(1580px, calc(100% - 52px));
  margin: 0 auto;
  padding-bottom: 88px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(24px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(190, 140, 255, 0.3), rgba(108, 149, 255, 0.16));
  box-shadow: var(--shadow);
  font-weight: 700;
}

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

.nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(15, 13, 29, 0.7);
}

.nav a {
  padding: 10px 17px;
  border-radius: 999px;
  color: var(--muted);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.section {
  padding-top: 118px;
}

.hero {
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(520px, 1.2fr);
  gap: 30px;
  align-items: center;
}

.eyebrow,
.card-kicker,
.timeline-range {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: #cbb6ff;
},
.project-category {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: #dcc4ff;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--heading-font);
}

h1 {
  margin-top: 14px;
  font-size: clamp(4rem, 7vw, 7.2rem);
  line-height: 0.92;
}

h2 {
  margin-top: 12px;
  font-size: clamp(2.5rem, 4vw, 4.1rem);
  line-height: 1;
  max-width: 17ch;
}

h3 {
  font-size: 1.55rem;
}

p,
li {
  color: var(--muted);
  line-height: 1.8;
}

.hero-lead {
  max-width: 34rem;
  margin-top: 24px;
  font-size: 1.16rem;
}

.hero-actions,
.resume-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-actions {
  margin-top: 30px;
}

.resume-actions {
  margin-top: 18px;
}

.button,
.subtle-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.subtle-link:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #06040d;
  font-weight: 700;
  border-color: transparent;
  background: linear-gradient(135deg, #f6ebff 0%, #bf8dff 48%, #6a98ff 100%);
  box-shadow: 0 18px 50px rgba(115, 86, 221, 0.34);
}

.button-ghost,
.subtle-link {
  background: rgba(255, 255, 255, 0.04);
}

.hero-visual {
  min-height: 720px;
  position: relative;
}

.hero-orbit {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 720px;
}

#hero-three {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.orbit-label,
.floating-stat {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 16, 35, 0.48);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.orbit-label {
  padding: 12px 18px;
  border-radius: 999px;
  color: #f0e7ff;
}

.orbit-label-one {
  top: 11%;
  right: 18%;
}

.orbit-label-two {
  left: 8%;
  top: 31%;
}

.orbit-label-three {
  right: 8%;
  bottom: 20%;
}

.floating-stat {
  min-width: 180px;
  padding: 18px 20px;
  border-radius: 24px;
}

.floating-stat-one {
  left: 4%;
  bottom: 18%;
}

.floating-stat-two {
  right: 6%;
  top: 44%;
}

.floating-stat-three {
  right: 16%;
  bottom: 6%;
}

.mini-value {
  display: block;
  font-size: 2rem;
  color: #f8efff;
}

.mini-label {
  font-size: 0.92rem;
  color: var(--muted);
}

.section-heading {
  margin: 0 auto 36px;
  max-width: 1120px;
  text-align: center;
}

.section-heading h2 {
  max-width: none;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.74fr) minmax(0, 1.26fr);
  gap: 30px;
  align-items: center;
}

.portrait-card,
.content-card,
.logo-card,
.achievement-card,
.project-tile,
.project-detail,
.contact-panel,
.timeline-copy {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(17, 15, 33, 0.82), rgba(9, 8, 18, 0.72));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.tilt-card::before,
.project-detail::before,
.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.13), transparent 34%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.tilt-card:hover::before,
.project-detail:hover::before,
.contact-panel:hover::before {
  opacity: 1;
}

.tilt-card:hover {
  border-color: rgba(190, 140, 255, 0.28);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.54);
}

.portrait-card,
.content-card,
.logo-card,
.achievement-card,
.project-tile,
.project-detail,
.contact-panel {
  padding: 30px;
}

.portrait-image {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  display: block;
  border-radius: 22px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 60px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(190,140,255,0.6),
    rgba(255,255,255,0.1)
  );
}


.timeline-item {
  position: relative;
  display: block;
}

/* dot */
.timeline-dot {
  position: absolute;
  left: -32px;
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0e4ff, #8e73ff);
  box-shadow: 0 0 18px rgba(186, 140, 255, 0.6);
}

/* card */
.timeline-copy {
  padding: 26px 30px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(
    180deg,
    rgba(20,18,40,0.9),
    rgba(10,8,22,0.85)
  );
  backdrop-filter: blur(14px);
  transition: all 0.3s ease;
}

/* hover effect */
.timeline-copy:hover {
  transform: translateY(-4px);
  border-color: rgba(190,140,255,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* heading spacing */
.timeline-copy h3 {
  margin-top: 6px;
  font-size: 1.6rem;
}

.logo-wall,
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1320px;
  margin: 0 auto;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.logo-grid img {
  width: 68px;
  height: 68px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.logo-grid img:hover {
  transform: translateY(-4px) scale(1.04);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(190, 140, 255, 0.24);
}

.achievement-card ul,
.metric-list {
  margin: 18px 0 0;
  padding-left: 20px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  max-width: 1320px;
  margin: 0 auto;
}

.project-tile {
  cursor: pointer;
  min-height: 250px;
}

/* ===== PROJECT TILE UPGRADE ===== */

.project-tile {
  cursor: pointer;
  min-height: 250px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
}

/* gradient overlay (same as button style) */
.project-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f6ebff, #bf8dff, #6a98ff);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 0;
}

/* ensure text stays above */
.project-tile * {
  position: relative;
  z-index: 1;
}

/* hover + active */
.project-tile:hover::before,
.project-tile.active::before {
  opacity: 1;
}

/* lift + glow */
.project-tile:hover,
.project-tile.active {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: 0 25px 70px rgba(115, 86, 221, 0.45);
  color: #06040d;
}

/* text color fix */
.project-tile:hover h3,
.project-tile.active h3,
.project-tile:hover p,
.project-tile.active p {
  color: #06040d;
}

.project-tile::before {
  filter: blur(2px);
}

.project-detail {
  max-width: 1320px;
  margin: 26px auto 0;
}

.project-detail-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.project-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-pills span {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #efe8ff;
}

.contact-panel {
  max-width: 1320px;
  margin: 0 auto;
  background:
    radial-gradient(circle at top right, rgba(190, 140, 255, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(21, 18, 43, 0.92), rgba(10, 8, 20, 0.82));
}

.contact-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.contact-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.contact-link:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: 0 15px 50px rgba(115, 86, 221, 0.35);
}

.contact-link {
  position: relative;
  overflow: hidden;
}

.contact-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f6ebff, #bf8dff, #6a98ff);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.contact-link:hover::before {
  opacity: 1;
}

/* keep text visible */
.contact-link span,
.contact-link strong {
  position: relative;
  z-index: 1;
}

.contact-link:hover span,
.contact-link:hover strong {
  color: #06040d;
}

.contact-link span {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.74rem;
  color: #dcc4ff;
}

.contact-actions {
  margin-top: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@media (max-width: 1180px) {
  .hero,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual,
  .hero-orbit {
    min-height: 620px;
  }
}

@media (max-width: 920px) {
  .site-shell {
    width: min(100% - 26px, 1580px);
  }

  .topbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav {
    order: 3;
    justify-content: center;
  }

  .logo-wall,
  .achievement-grid,
  .contact-links-grid {
    grid-template-columns: 1fr;
  }

  .project-detail-top {
    flex-direction: column;
  }

  .floating-stat-two {
    right: 4%;
    top: 56%;
  }
}

@media (max-width: 640px) {
  .section {
    padding-top: 92px;
  }

  .hero-visual,
  .hero-orbit {
    min-height: 470px;
  }

  .hero-actions,
  .resume-actions,
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .orbit-label {
    display: none;
  }

  .floating-stat {
    min-width: 140px;
    padding: 14px 16px;
  }

  .floating-stat-one {
    left: 2%;
    bottom: 14%;
  }

  .floating-stat-two {
    top: 10%;
    right: 2%;
  }

  .floating-stat-three {
    right: 8%;
    bottom: 2%;
  }

  .portrait-card,
  .content-card,
  .logo-card,
  .achievement-card,
  .project-tile,
  .project-detail,
  .contact-panel,
  .timeline-copy {
    padding: 22px;
    border-radius: 24px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }
}

/* ===== IMAGE COLLAGE (HERO RIGHT SIDE) ===== */

.hero-visual {
  position: relative;
  min-height: 720px;
}

/* COLLAGE GRID */
.image-collage {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 14px;
  padding: 30px;
}

/* IMAGES */
.image-collage .img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  transition: all 0.35s ease;
}

/* CREATIVE LAYOUT */
.img1 { grid-area: 1 / 1 / 4 / 3; }
.img2 { grid-area: 1 / 3 / 3 / 5; }
.img3 { grid-area: 3 / 3 / 6 / 5; }
.img4 { grid-area: 1 / 5 / 4 / 7; }
.img5 { grid-area: 4 / 1 / 7 / 3; }
.img6 { grid-area: 4 / 5 / 7 / 7; }

/* HOVER EFFECT (PREMIUM FEEL) */
.image-collage .img:hover {
  transform: scale(1.06) rotate(1deg);
  box-shadow: 0 25px 70px rgba(0,0,0,0.6);
  z-index: 2;
}

/* MOBILE FIX */
@media (max-width: 1180px) {
  .image-collage {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .image-collage .img {
    grid-area: auto !important;
    height: 220px;
  }
}
/* ===== SKILL TOOLTIP ===== */

.logo-item {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Tooltip */
.logo-item::after {
  content: attr(data-name);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(20, 18, 40, 0.95);
  color: #f4f3ff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Show on hover */
.logo-item:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Icon animation */
.logo-item img {
  transition: all 0.25s ease;
}

.logo-item:hover img {
  transform: translateY(-6px) scale(1.08);
}
/* ===== CODING LINKS ===== */

.coding-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 18px 0 10px;
}

.coding-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  text-decoration: none;
  transition: all 0.25s ease;
}

/* logo */
.coding-item img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* text */
.coding-item span {
  font-size: 0.8rem;
  color: #cbb6ff;
}

.coding-item strong {
  margin-left: auto;
  font-size: 0.9rem;
  color: #f4f3ff;
}

/* hover */
.coding-item:hover {
  transform: translateY(-3px);
  border-color: transparent;
  background: linear-gradient(135deg, #f6ebff, #bf8dff, #6a98ff);
}

.coding-item:hover span,
.coding-item:hover strong {
  color: #06040d;
}

/* stats */
.achievement-stats {
  margin-top: 12px;
  padding-left: 18px;
}