/* === General Styling === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #1A2634;
  color: #ffffff;
  min-height: 100vh;
  position: relative;
  padding-bottom: 60px;
  overflow-x: hidden;
}

/* === Corner Circles === */
.corner-circles-wrapper,
.corner-circles-wrapper-2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

body::before,
body::after,
.corner-circles-wrapper::before,
.corner-circles-wrapper::after {
  content: '';
  position: fixed;
  width: 50px;
  height: 50px;
  border: 2px solid #00C4B4;
  border-radius: 50%;
  opacity: 0.4;
  z-index: 2;
}

.corner-circles-wrapper-2::before,
.corner-circles-wrapper-2::after {
  content: '';
  position: fixed;
  width: 50px;
  height: 50px;
  opacity: 0.4;
  z-index: 2;
}

/* Top-Left Circle */
body::before {
  top: 0;
  left: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 4px,
    rgba(0, 196, 180, 0.3) 4px,
    rgba(0, 196, 180, 0.3) 6px
  );
}

.corner-circles-wrapper-2::before {
  top: 7.5px;
  left: 7.5px;
  border: 4px solid #00C4B4;
  border-bottom: none;
  border-radius: 50% 50% 0 0;
  clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 4px,
    rgba(0, 196, 180, 0.3) 4px,
    rgba(0, 196, 180, 0.3) 6px
  );
  background-clip: content-box;
}

/* Top-Right Circle */
.corner-circles-wrapper::before {
  top: 0;
  right: 0;
  background: radial-gradient(circle, #ffffff 2px, transparent 2px);
  background-size: 10px 10px;
}

.corner-circles-wrapper-2::after {
  top: 7.5px;
  right: 7.5px;
  border: 2px dashed #00C4B4;
  border-top: none;
  border-radius: 0 0 50% 50%;
  clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
  background: rgba(0, 196, 180, 0.1);
}

/* Bottom-Left Circle */
.corner-circles-wrapper::after {
  bottom: 70px;
  left: 0;
  background: radial-gradient(circle, #ffffff 2px, transparent 2px);
  background-size: 10px 10px;
}

.corner-circles-wrapper-2::before {
  bottom: 77.5px;
  left: 7.5px;
  border: 2px dashed #00C4B4;
  border-top: none;
  border-radius: 0 0 50% 50%;
  clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
  background: rgba(0, 196, 180, 0.1);
}

/* Bottom-Right Circle */
body::after {
  bottom: 70px;
  right: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 4px,
    rgba(0, 196, 180, 0.3) 4px,
    rgba(0, 196, 180, 0.3) 6px
  );
}

.corner-circles-wrapper-2::after {
  bottom: 77.5px;
  right: 7.5px;
  border: 4px solid #00C4B4;
  border-bottom: none;
  border-radius: 50% 50% 0 0;
  clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 4px,
    rgba(0, 196, 180, 0.3) 4px,
    rgba(0, 196, 180, 0.3) 6px
  );
  background-clip: content-box;
}

/* === Logo Section === */
.logo-section {
  text-align: center;
  padding: 1rem 0;
}

.logo-section img {
  width: 100px;
  height: 100px;
  margin-bottom: 0.5rem;
}

.logo-section h1 {
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}

.logo-section span {
  font-size: 0.85rem;
  color: #FF5733;
  font-weight: 400;
}

/* === Navbar === */
.navbar {
  background: transparent !important;
  padding: 0.5rem 0;
}

.navbar-nav {
  display: flex;
  justify-content: center;
  width: 100%;
}

.nav-item {
  margin: 0 2rem;
}

.nav-link {
  color: #ffffff;
  font-weight: 400;
  font-size: 1.1rem;
  text-transform: uppercase;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #00C4B4;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: #00C4B4;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.navbar-toggler {
  border: 2px solid #00C4B4;
  background-color: rgba(0, 196, 180, 0.2);
  z-index: 1000; /* Ensure visibility */
  padding: 0.5rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 196, 180, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* === Dropdown Mega Menu === */
.dropdown-mega {
  width: 1000px;
  max-width: 90vw;
  background-color: #1A2634;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin: 0 auto;
  overflow: hidden;
  padding: 1.5rem;
}

.dropdown-mega::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(0, 196, 180, 0.2) 0%, transparent 20%),
              radial-gradient(circle at 90% 10%, rgba(0, 196, 180, 0.2) 0%, transparent 20%),
              radial-gradient(circle at 5% 80%, rgba(0, 196, 180, 0.2) 0%, transparent 20%),
              radial-gradient(circle at 90% 80%, rgba(0, 196, 180, 0.2) 0%, transparent 20%);
  opacity: 0.5;
  pointer-events: none;
}

.dropdown-mega h5 {
  color: #00C4B4;
  font-weight: 600;
  font-size: 1.25rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.dropdown-mega h6 {
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.dropdown-mega .dropdown-item {
  color: #ffffff;
  font-size: 0.9rem;
  padding: 0.25rem 0;
  background: none !important;
}

.dropdown-mega .dropdown-item:hover,
.dropdown-mega .dropdown-item.active {
  color: #00C4B4;
  background: none !important;
}

.dropdown-menu {
  background-color: #1A2634;
  border: none;
}

.dropdown-menu .dropdown-item {
  color: #ffffff;
}

.dropdown-menu .dropdown-item:hover {
  color: #00C4B4;
  background: none;
}

/* === Hero Section === */
.hero-section {
  text-align: center;
  margin-top: 6rem;
}

.hero-section h1 {
  font-size: 4.5rem;
  font-weight: 700;
  color: #00C4B4;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  letter-spacing: 3px;
}

.hero-section p {
  font-size: 1.75rem;
  font-weight: 400;
  text-transform: uppercase;
}

/* === Card Section === */
.card-section {
  padding: 4rem 2rem;
}

.card-section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #00C4B4;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

.modern-card {
  background-color: #2A3B4F;
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 2rem;
}

.modern-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 196, 180, 0.2);
}

.modern-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.modern-card .card-body {
  padding: 1.5rem;
}

.modern-card .card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #00C4B4;
  margin-bottom: 0.5rem;
}

.modern-card .card-text {
  font-size: 0.9rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.whatsapp-btn {
  display: inline-block;
  background-color: #00C4B4;
  border: none;
  border-radius: 5px;
  padding: 0.5rem 1rem;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.whatsapp-btn:hover {
  background-color: #FF5733;
}


/* Partners Section Styles */
.partners-section {
  padding: 4rem 0;
  background-color: #1E2A3A;
  position: relative;
  overflow: hidden;
}

.partners-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(0, 196, 180, 0.1) 0%, transparent 30%),
              radial-gradient(circle at 80% 70%, rgba(0, 196, 180, 0.1) 0%, transparent 30%);
  z-index: 1;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #00C4B4;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.section-subtitle {
  text-align: center;
  color: #aaa;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 3rem auto;
  position: relative;
  z-index: 2;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.partner-card {
  background-color: #2A3B4F;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  height: 200px; /* Fixed height for consistency */
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 196, 180, 0.3);
}

.partner-logo-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.partner-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.5);
  transition: all 0.3s ease;
}

.partner-card:hover .partner-logo {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.05);
}

.partner-overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: rgba(0, 196, 180, 0.9);
  color: white;
  transition: all 0.3s ease;
  text-align: center;
}

.partner-card:hover .partner-overlay {
  bottom: 0;
}

.partner-overlay h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.partner-overlay p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Alternative layout for rectangular logos */
.partner-card.rectangular-logo .partner-logo-container {
  padding: 1rem;
}

.partner-card.rectangular-logo .partner-logo {
  width: 90%;
  height: auto;
  max-height: 80%;
}

/* Responsive Design */
@media (max-width: 768px) {
  .partners-section {
      padding: 3rem 0;
  }
  
  .section-title {
      font-size: 2rem;
  }
  
  .section-subtitle {
      font-size: 1rem;
      margin-bottom: 2rem;
  }
  
  .partners-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
  }
  
  .partner-card {
      height: 180px;
  }
}

/* === Footer === */
footer {
  background-color: rgba(26, 38, 52, 0.9);
  text-align: center;
  padding: 15px;
  color: #aaa;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 1;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}

footer a {
  color: #00C4B4;
  text-decoration: none;
  margin: 0 10px;
  font-size: 0.9rem;
}

footer a:hover {
  color: #FF5733;
}

/* === Responsive Design === */
@media (max-width: 992px) {
  .navbar-nav {
    text-align: center;
    padding: 1rem;
  }

  .nav-item {
    margin: 0.5rem 0;
  }

  .dropdown-mega {
    width: 95vw;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 1rem;
    max-height: 70vh; /* Prevent overflow */
    overflow-y: auto; /* Scrollable if needed */
  }

  .dropdown-mega .row {
    flex-direction: column; /* Stack columns vertically */
  }

  .dropdown-mega .col-md-9,
  .dropdown-mega .col-md-3 {
    width: 100%;
    margin-bottom: 1rem;
  }

  .dropdown-mega .row .col-md-4 {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .dropdown-mega h5 {
    font-size: 1.1rem;
  }

  .dropdown-mega h6 {
    font-size: 0.9rem;
  }

  .dropdown-mega .dropdown-item {
    font-size: 0.85rem;
  }

  .dropdown-menu {
    width: 100%;
    text-align: center;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section p {
    font-size: 1.25rem;
  }

  .card-section h2 {
    font-size: 2rem;
  }

  .navbar-collapse {
    background-color: #1A2634;
    border-radius: 10px;
    margin-top: 0.5rem;
    padding: 1rem;
  }

  .navbar-toggler {
    position: relative;
    z-index: 1000; /* Ensure it’s above other elements */
  }
}

@media (max-width: 576px) {
  .logo-section img {
    width: 60px;
    height: 60px;
  }

  .logo-section h1 {
    font-size: 1.25rem;
  }

  .logo-section span {
    font-size: 0.7rem;
  }

  .hero-section h1 {
    font-size: 1.75rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .card-section {
    padding: 2rem 1rem;
  }

  .card-section h2 {
    font-size: 1.5rem;
  }

  .modern-card img {
    height: 150px;
  }

  .modern-card .card-title {
    font-size: 1.25rem;
  }

  .modern-card .card-text {
    font-size: 0.85rem;
  }

  .navbar-toggler {
    border: 2px solid #00C4B4;
    background-color: rgba(0, 196, 180, 0.3);
    padding: 0.4rem 0.6rem;
  }

  body::before,
  body::after,
  .corner-circles-wrapper::before,
  .corner-circles-wrapper::after,
  .corner-circles-wrapper-2::before,
  .corner-circles-wrapper-2::after {
    width: 30px;
    height: 30px;
  }

  .corner-circles-wrapper-2::before {
    top: 5px;
    left: 5px;
  }

  .corner-circles-wrapper-2::after {
    top: 5px;
    right: 5px;
  }

  .corner-circles-wrapper-2::before {
    bottom: 75px;
    left: 5px;
  }

  .corner-circles-wrapper-2::after {
    bottom: 75px;
    right: 5px;
  }
}