:root {
  color-scheme: dark;
  --bg: #05060f;
  --surface: rgba(10, 18, 34, 0.72);
  --surface-strong: rgba(12, 22, 42, 0.9);
  --glass: rgba(18, 28, 54, 0.65);
  --line: rgba(120, 180, 255, 0.16);
  --neon: #55d6ff;
  --neon-strong: #8a5cff;
  --neon-soft: rgba(85, 214, 255, 0.35);
  --text: #e6f2ff;
  --muted: rgba(230, 242, 255, 0.68);
  --accent: linear-gradient(120deg, #55d6ff 0%, #8a5cff 48%, #2b6cff 100%);
  --accent-glow: 0 0 20px rgba(85, 214, 255, 0.5);
  --radius: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at top, rgba(35, 60, 140, 0.35), transparent 55%),
    radial-gradient(circle at 20% 20%, rgba(85, 214, 255, 0.2), transparent 40%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  opacity: 0;
  transition: opacity 0.8s ease;
}

body.loaded {
  opacity: 1;
}
@keyframes bootScan {
  0% {
    transform: translateY(-40%);
    opacity: 0;
  }
  30% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(140%);
    opacity: 0;
  }
}

@keyframes bootPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(85, 214, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 214, 255, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 20% 20%, black 20%, transparent 70%);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: -20% 0 0 0;
  background: radial-gradient(circle at 70% 20%, rgba(138, 92, 255, 0.35), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

body.booting {
  overflow: hidden;
}

body.booting main,
body.booting header,
body.booting footer {
  filter: blur(2px);
}

body.booting .cursor,
body.booting .cursor-follow {
  opacity: 0;
}

body.booting canvas#particle-canvas {
  opacity: 0.1;
  filter: blur(1px);
}

body.intro-complete canvas#particle-canvas {
  opacity: 0.6;
  filter: none;
  transition: opacity 1s ease;
}

.boot-sequence {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(85, 214, 255, 0.25), transparent 55%),
    radial-gradient(circle at 80% 60%, rgba(138, 92, 255, 0.3), transparent 60%),
    rgba(2, 4, 12, 0.96);
  z-index: 1200;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.boot-sequence::before {
  content: "";
  position: absolute;
  inset: -40% 0;
  background: linear-gradient(180deg, transparent 0%, rgba(85, 214, 255, 0.35) 50%, transparent 100%);
  animation: bootScan 2.6s ease-in-out infinite;
  opacity: 0.65;
}

.boot-sequence.complete {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 82vw);
  padding: 28px;
  border-radius: 22px;
  background: rgba(8, 14, 30, 0.78);
  border: 1px solid rgba(85, 214, 255, 0.35);
  box-shadow: 0 0 40px rgba(85, 214, 255, 0.3);
  backdrop-filter: blur(18px);
}

.boot-title {
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--neon);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.boot-progress {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(85, 214, 255, 0.15);
  border: 1px solid rgba(85, 214, 255, 0.35);
  overflow: hidden;
}

.boot-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: var(--accent);
  box-shadow: 0 0 15px rgba(85, 214, 255, 0.7);
  transition: width 0.2s ease;
}

.boot-meta {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

.boot-percent {
  color: var(--text);
  font-weight: 600;
}

.boot-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(85, 214, 255, 0.4), transparent 70%);
  filter: blur(8px);
  animation: bootPulse 3s ease-in-out infinite;
}

canvas#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.6;
  pointer-events: none;
}

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

h1,
h2,
h3,
h4 {
  font-family: "Oxanium", "Space Grotesk", sans-serif;
  letter-spacing: 0.5px;
}

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

.top-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6vw;
  background: rgba(6, 10, 24, 0.65);
  border-bottom: 1px solid rgba(85, 214, 255, 0.15);
  backdrop-filter: blur(16px);
}

.brand {
  font-family: "Oxanium", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.brand-dot {
  color: var(--neon);
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #041019;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(85, 214, 255, 0.4);
}

.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  padding: 110px 6vw 80px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(circle at 20% 20%, rgba(85, 214, 255, 0.35), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(138, 92, 255, 0.35), transparent 60%);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-content,
.hero-visual {
  position: relative;
  z-index: 1;
}

.intro-ignite .hero::before {
  opacity: 1;
  animation: heroSweep 5s ease;
}

.intro-ignite .hero-content,
.intro-ignite .hero-visual {
  animation: heroPop 1.2s ease;
}

.intro-ignite .hero-name {
  text-shadow: 0 0 40px rgba(85, 214, 255, 0.65), 0 0 80px rgba(138, 92, 255, 0.4);
}

.hero-content h1 {
  font-size: clamp(2.6rem, 4vw, 4.4rem);
  line-height: 1.05;
  margin-bottom: 16px;
}

.hero-name {
  background: var(--accent);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(85, 214, 255, 0.35);
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 4px;
  color: var(--neon);
  margin-bottom: 16px;
}

.subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.typing {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: var(--neon);
  margin-bottom: 28px;
  min-height: 28px;
}

.typing-cursor {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.btn {
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn.primary {
  background: var(--accent);
  color: #031019;
  box-shadow: 0 0 25px rgba(85, 214, 255, 0.5);
}

.btn.ghost {
  background: rgba(10, 20, 40, 0.5);
  border: 1px solid rgba(85, 214, 255, 0.3);
}

.btn.outline {
  background: transparent;
  border: 1px solid rgba(138, 92, 255, 0.4);
}

.btn.small {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 30px rgba(85, 214, 255, 0.35);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
}

.stat-card {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid rgba(85, 214, 255, 0.15);
  backdrop-filter: blur(18px);
}

.stat-number {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--neon);
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  justify-content: center;
}

.jarvis-orb {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(85, 214, 255, 0.35), transparent 65%);
  display: grid;
  place-items: center;
}

.orb-core {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 40px rgba(85, 214, 255, 0.7);
  animation: pulse 3s infinite ease-in-out;
}

.orb-ring {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px solid rgba(85, 214, 255, 0.45);
  animation: spin 8s linear infinite;
}

.orb-ring.ring-2 {
  width: 200px;
  height: 200px;
  border-color: rgba(138, 92, 255, 0.5);
  animation-duration: 12s;
  animation-direction: reverse;
}

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

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

@keyframes heroSweep {
  0% {
    transform: translateX(-15%) scale(0.9);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateX(15%) scale(1.05);
    opacity: 0;
  }
}

@keyframes heroPop {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.holo-panel {
  width: min(320px, 80%);
  background: rgba(8, 16, 34, 0.7);
  border: 1px solid rgba(85, 214, 255, 0.2);
  border-radius: var(--radius);
  padding: 18px;
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 40px rgba(4, 10, 20, 0.45);
}

.panel-label {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--neon);
  margin-bottom: 12px;
}

.panel-grid {
  display: grid;
  gap: 14px;
}

.panel-title {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.panel-value {
  font-size: 1rem;
  font-weight: 600;
}

.floating-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.floater {
  position: absolute;
  border-radius: 18px;
  background: rgba(85, 214, 255, 0.15);
  border: 1px solid rgba(85, 214, 255, 0.3);
  box-shadow: 0 0 20px rgba(85, 214, 255, 0.2);
  animation: float 8s ease-in-out infinite;
}

.f1 {
  width: 60px;
  height: 60px;
  top: 10%;
  left: 10%;
}

.f2 {
  width: 90px;
  height: 40px;
  top: 65%;
  right: 20%;
  animation-delay: -2s;
}

.f3 {
  width: 50px;
  height: 50px;
  bottom: 10%;
  left: 40%;
  animation-delay: -4s;
}

.f4 {
  width: 80px;
  height: 80px;
  top: 30%;
  right: 5%;
  animation-delay: -6s;
}

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

.section {
  padding: 90px 6vw;
}

.section-header {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-eyebrow {
  color: var(--neon);
  letter-spacing: 4px;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.section h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

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

.about-text {
  display: grid;
  gap: 18px;
  color: var(--muted);
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.glass-card {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid rgba(85, 214, 255, 0.2);
  backdrop-filter: blur(18px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(85, 214, 255, 0.2);
}

.card-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--neon);
  letter-spacing: 2px;
  display: block;
  margin-bottom: 10px;
}

.card-value {
  font-size: 1rem;
  font-weight: 600;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
}

.skill-card {
  padding: 16px;
  border-radius: 14px;
  background: rgba(10, 20, 40, 0.6);
  border: 1px solid rgba(85, 214, 255, 0.2);
  text-align: center;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-6px);
  color: var(--neon);
  box-shadow: 0 0 24px rgba(85, 214, 255, 0.35);
}

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

.project-card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(85, 214, 255, 0.2);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(85, 214, 255, 0.2), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card h3 {
  margin: 14px 0 10px;
}

.project-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.project-visual {
  position: relative;
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(85, 214, 255, 0.3), rgba(138, 92, 255, 0.4));
  box-shadow: inset 0 0 40px rgba(10, 20, 40, 0.8);
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.1) contrast(1.05);
  transform: scale(1.02);
  transition: transform 0.6s ease, filter 0.6s ease;
}

.project-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 18, 34, 0.1), rgba(138, 92, 255, 0.35));
  mix-blend-mode: screen;
  opacity: 0.85;
  pointer-events: none;
}

.project-card:hover .project-visual img {
  transform: scale(1.08);
  filter: saturate(1.2) contrast(1.1);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.project-tags span {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(85, 214, 255, 0.18);
  border: 1px solid rgba(85, 214, 255, 0.2);
}

.project-actions {
  display: flex;
  gap: 10px;
}

.timeline {
  display: grid;
  gap: 20px;
  border-left: 2px solid rgba(85, 214, 255, 0.2);
  padding-left: 24px;
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 12px rgba(85, 214, 255, 0.7);
}

.timeline-content {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid rgba(85, 214, 255, 0.15);
}

.timeline-content p {
  color: var(--muted);
  margin-top: 8px;
}

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

.cert-card {
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(8, 14, 30, 0.7);
  border: 1px solid rgba(138, 92, 255, 0.3);
  box-shadow: 0 0 20px rgba(138, 92, 255, 0.2);
}

.cert-card p {
  margin-top: 10px;
  color: var(--muted);
}

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

.journey-card {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface-strong);
  border: 1px solid rgba(85, 214, 255, 0.2);
  box-shadow: 0 0 20px rgba(85, 214, 255, 0.15);
}

.journey-card p {
  margin-top: 8px;
  color: var(--muted);
}

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

.contact-panel {
  display: grid;
  gap: 16px;
}

.social-card {
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(10, 18, 36, 0.7);
  border: 1px solid rgba(85, 214, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(85, 214, 255, 0.35);
}

.contact-note {
  color: var(--muted);
  line-height: 1.5;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid rgba(85, 214, 255, 0.2);
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  background: rgba(5, 12, 26, 0.8);
  border: 1px solid rgba(85, 214, 255, 0.2);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 1px solid rgba(85, 214, 255, 0.5);
}

.footer {
  padding: 30px 6vw 40px;
  border-top: 1px solid rgba(85, 214, 255, 0.2);
  text-align: center;
  background: rgba(6, 10, 24, 0.75);
}

.footer p {
  color: var(--muted);
  margin-bottom: 6px;
}

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

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

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

.cursor,
.cursor-follow {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  mix-blend-mode: screen;
  opacity: 0.85;
}

.cursor {
  width: 10px;
  height: 10px;
  background: var(--neon);
  box-shadow: 0 0 12px rgba(85, 214, 255, 0.8);
}

.cursor-follow {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(85, 214, 255, 0.6);
  box-shadow: 0 0 25px rgba(85, 214, 255, 0.4);
  transition: transform 0.12s ease;
}

@media (max-width: 980px) {
  .top-nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .hero {
    padding-top: 90px;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }

  .cta-group {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
