@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  background: radial-gradient(circle at top, #031027 0%, #000510 100%);
  color: #e2f2ff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* ---------- HEADER ---------- */
#home.hero {
  min-height: 100vh; /* Full viewport height */
  height: 100vh; /* Default full height */
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px rgba(0, 204, 255, 0.25);
  position: sticky;
  top: 0;
  z-index: 1200;
}

header h1 {
  font-size: 1.8rem;
  color: #00c6ff;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(0, 200, 255, 0.5);
}

nav a {
  color: #a5d8ff;
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

nav a:hover {
  color: #00c6ff;
  transform: translateY(-2px);
}

/* ---------- HERO SECTION ---------- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5rem 2rem;
  margin: 1rem;
  border-radius: 20px;
  background: linear-gradient(
    120deg,
    rgba(0, 15, 35, 0.95),
    rgba(0, 40, 70, 0.9)
  );
  box-shadow: 0 0 40px rgba(0, 204, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    -45deg,
    rgba(0, 204, 255, 0.15),
    rgba(0, 255, 156, 0.15),
    rgba(0, 204, 255, 0.15)
  );
  background-size: 400% 400%;
  animation: heroGradient 18s ease infinite;
  z-index: 0;
  filter: blur(60px);
}

@keyframes heroGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  animation: fadeInUp 1.2s ease forwards;
  opacity: 0;
  width: 100%;
}

.hero-content h2 {
  font-size: 2.4rem;
  color: #00c6ff;
  margin-bottom: 1rem;
  text-shadow: 0 0 15px rgba(0, 204, 255, 0.4);
}

.hero-content p {
  font-size: 1.05rem;
  color: #a5d8ff;
  margin-bottom: 2rem;
  line-height: 1.7;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- PARTICLE BACKGROUND ---------- */
#particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* ---------- CTA BUTTON ---------- */
.cta-btn {
  background: linear-gradient(90deg, #006eff, #00c6ff);
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(0, 204, 255, 0.5);
}

/* ---------- SECTION HEADER ---------- */
.section-header {
  text-align: center;
  margin: 4rem 2rem 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  color: #00c6ff;
  font-size: 2rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(0, 204, 255, 0.4);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  display: block;
  height: 2px;
  width: 60px;
  background: linear-gradient(90deg, #00c6ff, #00ffb3);
  margin: 0.6rem auto 0;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
  animation: glowLine 3s ease-in-out infinite alternate;
}

@keyframes glowLine {
  from {
    width: 50px;
    opacity: 0.7;
  }
  to {
    width: 80px;
    opacity: 1;
  }
}

.section-header p {
  color: #a5d8ff;
  font-size: 1rem;
  margin-top: 1rem;
  line-height: 1.6;
}

/* ---------- FEATURES / TOOLS ---------- */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 2rem;
}

.feature-card {
  background: rgba(0, 204, 255, 0.05);
  border: 1px solid rgba(0, 204, 255, 0.2);
  border-radius: 15px;
  padding: 2rem;
  flex: 1 1 250px;
  max-width: 300px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(0, 204, 255, 0.4);
}

.feature-card h3 {
  color: #00c6ff;
  margin-bottom: 1rem;
}

/* ---------- SOLUTIONS ---------- */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 4rem;
}

.solution-card {
  background: rgba(0, 200, 255, 0.05);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(0, 200, 255, 0.4);
}

.solution-card h3 {
  color: #00c6ff;
  margin-bottom: 1rem;
}

/* ---------- CONTACT FORM ---------- */
.contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 500px;
  margin: 2rem auto 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 204, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: #e2f2ff;
  outline: none;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #00c6ff;
  box-shadow: 0 0 8px rgba(0, 204, 255, 0.3);
}

/* ---------- SCAN ACTIVE ---------- */
.scan-active {
  position: absolute;
  bottom: 100px; /* was 30px — lifted higher into visible area */
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: #00c6ff;
  text-shadow: 0 0 15px rgba(0, 204, 255, 0.7);
  opacity: 0.95;
  user-select: none;
  z-index: 3;
  animation: scanPulse 4s ease-in-out infinite;
}

@keyframes scanPulse {
  0% {
    opacity: 0.7;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
  }
  100% {
    opacity: 0.7;
    transform: translateX(-50%) scale(1);
  }
}

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
  color: #6ba7ff;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  margin-top: auto;
}

footer strong {
  color: #00c6ff;
}

footer a {
  color: #00c6ff;
  text-decoration: underline;
}

/* ---------- RESPONSIVE MENU ---------- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1300;
}

.menu-toggle span {
  display: block;
  height: 3px;
  background-color: #00c6ff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(0, 204, 255, 0.2);
    box-shadow: 8px 0 25px rgba(0, 204, 255, 0.1);
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    z-index: 1200;
  }

  nav.open {
    transform: translateX(0);
  }

  nav a {
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 600;
  }
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

nav.open ~ .menu-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- FORM STATUS MESSAGES ---------- */
.form-status {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0;
  transition: all 0.4s ease;
}

.form-status.success {
  color: #00ffb3;
  text-shadow: 0 0 10px rgba(0, 255, 156, 0.6);
  opacity: 1;
}

.form-status.error {
  color: #ff4c4c;
  text-shadow: 0 0 8px rgba(255, 76, 76, 0.5);
  opacity: 1;
}

/* --- LOGO --- */
.logo img {
  height: 40px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(0, 204, 255, 0.6));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 12px rgba(0, 255, 180, 0.8));
}
