﻿:root {
  --bg-0: #03050a;
  --bg-1: #050812;
  --bg-2: #0a1630;
  --bg-3: #12284f;
  --text: #ecf5ff;
  --muted: #9ab2cf;
  --line: rgba(145, 196, 255, 0.2);
  --neon-a: #39ccff;
  --neon-b: #77f0ff;
  --neon-c: #3d8bff;
  --success-a: #15c287;
  --success-b: #35f2a6;
  --glass: rgba(10, 19, 37, 0.58);
  --glass-strong: rgba(8, 15, 31, 0.84);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.48);
  --radius: 22px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 8% 12%, #173a7b 0%, transparent 28%),
    radial-gradient(circle at 90% 18%, #14566f 0%, transparent 30%),
    linear-gradient(130deg, var(--bg-0), var(--bg-1), var(--bg-2));
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -5;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -4;
  background-image: linear-gradient(rgba(84, 149, 230, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 149, 230, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at center, black 55%, transparent 100%);
  pointer-events: none;
}

.bg-orb {
  position: fixed;
  width: 36vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(58px);
  z-index: -3;
  opacity: 0.4;
  pointer-events: none;
}

.orb-a {
  top: -12vmax;
  left: -10vmax;
  background: radial-gradient(circle, rgba(80, 172, 255, 0.9) 0%, rgba(80, 172, 255, 0) 65%);
  animation: driftA 18s linear infinite alternate;
}

.orb-b {
  bottom: -14vmax;
  right: -12vmax;
  background: radial-gradient(circle, rgba(40, 121, 255, 0.85) 0%, rgba(40, 121, 255, 0) 65%);
  animation: driftB 22s linear infinite alternate;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  z-index: 130;
  background: linear-gradient(90deg, var(--neon-a), var(--neon-b));
  box-shadow: 0 0 14px rgba(73, 210, 255, 0.85);
}

.glass {
  background: linear-gradient(130deg, rgba(11, 20, 39, 0.68), rgba(8, 17, 35, 0.56));
  border: 1px solid rgba(157, 212, 255, 0.24);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.header {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1140px, 92%);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 120;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-family: "Orbitron", "Space Grotesk", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(149, 218, 255, 0.5);
  box-shadow: 0 0 16px rgba(57, 204, 255, 0.35);
}

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

.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.28s ease, background-color 0.28s ease, box-shadow 0.28s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a.active {
  color: #ecfaff;
  background: rgba(36, 95, 171, 0.34);
  box-shadow: inset 0 0 0 1px rgba(131, 210, 255, 0.38), 0 0 20px rgba(57, 204, 255, 0.22);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border: 1px solid rgba(157, 212, 255, 0.35);
  border-radius: 12px;
  background: rgba(6, 13, 25, 0.84);
  cursor: pointer;
  padding: 9px;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  height: 3px;
  border-radius: 4px;
  background: #def3ff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

main {
  width: min(1140px, 92%);
  margin: 0 auto;
  padding: 106px 0 72px;
  display: grid;
  gap: 36px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  gap: 24px;
  align-items: stretch;
}

.hero-image-wrap {
  padding: 12px;
  position: relative;
  overflow: hidden;
}

.hero-image-wrap::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1px solid rgba(125, 211, 255, 0.35);
  pointer-events: none;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  min-height: 360px;
  filter: saturate(1.12) contrast(1.06);
}

.hero-badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: rgba(0, 0, 0, 0.56);
  border: 1px solid rgba(126, 214, 255, 0.4);
  color: #c7eeff;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 8px 14px;
  backdrop-filter: blur(8px);
}

.hero-content {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #8eb4de;
  font-size: 0.78rem;
}

h1,
h2,
h3,
.brand {
  margin: 0;
  font-family: "Orbitron", "Space Grotesk", sans-serif;
}

h1 {
  margin-top: 10px;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: 0.5px;
}

h2 {
  font-size: clamp(1.45rem, 3.1vw, 2.1rem);
}

p {
  margin: 0;
}

.typed-line {
  margin-top: 12px;
  min-height: 1.85rem;
  color: #b4dcff;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
}

.caret {
  color: var(--neon-a);
  animation: blink 0.82s steps(1) infinite;
}

.terminal-card {
  margin-top: 16px;
  border: 1px solid rgba(119, 197, 255, 0.3);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(3, 8, 16, 0.84);
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(108, 175, 228, 0.28);
  background: rgba(9, 18, 36, 0.85);
}

.terminal-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-top span:nth-child(1) { background: #ff6f7d; }
.terminal-top span:nth-child(2) { background: #ffd46a; }
.terminal-top span:nth-child(3) { background: #53f7c5; }

.terminal-top p {
  margin-left: auto;
  font-size: 0.76rem;
  color: #80aacd;
}

.terminal-card code {
  display: block;
  padding: 12px;
  font-family: "Consolas", "Fira Code", monospace;
  font-size: 0.9rem;
  line-height: 1.55;
}

.terminal-card .line {
  display: block;
  color: #97c6f0;
}

.terminal-card .line b {
  color: var(--neon-b);
}

.hero-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.btn.primary {
  color: #04182d;
  background: linear-gradient(90deg, var(--neon-a), var(--neon-b));
  box-shadow: 0 0 24px rgba(57, 204, 255, 0.44);
}

.btn.secondary {
  color: var(--text);
  border: 1px solid rgba(153, 212, 255, 0.36);
  background: rgba(7, 15, 29, 0.68);
}

.hero-stats {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stat {
  background: rgba(5, 15, 31, 0.72);
  border: 1px solid rgba(130, 198, 255, 0.26);
  border-radius: 14px;
  padding: 12px;
}

.stat h3 {
  font-size: 1.05rem;
  color: #d8f2ff;
}

.stat p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.section {
  padding: 24px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--muted);
  max-width: 60ch;
  font-size: 0.95rem;
}

.skills-grid,
.services-grid {
  display: grid;
  gap: 14px;
}

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

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

.card {
  padding: 16px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  background: linear-gradient(165deg, rgba(10, 20, 40, 0.86), rgba(8, 16, 32, 0.74));
  border: 1px solid rgba(121, 196, 255, 0.26);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: -45% 35% 35% -45%;
  background: radial-gradient(circle, rgba(88, 202, 255, 0.32), transparent 66%);
  transform: rotate(15deg);
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -45px -45px auto;
  width: 95px;
  height: 95px;
  border-radius: 50%;
  border: 1px solid rgba(116, 203, 255, 0.3);
  opacity: 0.52;
}

.card h3 {
  font-size: 1.02rem;
}

.card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.42;
}

.card:hover {
  transform: translateY(-7px) scale(1.015);
  border-color: rgba(129, 220, 255, 0.7);
  box-shadow: 0 0 30px rgba(57, 204, 255, 0.25), 0 12px 30px rgba(0, 0, 0, 0.36);
}

.contact {
  text-align: center;
}

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

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 14px;
  border-radius: 999px;
  padding: 0 24px;
  color: #eafff7;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(90deg, var(--success-a), var(--success-b));
  border: 1px solid rgba(104, 255, 204, 0.5);
  box-shadow: 0 0 0 0 rgba(34, 224, 162, 0.5);
  animation: pulse 1.95s ease infinite;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 150;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: #a9ecff;
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(136, 222, 255, 0.7);
  box-shadow: 0 0 16px rgba(57, 204, 255, 0.4);
}

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

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

@media (max-width: 768px) {
  .header {
    top: 8px;
    width: 95%;
  }

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

  .nav-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    background: var(--glass-strong);
    border: 1px solid rgba(144, 210, 255, 0.3);
    border-radius: 14px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav-list.open {
    max-height: 320px;
  }

  .nav-list a {
    min-height: 48px;
    border-radius: 0;
    justify-content: start;
    padding: 0 16px;
  }

  main {
    width: 94%;
    gap: 26px;
    padding-top: 84px;
    padding-bottom: calc(34px + var(--safe-bottom));
  }

  .hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .hero-content {
    padding: 20px;
  }

  .hero-image {
    min-height: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 20px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

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

  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

@media (max-width: 480px) {
  body {
    background: radial-gradient(circle at 50% -20%, #1b3c78 0%, transparent 40%),
      linear-gradient(165deg, #04060d, #071127 40%, #0b1a38 100%);
  }

  .header {
    top: 6px;
    padding: 9px 10px;
    backdrop-filter: blur(14px);
  }

  .brand {
    font-size: 0.92rem;
  }

  .brand-logo {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  main {
    width: 94%;
    padding-top: 78px;
    gap: 20px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-image-wrap,
  .hero-content,
  .section {
    padding: 16px;
  }

  .hero-image {
    min-height: 250px;
    max-height: 320px;
  }

  h1 {
    font-size: clamp(1.72rem, 9vw, 2.05rem);
  }

  .typed-line {
    font-size: 0.98rem;
    min-height: 1.58rem;
  }

  .terminal-card code {
    font-size: 0.82rem;
    line-height: 1.52;
  }

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

  .btn,
  .whatsapp-btn {
    width: 100%;
    min-height: 50px;
    font-size: 0.98rem;
  }

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

  .card {
    padding: 14px;
  }

  .card h3 {
    font-size: 1rem;
  }

  .card p,
  #about p,
  .section-head p {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .scroll-progress {
    height: 2.5px;
  }

  .bg-orb {
    opacity: 0.25;
    filter: blur(64px);
  }
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: 1fr 1.2fr;
  }

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

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

  .card:hover {
    transform: translateY(-8px) scale(1.03) rotateX(4deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

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

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 224, 162, 0.53);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(34, 224, 162, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 224, 162, 0);
  }
}

@keyframes driftA {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(6vmax, 5vmax) scale(1.08);
  }
}

@keyframes driftB {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-7vmax, -6vmax) scale(1.12);
  }
}
