:root {
  --bg: #090b14;
  --surface: #111522;
  --surface-light: #171c2d;
  --text: #f4f5ff;
  --muted: #a3abc1;
  --purple: #a78bfa;
  --blue: #60a5fa;
  --border: rgba(255, 255, 255, 0.09);
  --gradient: linear-gradient(110deg, #a78bfa, #60a5fa);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

::selection {
  background: var(--purple);
  color: var(--bg);
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient);
  z-index: 1000;
}

.section {
  width: min(1120px, 88%);
  margin: 0 auto;
}

/* NAVIGATION */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6%;
  background: rgba(9, 11, 20, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -2px;
}

.logo span {
  color: var(--purple);
}

.navbar nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.navbar nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.25s ease;
}

.navbar nav a:hover,
.navbar nav a:focus-visible {
  color: var(--text);
}

.navbar nav .nav-button {
  padding: 10px 17px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 9px;
}

.menu-toggle {
  display: none;
  color: var(--text);
  background: transparent;
  border: 0;
  font-size: 25px;
  cursor: pointer;
}

/* HERO */

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 45px;
  padding-top: 75px;
  padding-bottom: 90px;
}

.eyebrow {
  color: var(--purple);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 17px;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #5ee0ad;
  box-shadow: 0 0 12px rgba(94, 224, 173, 0.6);
}

.hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.15;
  letter-spacing: -2.8px;
  font-weight: 800;
}

.hero h1 span,
.section-heading h2 span,
.contact-card h2 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  max-width: 520px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button.primary {
  color: #0b0d17;
  background: var(--gradient);
  box-shadow: 0 8px 28px rgba(128, 109, 242, 0.16);
}

.button.secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 35px;
  color: var(--muted);
  font-size: 11px;
}

/* PROFILE CARD AND PORTRAIT */

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}

.profile-card {
  position: relative;
  z-index: 2;
  width: min(360px, 90%);
  padding: 32px;
  border: 1px solid rgba(167, 139, 250, 0.24);
  border-radius: 24px;
  background: linear-gradient(145deg, #171b2b, #0e1120);
  box-shadow: 0 25px 100px rgba(102, 81, 220, 0.13);
  text-align: center;
}

.profile-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  margin: 0 auto 22px;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid rgba(167, 139, 250, 0.6);
  background: linear-gradient(135deg, #2b2451, #183754);
  box-shadow: 0 0 30px rgba(167, 139, 250, 0.18);
}

.avatar-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 55px;
  font-weight: 800;
  letter-spacing: -4px;
}

.profile-avatar img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.profile-label {
  font-size: 10px;
  color: var(--purple);
  font-weight: 800;
  letter-spacing: 2px;
}

.profile-card h2 {
  font-size: 28px;
  margin-top: 4px;
}

.profile-subtitle {
  color: var(--muted);
  font-size: 12px;
}

.profile-tags,
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
}

.profile-tags span,
.tech-tags span {
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: #c7cbe0;
  font-size: 10px;
}

.profile-code {
  margin-top: 24px;
  padding: 13px;
  border-radius: 10px;
  background: #0a0d17;
  color: #c7d2fe;
  font-family: monospace;
  font-size: 10px;
  line-height: 2.2;
  text-align: left;
  white-space: nowrap;
}

.profile-code span {
  color: #7d86a1;
  margin-right: 9px;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(167, 139, 250, 0.15);
  border-radius: 50%;
  transform: rotate(-25deg);
}

.orbit-one {
  width: 420px;
  height: 300px;
}

.orbit-two {
  width: 350px;
  height: 450px;
  transform: rotate(45deg);
}

.floating-badge {
  position: absolute;
  z-index: 3;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #171b2b;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  font-size: 11px;
  font-weight: 700;
}

.badge-top {
  top: 65px;
  right: 0;
}

.badge-bottom {
  bottom: 65px;
  left: 0;
}

/* SECTION HEADINGS */

.about-section,
.skills-section,
.projects-section,
.education-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.section-heading {
  margin-bottom: 36px;
}

.section-heading h2 {
  font-size: clamp(29px, 4vw, 42px);
  line-height: 1.25;
  letter-spacing: -1.5px;
}

.section-heading > p:last-child {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

/* ABOUT */

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}

.about-card,
.skill-card,
.project-card,
.timeline-content {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.about-card {
  padding: 26px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.about-card:hover,
.project-card:hover,
.skill-card:hover {
  transform: translateY(-5px);
  border-color: rgba(167, 139, 250, 0.35);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 12px;
  background: rgba(167, 139, 250, 0.12);
  color: var(--purple);
  font-size: 22px;
  margin-bottom: 20px;
}

.about-card h3,
.skill-card h3,
.project-card h3,
.timeline-content h3 {
  font-size: 16px;
  margin-bottom: 9px;
}

.about-card p,
.skill-card p,
.project-card > p,
.timeline-content p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

/* SKILLS */

.skills-section {
  width: 100%;
  padding-left: 6%;
  padding-right: 6%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: radial-gradient(
    ellipse at 80% 20%,
    rgba(96, 165, 250, 0.055),
    transparent 40%
  );
}

.skills-section .section-heading,
.skills-grid {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.skills-section .section-heading {
  margin-bottom: 36px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.skill-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.skill-symbol {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: rgba(96, 165, 250, 0.1);
  color: var(--blue);
  font-size: 22px;
}

.skill-card h3 {
  margin-bottom: 3px;
  font-size: 13px;
}

.skill-card p {
  font-size: 10px;
}

/* PROJECTS */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  min-width: 0;
  padding: 23px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.project-number {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.project-status {
  padding: 5px 8px;
  border-radius: 5px;
  background: rgba(94, 224, 173, 0.09);
  color: #6ee7b7;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.status-progress {
  color: #93c5fd;
  background: rgba(96, 165, 250, 0.1);
}

.project-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 155px;
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
}

.project-art > span {
  font-size: 55px;
  line-height: 1.2;
}

.project-art small {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
}

.art-purple {
  background: radial-gradient(circle at center, #4b347b, #211a3a 65%, #151323);
  color: #d8c9ff;
}

.art-blue {
  background: radial-gradient(circle at center, #1c5b87, #14283f 65%, #111725);
  color: #b9e6ff;
}

.project-card h3 {
  font-size: 18px;
  margin-bottom: 9px;
}

.project-card > p {
  margin-bottom: 8px;
}

.project-card .tech-tags {
  justify-content: flex-start;
  margin-top: 17px;
  margin-bottom: 18px;
}

.project-link {
  display: inline-block;
  color: var(--purple);
  font-size: 12px;
  font-weight: 700;
}

.project-link:hover {
  color: var(--blue);
}

.project-note {
  margin-top: 15px;
  font-size: 10px !important;
  color: #929bb4 !important;
}

/* EDUCATION */

.timeline {
  max-width: 850px;
  margin: 0 auto;
}

.timeline-item {
  position: relative;
  padding: 0 0 28px 30px;
  border-left: 1px solid rgba(167, 139, 250, 0.3);
}

.timeline-item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.timeline-dot {
  position: absolute;
  top: 8px;
  left: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 15px rgba(167, 139, 250, 0.4);
}

.timeline-content {
  padding: 24px;
}

.timeline-date {
  display: block;
  margin-bottom: 8px;
  color: var(--purple);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
}

.timeline-content h3 {
  font-size: 15px;
}

.timeline-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 9px;
  border-radius: 5px;
  background: rgba(167, 139, 250, 0.09);
  color: #c4b5fd;
  font-size: 9px;
  font-weight: 700;
}

/* CONTACT */

.contact-section {
  padding-top: 30px;
  padding-bottom: 90px;
}

.contact-card {
  padding: 65px 30px;
  text-align: center;
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(125, 95, 220, 0.16), transparent 60%),
    var(--surface);
}

.contact-card h2 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.25;
  letter-spacing: -1.7px;
}

.contact-card > p:not(.eyebrow) {
  max-width: 580px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 13px;
}

.contact-actions {
  justify-content: center;
}

/* FOOTER */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 24px 6%;
  border-top: 1px solid var(--border);
}

.footer p {
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.back-top {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid var(--border);
  border-radius: 9px;
}

/* SCROLL ANIMATIONS */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* TABLETS */

@media (max-width: 900px) {
  .navbar nav {
    gap: 17px;
  }

  .hero {
    grid-template-columns: 1fr 0.8fr;
    gap: 20px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .about-grid,
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .badge-top {
    right: -5px;
  }
}

/* MOBILE */

@media (max-width: 680px) {
  .navbar {
    padding: 14px 6%;
  }

  .menu-toggle {
    display: block;
  }

  .navbar nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 6% 20px;
    background: #0d101b;
    border-bottom: 1px solid var(--border);
  }

  .navbar nav.nav-open {
    display: flex;
  }

  .navbar nav a {
    padding: 12px 0;
  }

  .navbar nav .nav-button {
    margin-top: 8px;
    padding: 10px 13px;
    text-align: center;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 65px;
    padding-bottom: 45px;
  }

  .hero h1 {
    font-size: clamp(38px, 10vw, 53px);
    letter-spacing: -2px;
  }

  .hero-description {
    font-size: 13px;
  }

  .hero-visual {
    min-height: 400px;
    margin-top: 10px;
  }

  .orbit-one {
    width: 330px;
    height: 260px;
  }

  .orbit-two {
    width: 280px;
    height: 370px;
  }

  .badge-top {
    right: 0;
  }

  .badge-bottom {
    left: 0;
  }

  .about-section,
  .skills-section,
  .projects-section,
  .education-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .about-grid,
  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-section {
    padding-left: 6%;
    padding-right: 6%;
  }

  .contact-card {
    padding: 45px 20px;
  }

  .footer {
    flex-wrap: wrap;
  }

  .footer p {
    flex: 1;
  }
}

/* SMALL PHONES */

@media (max-width: 380px) {
  .hero-actions .button,
  .contact-actions .button {
    width: 100%;
  }

  .profile-card {
    padding: 25px 18px;
  }

  .floating-badge {
    font-size: 9px;
    padding: 8px 10px;
  }

  .profile-code {
    font-size: 9px;
  }
}