@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --theme-dark: rgb(19, 18, 18);
  --theme-light: #f5f5f7; /* Apple sleek light background */
  --theme-white: rgb(255, 255, 255);
  --theme-primary: #0000a0;
  --theme-secondary: #b70000;
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 40px rgba(0, 0, 160, 0.05);
  border-radius: 20px;
}

.glass-panel-dark {
  background: rgba(0, 0, 160, 0.65); /* MSpace Frosted Navy */
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 160, 0.2);
  border-radius: 20px;
  color: white;
}

.glass-navbar {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 30px rgba(0, 0, 160, 0.05);
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  background-color: var(--theme-light);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  min-height: 100vh;
  width: 100vw;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: 'Outfit', sans-serif !important;
  letter-spacing: -0.5px;
}


a {
  color: var(--theme-primary);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--theme-primary);
  text-decoration: none;
}

.cu-bg-primary {
  padding: 5px 20px;
  border-radius: 5px;
  font-weight: bold;
  background-color: var(--theme-primary);
  border: 1px solid var(--theme-primary);
  color: white;
}

.cu-bg-primary:hover {
  color: var(--theme-primary);
  background-color: transparent;
  border: 1px solid var(--theme-primary);
}


.cu-btn-primary {
  padding: 14px 40px;
  border-radius: 50px;
  background-color: var(--theme-primary);
  border: 1px solid var(--theme-primary);
  color: white;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 160, 0.2);
}

.cu-btn-primary:hover {
  color: white !important;
  background-color: #000080 !important;
  border: 1px solid #000080 !important;
  box-shadow: 0 8px 25px rgba(0, 0, 128, 0.35);
  transform: translateY(-3px);
}

.cu-btn-primary:active {
  transform: translateY(1px) scale(0.98);
}

.cu-btn-secondary {
  padding: 14px 45px;
  border-radius: 50px;
  background-color: var(--theme-secondary);
  border: 1px solid var(--theme-secondary);
  color: white;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(183, 0, 0, 0.2);
}

.cu-btn-secondary:hover {
  color: white !important;
  background-color: #900000 !important;
  border: 1px solid #900000 !important;
  box-shadow: 0 8px 25px rgba(183, 0, 0, 0.35);
  transform: translateY(-3px);
}

.cu-btn-secondary:active {
  transform: translateY(1px) scale(0.98);
}

.cu-text-primary {
  color: var(--theme-primary);
}

.cu-text-secondary {
  color: var(--theme-secondary);
}

.form-control span {
  color: var(--theme-secondary);
}

nav {
  transition: all .2s ease-in;
}

nav .nav-link {
  position: relative;
  font-size: 13px;
  font-weight: bold;

}

nav .nav-link::after {
  position: absolute;
  left: 50%;
  content: "";
  display: block;
  margin: 0 auto;
  width: 0;
  padding-top: 5px;
  border-bottom: 1px solid var(--theme-primary);
  transition: all .5s ease-in-out;
}

nav .nav-link:hover:after {
  left: 5%;
  width: 90%;
}

.dropdown-menu {
  box-shadow: 2px 2px 20px 0px var(--theme-primary)
}

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

@media (max-width: 767px) {
  .navbar-collapse {
    display: none;
  }
}

.section1 {
  width: 100%;
  position: relative;
  overflow: hidden;
  height: calc(100vh - 130px) !important;
}

#heroCarousel {
  width: 100%;
  height: calc(100vh - 130px) !important;
}

.carousel-item {
  height: calc(100vh - 130px) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat;
  background-color: #f8fafc;
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  /* Lighter overlay for service images */
  z-index: 10;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.hero-slide-overlay .container {
  pointer-events: auto;
}

.carousel-control-prev,
.carousel-control-next,
.carousel-indicators {
  z-index: 15;
}

.hero-slide-overlay h1 {
  font-size: 4rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 30px;
  font-weight: 900;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  line-height: 1.1;
}

.hero-intro {
  font-family: 'Inter', sans-serif !important;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 8px;
  text-transform: uppercase;
  margin-bottom: 25px;
  opacity: 0.9;
  display: block;
}

.cta-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  max-width: 1000px;
  margin: 40px auto 0;
}

.min-w-200 {
  min-width: 220px;
}

/* --- Hero CTA Grid Responsiveness --- */
@media (max-width: 991px) {
  .cta-grid {
    flex-direction: column;
    align-items: center;
  }

  .min-w-200 {
    width: 100%;
    max-width: 300px;
  }
}

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

  .section1,
  #heroCarousel,
  .carousel-item {
    height: auto;
    min-height: 600px;
  }
}

.section2_main {
  width: 100vw;
  padding: 80px 0;
  justify-content: center;
  text-align: center;
  background-color: #ffffff;
  background-image: url(../img/telecom_pattern_light.png);
  background-size: 400px;
  background-repeat: repeat;
  background-attachment: fixed;
}

.section2_main span {
  font-weight: 900;
  color: var(--theme-secondary);
  margin-bottom: 50px;
  font-size: 1.5em;
  display: block;
  /* Ensure centering works */
  text-align: center;
}

.section2_main h1 {
  font-weight: 900;
  color: black;
  margin-bottom: 50px;
  letter-spacing: 0.3em;
}

.section2_main .card {
  background-color: transparent;
  margin-bottom: 20px;
  cursor: pointer;
  border: none;
  max-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease-in-out;
  text-decoration: none;
  background-color: white;
  box-shadow: 0px 3px 5px -3px rgba(0, 0, 0, 0.5);
}

.section2_main .card i {
  font-size: 4em;
  color: var(--theme-primary);
  /* Navy Blue Default */
  padding: 20px;
}

.section2_main .card:hover {
  text-decoration: none;
  color: white;
  background-color: var(--theme-secondary);
  /* Maroon on Hover */
  box-shadow: 5px 5px 10px 0px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--theme-secondary);
}

.section2_main .card:hover i {
  color: white;
}

/*section 2 other pages*/

.section2 {
  width: 100vw;
  justify-content: center;
  text-align: center;
}

.section2 span {
  font-weight: 900;
  color: var(--theme-secondary);
  margin-bottom: 50px;
  font-size: 1.5em;
  display: block;
  text-align: center;
}


.section2 .card {
  background-color: transparent;
  margin-bottom: 20px;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease-in-out;
  text-decoration: none;
  background-color: white;
  box-shadow: 0px 3px 5px -3px rgba(0, 0, 0, 0.5);
}

.section2 .card:hover {
  text-decoration: none;
  color: white;
  background-color: var(--theme-secondary);
  /* Maroon */
  box-shadow: 5px 5px 10px 0px rgba(0, 0, 0, 0.5);
}

.section2 .card:hover i {
  color: white;
}


.section3 {
  position: relative;
  width: 100%;
  min-height: 400px;
  padding: 30px 20px;
  padding-bottom: 40px;
  justify-content: center;
  text-align: center;
  background: #000033;
  z-index: 0;
}

.section3::before {
  position: absolute;
  left: 0;
  content: "";
  top: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(45deg, rgba(0, 0, 200, 0.7), rgba(183, 0, 0, 0.6), rgba(0, 0, 200, 0.7)), url(../img/telecom_pattern_dark.png);
  background-size: cover, 400px;
  background-repeat: no-repeat, repeat;
  background-blend-mode: overlay;
  background-attachment: fixed;
  z-index: -1;
}

.section3 span {
  font-weight: 900;
  color: var(--theme-secondary);
  margin-bottom: 50px;
  letter-spacing: 0.3em;
  display: block;
  text-align: center;
}

.section3 h1 {
  font-weight: 900;
  font-size: 35px;
  color: var(--theme-white);
  margin-bottom: 20px;
}

.section3 .card {
  background-color: rgba(255, 255, 255, 0.8);
  text-align: left;
}

.section3 .avatar {
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: white;
  background-color: var(--theme-primary);
}

.section3 small {
  color: var(--theme-primary);
}

.section3 .details {
  width: calc(100% - 60px);
}


.section4 {
  width: 100%;
  padding: 80px 20px;
  background-color: #f8fafc;
  background-image: url(../img/telecom_pattern_light.png);
  background-size: 400px;
  background-repeat: repeat;
  background-attachment: fixed;
  border-top: 1px solid #eee;
  position: relative;
}

.elevated-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.elevated-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.contact-info-strip {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.contact-method i {
  color: var(--theme-primary);
  font-size: 1.2rem;
}

.map-container {
  padding: 0;
  border-radius: 0;
  overflow: hidden;
}

.address-text {
  padding: 20px;
  font-size: 15px;
  color: #555;
  background: white;
}


.section5 {
  position: relative;
  width: 100%;
  padding: 30px 20px;
  padding-bottom: 40px;
  justify-content: center;
  text-align: center;
  background-image: url(../img/esteemed-customers-bg.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}

.section5::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  right: 0;
  z-index: -1;
  background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(255, 255, 255, 0.9));
}

.section5 span {
  font-weight: 900;
  color: var(--theme-secondary);
  ;
  margin-bottom: 50px;
  letter-spacing: 0.3em;
  display: block;
  text-align: center;
}

.section5 h1 {
  font-weight: 900;
  font-size: 35px;
  color: var(--theme-white);
  margin-bottom: 20px;
}

.section5 .customer-item {
  width: 150px;
  height: 80px;
  border-radius: 5px;
  margin: 10px;
  display: flex;
  align-content: center;
  align-items: center;
  cursor: pointer;
  background-color: rgb(255, 255, 255);
  border: 3px solid rgb(240, 240, 240);
  -webkit-transition: none;
  transition: none;
  border-top-right-radius: 5px;
  border-top-left-radius: 5px;
  overflow: hidden;
  transition: all .5s ease-in-out;
}


.customer-item:hover {
  border-top-right-radius: 50%;
  border-top-left-radius: 50%;
  transition: transform 2s ease-in-out;
}

.section5 .customer-item img {
  width: 100%;
  height: auto;
}


.footer-main {
  padding: 30px 20px;
  /*  background-color: #123;
  color: white;*/
  background-color: #EEE;
  /* background-color: var(--theme-white); */
  color: var(--theme-black);
}

.footer-main span {
  position: relative;
  color: var(--theme-primary);
  padding: 5px 0;
  cursor: pointer;
  width: 100%;
  transition: all .5s ease-in-out;
}

.footer-main p,
ul {
  margin-top: 10px;
}

.footer-main span::after {
  position: absolute;
  left: 50%;
  content: "";
  display: block;
  margin: 0 auto;
  width: 0;
  padding-top: 5px;
  border-bottom: 2px solid red;
  transition: all .5s ease-in-out;
}

.footer-main span:hover:after {
  left: 5%;
  width: 90%;
}

.footer-main span i {
  margin-right: 10px;
}

.footer-main ul {
  list-style: none;
}

.footer-main ul li {
  padding-left: 20px;
}

.footer-main ul li::before {
  content: "\25C8";
  /*html and css unicode*/
  color: red;
  font-weight: bold;
  display: inline-block;
  width: 1.5em;
  margin-left: -1em;
}

.footer-secondary {
  width: 100%;
  text-align: center;
  display: inline-block;
  justify-content: center;
  align-items: center;
  align-content: center;
  padding: 20px 0;
  color: white;
  background-color: #012;
  /* background-color: var(--theme-primary); */
}

@media (max-width: 767px) {
  .footer-secondary {
    padding-bottom: 50px;
  }
}

.footer-social-links {
  font-size: 25px;
  margin-top: 10px;
  transition: all .5s ease-in-out;
}

.footer-social-links a {
  color: white;
}

.footer-social-links:hover a {
  color: var(--theme-primary);
}


.footer-social-links:hover {
  background-color: white;
  border-radius: 50%;
}

/* --- Premium Form System --- */
.premium-form .form-control {
  border: 1px solid #e0e6ed !important;
  border-radius: 8px !important;
  padding: 12px 15px !important;
  height: auto !important;
  font-size: 15px !important;
  transition: all 0.3s ease !important;
  background-color: #fbfcfe !important;
}

.premium-form .form-control:focus {
  border-color: var(--theme-primary) !important;
  box-shadow: 0 0 0 4px rgba(0, 0, 160, 0.1) !important;
  background-color: white !important;
  outline: none !important;
}

.premium-form label {
  font-weight: 600 !important;
  color: #334155 !important;
  margin-bottom: 8px !important;
  font-size: 14px !important;
}

/* --- Responsive Modal Fixes --- */
.modal-content {
  border: none !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
}

.modal-header {
  border-bottom: 1px solid #f1f5f9 !important;
  padding: 20px 30px !important;
}

.modal-body {
  padding: 30px !important;
  max-height: 85vh !important;
  overflow-y: auto !important;
}

@media (max-width: 576px) {
  .modal-dialog {
    margin: 10px !important;
    max-width: calc(100% - 20px) !important;
  }
}

/* --- Navbar Wrapping Fix --- */
.nav-signin-btn {
  padding: 8px 25px !important;
  border-radius: 50px !important;
  transition: all 0.3s ease !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  min-width: 100px;
  text-align: center;
  display: inline-block;
}

/* --- Fancy Testimonial Cards --- */
.fancy-card {
  border-top: 4px solid var(--theme-primary) !important;
  position: relative !important;
  padding-top: 10px !important;
}

.testimonial-quote {
  position: absolute !important;
  top: 20px !important;
  right: 30px !important;
  font-size: 2.5rem !important;
  color: rgba(0, 0, 160, 0.05) !important;
  z-index: 0 !important;
}

.fancy-card .card-body {
  position: relative !important;
  z-index: 1 !important;
}


/* --- Button Hover Fix (Disappearing Issue) --- */
.cu-bg-primary:hover {
  background-color: #000080 !important;
  /* Solid darker blue instead of transparent */
  color: white !important;
  border-color: #000080 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 128, 0.2) !important;
  transform: translateY(-2px) !important;
}

/* --- MSpace Branded Premium Forms --- */
.premium-form .modal-header {
  background-color: var(--theme-primary) !important;
  color: white !important;
  border-bottom: none !important;
  border-top-left-radius: 16px !important;
  border-top-right-radius: 16px !important;
}

.premium-form .modal-title {
  color: white !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
}

.premium-form .close {
  color: white !important;
  opacity: 0.8 !important;
  text-shadow: none !important;
}

.premium-form .close:hover {
  opacity: 1 !important;
}

.premium-form .form-group label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  margin-bottom: 10px !important;
}

.premium-form .form-group label i {
  color: var(--theme-primary) !important;
  font-size: 0.9rem !important;
}

.premium-form .form-control {
  border: 1px solid #cbd5e1 !important;
  background-color: rgba(248, 250, 252, 0.5) !important;
  padding: 12px 16px !important;
  font-size: 15px !important;
  color: #334155 !important;
}

.premium-form .form-control:focus {
  border-color: var(--theme-primary) !important;
  background-color: white !important;
  box-shadow: 0 0 0 4px rgba(0, 0, 160, 0.1) !important;
}

.premium-form .btn-block {
  padding: 14px !important;
  font-size: 16px !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  border-radius: 10px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* --- Consolidated Premium Client Marquee --- */
.section5 {
  padding: 40px 0 !important;
  background: radial-gradient(circle at center, #1e1e3f 0%, #0000a0 100%) !important;
  position: relative !important;
  overflow: hidden !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee-header {
  margin-bottom: 30px !important;
}

.esteemed-title {
  color: white !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: 4px !important;
  text-transform: uppercase !important;
  opacity: 0.8 !important;
}

.marquee-wrapper {
  overflow: hidden !important;
  width: 100% !important;
  padding: 20px 0 !important;
  position: relative !important;
  white-space: nowrap !important;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 100px !important;
  z-index: 2 !important;
  pointer-events: none !important;
}

.marquee-wrapper::before {
  left: 0 !important;
  background: linear-gradient(to right, #0000a0, transparent) !important;
}

.marquee-wrapper::after {
  right: 0 !important;
  background: linear-gradient(to left, #0000a0, transparent) !important;
}

.marquee-content {
  display: inline-flex !important;
  align-items: center !important;
  gap: 50px !important;
  width: max-content !important;
  animation: scrollMarquee 40s linear infinite !important;
}

.marquee-item {
  flex-shrink: 0 !important;
  height: 60px !important;
  width: 180px !important;
  /* Strict width for logo containers */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 20px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  transition: all 0.3s ease !important;
}

.marquee-item img {
  max-height: 40px !important;
  max-width: 140px !important;
  width: auto !important;
  height: auto !important;
  opacity: 0.85 !important;
  transition: all 0.3s ease !important;
  object-fit: contain !important;
}

.marquee-item:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  transform: translateY(-3px) !important;
}

.marquee-item:hover img {
  opacity: 1 !important;
  filter: none !important;
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* --- Mobile Sidenav Drawer (Deprecated in favor of sidenav.css)
.sidenav {
  position: relative;
  z-index: 2000;
}

.sidenav-content {
  height: 100vh;
  width: 250px;
  position: fixed;
  z-index: 2001;
  top: 0;
  left: 0;
  background-color: #fff;
  overflow-x: hidden;
  transition: 0.5s;
  transform: translateX(-100%);
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
  padding-top: 60px;
}

.sidenav-content.slide-in {
  transform: translateX(0);
}

.sidenav-bg {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  cursor: pointer;
}

.sidenav-content a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 18px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

.sidenav-content a:hover {
  color: #f1f1f1;
  background-color: var(--theme-primary);
}

.sidenav-content .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}
*/

/* ─────────────────────────── Global Form Fixes ─────────────────────────── */
/* Ensure dropdown options are readable regardless of OS dark mode styles */
select.form-control option, select option {
    background-color: #0b1630 !important;
    color: #ffffff !important;
}