/* ============================================
   New Header Styles - Matching Design Image
   ============================================ */

/* Main Header Container */
.main-header {
  z-index: 1000;
  padding-top: 35px;
}

.main-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Content - White Bar */
.header-content {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  position: relative;
  min-height: 70px;
}

/* Navigation Lists */
.header-nav {
  display: flex;
  align-items: center;
  flex: 1;
}

.header-nav-left {
  justify-content: flex-start;
}

.header-nav-right {
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.nav-item {
  position: relative;
}

/* Divider between nav items */
.nav-item + .nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 16px;
  background: rgba(45, 74, 124, 0.2);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  color: #2d4a7c;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
  border-radius: 6px;
  white-space: nowrap;
}

.nav-link:hover {
  color: #7B68EE;
  background: rgba(123, 104, 238, 0.05);
}

/* Dropdown Toggle Chevron */
.dropdown-toggle .dropdown-chevron {
  margin-left: 4px;
  transition: transform 0.25s ease;
}

.dropdown.active .dropdown-toggle .dropdown-chevron,
.nav-item.dropdown:hover .dropdown-toggle .dropdown-chevron {
  transform: rotate(180deg);
}

/* Old Dropdown Menu (kept for fallback) */
.dropdown-menu {
  display: none;
}

/* Bridge to prevent gap between nav-item and mega menu */
.nav-item.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 16px;
}

/* Hide Bootstrap's default dropdown caret */
.dropdown-toggle::after {
  display: none !important;
}

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  transform: translateY(-8px);
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0,0,0,0.06);
  padding: 28px 32px;
  min-width: 620px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  z-index: 1001;
  border: 1px solid rgba(0,0,0,0.06);
}

.mega-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 40px;
}

.mega-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: #1e293b;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 8px;
  white-space: nowrap;
}

.mega-menu-item:hover {
  background: linear-gradient(135deg, rgba(103,58,183,0.06), rgba(0,188,212,0.04));
  color: #673AB7;
  padding-left: 16px;
}

.mega-chevron {
  color: #E91E8C;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.mega-menu-item:hover .mega-chevron {
  transform: translateX(3px);
  color: #673AB7;
}

/* Center Logo - Overlapping */
.header-logo {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  z-index: 1002;
  flex-shrink: 0;
  pointer-events: auto;
}

.header-logo .logo-img {
  height: 140px;
  width: auto;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 70px;

}

.header-logo .logo-img:hover {
  transform: none;
  box-shadow: none;
}

.header-logo a {
  display: block;
  text-decoration: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1003;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #2d4a7c;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay Backdrop */
.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1004;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mobile Menu */
.mobile-menu {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 85%;
  height: 100vh;
  background: #ffffff;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
  padding: 80px 20px 20px 20px;
  z-index: 1005;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-list > li {
  border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-list > li:last-child {
  border-bottom: none;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  color: #2d4a7c;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0 0 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-dropdown-menu.show {
  max-height: 500px;
}

.mobile-dropdown-item {
  display: block;
  padding: 12px 0;
  color: #666;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-dropdown-item:hover {
  color: #7B68EE;
}

/* Responsive Styles */

/* Large screens - bigger nav text */
@media (min-width: 1200px) {
  .nav-link {
    font-size: 15px;
    padding: 8px 12px;
  }
}

/* Tablet and below (≤991.98px) - Hide desktop navigation */
@media (max-width: 991.98px) {
  .main-header {
    padding-top: 30px;
  }

  .header-nav {
    display: none !important;
  }

  .header-logo {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) translateX(-20%);
    order: 1;
  }

  .header-logo .logo-img {
    height: 120px;
        margin-top: 0;
        margin-left: 60px;
  }

  .header-content {
    justify-content: flex-end;
    padding: 15px 60px 15px 80px;
    position: relative;
    min-height: 70px;
    overflow: visible;
  }

  .mobile-menu-toggle {
    display: block;
    position: relative;
    order: 2;
    z-index: 1003;
  }

  .mobile-menu {
    display: block;
  }
}

/* Mobile (≤767.98px) */
@media (max-width: 767.98px) {
  .main-header {
    padding-top: 30px;
  }

  .header-content {
    padding: 10px 50px 10px 60px;
    min-height: 65px;
    border-radius: 12px;
    overflow: visible;
  }

  .header-logo {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) translateX(-15%);
  }

  .header-logo .logo-img {
    height: 115px;
        margin-top: 0;
        margin-left: 40px;
  }

  .mobile-menu-toggle {
    padding: 6px;
  }

  .hamburger {
    width: 24px;
    gap: 5px;
  }

  .hamburger span {
    height: 2px;
    background: #2d4a7c;
  }

  .mobile-menu {
    width: 260px;
    padding: 70px 15px 15px 15px;
  }
  
  .mobile-menu-backdrop {
    display: block;
  }

  .mobile-nav-link {
    font-size: 15px;
    padding: 12px 0;
  }

  .mobile-dropdown-item {
    font-size: 13px;
    padding: 10px 0;
  }
}

/* Small Mobile (≤575.98px) */
@media (max-width: 575.98px) {
  .main-header {
    padding-top: 30px;
  }

  .header-content {
    padding: 8px 45px 8px 55px;
    min-height: 60px;
  }

  .header-logo .logo-img {
    height: 100px;
    margin-top: 0;
    margin-left: 30px;
  }

  .mobile-menu-toggle {
    padding: 5px;
  }

  .hamburger {
    width: 22px;
    gap: 4px;
  }

  .mobile-menu {
    width: 250px;
    padding: 60px 12px 12px 12px;
  }
  
  .mobile-menu-backdrop {
    display: block;
  }

  .mobile-nav-link {
    font-size: 14px;
    padding: 10px 0;
  }
}


/* ============================================
   Hero Section Styles
   ============================================ */

.hero-sec-part {
  background: #5790E7;
  background-image: url("/assets/img/main-banner.webp");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  padding-top: 180px;
}

.hero-sec-part .text-part {
  padding-bottom: 30px;
}

.hero-sec-part .text-part h1 {
  color: #FFF;
  text-align: center;
  font-family: Poppins;
  font-size: 50px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.hero-sec-part .some-p {
  text-align: center;
  font-size: 25px !important;
  color: white;
  font-family: Poppins;
  font-style: normal;
  line-height: normal;
  font-weight: 600;
}

.hero-sec-part .text-part p {
  color: #FFF;
  text-align: center;
  font-family: Poppins;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.3px;
  margin: auto;
  max-width: 640px;
}

.hero-sec-part .image-object {
  margin-top: -335px;
}

.hero-sec-part .image-object img {
  width: 450px;
  transition: filter 0.4s ease;
  cursor: pointer;
}

.hero-sec-part .image-object img:hover {
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.35));
}

.for-mobile-live {
  display: none;
}

/* ============================================
   Modern Form Styles
   ============================================ */

.modern-form-wrapper {
  margin-top: 10px;

  margin-bottom: 30px;
}

.modern-contact-form {
  max-width: 1100px;
  margin: 0 auto;
}

.modern-contact-form .form-row {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  flex-wrap: nowrap;
  justify-content: center;
}

.modern-contact-form .form-field {
  flex: 1;
  min-width: 220px;
  position: relative;
}

.modern-contact-form .form-field-button {
  flex: 0 0 auto;
  min-width: auto;
}

.modern-contact-form .input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  height: 50px;
  box-sizing: border-box;
}

.modern-contact-form .input-wrapper:focus-within {
  border-color: #7B68EE;
  box-shadow: 0 0 0 3px rgba(123, 104, 238, 0.1);
}

.modern-contact-form .icon-box {
  background: #f5f5f5;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
}

.modern-contact-form .input-icon {
  color: #7B68EE;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
  line-height: 1;
}

.modern-contact-form .input-wrapper:focus-within .input-icon {
  color: #5a4fcf;
}

.modern-contact-form .input-divider {
  width: 1px;
  height: 30px;
  background: rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  margin: 0 8px;
}

.modern-contact-form .modern-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0 16px;
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  color: #1a1a1a;
  font-weight: 400;
  outline: none;
  transition: none;
  line-height: 1.5;
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.modern-contact-form .modern-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
  opacity: 1;
}

.modern-contact-form .modern-submit-btn {
  background: linear-gradient(135deg, #7B68EE 0%, #6DD5ED 100%);
  border: none;
  padding: 0;
  width: 50px;
  height: 50px;
  font-size: 20px;
  color: #ffffff;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(123, 104, 238, 0.3);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  line-height: 1;
}

.modern-contact-form .modern-submit-btn i {
  transition: transform 0.3s ease, color 0.3s ease;
  z-index: 1;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
  color: #ffffff;
}

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

.modern-contact-form .modern-submit-btn:hover::before {
  left: 100%;
}

.modern-contact-form .modern-submit-btn:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 25px rgba(123, 104, 238, 0.4);
  background: linear-gradient(135deg, #6a5acd 0%, #5bc4dd 100%);
}

.modern-contact-form .modern-submit-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.modern-contact-form .modern-submit-btn:hover i {
  transform: translateX(3px) translateY(-2px) rotate(10deg);
}

.modern-contact-form .input-wrapper.input-has-error {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12) !important;
}

.hero-err-box {
  min-height: 18px;
  margin-top: 5px;
}

.hero-err-msg {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #e74c3c;
  font-size: 11px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  animation: heroErrIn 0.2s ease;
}

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

/* Responsive Styles for Hero Section */
@media (max-width: 991.98px) {
  .hero-sec-part {
    padding-top: 165px;
  }

  .hero-sec-part .text-part h1 {
    font-size: 36px;
  }

  .hero-sec-part .some-p {
    font-size: 20px !important;
  }

  .hero-sec-part .image-object {
    margin-top: -200px;
  }

  .hero-sec-part .image-object img {
    width: 300px;
  }

  
}

@media (max-width: 767.98px) {
  

  .hero-sec-part .row {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-sec-part .col-md-12 {
    padding-left: 0;
    padding-right: 0;
  }
  .for-mobile-col {
    display: none;
  }


  .modern-contact-form .form-row {
    flex-wrap: wrap !important;
    gap: 12px;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .modern-contact-form .form-field {
    min-width: 100% !important;
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .modern-contact-form .form-field-button {
    flex: 1 1 100% !important;
    min-width: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .modern-contact-form .modern-submit-btn {
    width: 100% !important;
    height: 50px;
    max-width: 100% !important;
  }

  .hero-sec-part {
    padding-top: 140px;
  }

  .hero-sec-part .text-part h1 {
    font-size: clamp(28px, 8vw, 42px);
    white-space: nowrap;
  }

  .hero-sec-part .some-p {
    font-size: clamp(16px, 4.5vw, 20px) !important;
    white-space: nowrap;
  }

  .hero-sec-part .text-part p {
    font-size: 15px;
  }

  .hero-sec-part .image-object {
    margin-top: -150px;
  }

  .hero-sec-part .image-object img {
    width: 250px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .modern-contact-form .form-row {
    gap: 15px;
  }

  .hero-sec-part .image-object {
    margin-top: -224px;
  }

  .hero-sec-part .image-object img {
    width: 450px;
  }
}
