/*─────────────────────────────────────────────────────
  GLOBAL BASE
─────────────────────────────────────────────────────*/
html, body {
  height: 100%;
}

body {
  background-color: #fff;
  background-repeat: no-repeat;
  background-size: 100% 100vh;
  background-attachment: fixed;
  color: #333;
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/*─────────────────────────────────────────────────────
  MODERN NAVIGATION
─────────────────────────────────────────────────────*/
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(13, 30, 78, 0.08);
  width: 100%;
  padding: 20px 0;
  position: fixed;
  top: 0;
  z-index: 1060;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.navbar-brand .logo,
.logo {
  width: 180px;
  height: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(1);
}

.logo:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.navbar-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding-right: 40px;
}

.nav-link {
  color: #0d1e4e !important;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  padding: 10px 20px !important;
  border-radius: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, #0d1e4e, #1a3a7d);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.nav-link:hover {
  color: #1a3a7d !important;
  background-color: rgba(13, 30, 78, 0.04);
}

.nav-link:hover::before {
  transform: translateX(-50%) scaleX(1);
}

.nav-link:focus {
  outline: 2px solid rgba(13, 30, 78, 0.3);
  outline-offset: 2px;
}

#siteNav {
  transition: opacity 0.3s ease-in-out;
  opacity: 1;
}

#siteNav.faded {
  opacity: 0;
  pointer-events: none;
}

/* Modern Dropdown */
.nav-item.dropdown {
  position: relative;
}

.nav-item.dropdown .dropdown-menu {
  display: none;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(13, 30, 78, 0.08);
  border-radius: 12px;
  padding: 8px;
  min-width: 200px;
  animation: fadeInDown 0.3s ease;
  position: absolute;
  top: 100%;   /* 👈 instead of calc(100% + 5px) */
  left: 0;
  z-index: 1050;
}

.nav-item.dropdown:hover > .dropdown-menu {
  display: block;
}


@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown .dropdown-menu:hover {
  display: block;
}



.dropdown-item {
  color: #0d1e4e;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  margin: 2px 0;
}

.dropdown-item:hover {
  background: linear-gradient(135deg, rgba(13, 30, 78, 0.08), rgba(26, 58, 125, 0.08));
  color: #1a3a7d;
  transform: translateX(4px);
}

/*─────────────────────────────────────────────────────
  HERO & LAYOUT
─────────────────────────────────────────────────────*/
.content-wrapper {
  padding-top: 100px;
}

.hero-text-container {
  position: relative;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 50px 20px 150px;
  color: #fff;
}

/*─────────────────────────────────────────────────────
  ABOUT SECTION
─────────────────────────────────────────────────────*/
.about-content {
  background-color: #fff;
  color: #333;
  text-align: center;
  padding: 40px 20px;
  margin-bottom: 60px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
}

.about-content h2 {
  font-size: 2.4rem;
  color: #0d1e4e;
  margin-bottom: 15px;
}

.about-content p,
.about-content ul {
  font-size: 1.2rem;
  font-weight: 300;
  color: #555;
  max-width: 800px;
  margin: 0 auto 30px;
  text-align: left;
}

.about-content ul li {
  margin-bottom: 15px;
}

/*─────────────────────────────────────────────────────
  BUTTONS
─────────────────────────────────────────────────────*/
.btn-custom {
  background: linear-gradient(135deg, #0d1e4e, #1a3a7d);
  color: #fff;
  padding: 14px 32px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(13, 30, 78, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-custom::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-custom:hover::before {
  left: 100%;
}

.btn-custom:hover {
  background: linear-gradient(135deg, #1a3a7d, #0d1e4e);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 30, 78, 0.3);
}

.contact-btn {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #0d1e4e, #1a3a7d);
  color: #fff;
  padding: 12px 24px;
  font-size: 16px;
  z-index: 1050;
  box-shadow: 0 6px 20px rgba(13, 30, 78, 0.25);
  border-radius: 50px;
}

.contact-btn:hover {
  background: linear-gradient(135deg, #1a3a7d, #0d1e4e);
  transform: translateX(-50%) translateY(-3px);
  box-shadow: 0 8px 24px rgba(13, 30, 78, 0.35);
}

/*─────────────────────────────────────────────────────
  MODAL
─────────────────────────────────────────────────────*/
.modal-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1000px;
  height: 90%;
  max-height: 800px;
  border-radius: 20px;
  overflow: hidden;
}

.modal-content {
  background-color: #fff;
  color: #333;
  border-radius: 20px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.modal-header, .modal-body, .modal-footer {
  padding: 20px;
}

.modal-body {
  max-height: 70%;
  overflow-y: auto;
}

/*─────────────────────────────────────────────────────
  CONTACT SECTION
─────────────────────────────────────────────────────*/
.contact-box {
  background-color: #fff;
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #555;
}

.contact-box h4 {
  color: #0d1e4e;
}

.contact-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
}

.icon-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
}

/*─────────────────────────────────────────────────────
  SERVICES SECTION
─────────────────────────────────────────────────────*/
.services-container {
  display: flex;
  justify-content: space-around;
  gap: 30px;
  margin: 180px 0 40px;
  flex-wrap: wrap;
}

.service-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  width: 30%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eee;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

.service-card h2 {
  font-size: 1.5em;
  color: #0d1e4e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-card p,
.service-card ul li {
  color: #555;
  font-weight: 300;
  font-size: 1em;
  margin-bottom: 10px;
}

.learn-more-link {
  font-weight: bold;
  font-size: 1.1em;
  color: #0d1e4e;
  text-decoration: none;
}

.learn-more-link:hover {
  color: #ffcc00;
  text-decoration: underline;
}

/*─────────────────────────────────────────────────────
  RESPONSIVE OVERRIDES
─────────────────────────────────────────────────────*/
@media (max-width: 768px) {
  .navbar {
    padding: 16px 0;
  }
  
  .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 20px;
    gap: 4px;
  }
  
  .nav-link {
    width: 100%;
    padding: 12px 16px !important;
  }
  
  .modal-dialog {
    width: 95%;
    height: 95%;
  }
  
  .content-wrapper {
    padding-top: 80px;
  }
 
  .col-md-4 {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .logo {
    width: 140px;
  }
  
  .navbar {
    padding: 12px 0;
  }
  
  .navbar-toggler {
    padding: 0.25rem 0.5rem;
    border: 2px solid rgba(13, 30, 78, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
  }
  
  .navbar-toggler:hover {
    background-color: rgba(13, 30, 78, 0.05);
  }
  
  .navbar-toggler-icon {
    width: 24px;
    height: 24px;
  }
}

/*─────────────────────────────────────────────────────
  MISC
─────────────────────────────────────────────────────*/
.row {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-md-4 {
  padding: 0 15px;
  margin-bottom: 20px;
}

.d-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.text-center {
  text-align: center;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%230d1e4e' stroke-width='2.5' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  transition: transform 0.3s ease;
}

.navbar-toggler:hover .navbar-toggler-icon {
  transform: scale(1.1);
}


/* Show dropdown on hover for desktops */
@media (min-width: 992px) {
  .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0; /* remove gap so it doesn't flicker */
  }

  .dropdown-menu {
    display: none; /* reset default */
  }
}