:root {
  --bg: #f6fbff;
  --bg-soft: rgba(237, 246, 255, 0.86);
  --surface: rgba(255, 255, 255, 0.66);
  --surface-strong: rgba(240, 247, 255, 0.9);
  --line: rgba(88, 137, 203, 0.16);
  --text: #15314f;
  --muted: #5e7797;
  --accent: #ff8f88;
  --accent-strong: #ff6f88;
  --glow: rgba(255, 144, 154, 0.22);
  --max-width: 1180px;
  --shadow: 0 24px 90px rgba(41, 83, 130, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 20%, rgba(117, 181, 255, 0.22), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(255, 170, 176, 0.18), transparent 22%),
    linear-gradient(135deg, #f9fcff 0%, #edf6ff 46%, #fff7f8 100%);
  color: var(--text);
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  overflow-x: hidden;
  cursor: none;
}

::selection {
  background: rgba(255, 164, 176, 0.28);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a,
.interactive {
  cursor: none;
}

.ambient,
.grid-glow,
.cursor-dot,
.cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.ambient {
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.42;
}

.ambient-one {
  width: 30rem;
  height: 30rem;
  top: 6%;
  left: -8%;
  background: rgba(126, 184, 255, 0.22);
  animation: floatA 12s ease-in-out infinite;
}

.ambient-two {
  width: 26rem;
  height: 26rem;
  right: -5%;
  bottom: 8%;
  background: rgba(255, 166, 170, 0.18);
  animation: floatB 16s ease-in-out infinite;
}

.grid-glow {
  inset: 0;
  background-image:
    linear-gradient(rgba(107, 153, 214, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 153, 214, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at center, black 36%, transparent 82%);
  opacity: 0.35;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff9da5;
  transform: translate(-50%, -50%);
  z-index: 30;
  mix-blend-mode: screen;
}

.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(122, 164, 221, 0.34);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 29;
  transition: width 160ms ease, height 160ms ease, border-color 160ms ease, background 160ms ease;
  background: rgba(112, 174, 245, 0.08);
  backdrop-filter: blur(5px);
}

.cursor-ring.active {
  width: 64px;
  height: 64px;
  border-color: rgba(255, 141, 152, 0.75);
  background: rgba(255, 156, 166, 0.16);
}

.site-header,
main {
  position: relative;
  z-index: 1;
}

.site-header {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1.2rem 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 1.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

main {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.hero {
  min-height: calc(100svh - 82px);
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  align-items: center;
  gap: 2rem;
  padding-top: 2rem;
}

.eyebrow,
.section-tag,
.mini-label {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow,
.section-tag {
  color: #ff7c8d;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

.hero h1,
.section-heading h2,
.intro-strip h2,
.contact-section h2 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(3.4rem, 8vw, 7rem);
  max-width: 10ch;
  margin: 0 0 1.2rem;
}

.hero-text,
.intro-strip p,
.timeline-body p,
.project p,
.skill-block p,
.contact-copy,
.fact p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.02rem;
}

.hero-text {
  max-width: 42rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.95rem 1.35rem;
  border: 1px solid transparent;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button.primary {
  background: linear-gradient(135deg, rgba(255, 145, 141, 0.96), rgba(255, 111, 136, 0.92));
  color: #fffafc;
  box-shadow: 0 14px 40px rgba(255, 123, 145, 0.22);
}

.button.secondary {
  border-color: rgba(103, 152, 216, 0.2);
  background: rgba(255, 255, 255, 0.42);
}

.hero-panel {
  position: relative;
  min-height: 38rem;
  display: grid;
  align-content: center;
  gap: 1.4rem;
}

.hero-orbit {
  position: absolute;
  inset: 10% 8% auto auto;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  border: 1px solid rgba(115, 166, 229, 0.16);
  box-shadow: inset 0 0 50px rgba(120, 180, 248, 0.08);
  animation: spin 18s linear infinite;
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.hero-orbit::before {
  width: 1rem;
  height: 1rem;
  top: 16%;
  left: 12%;
  background: #ff8f97;
  box-shadow: 0 0 30px rgba(255, 143, 151, 0.35);
}

.hero-orbit::after {
  inset: 1.75rem;
  border: 1px dashed rgba(124, 171, 231, 0.18);
}

.hero-card,
.hero-metrics,
.timeline-item,
.project,
.certification-item,
.skill-block,
.fact,
.contact-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(239, 247, 255, 0.68));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card {
  max-width: 24rem;
  padding: 1.4rem;
  border-radius: 1.8rem;
}

.hero-card ul {
  margin: 1rem 0 0;
  padding-left: 1rem;
  color: var(--text);
  line-height: 1.8;
}

.mini-label {
  font-size: 0.72rem;
  color: #ff7f8e;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1rem;
  border-radius: 1.8rem;
}

.hero-metrics article {
  padding: 1rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.03);
}

.hero-metrics span {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero-metrics p,
.timeline-meta p,
.fact small {
  color: var(--muted);
  margin: 0;
}

.intro-strip {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 2rem;
  align-items: start;
}

.intro-strip h2,
.section-heading h2,
.contact-section h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin: 0;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.fact,
.timeline-item,
.project,
.certification-item,
.skill-block,
.contact-section {
  border-radius: 1.6rem;
}

.fact {
  padding: 1.5rem;
}

.fact span {
  color: #ff8290;
  font-size: 0.88rem;
}

.fact h3,
.timeline-body h3,
.project h3,
.skill-block h3 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0.55rem 0 0.7rem;
  font-size: 1.35rem;
}

.section-heading {
  margin-bottom: 2rem;
  max-width: 42rem;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 1.4rem;
  padding: 1.4rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.timeline-meta span,
.project-index {
  font-family: "Space Grotesk", sans-serif;
  color: #ff8591;
}

.timeline-body ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.8;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-items: start;
}

.project {
  min-height: 18rem;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.project-index {
  margin: 0 0 2rem;
  font-size: 0.9rem;
}

.project-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 1.5rem;
  font: inherit;
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.project-plus {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 136, 148, 0.28);
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-strong);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.65rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.project-details {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 260ms ease;
}

.project-detail-grid {
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0 1.5rem 0;
}

.project-detail-grid > div {
  padding: 0.9rem 0 0;
  border-top: 1px solid rgba(107, 153, 214, 0.14);
}

.project-detail-grid > div:first-child {
  padding-top: 0;
  border-top: 0;
}

.project-detail-grid h4 {
  margin: 0 0 0.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.project-detail-grid p {
  margin: 0;
}

.project.open {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 249, 255, 0.82));
}

.project.open .project-details {
  grid-template-rows: 1fr;
}

.project.open .project-detail-grid {
  padding-bottom: 1.5rem;
}

.project.open .project-plus {
  transform: rotate(45deg);
  background: rgba(255, 146, 158, 0.12);
  border-color: rgba(255, 136, 148, 0.42);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.chips span {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(111, 159, 219, 0.16);
  color: #285078;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.skill-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.certification-list {
  display: grid;
  gap: 1rem;
}

.certification-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.35rem 1.5rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.certification-item h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
}

.certification-item p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.certification-item span {
  color: #ff8591;
  font-family: "Space Grotesk", sans-serif;
  white-space: nowrap;
}

.skill-block {
  padding: 1.5rem;
}

.contact-section {
  padding: 2rem;
  text-align: center;
}

.contact-copy {
  max-width: 42rem;
  margin: 1rem auto 2rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(110, 159, 221, 0.18);
  background: rgba(255, 255, 255, 0.7);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.magnetic {
  transform-style: preserve-3d;
}

.is-hovered,
.timeline-item:hover,
.project:hover,
.certification-item:hover,
.skill-block:hover,
.fact:hover,
.button:hover,
.contact-links a:hover {
  border-color: rgba(255, 136, 148, 0.34);
  transform: translateY(-4px);
}

.project-toggle:hover .project-plus {
  border-color: rgba(255, 136, 148, 0.42);
  background: rgba(255, 146, 158, 0.1);
}

.click-burst {
  position: fixed;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 131, 144, 0.72);
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: burst 650ms ease-out forwards;
  z-index: 28;
}

@keyframes burst {
  from {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(0.6);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(5.8);
  }
}

@keyframes floatA {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(40px, 22px, 0); }
}

@keyframes floatB {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-28px, -30px, 0); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  body {
    cursor: auto;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  .hero,
  .intro-strip,
  .facts,
  .project-grid,
  .certification-item,
  .skill-columns,
  .timeline-item,
  .project-detail-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  .hero-panel {
    min-height: auto;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding-top: 1rem;
    gap: 1rem;
    flex-direction: column;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  main,
  .site-header {
    width: min(calc(100% - 1.2rem), var(--max-width));
  }

  .section {
    padding: 3.6rem 0;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 17vw, 4.2rem);
  }

  .button,
  .contact-links a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
