:root {
  --bg-primary: #040713;
  --bg-secondary: #0b1024;
  --accent: #22d3ee;
  --accent-2: #a855f7;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --panel: rgba(10, 15, 30, 0.75);
  --border: rgba(34, 211, 238, 0.35);
}

* { box-sizing: border-box; }

body {
  background: radial-gradient(circle at 18% 24%, rgba(88, 28, 135, 0.18), transparent 28%),
              radial-gradient(circle at 82% 12%, rgba(34, 211, 238, 0.22), transparent 30%),
              radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.12), transparent 38%),
              linear-gradient(135deg, #020617, #050c1c 55%, #0a122b);
  color: var(--text-main);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.08) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.45;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
  animation: driftGrid 28s linear infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: -20%;
  background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.08), transparent 35%),
              radial-gradient(circle at 80% 10%, rgba(168, 85, 247, 0.12), transparent 32%),
              radial-gradient(circle at 60% 80%, rgba(16, 185, 129, 0.16), transparent 32%);
  filter: blur(50px);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
  animation: glowPulse 18s ease-in-out infinite alternate;
}

main, header, footer, section, nav, article {
  position: relative;
  z-index: 1;
}

section {
  scroll-margin-top: 90px;
}

::selection {
  background: rgba(34, 211, 238, 0.35);
  color: #e2e8f0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.glass {
  background: linear-gradient(135deg, rgba(12, 20, 45, 0.92), rgba(8, 15, 30, 0.82));
  border: 1px solid var(--border);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45), 0 0 40px rgba(34, 211, 238, 0.08);
  backdrop-filter: blur(16px);
}

.cyber-card {
  border: 1px solid rgba(34, 211, 238, 0.25);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(168, 85, 247, 0.12);
  background: linear-gradient(145deg, rgba(8, 15, 30, 0.85), rgba(8, 18, 42, 0.72));
}

[class*="bg-slate-900/60"],
[class*="bg-slate-900/80"],
[class*="bg-slate-950/60"] {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.4s ease, border-color 0.3s ease;
}

[class*="bg-slate-900/60"]::before,
[class*="bg-slate-900/80"]::before,
[class*="bg-slate-950/60"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.08), transparent 35%),
              radial-gradient(circle at 80% 10%, rgba(168, 85, 247, 0.12), transparent 32%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

[class*="bg-slate-900/60"]::after,
[class*="bg-slate-900/80"]::after,
[class*="bg-slate-950/60"]::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.14), rgba(168, 85, 247, 0.08));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

[class*="bg-slate-900/60"]:hover,
[class*="bg-slate-900/80"]:hover,
[class*="bg-slate-950/60"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.55), 0 0 28px rgba(34, 211, 238, 0.18);
  border-color: rgba(34, 211, 238, 0.4);
}

[class*="bg-slate-900/60"]:hover::before,
[class*="bg-slate-900/80"]:hover::before,
[class*="bg-slate-950/60"]:hover::before,
[class*="bg-slate-900/60"]:hover::after,
[class*="bg-slate-900/80"]:hover::after,
[class*="bg-slate-950/60"]:hover::after {
  opacity: 1;
}

.neon-pill {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.15), rgba(168, 85, 247, 0.18));
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--text-main);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.18);
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.mobile-menu.active {
  max-height: 420px;
}

.back-to-top {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 40;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.glow-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.6), transparent);
}

.subtle-grid {
  background-image: linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -16px -16px;
}

.btn-neon {
  border: 1px solid rgba(34, 211, 238, 0.45);
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.35), 0 0 24px rgba(168, 85, 247, 0.18);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.btn-neon:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 12px 36px rgba(34, 211, 238, 0.45), 0 0 30px rgba(168, 85, 247, 0.24);
}

header {
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

header::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.6), transparent);
  opacity: 0.8;
}

nav a {
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.8), rgba(168, 85, 247, 0.8));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
  opacity: 0.85;
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.14), rgba(168, 85, 247, 0.14));
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: var(--text-main);
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 28px rgba(34, 211, 238, 0.18);
}

.headline {
  background: linear-gradient(120deg, #e0f2fe, #22d3ee, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

input,
textarea,
select {
  background: rgba(10, 15, 30, 0.75);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--text-main);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.14);
  transform: translateY(-1px);
}

form label {
  color: #cbd5e1;
  letter-spacing: 0.02em;
}

.accent-underline {
  position: relative;
  display: inline-block;
}

.accent-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 6px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.35) 0%, transparent 70%);
  opacity: 0.9;
}

.floating-shadow {
  position: relative;
  isolation: isolate;
}

.floating-shadow::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.18), transparent 55%);
  filter: blur(24px);
  z-index: -1;
  opacity: 0.8;
}

.timeline-line {
  position: relative;
  padding-left: 2rem;
}

.timeline-line::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(34, 211, 238, 0.7), rgba(168, 85, 247, 0.7));
  opacity: 0.8;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22d3ee, #a855f7);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.4);
  position: absolute;
  left: 0.4rem;
}

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

.card-grid > * {
  border-radius: 18px;
}

.divider-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.6), transparent);
  opacity: 0.8;
}

.pill {
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.1);
  color: var(--text-main);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.shadow-lift {
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.shadow-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 24px rgba(34, 211, 238, 0.18);
}

.carousel-container::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 1.2rem;
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.25), rgba(168, 85, 247, 0.25));
  filter: blur(32px);
  z-index: -1;
  opacity: 0.65;
}

.carousel-container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  border: 1px solid rgba(34, 211, 238, 0.25);
  pointer-events: none;
  opacity: 0.75;
}

.carousel-dots .carousel-dot {
  box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.08);
}

.carousel-dots .carousel-dot.active {
  box-shadow: 0 0 0 8px rgba(34, 211, 238, 0.12), 0 0 18px rgba(168, 85, 247, 0.18);
}

.badge-matrix {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 12px;
  background: rgba(4, 7, 19, 0.7);
  border: 1px solid rgba(34, 211, 238, 0.35);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

@keyframes driftGrid {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-24px, -18px, 0); }
}

@keyframes glowPulse {
  from { opacity: 0.65; transform: scale(1); }
  to { opacity: 0.95; transform: scale(1.04); }
}
