/* ===========================
   NEON OCEAN
   =========================== */

:root {
  --bg: #030712;
  --bg2: #071622;
  --bg3: #0b1b2f;

  --cyan: #00d4ff;
  --green: #00ffa3;
  --blue: #4fc3ff;

  --text: #f4fdff;
  --muted: #9fb4c9;

  --glass: rgba(8, 20, 35, 0.58);
  --border: rgba(130, 220, 255, 0.14);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

  /* Disable text selection */

  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, sans-serif;

  background: radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.08), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(0, 255, 163, 0.06), transparent 35%),
    linear-gradient(180deg, var(--bg), var(--bg2), var(--bg3));

  color: var(--text);

  overflow-x: hidden;

  min-height: 100vh;
}

canvas {
  position: fixed;

  inset: 0;

  width: 100%;

  height: 100%;

  pointer-events: none;
}

#stars {
  z-index: -6;
}

#particles {
  z-index: -5;
}

.mouse-light {
  position: fixed;

  width: 500px;

  height: 500px;

  border-radius: 50%;

  pointer-events: none;

  background: radial-gradient(circle, rgba(0, 212, 255, 0.18), transparent 70%);

  transform: translate(-50%, -50%);

  mix-blend-mode: screen;

  z-index: -3;

  transition:
    left 0.05s linear,
    top 0.05s linear;
}

.aurora {
  position: fixed;

  width: 900px;

  height: 900px;

  filter: blur(120px);

  border-radius: 50%;

  opacity: 0.22;

  animation: float 20s ease-in-out infinite alternate;

  pointer-events: none;
}

.aurora1 {
  left: -250px;

  top: -300px;

  background: #00d4ff;
}

.aurora2 {
  right: -300px;

  bottom: -300px;

  background: #00ffa3;

  animation-duration: 28s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(140px, 80px) scale(1.3);
  }
}

.grid {
  position: fixed;

  left: 0;

  right: 0;

  bottom: -20vh;

  height: 75vh;

  perspective: 900px;

  overflow: hidden;

  z-index: -4;
}

.grid::before {
  content: '';

  position: absolute;

  inset: 0;

  background-image: linear-gradient(
      rgba(0, 255, 163, 0.18) 1px,

      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(0, 212, 255, 0.18) 1px,

      transparent 1px
    );

  background-size: 70px 70px;

  transform: rotateX(82deg) scale(2);

  transform-origin: bottom;

  animation: gridMove 14s linear infinite;
}

@keyframes gridMove {
  0% {
    background-position:
      0 0,
      0 0;
  }

  100% {
    background-position:
      0 70px,
      70px 0;
  }
}

.hero {
  min-height: 100vh;

  display: flex;

  justify-content: center;

  align-items: center;

  padding: 60px;

  text-align: center;
}

.hero-content {
  max-width: 900px;

  z-index: 10;
}

.badge {
  display: inline-block;

  padding: 10px 18px;

  border-radius: 999px;

  border: 1px solid var(--border);

  background: rgba(255, 255, 255, 0.04);

  backdrop-filter: blur(14px);

  color: var(--cyan);

  margin-bottom: 30px;

  letter-spacing: 2px;

  font-size: 0.8rem;
}

.hero h1 {
  font-size: clamp(4rem, 9vw, 7rem);

  font-weight: 800;

  line-height: 1;

  margin-bottom: 25px;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--cyan), white, var(--green));

  -webkit-background-clip: text;

  color: transparent;
}

.hero p {
  max-width: 700px;

  margin: auto;

  font-size: 1.2rem;

  line-height: 1.9;

  color: var(--muted);
}

.button {
  display: inline-block;

  margin-top: 40px;

  padding: 18px 42px;

  border-radius: 999px;

  text-decoration: none;

  color: white;

  font-weight: 600;

  background: linear-gradient(135deg, var(--cyan), var(--green));

  box-shadow:
    0 0 20px rgba(0, 212, 255, 0.35),
    0 0 50px rgba(0, 255, 163, 0.18);

  transition: 0.35s;
}

.button:hover {
  transform: translateY(-5px) scale(1.04);

  box-shadow:
    0 0 40px rgba(0, 212, 255, 0.6),
    0 0 90px rgba(0, 255, 163, 0.35);
}

/* ============================================
   VIDEO SECTION
============================================ */

#video {
  padding: 120px 30px;

  display: flex;

  justify-content: center;

  align-items: center;
}

.glass {
  position: relative;

  width: min(1200px, 90vw);

  padding: 24px;

  border-radius: 30px;

  background: rgba(8, 20, 35, 0.55);

  backdrop-filter: blur(24px);

  border: 1px solid rgba(255, 255, 255, 0.08);

  overflow: hidden;

  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(0, 212, 255, 0.08);
}

/* Animated glowing border */

.glass::before {
  content: '';

  position: absolute;

  inset: -2px;

  padding: 2px;

  border-radius: 32px;

  background: linear-gradient(90deg, #00d4ff, #00ffa3, #4fc3ff, #00d4ff);

  background-size: 300%;

  animation: borderFlow 8s linear infinite;

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

  -webkit-mask-composite: xor;

  mask-composite: exclude;

  pointer-events: none;
}

@keyframes borderFlow {
  0% {
    background-position: 0%;
  }

  100% {
    background-position: 300%;
  }
}

.video-wrapper {
  position: relative;

  padding-top: 56.25%;

  overflow: hidden;

  border-radius: 20px;
}

.video-wrapper iframe {
  position: absolute;

  inset: 0;

  width: 100%;

  height: 100%;

  border: 0;

  transition: transform 0.5s;
}

.glass:hover iframe {
  transform: scale(1.02);
}

/* ============================================
   FLOATING LIGHTS
============================================ */

body::before {
  content: '';

  position: fixed;

  width: 250px;

  height: 250px;

  left: 8%;

  top: 65%;

  border-radius: 50%;

  background: rgba(0, 212, 255, 0.08);

  filter: blur(90px);

  animation: orb1 12s ease-in-out infinite alternate;

  z-index: -3;
}

body::after {
  content: '';

  position: fixed;

  width: 280px;

  height: 280px;

  right: 10%;

  top: 20%;

  border-radius: 50%;

  background: rgba(0, 255, 163, 0.08);

  filter: blur(90px);

  animation: orb2 16s ease-in-out infinite alternate;

  z-index: -3;
}

@keyframes orb1 {
  from {
    transform: translateY(0) scale(1);
  }

  to {
    transform: translateY(-80px) scale(1.2);
  }
}

@keyframes orb2 {
  from {
    transform: translateY(0) scale(1);
  }

  to {
    transform: translateY(100px) scale(1.15);
  }
}

footer {
  padding: 70px;

  text-align: center;

  color: #6e8da7;

  font-size: 0.95rem;

  letter-spacing: 1px;
}

.hero-content,
.glass {
  opacity: 0;

  transform: translateY(50px);

  animation: fadeUp 1.2s forwards;
}

.glass {
  animation-delay: 0.3s;
}

@keyframes fadeUp {
  to {
    opacity: 1;

    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 40px 25px;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .hero p {
    font-size: 1rem;
  }

  #video {
    padding: 80px 20px;
  }

  .glass {
    padding: 16px;

    border-radius: 20px;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 3rem;
  }

  .button {
    padding: 15px 28px;
  }

  .badge {
    font-size: 0.7rem;
  }
}

.glass {
  transform-style: preserve-3d;

  transition: transform 0.2s ease;

  will-change: transform;
}

.hero {
  transition: transform 0.15s linear;
}

.video-wrapper {
  overflow: hidden;
}

.video-wrapper iframe {
  pointer-events: auto;
}

/* ==========================================================
   MOBILE EFFECT SCALING
   Keeps desktop look while preventing visual compression
========================================================== */

@media (max-width: 768px) {
  .mouse-light {
    width: 220px;
    height: 220px;
    opacity: 0.45;
  }

  .aurora {
    width: 520px;
    height: 520px;
    filter: blur(80px);
    opacity: 0.15;
  }

  .aurora1 {
    left: -180px;
    top: -180px;
  }

  .aurora2 {
    right: -180px;
    bottom: -180px;
  }

  .grid {
    height: 60vh;
  }

  .grid::before {
    background-size: 100px 100px;
    transform: rotateX(82deg) scale(2.3);
  }

  body::before,
  body::after {
    width: 170px;
    height: 170px;
    filter: blur(70px);
    opacity: 0.7;
  }
}
