/* Fixed main.css - Aligned with NewWave Theme Colors */

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

/* Enhanced Navbar Styling */
.navbar {
    background: linear-gradient(135deg, #004aad 0%, #0084ff 100%) !important;
    padding: 15px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 74, 173, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 74, 173, 0.9), rgba(0, 132, 255, 0.8));
    z-index: -1;
}

.navbar.scrolled {
    padding: 8px 0;
    box-shadow: 0 4px 30px rgba(0, 74, 173, 0.3);
}

/* Brand Styling */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: #fff !important;
}

.navbar-brand img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    border-color: rgba(255, 255, 255, 0.6);
    transform: rotate(5deg);
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, #fff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Links */
.navbar-nav {
    align-items: center;
    gap: 5px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 18px !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.nav-link:hover::before {
    width: 70%;
}

.nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Contact Button */
.btn-contact {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 25px !important;
    font-weight: 700 !important;
    margin-left: 10px;
}

.btn-contact:hover {
    background: #fff !important;
    color: #004aad !important;
    border-color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Dropdown Styling - Both Hover and Click */
.dropdown {
    position: relative;
}

.dropdown-menu {
    background: #fff;
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 74, 173, 0.2);
    padding: 15px 0;
    margin-top: 15px;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1050;
    display: block !important;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 30px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 3px;
    transform: rotate(45deg);
    border-top: 1px solid rgba(0, 74, 173, 0.1);
    border-left: 1px solid rgba(0, 74, 173, 0.1);
}

/* Show dropdown on hover AND when Bootstrap shows it */
.dropdown:hover .dropdown-menu,
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Ensure Bootstrap's show class works */
.dropdown.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 0;
    border: none;
    background: none;
    transition: all 0.3s ease;
}

.dropdown-item-content {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    gap: 15px;
    border-radius: 10px;
    margin: 3px 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dropdown-item-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 74, 173, 0.1), transparent);
    transition: left 0.5s ease;
}

.dropdown-item:hover .dropdown-item-content::before {
    left: 100%;
}

.dropdown-item:hover .dropdown-item-content {
    background: linear-gradient(135deg, #004aad, #0084ff);
    color: #fff;
    transform: translateX(5px);
}

.dropdown-item-content i {
    font-size: 1.3rem;
    color: #004aad;
    width: 25px;
    transition: all 0.3s ease;
}

.dropdown-item:hover .dropdown-item-content i {
    color: #fff;
    transform: scale(1.2);
}

.dropdown-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.item-title {
    font-weight: 700;
    font-size: 1rem;
    color: #002244;
    transition: color 0.3s ease;
}

.item-desc {
    font-size: 0.8rem;
    color: #666;
    transition: color 0.3s ease;
}

.dropdown-item:hover .item-title,
.dropdown-item:hover .item-desc {
    color: #fff;
}

/* Mobile Navbar */
.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.navbar-toggler:hover {
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

.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%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .navbar {
        padding: 12px 0;
    }

    .navbar-brand img {
        width: 40px;
        height: 40px;
    }

    .brand-text {
        font-size: 1.3rem;
    }

    .navbar-collapse {
        background: rgba(0, 74, 173, 0.95);
        border-radius: 15px;
        margin-top: 15px;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 74, 173, 0.3);
    }

    .nav-link {
        text-align: center;
        margin: 5px 0;
        border-radius: 10px;
    }

    /* Mobile dropdown - only click behavior */
    .dropdown:hover .dropdown-menu {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
    }

    .dropdown-menu {
        position: static;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: none;
        border: 1px solid rgba(0, 74, 173, 0.2);
        margin-top: 5px;
        transform: none;
    }

    .dropdown-menu::before {
        display: none;
    }

    .btn-contact {
        margin: 10px 0 0 0;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .navbar-brand img {
        width: 35px;
        height: 35px;
    }

    .brand-text {
        font-size: 1.2rem;
    }

    .dropdown-item-content {
        padding: 12px 15px;
        gap: 12px;
    }

    .item-title {
        font-size: 0.9rem;
    }

    .item-desc {
        font-size: 0.75rem;
    }
}

/* Scroll Effect */
.navbar.navbar-scrolled {
    padding: 8px 0;
    background: linear-gradient(135deg, rgba(0, 74, 173, 0.95), rgba(0, 132, 255, 0.9)) !important;
    backdrop-filter: blur(15px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(0, 74, 173, 0.8), rgba(0, 132, 255, 0.6)),
        url('https://placehold.co/1920x800') no-repeat center center/cover;
    color: white;
    padding: 120px 0;
    box-shadow: 0 8px 30px rgba(0, 74, 173, 0.3);
    text-align: center;
}

/* Section Titles */
.section-title {
    font-weight: 700;
    font-size: 2rem;
    color: #002244;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #004aad, #0084ff);
    border-radius: 2px;
}

/* Cards - Unified Styling */
.team-card,
.service-card,
.portal-card,
.contact-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 74, 173, 0.08);
    padding: 25px;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 74, 173, 0.1);
}

.team-card:hover,
.service-card:hover,
.portal-card:hover,
.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 74, 173, 0.15);
    border-color: #004aad;
}

/* Team Card Specific */
.team-image {
    width: 100%;
    padding-top: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 15px;
}

.team-image img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

/* Service Cards */
.service-card h5,
.portal-card h5 {
    font-weight: 600;
    font-size: 1.3rem;
    color: #002244;
    margin-bottom: 1rem;
    text-align: center;
}

.service-card ul,
.portal-card ul {
    padding: 0;
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-card li,
.portal-card li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: #666;
}

.service-card li::before,
.portal-card li::before {
    content: "✓";
    color: #004aad;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #004aad, #0084ff);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 74, 173, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #003380, #0066cc);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 74, 173, 0.4);
    color: #fff;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid #004aad;
    color: #004aad;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #004aad;
    border-color: #004aad;
    color: #fff;
    transform: translateY(-2px);
}

/* Service Areas */
.service-areas-badge {
    background: linear-gradient(135deg, #004aad, #0084ff);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin: 0.25rem;
    transition: transform 0.3s ease;
}

.service-areas-badge:hover {
    transform: translateY(-2px);
}

.service-areas-wrap {
    text-align: center;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: #002244;
    color: #ccc;
    padding: 40px 0;
    box-shadow: inset 0 8px 12px rgba(255, 255, 255, 0.05);
}

.footer h5 {
    color: #fff;
    font-weight: 600;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #0084ff;
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
    border-color: #004aad;
    box-shadow: 0 0 0 0.2rem rgba(0, 74, 173, 0.25);
    outline: none;
}

/* Navbar Dropdown Styling */
.navbar .dropdown-menu {
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 74, 173, 0.15);
    padding: 10px 0;
    margin-top: 10px;
    min-width: 220px;
}

.navbar .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
}

.navbar .dropdown-item {
    padding: 12px 20px;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 2px 8px;
}

.navbar .dropdown-item:hover {
    background: linear-gradient(135deg, #004aad, #0084ff);
    color: #fff;
    transform: translateX(5px);
}

.navbar .dropdown-item i {
    color: #004aad;
    transition: color 0.3s ease;
}

.navbar .dropdown-item:hover i {
    color: #fff;
}

.navbar .dropdown-divider {
    border-color: rgba(0, 74, 173, 0.1);
    margin: 8px 16px;
}

.navbar .dropdown-toggle::after {
    margin-left: 8px;
    border-top-color: rgba(255, 255, 255, 0.9);
    transition: transform 0.3s ease;
}

.navbar .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Smooth Animation */
.navbar .dropdown-menu {
    animation: dropdownFadeIn 0.3s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .navbar .dropdown-menu {
        background: #f8f9fa;
        box-shadow: none;
        border: 1px solid rgba(0, 74, 173, 0.1);
        margin-top: 5px;
        border-radius: 8px;
    }

    .navbar .dropdown-menu::before {
        display: none;
    }

    .navbar .dropdown-item {
        margin: 1px 4px;
        padding: 10px 16px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero {
        padding: 80px 0;
    }

    .service-card,
    .team-card,
    .portal-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.6rem;
    }

    .navbar-brand img {
        width: 80px;
        height: 50px;
    }

    .service-card,
    .team-card,
    .portal-card {
        padding: 20px;
    }
}

/* Utility Classes */
.text-primary {
    color: #004aad !important;
}

.bg-primary {
    background: linear-gradient(135deg, #004aad, #0084ff) !important;
}

.border-primary {
    border-color: #004aad !important;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}
  /* Newsletter Section */
  #newsletter {
      background: linear-gradient(135deg, #002244, #004aad) !important;
      padding: 80px 0;
  }

  #newsletter h2 {
      color: #fff;
      margin-bottom: 20px;
  }

  #newsletter p {
      color: rgba(255, 255, 255, 0.9);
      font-size: 1.2rem;
  }

  #newsletter input[type="email"] {
      border-radius: 25px 0 0 25px;
      padding: 15px 25px;
      border: none;
      font-size: 1rem;
      max-width: 400px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  #newsletter button {
      background: linear-gradient(135deg, #f7b733, #ffc107) !important;
      border-radius: 0 25px 25px 0;
      padding: 15px 30px;
      font-weight: 700;
      border: none;
      color: #002244;
      transition: all 0.3s ease;
      box-shadow: 0 4px 15px rgba(247, 183, 51, 0.3);
  }

  #newsletter button:hover {
      background: linear-gradient(135deg, #ffc107, #f7b733) !important;
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(247, 183, 51, 0.4);
  }

  /* Footer */
  footer {
      background: #002244;
      color: #ccc;
      padding: 40px 0;
      text-align: center;
  }

  footer a {
      color: #f7b733;
      text-decoration: none;
      transition: color 0.3s ease;
  }

  footer a:hover {
      color: #ffc107;
  }

  /* Social Media Icons */
  .social-media-section {
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      padding-bottom: 1.5rem;
  }

  .social-icons {
      display: flex;
      justify-content: center;
      gap: 1rem;
      flex-wrap: wrap;
  }

  .social-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 50px;
      height: 50px;
      background: linear-gradient(135deg, #004aad 0%, #0084ff 100%);
      color: #fff !important;
      border-radius: 50%;
      text-decoration: none !important;
      font-size: 1.5rem;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
      box-shadow: 0 4px 15px rgba(0, 132, 255, 0.3);
  }

  .social-icon::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;
  }

  .social-icon:hover {
      transform: translateY(-3px) scale(1.1);
      box-shadow: 0 8px 25px rgba(0, 132, 255, 0.5);
      color: #fff !important;
  }

  .social-icon:hover::before {
      left: 100%;
  }

  .social-icon i {
      position: relative;
      z-index: 2;
  }

  /* Instagram brand color */
  .social-icon:has(.fa-instagram) {
      background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  }

  .social-icon:has(.fa-instagram):hover {
      box-shadow: 0 8px 25px rgba(220, 39, 67, 0.5);
  }

  /* YouTube brand color */
  .social-icon:has(.fa-youtube) {
      background: #FF0000;
  }

  .social-icon:has(.fa-youtube):hover {
      box-shadow: 0 8px 25px rgba(255, 0, 0, 0.5);
  }

  /* Responsive adjustments for social icons */
  @media (max-width: 576px) {
      .social-icon {
          width: 45px;
          height: 45px;
          font-size: 1.3rem;
      }
      
      .social-icons {
          gap: 0.8rem;
      }
  }



  @media (max-width: 768px) {
      .hero h1 {
          font-size: 2.5rem;
      }

      .section-title {
          font-size: 2rem;
      }

      .service-card {
          padding: 20px;
          margin-bottom: 30px;
      }

      .service-card img {
          max-width: 100%;
          height: 200px;
          margin-bottom: 20px;
      }

      .team-card {
          padding: 25px;
          margin-bottom: 30px;
      }
  }

  /* AOS Animation Enhancements */
  [data-aos] {
      pointer-events: none;
  }

  [data-aos].aos-animate {
      pointer-events: auto;
  }

  /* Fixed Location Map Styling */
  #location {
      padding: 100px 0;
      background: #f8f9fa;
  }

  .map-container {
      max-width: 100%;
      margin: 0 auto;
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 15px 50px rgba(0, 74, 173, 0.15);
      background: #fff;
      padding: 20px;
  }

  .map-responsive {
      position: relative;
      width: 100%;
      height: 450px;
      border-radius: 20px;
      overflow: hidden;
  }

  .map-responsive iframe {
      position: absolute;
      top: 0;
      left: 0;
      width: 100% !important;
      height: 100% !important;
      border: none;
      border-radius: 20px;
  }