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

body {
  font-family: 'Inter', sans-serif;
  background-color: #f8f9fa;
  min-height: 100vh;
  padding: 1rem;
}

/* Top Frame (Logo, Navigation, Burger Menu) */
.top-frame {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Space items out: left, center, right */
  background-color: #201f40; /* Adjust color to match your logo */
  padding: 10px 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 1000;
}

/* Logo on the Left */
.logo-placeholder {
  flex: 0 0 auto; /* Do not grow */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Navigation Menu in the Middle */
.top-menu {
  flex: 1;             /* Take up available space */
  text-align: center;  /* Center the content */
}
.top-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-block; /* Inline-block for horizontal centering */
}
.top-menu ul li {
  display: inline;
  margin: 0 15px;
}
.top-menu ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}
.top-menu ul li a:hover {
  text-decoration: underline;
}

/* Burger Menu on the Right */
.burger-menu {
  flex: 0 0 auto; /* Do not grow */
  position: relative;
}
.burger-icon {
  font-size: 20px;
  cursor: pointer;
  color: #fff;
  background-color: transparent;
  border: none;
}
.menu-items {
  display: none; /* Hidden by default */
  position: absolute;
  right: 0;
  top: 30px; /* Adjust based on burger icon height */
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  z-index: 1000;
  border-radius: 6px;
}
.menu-items button {
  display: block;
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  text-align: center;
  background-color: #153b65;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s ease;
}
.menu-items button:hover {
  background-color: #ddd;
}

/* Container (Login / Register Forms) */
.container {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  margin-top: 80px; /* Space below the fixed tobar */
}
.container.hidden {
  display: none;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}
input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}
input:focus {
  border-color: #007bff;
  outline: none;
}
button {
  width: fit-content;
  padding: 0.75rem;
  background-color: #007bff;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
button:hover {
  background-color: #0056b3;
}
p {
  margin-top: 1rem;
  text-align: center;
  color: #898282;
}
a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}
a:hover {
  text-decoration: underline;
}
.error {
  border: 1px solid red;
}
.error-message {
  color: red;
  font-size: 0.875rem;
}

.menu-items button:hover {
    background-color: #ddd;
}

.shield-animation {
  width: 100px;
  height: 100px;
  position: relative;
  margin: 1rem auto;
}

.shield {
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%233b82f6"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4z"/></svg>');
  animation: shieldFloat 3s ease-in-out infinite;
}


#contactForm input,
#contactForm textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.submit-btn {
    background-color: #007bff;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

.loading-spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes shieldFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(3deg); }
  75% { transform: translateY(10px) rotate(-3deg); }
}

.glow {
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(59,130,246,0.4) 0%, rgba(59,130,246,0) 70%);
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.2); }
}


@media (max-width: 768px) {
  .features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
.top-menu {
    display: none;
}
  .hero-section {
    margin-top: 80px; /* Prevent overlapping */
    padding: 2rem 1rem; /* Adjust padding for smaller screens */
  }

  .hero-section h1 {
    font-size: 1.8rem; /* Slightly smaller for better fit */
  }

  .ai-engine-visual {
    width: 100%; /* Make it full-width */
  }
}
@media (min-width: 1025px) {
  .hero-section {
    padding: 6rem 4rem;  /* Increase padding for better spacing */
    text-align: center;
  }

  .hero-section h1 {
    font-size: 3rem; /* Slightly bigger for PC screens */
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr); /* Ensure 3 columns on large screens */
    gap: 2.5rem; /* Increase spacing */
    max-width: 1200px;
    margin: auto;
  }

  .ai-engine-visual {
    width: 60%; /* Reduce width for better alignment */
    margin: 3rem auto;
  }

  .cta-button {
    font-size: 1.2rem;
    padding: 1rem 2.5rem; /* Make CTA button larger */
  }
}

.hero-section {
      padding: 4rem 2rem;
      text-align: center;
      background: linear-gradient(135deg, #1a365d 0%, #153b65 100%);
      color: white;
      position: relative;
      overflow: hidden;
      margin-top: 80px;
    }

    .floating-shield {
      width: 200px;
      margin: 2rem auto;
      animation: float 3s ease-in-out infinite;
    }

    @keyframes float {
      0% { transform: translateY(0px); }
      50% { transform: translateY(-20px); }
      100% { transform: translateY(0px); }
    }

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

    .feature-card {
      background: rgba(255, 255, 255, 0.1);
      padding: 2rem;
      border-radius: 15px;
      backdrop-filter: blur(10px);
      transition: transform 0.3s ease;
    }

    .feature-card:hover {
      transform: translateY(-10px);
    }

    .ai-engine-visual {
      width: 80%;
      margin: 2rem auto;
      position: relative;
    }

    .pulse {
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      0% { transform: scale(0.95); opacity: 0.7; }
      50% { transform: scale(1); opacity: 1; }
      100% { transform: scale(0.95); opacity: 0.7; }
    }

    .cta-button {
      background: #898282;
      padding: 1rem 2rem;
      border-radius: 50px;
      font-weight: bold;
      transition: all 0.3s ease;
      width: fit-content;
    }

    .cta-button:hover {
      background: #0b0f3d;
      transform: scale(1.05);
    }
