:root {
  --bg: #020304;
  --bg-elevated: rgba(8, 12, 18, 0.84);
  --bg-soft: rgba(14, 22, 34, 0.76);
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f4f6f8;
  --muted: #bac4d4;
  --accent: #d9e5ff;
  --accent-soft: #7390bd;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 18% 18%, rgba(93, 117, 156, 0.18), transparent 26%),
    radial-gradient(circle at 84% 12%, rgba(58, 76, 102, 0.18), transparent 24%),
    linear-gradient(180deg, #040506 0%, #090d13 54%, #040506 100%);
  color: var(--text);
}

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

.page-shell {
  position: relative;
  overflow: hidden;
}

.ambient {
  position: fixed;
  inset: auto;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.26;
  pointer-events: none;
}

.ambient-one {
  top: -10rem;
  right: -8rem;
  background: #24354c;
}

.ambient-two {
  bottom: -16rem;
  left: -10rem;
  background: #17273a;
}

.section {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.hero {
  padding: 5rem 0 0;
  display: block;
}

.eyebrow {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(3.5rem, 8vw, 7rem);
  max-width: none;
  white-space: nowrap;
}

.hero-name-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hero-photo-wrap {
  width: clamp(7rem, 13vw, 8.8rem);
  height: clamp(7rem, 13vw, 8.8rem);
  border-radius: 999px;
  padding: 0.3rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.06));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  flex: 0 0 auto;
}

.hero-photo-fallback {
  position: relative;
  background:
    radial-gradient(circle at 35% 25%, rgba(120, 147, 187, 0.4), rgba(35, 42, 54, 0.95));
}

.hero-photo-fallback::after {
  content: "RN";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
}

.hero-photo {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 999px;
  object-fit: cover;
  background:
    radial-gradient(circle at 35% 25%, rgba(120, 147, 187, 0.55), rgba(40, 49, 64, 0.95));
}

.project-tags span {
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.92rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.5rem;
}

.button {
  min-width: 9rem;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #05070b;
  background: linear-gradient(135deg, #f5f7fb, #cfd9e6);
}

.button-icon {
  width: 1.15rem;
  height: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button-icon svg,
.button-icon-only svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.button-icon-only {
  min-width: 0;
  width: 3.35rem;
  height: 3.35rem;
  padding: 0;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.project-card,
.timeline-content {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.timeline-company {
  color: var(--muted);
}

.skills-strip {
  padding: 1.5rem 0 0;
}

.ticker-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  position: relative;
}

.ticker {
  padding: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.ticker::-webkit-scrollbar {
  display: none;
}

.ticker.is-dragging {
  cursor: grabbing;
}

.ticker-indicator {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.ticker-indicator-left {
  left: 0;
  border-radius: 999px 0 0 999px;
}

.ticker-indicator-right {
  right: 0;
  border-radius: 0 999px 999px 0;
}

.ticker-indicator-arrow {
  position: relative;
  width: 0.75rem;
  height: 0.75rem;
}

.ticker-indicator-arrow::before,
.ticker-indicator-arrow::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 0.65rem;
  background: #ffffff;
  border-radius: 999px;
  top: 50%;
  left: 50%;
  transform-origin: center;
}

.ticker-indicator-left .ticker-indicator-arrow {
  transform: translateX(0.2rem);
}

.ticker-indicator-left .ticker-indicator-arrow::before {
  transform: translate(-50%, -72%) rotate(45deg);
}

.ticker-indicator-left .ticker-indicator-arrow::after {
  transform: translate(-50%, -28%) rotate(-45deg);
}

.ticker-indicator-right .ticker-indicator-arrow {
  transform: translateX(-0.2rem);
}

.ticker-indicator-right .ticker-indicator-arrow::before {
  transform: translate(-50%, -72%) rotate(-45deg);
}

.ticker-indicator-right .ticker-indicator-arrow::after {
  transform: translate(-50%, -28%) rotate(45deg);
}

.ticker-shell.can-scroll-left .ticker-indicator-left,
.ticker-shell.can-scroll-right .ticker-indicator-right {
  opacity: 1;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

.skill-badge {
  height: 2rem;
  width: auto;
  flex: 0 0 auto;
  border-radius: 999px;
  filter: grayscale(1) brightness(1.02);
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.section-grid,
#projects {
  padding: 4rem 0 1rem;
}

.section-grid {
  padding-top: 1.5rem;
}

#projects {
  padding-top: 1.5rem;
}

.section-heading {
  max-width: 50rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.timeline {
  display: grid;
  gap: 1.4rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  align-items: stretch;
}

.timeline-rail {
  width: 2px;
  justify-self: center;
  background: linear-gradient(180deg, var(--accent), transparent);
  opacity: 0.7;
}

.timeline-content {
  padding: 1.6rem;
  border-radius: 1.6rem;
}

.experience-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  margin-top: 0.3rem;
}

.experience-brand {
  width: 7rem;
  height: 7rem;
  margin: 0;
  padding: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.experience-body>.experience-brand:first-child {
  align-self: stretch;
}

.experience-brand-fallback {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(224, 229, 236, 0.96));
}

.experience-brand-fallback::after {
  content: "AI Institute";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  text-align: center;
  color: #61161e;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
}

.experience-brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.experience-copy p {
  margin-top: 0;
}

.experience-copy ul {
  margin-top: 0;
}

.timeline-content .experience-copy ul {
  margin: 0;
}

.experience-copy {
  padding-top: 0;
}

.education-card {
  padding-top: calc(1.6rem - 5px);
  background:
    radial-gradient(circle at top right, rgba(118, 136, 170, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

.education-body {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(0, 1.2fr);
  gap: 1.4rem;
  align-items: stretch;
}

.education-brand {
  aspect-ratio: 1 / 1;
  height: 100%;
  border-radius: 1.2rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.education-brand img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.education-copy {
  display: grid;
  gap: 1rem;
}

.education-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.education-highlights p,
.education-coursework p {
  margin: 0;
}

.education-highlights p {
  padding: 0.72rem 0.95rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.education-highlights strong,
.education-label {
  color: #ffffff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.timeline-content .education-coursework .education-label {
  color: #ffffff;
}

.education-highlights strong {
  margin: 0;
}

.education-coursework {
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.experience-brand-acm img {
  object-fit: contain;
}

.experience-brand:not(.experience-brand-acm) {
  background: #ffffff;
  border-color: #ffffff;
}

.experience-brand-acm {
  background: #6e1322;
  border-color: #6e1322;
}

.timeline-meta {
  margin-top: 0.2rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.timeline-company {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.2rem;
  width: 100%;
}

.timeline-location {
  margin-left: auto;
  color: #ffffff;
  white-space: nowrap;
}

.timeline-date {
  margin: 0;
  flex: 0 0 auto;
  color: #ffffff;
  white-space: nowrap;
  text-align: right;
  margin-left: auto;
}

.timeline-content .timeline-date,
.timeline-content .timeline-date-group,
.timeline-content .timeline-date-group .timeline-subdate {
  color: #ffffff;
}

.timeline-date-group {
  margin-left: auto;
  text-align: right;
}

.timeline-subdate {
  margin: 0.08rem 0 0;
  color: var(--muted);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.timeline-title-group {
  min-width: 0;
  flex: 1 1 auto;
}

.timeline-content h3,
.project-card h3 {
  margin: 0;
  font-size: 1.4rem;
}

.timeline-content p,
.timeline-content li,
.project-card p {
  color: var(--muted);
  line-height: 1.75;
}

.timeline-content ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  padding-bottom: 5rem;
}

.project-card {
  padding: 1.5rem;
  border-radius: 1.6rem;
  min-height: 17rem;
}

.project-media-link {
  display: block;
  margin-bottom: 1.35rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.project-media-link:hover,
.project-media-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.project-media {
  aspect-ratio: 16 / 9;
  width: 100%;
  display: block;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.03);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

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

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

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

@media (max-width: 640px) {

  .section,
  .ticker-shell {
    width: min(calc(100% - 1.25rem), var(--max-width));
  }

  .hero h1 {
    max-width: 100%;
    white-space: normal;
  }

  .hero-name-row {
    align-items: flex-start;
    gap: 1rem;
  }

  .hero-photo-wrap {
    width: 5.9rem;
    height: 5.9rem;
  }

  .experience-body {
    grid-template-columns: 1fr;
  }

  .education-body {
    grid-template-columns: 1fr;
  }

  .timeline-meta {
    align-items: flex-start;
    gap: 0.5rem 1.4rem;
  }

  .timeline-location {
    margin-left: 0;
  }

  .timeline-item {
    grid-template-columns: 1rem minmax(0, 1fr);
  }

  .timeline-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .timeline-date {
    margin-left: 0;
    text-align: left;
  }

  .timeline-date-group {
    margin-left: 0;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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