/* Import AudioWide from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Audiowide&display=swap');

html {
  background: #fff;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: #fff !important;
  color: #0a1f44;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes twinkle {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

@keyframes orbit {
  0% { transform: rotate(0deg) translateX(20px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(20px) rotate(-360deg); }
}

@keyframes pulseLine {
  0% { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 0; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* Cookie Consent */
#cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0057C2;
  color: #fff;
  padding: 1rem 2rem;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.5s ease-out;
}
#cookie-consent p {
  margin: 0;
  font-size: 0.9rem;
  max-width: 700px;
}
#cookie-consent a {
  color: #00A3E0;
  text-decoration: underline;
}
#cookie-consent a:hover {
  color: #fff;
}
#cookie-consent button {
  background: #00A3E0;
  color: #fff;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
#cookie-consent button:hover {
  background: #0083b0;
  transform: scale(1.05);
}
#cookie-consent button#decline-cookies {
  background: #4a4a4a;
}
#cookie-consent button#decline-cookies:hover {
  background: #333;
  transform: scale(1.05);
}
@media (max-width: 640px) {
  #cookie-consent {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  #cookie-consent button {
    width: 100%;
    max-width: 250px;
  }
}

/* Header */
header {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 50;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.logo-container {
  display: flex;
  align-items: center;
  font-family: 'AudioWide', sans-serif; /* Apply AudioWide font */
  font-weight: 700;
  font-size: 1.75rem;
  color: black;
  transition: transform 0.3s ease;
}
.logo-container:hover {
  transform: scale(1.05);
}
.logo-container img {
  width: 3rem;
  height: 3rem;
  margin-right: 0.75rem;
  object-fit: contain;
}
nav ul {
  display: flex;
  align-items: center;
}
nav ul li a {
  color: #0a1f44;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.2s ease;
  line-height: 1.5;
  display: inline-block;
  padding: 0.75rem 0;
}
nav ul li a:hover {
  color: #00A3E0;
  transform: translateY(-2px);
}
#mobile-menu-btn svg {
  stroke: #0057C2;
}
#mobile-menu {
  background: #fff;
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}
#mobile-menu a {
  color: #0a1f44;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.2s ease;
}
#mobile-menu a:hover {
  color: #00A3E0;
  transform: translateY(-2px);
}
@media (max-width: 640px) {
  .logo-container {
    font-family: 'AudioWide', sans-serif; /* Ensure AudioWide on mobile */
    font-size: 1.5rem;
  }
  .logo-container img {
    width: 2.5rem;
    height: 2.5rem;
    margin-right: 0.5rem;
  }
}

/* Customer Area and Logout Buttons */
.btn-customer-area {
  background: #0057C2 !important;
  color: #fff !important;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  border: none;
  transition: background 0.3s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  line-height: 1.5;
  vertical-align: middle;
}
.btn-customer-area:hover {
  background: #003087 !important;
  transform: scale(1.05);
}
.btn-customer-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}
.btn-customer-area:hover::before {
  left: 100%;
}

.btn-logout {
  background: #C8102E !important;
  color: #fff !important;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  transition: background 0.3s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.btn-logout:hover {
  background: #a00d24 !important;
  transform: scale(1.05);
}
.btn-logout::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}
.btn-logout:hover::before {
  left: 100%;
}

/* Hero Section with Parallax Starfield and Data Nodes */
.hero-section {
  background: linear-gradient(135deg, #0057C2, #00A3E0);
  color: #fff;
  padding: 4rem 1rem;
  text-align: center;
  border-radius: 12px;
  margin: 2rem 1rem;
  max-width: 1200px;
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.8s ease-out;
}
.hero-section .starfield {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero-section .starfield .star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  opacity: 0.7;
  animation: twinkle 2s infinite alternate;
}
.hero-section .starfield .star.layer1 {
  width: 1px;
  height: 1px;
  animation-duration: 3s;
}
.hero-section .starfield .star.layer2 {
  width: 2px;
  height: 2px;
  animation-duration: 2.5s;
}
.hero-section .starfield .star.layer3 {
  width: 3px;
  height: 3px;
  animation-duration: 2s;
}
.hero-section .star:nth-child(1) { top: 10%; left: 20%; }
.hero-section .star:nth-child(2) { top: 30%; left: 50%; }
.hero-section .star:nth-child(3) { top: 50%; left: 70%; }
.hero-section .star:nth-child(4) { top: 70%; left: 30%; }
.hero-section .star:nth-child(5) { top: 20%; left: 80%; }
.hero-section .star:nth-child(6) { top: 80%; left: 10%; }
.hero-section .star:nth-child(7) { top: 40%; left: 40%; }
.hero-section .star:nth-child(8) { top: 60%; left: 60%; }
.hero-section .data-nodes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero-section .data-node {
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: orbit 10s linear infinite;
}
.hero-section .data-node:nth-child(1) { top: 15%; left: 25%; animation-delay: 0s; }
.hero-section .data-node:nth-child(2) { top: 65%; left: 75%; animation-delay: 2s; }
.hero-section .data-node:nth-child(3) { top: 35%; left: 45%; animation-delay: 4s; }
.hero-section .connection-line {
  position: absolute;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1;
  stroke-dasharray: 100;
  animation: pulseLine 5s linear infinite;
}
.hero-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.hero-section h2 {
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
.hero-section p {
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
}
.hero-section .btn {
  background: #fff;
  color: #0057C2;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.2s ease;
  position: relative;
  z-index: 1;
}
.hero-section .btn:hover {
  background: #f0f0f0;
  transform: scale(1.05);
}
.hero-section .btn.secondary {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.hero-section .btn.secondary:hover {
  background: #fff;
  color: #0057C2;
  transform: scale(1.05);
}
@media (min-width: 640px) {
  .hero-section {
    padding: 4rem 2rem;
    margin: 2rem auto;
  }
  .hero-section h1 {
    font-size: 3rem;
  }
  .hero-section h2 {
    font-size: 2rem;
  }
  .hero-section p {
    font-size: 1.1rem;
  }
}

/* How It Works */
#how-it-works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 4rem 1rem;
  text-align: center;
  animation: fadeIn 0.8s ease-out;
  position: relative;
}
#how-it-works > div {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#how-it-works > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
#how-it-works > div > div.text-blue-500 {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: pulse 3s ease-in-out infinite;
}
#how-it-works h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0a1f44;
}
#how-it-works p {
  font-size: 0.95rem;
  color: #4a4a4a;
}
@media (min-width: 640px) {
  #how-it-works {
    margin: 4rem auto;
  }
}

/* Who It’s For */
.who-its-for {
  text-align: center;
  max-width: 1200px;
  margin: 4rem 1rem;
  animation: fadeIn 0.8s ease-out;
}
.who-its-for h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #0a1f44;
  margin-bottom: 1rem;
}
.who-its-for p {
  font-size: 1rem;
  color: #4a4a4a;
  max-width: 700px;
  margin: 0 auto 2rem;
}
.who-its-for ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  font-size: 1rem;
  color: #0057C2;
  font-weight: 500;
}
@media (min-width: 640px) {
  .who-its-for {
    margin: 4rem auto;
  }
  .who-its-for h2 {
    font-size: 2.5rem;
  }
  .who-its-for p {
    font-size: 1.1rem;
  }
}

/* Plans Section with Data Nodes */
#plans {
  max-width: 1200px;
  margin: 4rem 1rem;
  text-align: center;
  animation: fadeIn 0.8s ease-out;
  position: relative;
  overflow: hidden;
}
#plans .data-nodes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
#plans .data-node {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(0, 87, 194, 0.3);
  border-radius: 50%;
  animation: orbit 12s linear infinite;
}
#plans .data-node:nth-child(1) { top: 20%; left: 15%; animation-delay: 0s; }
#plans .data-node:nth-child(2) { top: 70%; left: 85%; animation-delay: 3s; }
#plans .data-node:nth-child(3) { top: 50%; left: 50%; animation-delay: 6s; }
#plans .connection-line {
  position: absolute;
  stroke: rgba(0, 87, 194, 0.2);
  stroke-width: 1;
  stroke-dasharray: 100;
  animation: pulseLine 6s linear infinite;
}
#plans h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #0a1f44;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
#plans p {
  font-size: 1rem;
  color: #4a4a4a;
  max-width: 700px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
}
#plans .grid > div {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}
#plans .grid > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
#plans .grid > div .popular-badge {
  background: #00A3E0;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  position: absolute;
  top: -1rem;
  right: 1rem;
}
#plans h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0a1f44;
}
#plans p.price {
  font-size: 1.5rem;
  font-weight: 500;
  color: #0057C2;
  margin-bottom: 0.5rem;
}
#plans p.description {
  font-size: 0.95rem;
  color: #4a4a4a;
  margin-bottom: 1.5rem;
}
#plans ul {
  text-align: left;
  color: #4a4a4a;
  margin-bottom: 2rem;
}
#plans ul li {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
#plans a {
  background: #0057C2;
  color: #fff;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.2s ease;
}
#plans a:hover {
  background: #003087;
  transform: scale(1.05);
}
@media (min-width: 640px) {
  #plans {
    margin: 4rem auto;
  }
  #plans h2 {
    font-size: 2.5rem;
  }
  #plans p {
    font-size: 1.1rem;
  }
}

/* Explore More */
.explore-more {
  text-align: center;
  max-width: 1200px;
  margin: 4rem 1rem;
  animation: fadeIn 0.8s ease-out;
}
.explore-more h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0a1f44;
  margin-bottom: 1rem;
}
.explore-more p {
  font-size: 1rem;
  color: #4a4a4a;
  max-width: 700px;
  margin: 0 auto 2rem;
}
.explore-more a {
  background: transparent;
  border: 2px solid #0057C2;
  color: #0057C2;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}
.explore-more a:hover {
  background: #0057C2;
  color: #fff;
  transform: scale(1.05);
}
@media (min-width: 640px) {
  .explore-more {
    margin: 4rem auto;
  }
  .explore-more p {
    font-size: 1.1rem;
  }
}

/* Footer */
footer {
  background: #0a1f44;
  color: #fff;
  font-size: 0.9rem;
  padding: 2rem 1rem;
  text-align: center;
  animation: fadeIn 0.8s ease-out;
}
footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
footer a {
  color: #00A3E0;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
}
footer a:hover {
  color: #fff;
  transform: translateY(-2px);
}
footer .logos {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
footer .logos img {
  height: 40px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
footer .logos img:hover {
  transform: scale(1.1);
}
@media (min-width: 640px) {
  footer {
    padding: 2rem;
  }
}

/* Partner Logos as Chips (Inspired by MudBlazor) */
.partner-chips {
  max-width: 1200px;
  margin: 0 auto;
}
.chip {
  display: inline-flex;
  align-items: center;
  background: #fff;
  padding: 0.5rem 1rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.chip-img {
  height: 30px;
  width: 100px;
  max-width: 100px;
  object-fit: contain;
}
.chip::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}
.chip:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
  background: linear-gradient(135deg, #00A3E0 0%, #0057C2 100%);
}
.chip:hover .chip-img {
  filter: brightness(0) invert(1);
}
.chip:hover::before {
  left: 100%;
}
@media (max-width: 640px) {
  .chip {
    padding: 0.5rem;
  }
  .chip-img {
    height: 25px;
    width: 80px;
    max-width: 80px;
  }
}

/* Accessibility for Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .star, .data-node, .connection-line, #how-it-works > div > div.text-blue-500 {
    animation: none;
  }
  .hero-section, #how-it-works, .who-its-for, #plans, .explore-more, footer {
    animation: none;
  }
  .chip::before {
    animation: none;
  }
  .chip:hover {
    transition: none;
  }
  .btn-customer-area::before,
  .btn-logout::before {
    transition: none;
  }
  .btn-customer-area:hover,
  .btn-logout:hover {
    transform: none;
  }
}