@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --background: hsl(0 0% 2%);
  --foreground: hsl(0 0% 95%);
  --card: hsl(0 0% 6% / 0.6);
  --muted: hsl(0 0% 12%);
  --muted-foreground: hsl(0 0% 60%);
  --border: hsl(0 0% 14% / 0.8);
  --neon-purple: hsl(270 100% 75%);
  --neon-blue: hsl(200 100% 60%);
  --neon-green: hsl(145 100% 55%);
  --reveal-duration: 950ms;
  --reveal-distance: 18px;
  --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6,
.brand {
  font-family: 'Orbitron', sans-serif;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.center {
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  transition: opacity var(--reveal-duration) var(--reveal-ease), transform var(--reveal-duration) var(--reveal-ease);
  transition-delay: var(--reveal-delay, 0ms);
}

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

.grid-bg {
  background-image:
    linear-gradient(hsl(270 100% 75% / 0.03) 1px, transparent 1px),
    linear-gradient(90deg, hsl(270 100% 75% / 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  transition: 220ms ease;
  padding: 1.25rem 0;
}

.site-header.scrolled {
  background: hsl(0 0% 2% / 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}

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

.brand {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

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

.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.desktop-nav a {
  color: var(--muted-foreground);
  font-size: 0.92rem;
}

.desktop-nav a:hover {
  color: var(--neon-purple);
}

.menu-toggle {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  border-radius: 0.6rem;
  padding: 0.45rem 0.8rem;
  font: inherit;
}

.mobile-nav {
  display: none;
  width: min(1120px, calc(100% - 2rem));
  margin: 0.8rem auto 0;
  background: hsl(0 0% 3% / 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  overflow: hidden;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 0.9rem 1rem;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

.mobile-nav a:hover {
  color: var(--foreground);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 5rem;
}

.overlay {
  position: absolute;
  inset: 0;
  background: var(--background);
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  animation: float 6s ease-in-out infinite;
}

.orb-purple {
  width: 16rem;
  height: 16rem;
  top: 25%;
  left: 20%;
  background: hsl(270 100% 75% / 0.12);
}

.orb-blue {
  width: 20rem;
  height: 20rem;
  bottom: 25%;
  right: 20%;
  background: hsl(200 100% 60% / 0.1);
  animation-delay: 1.3s;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-subtitle {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.78rem;
  color: var(--muted-foreground);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin: 0;
}

.gradient-text {
  background: linear-gradient(90deg, #ff2d55 0%, #ff8a00 16%, #ffe600 32%, #00ff85 48%, #00d4ff 64%, #7a5cff 80%, #ff2d55 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rgb-led-flow 8s linear infinite;
}

.hero-text {
  width: min(700px, 100%);
  margin: 1.15rem auto 1.8rem;
  color: var(--muted-foreground);
}

.hero-button {
  cursor: pointer;
  border: 0;
  color: var(--foreground);
  background: hsl(0 0% 0% / 0.8);
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 0.7rem;
  padding: 0.9rem 1.4rem;
}

.section {
  padding: 5.5rem 0;
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0;
}

.section-head p {
  color: var(--muted-foreground);
  max-width: 560px;
  margin: 0.8rem auto 0;
}

.glass-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  box-shadow: 0 10px 28px hsl(0 0% 0% / 0.35);
}

.gradient-border {
  position: relative;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-blue), var(--neon-green));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.bio-card {
  display: grid;
  gap: 1.2rem;
  padding: 1.2rem;
  margin-bottom: 2rem;
}

.profile-image-wrap {
  width: 170px;
  height: 170px;
  border-radius: 1rem;
  overflow: hidden;
  border: 2px solid var(--border);
}

.profile-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-card h3 {
  margin: 0 0 0.7rem;
}

.bio-card p {
  margin: 0;
  color: var(--muted-foreground);
}

.category {
  margin: 2rem 0 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
}

.category-purple {
  color: var(--neon-purple);
}

.category-green {
  color: var(--neon-green);
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.card-grid-3,
.card-grid-2 {
  grid-template-columns: 1fr;
}

.info-card,
.project-card,
.contact-card,
.tech-card {
  padding: 1.1rem;
}

.info-card h4,
.project-card h3 {
  margin: 0 0 0.45rem;
}

.info-card p,
.project-card p {
  margin: 0;
  color: var(--muted-foreground);
}

.project-card {
  display: block;
  transition: transform 0.2s ease;
}

.project-card:hover,
.contact-card:hover,
.tech-card:hover {
  transform: translateY(-2px);
}

.tags {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tags span {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: hsl(0 0% 12% / 0.65);
  color: var(--muted-foreground);
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.tech-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 120px;
}

.tech-main {
  min-height: 140px;
}

.tech-card img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin-bottom: 0.45rem;
}

.tech-main img {
  width: 54px;
  height: 54px;
}

.tech-card span {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  font-family: 'Orbitron', sans-serif;
}

.hardware-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.3rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
}

.badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--neon-green);
  box-shadow: 0 0 12px hsl(145 100% 55% / 0.8);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 4.5rem 0 3rem;
}

.footer h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.footer-text {
  color: var(--muted-foreground);
  margin: 0.8rem 0 2rem;
}

.contact-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 600px;
  margin: 0 auto 4.6rem;
}

.contact-card {
  min-height: 108px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: center;
  justify-content: center;
}

.contact-icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--muted-foreground);
  transition: color 0.25s ease, filter 0.25s ease;
}

.contact-card span {
  color: var(--muted-foreground);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  transition: color 0.25s ease;
}

.contact-card:hover span {
  color: var(--foreground);
}

.contact-linkedin:hover .contact-icon,
.contact-github:hover .contact-icon {
  color: #2563eb;
  filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.7));
}

.contact-whatsapp:hover .contact-icon {
  color: #22c55e;
  filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.7));
}

.contact-email:hover .contact-icon {
  color: #ef4444;
  filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.7));
}

.copyright {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.78rem;
}

.footer-bottom {
  margin-top: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.back-to-top {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.back-to-top:hover {
  color: var(--neon-purple);
}

@media (min-width: 768px) {
  .menu-toggle,
  .mobile-nav {
    display: none !important;
  }

  .desktop-nav {
    display: flex;
  }

  .bio-card {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1.6rem;
    padding: 1.6rem;
  }

  .card-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tech-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.1rem;
  }

  .contact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@keyframes rgb-led-flow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}

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

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

  * {
    animation: none !important;
    transition: none !important;
  }
}
