﻿:root {
  color-scheme: only light;
  --bg: #0b0f14;
  --bg-soft: #101722;
  --text: #f5f6f7;
  --muted: #a6b1c2;
  --accent: #f7b85c;
  --accent-2: #6dd3e7;
  --accent-3: #ff7c9d;
  --card: rgba(15, 23, 34, 0.78);
  --stroke: rgba(255, 255, 255, 0.08);
  --glow: rgba(255, 179, 71, 0.25);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --depth-1: 12px;
  --depth-2: 26px;
  --depth-3: 40px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  font-family: "Space Grotesk", sans-serif;
  background: radial-gradient(circle at top left, #1b2536 0%, #0b0f14 45%, #05070b 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

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

main {
  padding: 0 8vw 80px;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.scene {
  position: relative;
  perspective: 1400px;
  perspective-origin: var(--mx, 50%) var(--my, 50%);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 8vw;
  min-height: 90px;
  overflow: visible;
  z-index: 10;
  background: linear-gradient(180deg, rgba(11, 15, 20, 0.92) 0%, rgba(11, 15, 20, 0.3) 100%);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
}

.nav nav {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
  color: var(--muted);
  position: relative;
  padding: 8px 0;
  flex-wrap: wrap;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.icon-btn.primary {
  background: linear-gradient(120deg, var(--accent), #ffcc7a);
  color: #141414;
}

.icon-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

#dot-field {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: screen;
  pointer-events: none;
}

.menu-toggle,
.menu-close {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  display: none;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 14, 0.92);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 120px 10vw 40px;
  transform: translateY(-100%);
  transition: transform 0.35s ease;
  z-index: 20;
}

.mobile-nav.open {
  transform: translateY(0);
}

.mobile-nav a {
  font-size: 1.2rem;
  color: var(--text);
}

.mobile-links {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav nav a {
  position: relative;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.nav nav a::after {
  content: "";
  display: none;
}

.nav nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.nav nav a.active::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  z-index: -1;
}

.cta {
  border: 1px solid var(--stroke);
  background: rgba(255, 179, 71, 0.12);
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
}

.intro {
  min-height: 100vh;
  display: grid;
  align-items: center;
  justify-items: stretch;
  padding: 140px 0 60px;
  text-align: left;
}

.intro-grid {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

.intro-grid.alt-hero {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 24px;
  text-align: left;
}

.intro-grid.alt-hero .intro-inner {
  max-width: none;
  margin-left: 0;
  padding-left: 0;
}

.intro-inner {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  text-align: left;
}

.intro-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.5em;
  font-size: 0.75rem;
  color: var(--accent-2);
}

.intro h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.05;
}

.intro h1 span {
  display: block;
  color: rgba(245, 246, 247, 0.7);
}

.intro-lead {
  font-size: 1.1rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.intro-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.intro-meta span {
  border: 1px solid var(--stroke);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.intro-actions {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  margin-top: 8px;
}

.intro-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.figure-card {
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
}

.figure-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--accent-2);
}

.figure-card h3 {
  font-size: 1.8rem;
  margin: 6px 0;
}

.figure-sub {
  color: var(--muted);
  font-size: 0.9rem;
}

.intro-media {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.intro-media.circle {
  justify-items: start;
  align-self: center;
}

.intro-grid.alt-hero .intro-media {
  flex: 0 0 420px;
}

.intro-grid.alt-hero .intro-inner {
  flex: 1 1 auto;
  margin-top: 0;
}

.intro-grid.alt-hero .intro-media {
  order: 0;
}

.intro-grid.alt-hero .intro-inner {
  order: 1;
  align-self: center;
}

.portrait-circle {
  width: min(360px, 90%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  padding: 12px;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.2), rgba(15, 23, 34, 0.4));
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform-style: preserve-3d;
}

.portrait-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: saturate(0.9) contrast(1.1);
}

.floating-figures {
  position: absolute;
  inset: -20px;
  pointer-events: none;
}

.float-dot {
  position: absolute;
  top: 12%;
  right: 10%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 30px rgba(255, 124, 157, 0.6);
  animation: float 6s ease-in-out infinite;
}

.float-ring {
  position: absolute;
  bottom: 6%;
  left: 6%;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid rgba(109, 211, 231, 0.6);
  animation: float 7.5s ease-in-out infinite;
}

.float-triangle {
  position: absolute;
  top: 55%;
  right: 2%;
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-bottom: 28px solid rgba(247, 184, 92, 0.7);
  animation: float 5.5s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.scroll-hint {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.scroll-hint span {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: hint 2.2s ease-in-out infinite;
}

@keyframes hint {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(10px);
    opacity: 1;
  }
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 60px;
  align-items: center;
}

.hero.detail {
  padding-top: 40px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent);
  font-size: 0.8rem;
  margin-bottom: 18px;
}

.hero h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(2.2rem, 3.5vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 18px;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.hero-meta span {
  border: 1px solid var(--stroke);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.btn {
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), #ffcc7a);
  color: #141414;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.hero-stack {
  display: grid;
  gap: 26px;
}

.holo-card,
.skill-card,
.timeline-card,
.project-card,
.edu-card,
.contact-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.experience-card,
.contact-tile {
  transform-style: preserve-3d;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tilt {
  --rx: 0deg;
  --ry: 0deg;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) translateZ(0);
}

.holo-card::before,
.skill-card::before,
.timeline-card::before,
.project-card::before,
.edu-card::before,
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(99, 197, 218, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.holo-card::after,
.skill-card::after,
.timeline-card::after,
.project-card::after,
.edu-card::after,
.contact-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius) - 2px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 45%, rgba(255, 255, 255, 0.06));
  opacity: 0.4;
  pointer-events: none;
}

.holo-card:hover::before,
.skill-card:hover::before,
.timeline-card:hover::before,
.project-card:hover::before,
.edu-card:hover::before,
.contact-card:hover::before {
  opacity: 1;
}

.card-top {
  margin-bottom: 16px;
  transform: translateZ(var(--depth-2));
}

.label {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.7rem;
  color: var(--accent-2);
}

.card-body p {
  color: var(--muted);
  line-height: 1.6;
  transform: translateZ(var(--depth-1));
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--muted);
  transform: translateZ(var(--depth-1));
}

.chip-row span {
  border: 1px solid var(--stroke);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.section-title {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.section-title h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 3vw, 3rem);
}

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

.skill-grid,
.project-grid,
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.skill-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.skill-card h3,
.timeline-card h3,
.project-card h3,
.edu-card h3,
.contact-card h3 {
  margin-bottom: 12px;
}

.skill-card p,
.timeline-card p,
.project-card p,
.edu-card p,
.contact-card p {
  color: var(--muted);
  line-height: 1.6;
}

.skill-card {
  padding: 22px 22px 26px;
}

.skill-card .chip-row {
  margin-top: 6px;
  gap: 10px;
}

.skill-card .chip-row span {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
  font-size: 0.85rem;
}

.experience-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.experience-card {
  background: linear-gradient(150deg, rgba(20, 28, 38, 0.92), rgba(9, 13, 19, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.experience-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(247, 184, 92, 0.12), transparent 55%);
  opacity: 0.6;
}

.experience-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.experience-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.experience-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-bottom: 14px;
}

.experience-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  margin-bottom: 8px;
}

.experience-col ul {
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.experience-card .chip-row {
  margin-top: 0;
}

.tag {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent-2);
  font-size: 0.85rem;
}

.project-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-header span {
  color: var(--accent);
  font-size: 0.85rem;
}

.project-highlight {
  color: var(--accent-2);
  margin-top: 8px;
}

.contact {
  padding-bottom: 40px;
}

.contact-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.contact-tile {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 22px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
}

.tile-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer {
  text-align: center;
  padding: 40px 0 60px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
}

.bg-orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.45;
  z-index: 0;
}

.orb-1 {
  background: #ff6f91;
  top: -120px;
  right: -120px;
}

.orb-2 {
  background: #63c5da;
  bottom: -140px;
  left: -140px;
}

.orb-3 {
  background: #ffb347;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
}

.grid-sheen {
  position: fixed;
  inset: 0;
  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: 80px 80px;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.depth-panel {
  position: fixed;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(10, 14, 20, 0.45);
  backdrop-filter: blur(8px);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45);
  z-index: 0;
  transform-style: preserve-3d;
}


.panel-1 {
  width: 320px;
  height: 480px;
  top: 18%;
  right: -120px;
  transform: rotateY(-20deg) rotateX(8deg);
}

.panel-2 {
  width: 260px;
  height: 360px;
  bottom: 12%;
  left: -120px;
  transform: rotateY(18deg) rotateX(-6deg);
}

.panel-3 {
  width: 200px;
  height: 240px;
  top: 52%;
  left: 45%;
  transform: translateX(-50%) rotateY(12deg) rotateX(8deg);
}

.orbit-card {
  position: relative;
  height: 140px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(255, 179, 71, 0.12), rgba(99, 197, 218, 0.08));
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: translateZ(var(--depth-3));
}

.orbit-card span {
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: orbit 16s linear infinite;
}

.orbit-card span:nth-child(2) {
  inset: -60%;
  border-color: rgba(255, 179, 71, 0.4);
  animation-duration: 22s;
}

.orbit-card span:nth-child(3) {
  inset: -80%;
  border-color: rgba(99, 197, 218, 0.4);
  animation-duration: 28s;
}

@keyframes orbit {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

section,
header,
footer {
  position: relative;
  z-index: 2;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 900px) {
  .intro-grid.alt-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .intro-grid.alt-hero .intro-media {
    flex: 0 0 auto;
    align-items: center;
  }

  .intro-inner {
    align-items: center;
    text-align: center;
  }
  .nav nav {
    display: none;
  }

  .nav-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    padding: 20px 6vw;
  }

  main {
    padding: 0 6vw 80px;
  }

  .depth-panel {
    display: none;
  }

  .nav-guide {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-meta span {
    width: 100%;
  }

  .intro-actions {
    flex-direction: column;
  }

  .intro-grid.alt-hero {
    text-align: center;
    justify-items: center;
  }

  .intro-grid.alt-hero .intro-inner {
    align-items: center;
  }

  .intro {
    text-align: center;
  }

  .intro-meta,
  .intro-actions {
    justify-content: center;
  }

  .orbit-card {
    height: 120px;
  }

  .nav-guide {
    display: none;
  }
}
  .intro-grid.alt-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .intro-media.circle {
    justify-items: center;
  }

  .intro-inner {
    align-items: center;
    text-align: center;
  }
