/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: #000;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: #fff;
  text-decoration: none;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 3rem;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 70px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  background: #000;
}

#hero-canvas,
#contact-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  z-index: 2;
  animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

.hero-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.008) 2px,
    rgba(255, 255, 255, 0.008) 4px
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 10;
}

.scroll-indicator span {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.3;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.7; transform: scaleY(1.3); transform-origin: top; }
}

.hero-logo {
  max-width: 280px;
  width: 60%;
  height: auto;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  opacity: 0.6;
  margin-bottom: 2.5rem;
  letter-spacing: 0.04em;
}

/* ===== Button ===== */
.btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.btn:hover {
  background: #fff;
  color: #000;
}

/* ===== Section Shared ===== */
.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  text-align: center;
  font-weight: 300;
  opacity: 0.5;
  font-size: 1rem;
  margin-bottom: 3.5rem;
  letter-spacing: 0.02em;
}

/* ===== Results ===== */
.results {
  padding: 7rem 3rem;
  background: #000;
}

/* Carousel */
.carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.5rem 0 1.5rem;
  cursor: grab;
}

.carousel-track:active {
  cursor: grabbing;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.result-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  overflow: hidden;
  transition: transform 0.3s;
}

.result-card:hover {
  transform: translateY(-4px);
}

/* Carousel Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.carousel-btn--left {
  left: -24px;
}

.carousel-btn--right {
  right: -24px;
}

.result-card img {
  max-height: 400px;
  width: auto;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* ===== Contact ===== */
.contact {
  padding: 7rem 3rem;
  background: #0a0a0a;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.contact::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.08) 50%, transparent 50%),
    radial-gradient(1px 1px at 80% 30%, rgba(255,255,255,0.06) 50%, transparent 50%),
    radial-gradient(1px 1px at 30% 70%, rgba(255,255,255,0.05) 50%, transparent 50%),
    radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.07) 50%, transparent 50%),
    radial-gradient(1px 1px at 50% 50%, rgba(255,255,255,0.04) 50%, transparent 50%),
    radial-gradient(1px 1px at 90% 60%, rgba(255,255,255,0.06) 50%, transparent 50%),
    radial-gradient(1px 1px at 20% 90%, rgba(255,255,255,0.05) 50%, transparent 50%),
    radial-gradient(1px 1px at 60% 15%, rgba(255,255,255,0.07) 50%, transparent 50%);
  pointer-events: none;
}

.contact .section-title,
.contact .section-subtitle,
.contact .whatsapp-btn {
  position: relative;
  z-index: 1;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 2.5rem;
  background: #25D366;
  color: #fff;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.3s, transform 0.3s;
  margin-top: 2rem;
  border-radius: 4px;
}

.whatsapp-btn:hover {
  background: #1ebe5a;
  transform: translateY(-2px);
  border-color: transparent;
}

/* ===== Footer ===== */
.footer {
  padding: 2.5rem 3rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 300;
  opacity: 0.3;
  letter-spacing: 0.06em;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===== Scroll Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-title {
    letter-spacing: 0.1em;
  }

  .results {
    padding: 5rem 1.5rem;
  }

  .result-card {
    flex: 0 0 300px;
  }

  .carousel-btn--left {
    left: 0.5rem;
  }

  .carousel-btn--right {
    right: 0.5rem;
  }

  .contact {
    padding: 5rem 1.5rem;
  }

  .form-row {
    flex-direction: column;
  }
}
