body.scrolled .navbar {
  background: rgba(0, 51, 102, 0.85);
  padding: 5px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(0);
}

.navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: rgba(0, 51, 102, 0.95);
  color: white;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: white;
  margin: 4px 0;
  border-radius: 3px;
}

.nav-logo {
  display: none; /* Hidden since logo is now background */
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  width: 100%;
  margin-top: 5px;
}

.nav-links a {
  color: white;
  margin: 5px 10px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ffd700;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #003366, #007acc);
  color: white;
  padding: 100px 20px 80px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero::before {
  content: "";
  background: url('assets/images/bear_logo.png') no-repeat center center;
  background-size: 500px;
  opacity: 0.05;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
}

/* General Sections */
section {
  padding: 80px 20px;
  text-align: center;
}

section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #003366;
}

section p {
  max-width: 800px;
  margin: 0 auto 20px;
  font-size: 1.1rem;
}

/* Services */
.service-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.card {
  background: linear-gradient(135deg, #007acc, #00c0ff);
  color: white;
  border-radius: 12px;
  padding: 30px;
  width: 280px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  font-weight: 600;
}

/* Partners Grid */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 25px;
  padding: 20px;
  justify-items: center;
}

.partners-grid img {
  width: 100px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.partners-grid img:hover {
  transform: scale(1.05);
}

/* Contact Section */
.contact a {
  color: #005f99;
  text-decoration: none;
  font-weight: bold;
}

.contact a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: #003366;
  color: white;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
  margin-top: 40px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Floating Symbols Background */
.background-symbols {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 51, 102, 0.3), rgba(0, 0, 0, 0.1));
}

.symbol {
  position: absolute;
  font-size: 2.5rem;
  font-weight: 600;
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  color: #003366;
  opacity: 0.7;
  animation: floatSymbol var(--speed, 40s) linear infinite;
  top: calc(100vh * var(--top));
  left: calc(100vw * var(--left));
  transform: rotate(var(--rotation, 0deg));
}

.symbol:nth-child(odd) {
  animation-duration: 50s;
}

.symbol:nth-child(even) {
  animation-direction: reverse;
}

@keyframes floatSymbol {
  0% {
    transform: translate(0, 0) rotate(var(--rotation, 0deg));
  }
  100% {
    transform: translate(var(--xMove, 0), var(--yMove, -100vh)) rotate(calc(var(--rotation, 0deg) + 360deg));
  }
}

/* Modal Input Styling */
.modal-content input {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-shadow: none;
}

.modal-close {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 1.4rem;
  font-weight: bold;
  color: #003366;
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 50%;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Mobile Responsive Symbols */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

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

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
  }

  .nav-links a {
    margin: 8px 0;
    padding: 6px 0;
  }

  .hero {
    padding-top: 160px;
  }
}

@media (max-width: 400px) {
  .background-symbols {
    display: none;
  }
}

@media (max-width: 480px) {
  .login-container input[type="text"],
  .login-container input[type="password"] {
    font-size: 1rem;
    padding: 10px;
    border-radius: 8px;
    margin: 8px 0;
    box-sizing: border-box;
  }

  .login-container {
    padding: 24px 16px;
    margin: 100px 16px 40px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }

  .login-container input[type="submit"],
  .alt-login button {
    font-size: 0.95rem;
    padding: 10px;
  }
}
