:root {
  --bg: #080914;
  --bg-soft: #0d1020;
  --card: #111426;
  --card-soft: #15182d;

  --text: #f4f2ff;
  --muted: #a7a6bc;
  --line: rgba(255, 255, 255, 0.09);

  --purple: #8b5cf6;
  --purple-light: #a78bfa;
  --blue: #4f7cff;
  --pink: #ec72b8;
  --pink-soft: #f29acb;

  --shadow: 0 25px 70px rgba(0, 0, 0, 0.42);
  --radius: 22px;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  background:
    radial-gradient(circle at 10% 5%, rgba(79, 124, 255, 0.10), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(139, 92, 246, 0.10), transparent 25%),
    radial-gradient(circle at 55% 85%, rgba(236, 114, 184, 0.055), transparent 25%),
    var(--bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 55px 55px;
  z-index: -1;
}

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

.container {
  width: min(1120px, 92%);
  margin: auto;
}

/* NAVBAR */
.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1080px, 92%);
  z-index: 50;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 12px 16px;
  border: 1px solid var(--line);
  background: rgba(10, 12, 25, 0.78);
  backdrop-filter: blur(20px);
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.28);
}

.logo {
  font: 700 22px "Space Grotesk", sans-serif;
}

.logo span {
  color: var(--pink);
}

.navlinks {
  display: flex;
  gap: 4px;
}

.navlinks a {
  color: var(--muted);
  font-size: 13px;
  padding: 9px 11px;
  border-radius: 10px;
  transition: 0.25s ease;
}

.navlinks a:hover {
  color: white;
  background: rgba(139, 92, 246, 0.10);
}

/* HERO */
.hero {
  min-height: 100vh;
  padding: 150px 0 90px;
  display: grid;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 70px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  padding: 8px 13px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
  border-radius: 999px;

  color: var(--muted);
  font-size: 12px;
}

.live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 6px rgba(236,114,184,0.10);
}

h1 {
  margin: 23px 0 18px;
  font: 700 clamp(48px, 7vw, 82px)/0.94 "Space Grotesk", sans-serif;
  letter-spacing: -3px;
}

h1 span {
  background: linear-gradient(100deg, var(--blue), var(--purple-light), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.actions {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  font-size: 14px;
  font-weight: 700;
  transition: 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.18);
}

.primary {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, #4f7cff, #7658e8);
  box-shadow: 0 12px 30px rgba(79,124,255,0.18);
}

/* PROFILE PHOTO */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 480px;
}

.glow {
  position: absolute;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(139,92,246,0.20),
    rgba(79,124,255,0.07) 45%,
    transparent 70%
  );
  filter: blur(10px);
}

.profile {
  width: min(335px, 78vw);
  aspect-ratio: 4 / 5;
  padding: 9px;

  position: relative;
  z-index: 2;

  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 31px;

  background: linear-gradient(
    145deg,
    rgba(139,92,246,0.28),
    rgba(79,124,255,0.12),
    rgba(236,114,184,0.16)
  );

  box-shadow: var(--shadow);
  transform: rotate(2deg);
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  50% {
    transform: rotate(-2deg) translateY(-12px);
  }
}

.photo {
  width: 100%;
  height: 100%;
  overflow: hidden;

  display: grid;
  place-items: center;

  border-radius: 23px;
  background: #0f1222;
}

.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.float-card {
  position: absolute;
  z-index: 4;

  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;

  background: rgba(15,17,32,0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 35px rgba(0,0,0,0.35);

  font-size: 12px;
  font-weight: 700;
}

.fc1 {
  top: 35px;
  right: -28px;
}

.fc2 {
  bottom: 58px;
  left: -42px;
}

.fc3 {
  right: -15px;
  bottom: 10px;
  color: var(--pink-soft);
}

/* SECTIONS */
section {
  padding: 100px 0;
}

.section-title {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 30px;
  align-items: end;
  margin-bottom: 35px;
}

.eyebrow {
  color: var(--purple-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-title h2 {
  margin: 8px 0;
  font: 700 clamp(32px, 4vw, 48px)/1.05 "Space Grotesk", sans-serif;
}

.section-title p {
  color: var(--muted);
  line-height: 1.75;
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);

  background:
    linear-gradient(145deg, rgba(21,24,45,0.96), rgba(13,16,31,0.96));

  box-shadow: 0 15px 45px rgba(0,0,0,0.20);
}

.card p {
  color: var(--muted);
  line-height: 1.8;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.stat {
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 17px;
  background: rgba(255,255,255,0.025);
}

.stat b {
  display: block;
  font: 700 25px "Space Grotesk", sans-serif;
}

.stat small {
  color: var(--muted);
}

.quote {
  position: relative;
  overflow: hidden;
}

.quote::after {
  content: "“";
  position: absolute;
  top: -30px;
  right: 18px;
  color: rgba(255,255,255,0.035);
  font: 160px "Space Grotesk", sans-serif;
}

.quote strong {
  position: relative;
  z-index: 1;
  font: 600 20px "Space Grotesk", sans-serif;
}

.info-list {
  display: grid;
  margin-top: 22px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;

  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

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

.info-row span:first-child {
  color: var(--muted);
}

.info-row span:last-child {
  text-align: right;
  font-weight: 600;
}

/* EDUCATION */
.edu {
  position: relative;
  margin-top: 10px;
  padding-left: 34px;
}

.edu::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--blue), var(--purple), var(--pink));
}

.edu-item {
  position: relative;
  padding: 0 0 30px;
}

.edu-item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 3px;

  width: 10px;
  height: 10px;
  border-radius: 50%;

  background: var(--pink);
  box-shadow: 0 0 0 6px rgba(236,114,184,0.10);
}

.edu-item:last-child {
  padding-bottom: 0;
}

.year {
  color: var(--purple-light);
  font-size: 12px;
  font-weight: 700;
}

.edu h3 {
  margin: 6px 0;
  font: 600 19px "Space Grotesk", sans-serif;
}

.edu p {
  margin: 0;
  font-size: 14px;
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
}

.skill {
  margin: 19px 0;
}

.skill-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 8px;
  font-size: 14px;
}

.skill-head span {
  color: var(--pink-soft);
  font-weight: 700;
}

.bar {
  height: 9px;
  overflow: hidden;

  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 999px;
  background: #090b16;
}

.bar i {
  display: block;
  width: 0;
  height: 100%;

  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--pink));

  transition: width 1.5s cubic-bezier(.2,.8,.2,1);
}

/* PROJECTS */
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project {
  padding: 0;
  overflow: hidden;
  transition: 0.35s ease;
}

.project:hover {
  transform: translateY(-9px);
  box-shadow: var(--shadow);
}

.project-cover {
  height: 180px;
  padding: 20px;

  display: flex;
  align-items: end;
}

.cover-one {
  background: linear-gradient(135deg, #202653, #29205a);
}

.cover-two {
  background: linear-gradient(135deg, #40244d, #222b5c);
}

.cover-three {
  background: linear-gradient(135deg, #1c3657, #3c2450);
}

.mock {
  width: 100%;
  height: 100px;
  padding: 13px;

  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 15px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
}

.mock .line {
  width: 48%;
  height: 7px;
  margin: 8px 0;

  border-radius: 999px;
  background: rgba(255,255,255,0.26);
}

.mock .line:first-child {
  background: rgba(255,255,255,0.58);
}

.mock .line.medium {
  width: 72%;
}

.mock .line.short {
  width: 55%;
}

.mock .line.tiny {
  width: 42%;
}

.project-body {
  padding: 23px;
}

.project-body h3 {
  margin: 0 0 8px;
  font: 600 20px "Space Grotesk", sans-serif;
}

.project-body p {
  margin: 0 0 16px;
  font-size: 14px;
}

.project-tag {
  display: inline-block;
  padding: 7px 10px;

  border: 1px solid var(--line);
  border-radius: 999px;

  color: #c9c6dc;
  font-size: 11px;
}

/* CONTACT */
.contact {
  position: relative;
  overflow: hidden;

  padding: 55px;
  text-align: center;

  border: 1px solid var(--line);
  border-radius: 30px;

  background:
    radial-gradient(circle at 15% 20%, rgba(139,92,246,0.12), transparent 25%),
    radial-gradient(circle at 85% 80%, rgba(236,114,184,0.08), transparent 25%),
    #111426;
}

.contact h2 {
  position: relative;
  margin: 8px;
  font: 700 42px "Space Grotesk", sans-serif;
}

.contact p {
  position: relative;
  max-width: 600px;
  margin: 12px auto 25px;
  color: var(--muted);
  line-height: 1.7;
}

.contact-links {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-btn {
  padding: 13px 17px;
  border: 1px solid var(--line);
  border-radius: 13px;

  background: rgba(255,255,255,0.025);
  font-size: 14px;
  font-weight: 700;

  transition: 0.25s ease;
}

.contact-btn:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.06);
}

.wa {
  color: #8fe8d9;
}

.ig {
  color: var(--pink-soft);
}

.gh {
  color: #d3d2e0;
}

/* FOOTER + EFFECTS */
footer {
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: #73738c;
  font-size: 13px;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

.cursor {
  position: fixed;
  z-index: 100;

  width: 17px;
  height: 17px;

  border: 1.5px solid var(--purple-light);
  border-radius: 50%;

  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: .55;
}

.backtop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;

  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(17,20,38,0.90);
}

/* RESPONSIVE */
@media (max-width: 850px) {
  .navlinks {
    display: none;
  }

  .hero-grid,
  .about-grid,
  .section-title {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .glow {
    width: 300px;
    height: 300px;
  }

  .profile {
    width: 285px;
  }

  .skills-grid,
  .projects {
    grid-template-columns: 1fr;
  }

  .fc1 {
    right: -5px;
  }

  .fc2 {
    left: -8px;
  }

  .section-title {
    display: block;
  }

  .section-title p {
    max-width: 650px;
  }
}

@media (max-width: 470px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .contact {
    padding: 35px 20px;
  }

  .contact h2 {
    font-size: 33px;
  }

  .float-card {
    font-size: 10px;
  }

  .fc1 {
    top: 20px;
  }

  .fc2 {
    bottom: 55px;
  }
}

@media (pointer: coarse) {
  .cursor {
    display: none;
  }
}
