/* General Reset / Typography */
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background-color: #111827; /* dark background */
  color: #f9fafb;
}

/* Make all sections mobile-first */
section {
  padding: 3rem 1.5rem;
}

/* Footer layout */
footer {
  background-color: #1f2937;
  color: #fff;
  direction: ltr !important;
}

/* Footer flex container */
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

/* Columns */
.footer-logo,
.footer-links,
.footer-contact,
.footer-location,
.footer-services {
  flex: 1 1 200px;
  text-align: left;
}

/* Map iframe */
.footer-location iframe {
  width: 100%;
  height: 180px;
  border: 0;
}

/* Small screen adjustments */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center; /* stack columns vertically */
  }

  .footer-logo,
  .footer-links,
  .footer-contact,
  .footer-location,
  .footer-services {
    text-align: center; /* center content on mobile */
    margin-bottom: 1.5rem; /* spacing between stacked sections */
  }

  .footer-location iframe {
    height: 200px; /* taller map on mobile */
  }

  footer p.d-flex {
    justify-content: center !important; /* center phone/email on mobile */
    flex-wrap: wrap; /* allow wrapping */
  }
}

/* Make text left-aligned on larger screens */
footer .text-start {
  text-align: left !important;
}
.ms-custom { margin-left: 10rem !important; }
@media (max-width: 992px) {
  .ms-custom {
    margin-left: 0 !important;
  }
}
@media (max-width: 768px) {
  .text-start {
    text-align: center !important;
  }
}
@media (max-width: 992px) {
  .navbar-nav.gap-4 {
    gap: 0.5rem;
  }
}
@media (max-width: 576px) {
  .navbar-brand img {
    width: 100px;
    height: auto;
  }
}
@media (max-width: 768px) {
  footer .col-12 {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  footer iframe {
    height: 200px;
  }
}
@media (max-width: 992px) {
  .dropdown-menu {
    width: 100%;
  }
}
.dropdown-menu {
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.dropdown-item {
  padding-left: 0.5rem !important; /* adjust if you want small spacing */
  text-align: left !important;
}
/* Force dropdown links fully left-aligned */
.dropdown-menu {
  padding-left: 0 !important;
  margin-left: 0 !important;
  text-align: left !important;
}

.dropdown-item {
  padding-left: 0 !important;  /* remove Bootstrap's default 1rem */
  text-align: left !important;
}
.dropdown-item {
  padding-left: 0.25rem !important;
}
@media (max-width: 576px) {
  h1, h2, h3 {
    font-size: 1.5rem; /* smaller headings */
  }
  p {
    font-size: 0.9rem;
  }
  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}
html, body {
  overflow-x: hidden;
}
@media (max-width: 768px) {
  .navbar-nav {
    text-align: center;
  }
  .navbar-collapse {
    padding: 1rem 0;
  }
}
img {
  max-width: 100%;
  height: auto;
}
footer a {
  display: inline-block;
  padding: 0.4rem 0;
}
@media (max-width: 576px) {
  section {
    padding: 2rem 1rem; /* reduce side padding */
  }
}
/* Slider / Carousel responsiveness */
.carousel-item img {
  width: 100%;
  height: 100vh; /* full height on desktop */
  object-fit: cover;
  object-position: center;
}

/* Tablet */
@media (max-width: 992px) {
  .carousel-item img {
    height: 70vh; /* reduce height */
  }
  .carousel-caption h1 {
    font-size: 28px;
  }
  .carousel-caption h5 {
    font-size: 18px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .carousel-item img {
    height: 50vh; /* smaller for phones */
  }
  .carousel-caption {
    bottom: 40px;
    padding: 0 10px;
  }
  .carousel-caption h1 {
    font-size: 22px;
    line-height: 1.3;
  }
  .carousel-caption h5 {
    font-size: 14px;
  }
  .carousel-caption p {
    font-size: 13px;
  }
  .carousel-caption a.btn {
    padding: 6px 14px;
    font-size: 14px;
  }
}
/* 📱 Contact Page Responsive Fixes */

/* Smaller icons on mobile */
@media (max-width: 768px) {
  .contact-icon {
    width: 50px;
    height: 80px;
  }
  .contact-card {
    padding: 1.5rem;
  }
}

/* Contact box overlay on map */
@media (max-width: 992px) {
  .contact-box {
    position: static; /* remove absolute overlap */
    transform: none;
    margin: 20px auto;
    max-width: 95%;
    border: 3px solid #042046; /* instead of thick top/right */
    padding: 20px;
  }
  .location-section iframe {
    height: 400px; /* reduce map height */
  }
}

/* Mobile typography */
@media (max-width: 576px) {
  .contact-box h3 {
    font-size: 20px;
  }
  .contact-box label {
    font-size: 14px;
  }
  .contact-box button {
    font-size: 16px;
    padding: 10px 20px;
  }
}
/* Fix contact form cut-off on mobile */
@media (max-width: 992px) {
  .contact-box {
    position: static !important; /* remove absolute positioning */
    top: auto;
    left: auto;
    transform: none !important;
    margin: 20px auto;
    max-width: 100%;
    width: 100%;
    padding: 20px;
    border: 3px solid #042046; /* keep border style but thinner */
  }

  .location-section iframe {
    height: 300px; /* smaller map height for mobile */
  }
}
/* Fullscreen background for slides */
.bg-slide {
  height: 100vh;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Button styling */
.custom-btn {
  display: inline-block;
  background: linear-gradient(90deg,#0d6efd, #6610f2 60%, #9fe3f8ff);
  color: white;
  padding: 12px 30px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}
.custom-btn:hover {
  background: linear-gradient(45deg, #2271e9ff, #e3daf1ff);
  transform: scale(1.05);
}

/* Responsive text scaling */
.custom-heading {
  font-size: clamp(1.5rem, 4vw, 3rem);
}
/* Progress bar styling */
.progress {
  height: 10px;
  background: #e9ecef;
  border-radius: 6px;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  height: 100%;
  transition: width 0.6s ease;
}

.skill-item h4 {
  font-weight: 600;
  color: #fff; /* adjust if dark background */
}

.skill-percentage {
  font-weight: 600;
  color: #9fe3f8;
}

/* Mobile spacing fix */
@media (max-width: 767px) {
  .text-col {
    margin-bottom: 25px;
  }
}
@media (max-width: 767px) {
  .quick-links {
    text-align: center !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
  }
  .quick-links li {
    display: block;
  }
}
/* Force Quick Links to center only on mobile */
@media (max-width: 767.98px) {
  .footer-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
  }

  .footer-links li {
    width: 100%;
    text-align: center !important;
  }

  .footer-links a {
    display: inline-block;
    text-align: center !important;
  }
}
/* Force Quick Links center ONLY on mobile */
@media (max-width: 767.98px) {
  .footer-links,
  .footer-links ul,
  .footer-links li,
  .footer-links a {
    text-align: center !important;
    margin: 0 auto !important;
    display: block !important;
  }
}
/* Columns */
.footer-logo,
.footer-links,
.footer-contact,
.footer-location,
.footer-services {
  flex: 1 1 200px;
  /* remove text-align: left; */
}

/* Make text left-aligned on larger screens only */
@media (min-width: 769px) {
  .footer-logo,
  .footer-links,
  .footer-contact,
  .footer-location,
  .footer-services {
    text-align: left;
  }
}
/* Force Quick Links center on mobile */
@media (max-width: 767.98px) {
  .footer-links,
  .footer-links ul,
  .footer-links li,
  .footer-links a {
    text-align: center !important;
    margin: 0 auto !important;
    display: block !important;
  }
}
.navbar-brand img {
  width: 150px; /* Increase width */
  height: auto; /* Maintain aspect ratio */
  transition: transform 0.3s ease;
}

.navbar-brand img:hover {
  transform: scale(1.1); /* Optional hover zoom */
}
.navbar-brand img {
  width: 160px !important;  /* Try adjusting this value */
  height: auto !important;  /* Keeps correct proportions */
}
.navbar-brand img {
  width: 130px !important; /* Slightly smaller */
  height: auto !important;
}
/* 🌐 Footer Mobile Optimization */
@media (max-width: 768px) {
  .footer-modern .row {
    text-align: center !important;
  }

  .footer-modern .col-6,
  .footer-modern .col-12 {
    margin-bottom: 1.5rem !important;
  }

  .footer-modern .footer-links,
  .footer-modern .footer-link {
    text-align: center !important;
  }

  .footer-modern img {
    margin: 0 auto !important;
  }

  .footer-modern .ratio {
    max-width: 300px;
    margin: 0 auto !important;
  }
  
  .footer-bottom {
    padding: 10px 15px;
  }
}
/* Footer General */
.footer-modern {
  background: #042046; /* adjust as needed */
  color: #fff;
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
  text-align: center; /* center all text by default */
}

/* Footer Links */
.footer-modern .footer-links {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.footer-modern .footer-links li {
  margin-bottom: 0.5rem;
}

.footer-modern .footer-links li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-modern .footer-links li a:hover {
  color: #3cb878; /* highlight on hover */
}

/* Footer Bottom Copyright */
.footer-modern .footer-bottom {
  padding-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #ccc;
}

/* Map & Logo Centering */
.footer-modern img,
.footer-modern iframe {
  display: block;
  margin: 0 auto;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .footer-modern .row {
    text-align: center !important;
    justify-content: center !important;
  }
  
  .footer-modern .footer-links li {
    display: inline-block;
    margin: 0 8px 5px;
  }

  .footer-modern .footer-bottom {
    font-size: 0.8rem;
    padding-top: 10px;
  }

  .footer-modern iframe {
    max-width: 300px;
  }
}
/* Force footer columns to stack and center on small screens */
@media (max-width: 767px) {
    .footer-modern .row {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .footer-modern .row > div {
        width: 100% !important;
        margin-bottom: 15px !important; /* spacing between sections */
    }

    .footer-modern .footer-links {
        text-align: center !important;
    }

    .footer-modern .footer-links li {
        display: inline-block !important;
        margin: 0 8px 5px 8px !important;
    }

    .footer-modern iframe {
        width: 100% !important;
        height: 180px !important; /* smaller height for mobile */
        margin: 0 auto !important;
    }
}
@media (max-width: 767px) {
    /* Center all footer columns on mobile */
    .footer-modern .row > div {
        float: none !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }

    /* Center Quick Links list */
    .footer-modern .footer-links {
        padding-left: 0 !important;
        display: inline-block !important; /* shrink width to content */
        text-align: center !important;
    }

    .footer-modern .footer-links li {
        display: block !important;
        margin: 5px 0 !important;
    }
}
