:root {
  --bg: #0a0a0f;
  --surface: rgba(15, 15, 25, 0.7);
  --primary: #00f3ff;
  --secondary: #ffaa00;
  --text: #e8e8f0;
  --text-muted: #8a8a9a;
  --glow: 0 0 15px var(--primary);
  --radius: 12px;
  --transition: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* Custom Cursor */
.cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition:
    width 0.2s,
    height 0.2s,
    background 0.3s;
  z-index: 9999;
}
/* hero section*/

header {
  background:
    linear-gradient(rgba(10, 10, 15, 0.75), rgba(10, 10, 15, 0.9)),
    url("/images/rooftopworking\ lvb.png");

  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.15);
  z-index: 0;
}

.header > * {
  position: relative;
  z-index: 1;
}

.cursor.hover {
  width: 32px;
  height: 32px;
  background: transparent;
  border: 2px solid var(--primary);
}

/* Background Grid */
.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background:
    radial-gradient(
      circle at var(--mx, 50%) var(--my, 50%),
      rgba(0, 243, 255, 0.08) 0%,
      transparent 40%
    ),
    linear-gradient(rgba(0, 243, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px);
  background-size:
    100% 100%,
    40px 40px,
    40px 40px;
  pointer-events: none;
  z-index: -1;
}

/* Navigation */
nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  backdrop-filter: blur(12px);
  padding: 14px 32px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 28px;
  align-items: center;
  z-index: 100;
  transition: var(--transition);
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

nav a:hover::after {
  width: 100%;
}

/*navbar logo*/

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

.logo {
  display: flex;
  align-items: center;
  gap: 5px;

  text-decoration: none;
  color: white;
  font-size: 1rem;
  font-weight: 700;
}

.lvbau-logo {
  display: inline-block;
}
.logo i {
  color: #2c9aff;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  margin-right: 6px;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: #eef5ff;
  font-weight: 500;
  transition: 0.2s;
  font-size: 1rem;
  letter-spacing: 0.5px;
  position: relative;
}
.nav-links a:after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #2c9aff;
  transition: 0.3s;
}
.nav-links a:hover:after {
  width: 100%;
}
.nav-links a:hover {
  color: #8cd4ff;
}

/* Hero */
header {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 700;
  line-height: 0.95;
  background: linear-gradient(135deg, var(--text) 40%, #1400ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.cta-btn {
  padding: 16px 40px;
  background: transparent;
  color: whitesmoke;
  border: 2px solid #1400ff;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
}

.cta-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 243, 255, 0.2),
    transparent
  );
  transition: left 0.6s;
}

.cta-btn:hover::before {
  left: 100%;
}

.cta-btn:hover {
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

/* Circuit Line Divider */
.circuit-divider {
  width: 80%;
  max-width: 1000px;
  height: 4px;
  margin: 6rem auto;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  position: relative;
  border-radius: 2px;
}

.circuit-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  transform: translateY(-50%);
  animation: flow 3s linear infinite;
  box-shadow: var(--glow);
}

@keyframes flow {
  0% {
    left: 0;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    left: calc(100% - 20px);
    opacity: 0;
  }
}

/* why us background*/

#why-us {
  position: relative;

  /* FULL WIDTH */
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);

  padding: 6rem 2rem;

  background:
    linear-gradient(rgba(10, 10, 15, 0.85), rgba(10, 10, 15, 0.9)),
    url("/images/whyusbackground.png");

  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}

/* Services */
section {
  padding: 4rem 2rem;
  max-width: 1500px;
  margin: 0 auto;
}

.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  margin-bottom: 3rem;
}

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

.service-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: conic-gradient(
    from var(--gradient-angle),
    transparent,
    rgba(0, 243, 255, 0.3),
    transparent
  );
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover::before {
  opacity: 1;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  to {
    --gradient-angle: 360deg;
  }
}

.service-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 2;
}

.service-card p {
  color: var(--text-muted);
  position: relative;
  z-index: 2;
}

.service-card .icon {
  width: 40px;
  height: 40px;
  background: rgba(0, 243, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  position: relative;
  z-index: 2;
}

/* Stats / About */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
  margin-top: 2rem;
}

.stat-item h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.5rem, 4vw, 4rem);
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: var(--text-muted);
}

/* Contact */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 18px;
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--glow);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
footer {
  text-align: center;
  padding: 4rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.footer-credit {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-credit a {
  color: #006a7a; /* darker neon blue (idle state) */
  text-decoration: none;
  transition: 0.25s ease;
}

.footer-credit a:hover {
  color: var(--primary); /* bright neon blue on hover */
  text-shadow: 0 0 10px var(--primary);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .cursor {
    display: none;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 12px 20px;
    gap: 16px;
  }

  nav a {
    font-size: 0.85rem;
  }

  .hero-title {
    font-size: clamp(2.8rem, 12vw, 5rem);
  }

  /* =========================
   MOBILE RESPONSIVE
========================= */
  @media (max-width: 768px) {
    body {
      cursor: auto;
    }

    .cursor {
      display: none;
    }

    /* NAVBAR */
    nav {
      width: calc(100% - 20px);
      top: 10px;
      padding: 12px 16px;
      border-radius: 18px;

      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 12px;
    }

    .logo {
      width: 100%;
      justify-content: center;
      margin-bottom: 6px;
    }

    .logo-img {
      height: 32px;
    }

    nav a {
      font-size: 0.82rem;
    }

    /* HERO */
    header {
      min-height: 100svh;
      padding: 7rem 1.2rem 3rem;
      background-attachment: scroll;
    }

    .hero-title {
      font-size: clamp(2.4rem, 14vw, 4.5rem);
      line-height: 1.05;
      margin-bottom: 1rem;
    }

    .hero-sub {
      font-size: 1rem;
      line-height: 1.5;
      max-width: 100%;
      margin-bottom: 2rem;
    }

    .cta-btn {
      width: 100%;
      max-width: 320px;
      padding: 14px 22px;
      font-size: 1rem;
    }

    /* SECTIONS */
    section {
      padding: 3rem 1.2rem;
    }

    .section-title {
      font-size: clamp(2rem, 9vw, 3rem);
      margin-bottom: 2rem;
    }

    /* SERVICES */
    .services-grid {
      grid-template-columns: 1fr;
      gap: 1.2rem;
    }

    .service-card {
      padding: 1.5rem;
    }

    .service-card h3 {
      font-size: 1.25rem;
    }

    /* WHY US BG FIX */
    #why-us {
      background-attachment: scroll;
      padding: 4rem 1.2rem;
    }

    /* STATS */
    .stats {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }

    .stat-item h2 {
      font-size: 2.8rem;
    }

    /* CONTACT */
    .contact-form {
      width: 100%;
    }

    .contact-form input,
    .contact-form textarea {
      font-size: 16px; /* prevents iOS zoom */
    }

    /* FOOTER */
    footer {
      padding: 3rem 1.2rem;
      font-size: 0.85rem;
    }

    /* DIVIDER */
    .circuit-divider {
      width: 92%;
      margin: 4rem auto;
    }

    /* PERFORMANCE */
    .grid-bg {
      background-size:
        100% 100%,
        24px 24px,
        24px 24px;
    }
  }

  /* EXTRA SMALL DEVICES */
  @media (max-width: 480px) {
    nav {
      gap: 10px;
    }

    nav a {
      font-size: 0.75rem;
    }

    .hero-title {
      font-size: 2.2rem;
    }

    .hero-sub {
      font-size: 0.95rem;
    }

    .service-card {
      padding: 1.2rem;
    }

    .section-title {
      font-size: 1.8rem;
    }
  }
}
