﻿:root {
  --bg: #02030b;
  --bg-2: #050816;
  --card: rgba(10, 17, 35, 0.7);
  --glass: rgba(9, 16, 33, 0.55);
  --accent-blue: #00d4ff;
  --accent-green: #29ff8a;
  --accent-purple: #7a5cff;
  --text: #e9f1ff;
  --muted: rgba(233, 241, 255, 0.65);
  --border: rgba(80, 140, 255, 0.2);
  --glow: 0 0 25px rgba(0, 212, 255, 0.35);
  --radius: 20px;
}

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

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #0a0f24 0%, #02030b 45%, #010102 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  opacity: 0.28;
  z-index: 0;
}

body.locked {
  overflow: hidden;
}

.site {
  position: relative;
  z-index: 1;
}

.site.pre-enter {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.site.entered {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: auto;
}

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

img {
  max-width: 100%;
  display: block;
}

.section {
  padding: 90px clamp(20px, 6vw, 90px);
  position: relative;
  z-index: 1;
  scroll-margin-top: 90px;
}

.grid {
  display: grid;
  gap: 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.6rem, 2.2vw, 2.4rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.card {
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover {
  border-color: rgba(41, 255, 138, 0.5);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), var(--glow);
}

.card:not(.tilt-card):hover {
  transform: translateY(-6px);
}

.card:hover::after {
  opacity: 1;
}

.card h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.card h4 {
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--accent-blue);
}

.muted {
  color: var(--muted);
  margin-bottom: 12px;
}

.bullet-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.bullet-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
  box-shadow: var(--glow);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tags span {
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(6, 12, 27, 0.8);
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  background: transparent;
  color: var(--text);
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent-blue), var(--accent-green));
  color: #02030b;
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 25px 55px rgba(0, 212, 255, 0.55);
}

.btn-outline {
  border-color: rgba(0, 212, 255, 0.45);
  background: rgba(5, 10, 22, 0.65);
}

.btn-outline:hover {
  border-color: rgba(41, 255, 138, 0.7);
}

.btn-glow {
  background: radial-gradient(circle, rgba(0, 212, 255, 0.85), rgba(0, 212, 255, 0.35));
  color: #010102;
  box-shadow: 0 25px 70px rgba(0, 212, 255, 0.6);
}

.btn-glow:hover {
  transform: translateY(-2px) scale(1.03);
}

/* Intro */

.intro {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.2), transparent 60%),
    radial-gradient(circle at 70% 20%, rgba(41, 255, 138, 0.15), transparent 55%),
    #02030b;
  display: grid;
  place-items: center;
  z-index: 999;
  overflow: hidden;
}

.intro.is-hidden {
  display: none;
}

.intro-particles,
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-particles {
  z-index: 1;
}

.intro-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 212, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.12) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.3;
  pointer-events: none;
}

.intro-content {
  text-align: center;
  z-index: 1;
  max-width: 720px;
  padding: 0 20px;
  animation: introFloat 6s ease-in-out infinite;
}

.intro-kicker {
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent-green);
  font-size: 0.7rem;
  margin-bottom: 16px;
}

.intro-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: 0.08em;
  text-shadow: 0 0 35px rgba(0, 212, 255, 0.6);
  margin-bottom: 18px;
  animation: glowPulse 4s ease-in-out infinite;
}

.intro-subtitle {
  color: var(--muted);
  margin-bottom: 32px;
  font-size: 1rem;
}

/* Nav */

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(2, 3, 11, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(20px, 6vw, 90px);
}

.logo {
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.3em;
  font-size: 0.85rem;
  color: var(--accent-blue);
}

.logo span {
  color: var(--accent-green);
  margin-left: 6px;
}

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

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

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(120deg, var(--accent-blue), var(--accent-green));
  transition: width 0.25s ease;
}

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

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

.nav-cta {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 255, 0.5);
  background: rgba(5, 10, 22, 0.7);
  color: var(--text);
  font-size: 0.7rem;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.15em;
  cursor: pointer;
}

/* Hero */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.18), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(41, 255, 138, 0.15), transparent 50%);
  opacity: 0.7;
  pointer-events: none;
  z-index: 1;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 40px;
  width: 100%;
}

.hero-content,
.hero-portrait {
  will-change: transform;
}

.hero-content h1 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  margin: 16px 0;
  line-height: 1.1;
}

.hero-content h1 span {
  color: var(--accent-green);
  text-shadow: 0 0 20px rgba(41, 255, 138, 0.4);
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent-blue);
}

.hero-subtitle {
  color: var(--muted);
  min-height: 34px;
  font-size: 1rem;
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 1.2em;
  border-right: 2px solid var(--accent-blue);
  margin-left: 4px;
  animation: blink 0.9s steps(1) infinite;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0 32px;
}

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

.metric-card {
  padding: 18px;
  text-align: center;
}

.metric-card h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.4rem;
  color: var(--accent-blue);
  margin-bottom: 6px;
}

.metric-card p {
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-portrait {
  position: relative;
  display: grid;
  place-items: center;
}

.portrait-frame {
  padding: 12px;
  border-radius: 26px;
  border: 1px solid rgba(0, 212, 255, 0.35);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.portrait-frame img {
  border-radius: 20px;
  width: min(320px, 70vw);
}

.orbit-ring {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 212, 255, 0.4);
  animation: spin 18s linear infinite;
}

.orbit-ring.ring-2 {
  width: 320px;
  height: 320px;
  border-color: rgba(41, 255, 138, 0.4);
  animation-duration: 12s;
  animation-direction: reverse;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  z-index: 2;
  cursor: pointer;
}

.mouse {
  width: 26px;
  height: 42px;
  border-radius: 999px;
  border: 2px solid rgba(0, 212, 255, 0.5);
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.wheel {
  width: 4px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent-blue);
  animation: wheel 1.2s infinite;
}

/* Skills */

.skills-dashboard {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  margin-bottom: 36px;
}

.skills-bars {
  padding: 24px;
}

.skill-bar {
  margin-top: 18px;
}

.skill-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted);
}

.bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(7, 14, 30, 0.7);
  border: 1px solid rgba(0, 212, 255, 0.2);
  overflow: hidden;
  margin-top: 10px;
}

.bar span {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

@property --value {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

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

.radial {
  --value: 0;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: conic-gradient(var(--accent-green) calc(var(--value) * 1%), rgba(0, 212, 255, 0.15) 0);
  display: grid;
  place-items: center;
  position: relative;
  margin: 0 auto;
  box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.3);
}

.radial::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: rgba(2, 3, 11, 0.9);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.radial-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.radial-inner span {
  font-family: "Orbitron", sans-serif;
  font-size: 1.2rem;
  color: var(--accent-blue);
}

.radial-inner p {
  font-size: 0.8rem;
  color: var(--muted);
}

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

.about-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}

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

/* Timeline */

.timeline {
  display: grid;
  gap: 24px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--accent-blue), transparent);
}

.timeline-item {
  padding-left: 46px;
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: 7px;
  top: 26px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
}

/* Services */

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

.service-icon {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

/* Projects */

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

.project-card p {
  color: var(--muted);
  margin: 12px 0;
  line-height: 1.6;
}

.project-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.status-chip {
  font-size: 0.7rem;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(41, 255, 138, 0.15);
  border: 1px solid rgba(41, 255, 138, 0.4);
  color: var(--accent-green);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tilt-card {
  transform-style: preserve-3d;
}

/* Testimonials */

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

.testimonial-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 16px 0 24px;
}

.testimonial-quote {
  font-size: 2.2rem;
  color: rgba(0, 212, 255, 0.6);
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent-blue), var(--accent-green));
  display: grid;
  place-items: center;
  color: #02030b;
  font-weight: 600;
}

.testimonial-footer h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.testimonial-footer span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Contact */

.contact-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.contact-list li {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
}

.contact-list span:first-child {
  min-width: 90px;
  color: var(--accent-blue);
}

.contact-list a {
  color: var(--text);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.form-note {
  font-size: 0.78rem;
  color: var(--muted);
}

.form-status {
  min-height: 18px;
  font-size: 0.82rem;
  color: var(--accent-green);
}

.form-status.error {
  color: #ff7a7a;
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  background: rgba(3, 7, 18, 0.8);
  color: var(--text);
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 16px rgba(41, 255, 138, 0.3);
}

/* Footer */

.footer {
  padding: 40px clamp(20px, 6vw, 90px) 60px;
  border-top: 1px solid rgba(0, 212, 255, 0.1);
  display: grid;
  gap: 12px;
  text-align: center;
}

.footer h3 {
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.2em;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-meta {
  color: var(--muted);
  font-size: 0.75rem;
}

/* Back to top */

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.4);
  background: rgba(5, 10, 22, 0.8);
  color: var(--accent-blue);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 4;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reveal animations */

.reveal {
  opacity: 0;
  transform: translateY(30px);
}

/* Animations */

@keyframes wheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(10px);
    opacity: 0;
  }
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

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

@keyframes glowPulse {
  0%,
  100% {
    text-shadow: 0 0 35px rgba(0, 212, 255, 0.6);
  }
  50% {
    text-shadow: 0 0 55px rgba(41, 255, 138, 0.7);
  }
}

/* Responsive */

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-portrait {
    order: -1;
    margin-bottom: 24px;
  }

  .skills-dashboard {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
}

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

  .orbit-ring,
  .orbit-ring.ring-2 {
    display: none;
  }

  .radial {
    width: 140px;
    height: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-content,
  .intro-title,
  .orbit-ring,
  .orbit-ring.ring-2 {
    animation: none;
  }
}
