/* Fix for fixed navbar spacing */
body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  padding-top: 0; /* remove any extra top padding */
  margin: 0;
}
/* Simple fix for carousel below fixed navbar */
#heroCarousel {
  margin-top: 70px;
}

.carousel-item {
  height: 60vh;
}

/* Custom Navbar */
.custom-navbar {
  background-color: #ffffff;
  padding: 0.3rem 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  height: 70px;
}

.navbar-brand {
  color: #fff !important;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

.navbar-brand .logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.nav-link {
  color: #070000 !important;
  font-weight: 500;
  margin-left: 10px;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #F4A261 !important;
}

.navbar-toggler {
  border-color: rgba(0,0,0,0.1);
  background: transparent;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.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='rgba(0,0,0,0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Mobile Sidebar Styles */
/* Fix for fixed navbar spacing */
body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  padding-top: 0;
  margin: 0;
}

/* Custom Navbar */
.custom-navbar {
  background-color: #ffffff;
  padding: 0.3rem 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  height: 70px;
  z-index: 1030;
}

.navbar-brand {
  color: #fff !important;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

.navbar-brand .logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.nav-link {
  color: #070000 !important;
  font-weight: 500;
  margin-left: 10px;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #F4A261 !important;
}

.navbar-toggler {
  border-color: rgba(0,0,0,0.1);
  background: transparent;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.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='rgba(0,0,0,0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Remove container padding on mobile for full width */
@media (max-width: 991.98px) {
  .custom-navbar .container-fluid {
    padding-left: 0;
    padding-right: 0;
  }
  
  .custom-navbar .container-fluid .navbar-brand {
    margin-left: 1rem;
  }
  
  .custom-navbar .container-fluid .navbar-toggler {
    margin-right: 1rem;
  }
}

@media (max-width: 991.98px) {
  /* Move logo to the left and hamburger to the right */
  .custom-navbar .container-fluid {
    justify-content: space-between !important;
  }

  .custom-navbar .container-fluid .navbar-brand {
    margin-left: -3rem !important;
  }

  .custom-navbar .container-fluid .navbar-toggler {
    margin-right: -3rem !important;
  }

  .navbar-collapse {
    position: fixed; /* FIX: Keep on same line */
    top: 70px;
    left: -100%;
    width: 100vw;
    height: calc(100vh - 70px);
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
    padding: 1rem 1.5rem;
    border: none !important;
    outline: none !important;
    overflow: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
    /* ADD THIS to ensure smooth left-to-right slide */
    transform: translateX(0);
  }

  .navbar-collapse::-webkit-scrollbar {
    display: none;
  }

  .navbar-collapse.show {
    left: 0;
  }

  /* Remove duplicate .navbar-nav styles and keep only one */
  .navbar-nav {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 1rem;
    height: 100%;
    overflow: hidden;
  }

  .nav-item {
    width: 100%;
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  .nav-link {
    color: #000000 !important;
    margin: 0;
    padding: 1.2rem 1rem;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0px;
    width: 100%;
  }

  .nav-link:hover,
  .nav-link.active {
    color: #F4A261 !important;
    background-color: rgba(244, 162, 97, 0.1);
    padding-left: 1.5rem;
  }

  .navbar-brand .logo {
    height: 45px;
  }

  .navbar-toggler[aria-expanded="true"] {
    position: relative;
    z-index: 1060;
  }

  body.sidebar-open {
    overflow: hidden;
  }
}

/* Close button animation - UPDATED for dark X icon */
.navbar-toggler[aria-expanded="true"] .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='rgba(0,0,0,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M6 6L24 24M6 24L24 6'/%3E%3C/svg%3E");
}

/* FIX: Carousel margin to account for fixed navbar */
#heroCarousel {
  margin-top: 70px;
}

/* Make carousel full width on mobile */
@media (max-width: 991.98px) {
  #heroCarousel {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  }
  
  .carousel-item img {
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    position: relative;
  }
}

/* Modern Carousel - Slide Transition */
.carousel-item {
  height: calc(75vh - 70px); /* Increased height from 60vh to 75vh */
  min-height: 500px; /* Increased from 400px to 500px */
  position: relative;
}

.carousel-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.carousel-caption-modern {
  position: absolute;
  top: 50%;
  left: 5%; /* Changed from 50% to 10% for left alignment */
  transform: translateY(-50%); /* Removed X translation to keep only vertical centering */
  z-index: 2;
  color: white;
  max-width: 800px;
  text-align: left; /* Changed from center to left */
  width: auto; /* Changed from 90% to auto */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* Changed from center to flex-start */
  height: 100%;
}

.carousel-caption-modern h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
}

.carousel-caption-modern p {
  font-size: 1.2rem;
  font-weight: 300;
  color: #f1f1f1;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Carousel controls - position beside the dots */
.carousel-control-prev,
.carousel-control-next {
  background: none;
  border-radius: 0;
  width: 40px;
  height: 40px;
  top: auto;
  bottom: 7px;
  transform: translateY(0);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

/* Position arrows horizontally relative to the center */
.carousel-control-prev {
  left: calc(50% - 120px);  
}

.carousel-control-next {
  right: calc(50% - 120px);  
}

/* Make arrow icons white */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-image: none;
  display: inline-block;
  width: 12px;
  height: 12px;
  border: solid white;
  border-width: 0 3px 3px 0;
  padding: 3px;
}

/* Rotate arrows */
.carousel-control-prev-icon {
  transform: rotate(135deg);
}

.carousel-control-next-icon {
  transform: rotate(-45deg);
}

/* Keep dots at bottom */
.carousel-indicators {
  bottom: 7px;
}

.carousel-indicators button {
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  margin: 0 5px !important;
  background-color: rgba(255, 255, 255, 0.5) !important;
  border: none !important;
  transition: all 0.3s ease !important;
}

.carousel-indicators button.active {
  background-color: white !important;
  transform: scale(1.2) !important;
}

.carousel-indicators button:hover {
  background-color: rgba(255, 255, 255, 0.8) !important;
}

/* Smaller screens */
@media (max-width: 768px) {
  .carousel-item {
    height: calc(65vh - 70px); /* Increased from 50vh to 65vh */
    min-height: 450px; /* Increased from 350px to 450px */
  }
  
  .carousel-caption-modern {
    width: 90%;
    left: 5%; /* Adjusted for mobile */
    text-align: left;
  }

  .carousel-caption-modern h1 {
    font-size: 2rem;
  }

  .carousel-caption-modern p {
    font-size: 1rem;
  }

  .carousel-control-prev {
    left: 35%;
  }
  
  .carousel-control-next {
    right: 35%;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 576px) {
  .carousel-item {
    height: calc(60vh - 70px); /* Increased from 45vh to 60vh */
    min-height: 400px; /* Increased from 300px to 400px */
  }
  
  .carousel-control-prev {
    left: 30%;
  }
  
  .carousel-control-next {
    right: 30%;
  }
  
  .carousel-caption-modern h1 {
    font-size: 1.8rem;
  }
  
  .carousel-caption-modern {
    left: 5%;
    width: 90%;
  }
}

/* What We Do Section */
.what-we-do {
  background-color: #ffffff;
}

.what-we-do h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #0D3B66;
}

.service-card {
  background-color: #fff;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.08);
}

.service-img {
  width: 100%;
  height: 220px;         /* You can adjust this value */
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-img {
  transform: scale(1.05);
}


/* About Section */
.about-section {
  background-color: #f8f9fa;
}

.about-section h2 {
  font-size: 2.2rem;
  font-weight: 700;
}

.about-section p {
  line-height: 1.7;
  font-size: 1rem;
}

.about-section img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.about-section .btn-primary {
  background-color: #0D3B66;
  border: none;
}

.about-section .btn-primary:hover {
  background-color: #0b3153;
}

.clients-section {
  background-color: #ffffff;
  overflow: hidden;
  position: relative;
  z-index: 1;
  padding-top: 60px;
  padding-bottom: 60px;
}

.logo-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 120px;
}

.logos-track {
  display: flex;
  width: max-content;
  animation: scroll 60s linear infinite;
}

.logos-slide {
  display: flex;
  align-items: center;
  gap: 80px;
  padding-right: 80px;
  flex-shrink: 0;
}

.logos-slide img {
  height: 70px;
  width: auto;
  opacity: 0.95;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.logos-slide img:hover {
  transform: scale(1.08);
  opacity: 1;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.logo-slider:hover .logos-track {
  animation-play-state: paused;
}

.logo-slider::before,
.logo-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.logo-slider::before {
  left: 0;
  background: linear-gradient(to right, #ffffff 0%, transparent 100%);
}

.logo-slider::after {
  right: 0;
  background: linear-gradient(to left, #ffffff 0%, transparent 100%);
}

/* Responsive */
@media (max-width: 992px) {
  .logos-slide {
    gap: 60px;
    padding-right: 60px;
  }
  .logos-track {
    animation-duration: 50s;
  }
  .logos-slide img {
    height: 60px;
  }
}

@media (max-width: 768px) {
  .logos-slide {
    gap: 40px;
    padding-right: 40px;
  }
  .logos-track {
    animation-duration: 45s;
  }
  .logos-slide img {
    height: 50px;
  }
}

@media (max-width: 576px) {
  .logos-slide {
    gap: 30px;
    padding-right: 30px;
  }
  .logos-track {
    animation-duration: 40s;
  }
  .logos-slide img {
    height: 45px;
  }
}

/* Enhanced Core Values Styles - Permanent Effects */
.core-values {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.core-values::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%230D3B66" fill-opacity="0.03" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,192C1248,192,1344,128,1392,96L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.core-values .container {
  position: relative;
  z-index: 1;
}

.value-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(13, 59, 102, 0.1);
  position: relative;
  overflow: hidden;
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(13, 59, 102, 0.15);
}

.value-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0D3B66, #1E88E5);
  transform: scaleX(1);
}

.value-icon-wrapper {
  position: relative;
  display: inline-block;
}

.value-icon-wrapper::before {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #00c6ff 100%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.1);
  z-index: -1;
}

.value-card i {
  color: white;
  transform: scale(1.1);
}

.value-hover-effect {
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(13, 59, 102, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  top: -60px;
  right: -60px;
  opacity: 1;
}

.core-values h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

/* .core-values h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #0D3B66, #1E88E5);
  border-radius: 2px;
} */

.core-values .lead {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Contact CTA */
.contact-cta {
  background-color: #0D3B66;
}
.contact-cta a.btn {
  color: #0D3B66;
  background-color: #F4A261;
  border: none;
}
.contact-cta a.btn:hover {
  background-color: #f68b3f;
}

/* ============================= */
/* Footer Styles (Fixed)         */
/* ============================= */
footer {
    background-color: #000307; /* dark professional background */
    color: #f8f9fa;
    font-family: 'Poppins', sans-serif;
    padding: 60px 0 20px;
}

footer a {
    color: #f8f9fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #0D3B66; /* Accent color for hover */
    text-decoration: underline;
}

footer h5 {
    color: #ffffff !important;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

footer p,
footer li,
footer .small {
    color: #f1f1f1 !important; /* ensures text is visible */
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Newsletter / Input Group */
footer .input-group {
    margin-top: 0.5rem;
}

footer .form-control {
    border-radius: 0.25rem 0 0 0.25rem;
    border: none;
    padding: 0.5rem 1rem;
}

footer .btn-primary {
    background-color: #0D3B66;
    border: none;
    border-radius: 0 0.25rem 0.25rem 0;
    padding: 0.55rem 1.2rem;
    transition: 0.3s;
}

footer .btn-primary:hover {
    background-color: #008ecc;
}

footer .bi {
    font-size: 1.2rem;
    transition: 0.3s;
}

footer .bi:hover {
    color: #00aaff;
}

footer .small {
    color: #6c757d;
    display: block;
    margin-top: 1rem;
}

footer .logo {
    max-width: 120px;
    margin-bottom: 1rem;
}

/* Footer Columns / Responsive */
footer .row > div {
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    footer .row > div {
        text-align: center;
    }

    footer .input-group {
        flex-direction: column;
    }

    footer .form-control,
    footer .btn-primary {
        width: 100%;
        margin-bottom: 0.5rem;
        border-radius: 0.25rem;
    }
}



/* ============================= */
/* About Page Styles             */
/* ============================= */

/* Fixed Navbar Offset for all pages except home */
body:not(.home) {
  padding-top: 60px;
}

/* Scroll Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.scroll-animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* About Hero Section */
.about-hero-section {
  padding-top: 10px !important;
  height: 500px !important;
  min-height: 350px !important;
  margin-top: 0 !important;
}

/* Hero Section Base Styles */
.hero-section {
  width: 100%;
  position: relative;
}

.hero-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(62, 72, 82, 0.7);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
  width: 90%;
  max-width: 800px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 300;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Welcome Section */
.bg-light {
  background-color: #f8f9fa !important;
}

/* Enhanced Images */
.rounded-4 {
  border-radius: 1rem !important;
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #0D3B66 0%, #1E88E5 100%);
  border: none;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(13, 59, 102, 0.3);
}

.btn-lg {
  padding: 12px 35px;
  font-size: 1.1rem;
}

/* Company Story Section */
.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

/* Vision & Mission Section */
.bg-primary {
  background: linear-gradient(135deg, #0D3B66 0%, #1E88E5 100%) !important;
}

.bg-white.bg-opacity-10 {
  backdrop-filter: blur(10px);
}

/* Value Cards */
.value-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(13, 59, 102, 0.1);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(13, 59, 102, 0.2) !important;
}

.value-icon {
  transition: all 0.3s ease;
}

.value-card:hover .value-icon {
  transform: scale(1.1);
}

/* Smooth transitions */
.transition-all {
  transition: all 0.3s ease;
}

/* Text Colors */
.text-primary {
  color: #0D3B66 !important;
}

.text-muted {
  color: #6c757d !important;
}

/* Responsive Design for About Hero */
@media (max-width: 991.98px) {
  .about-hero-section {
    padding-top: 70px !important;
    height: 350px !important;
    min-height: 300px !important;
  }
}

@media (max-width: 768px) {
  .about-hero-section {
    padding-top: 70px !important;
    height: 300px !important;
    min-height: 250px !important;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .btn-lg {
    padding: 10px 25px;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .about-hero-section {
    padding-top: 70px !important;
    height: 250px !important;
    min-height: 200px !important;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .rounded-4 {
    border-radius: 0.75rem !important;
  }
}

/* General Section Spacing */
.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

/* Headings */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

h3 {
  font-size: 1.75rem;
  font-weight: 600;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
}

/* Font Awesome Icons */
.fa-check-circle {
  color: #0D3B66;
}

/* Opacity utilities */
.opacity-90 {
  opacity: 0.9;
}

/* Border utilities */
.border-opacity-25 {
  border-spacing: 0.25 !important;
}

/* Flex gap utilities */
.gap-3 {
  gap: 1rem;
}

/* ============================= */
/* Services Cards - 3D Flip      */
/* ============================= */

.service-card {
  perspective: 1200px; /* enables 3D effect */
  margin-bottom: 30px;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 280px; /* reduced height */
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  cursor: pointer; /* Add cursor pointer for better UX */
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.service-card:hover .service-card-inner,
.service-card:active .service-card-inner, /* For mobile touch */
.service-card:focus .service-card-inner { /* For accessibility */
  transform: rotateY(180deg);
}

/* Card Front & Back */
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
  border: none !important;
  outline: none !important;
}

/* Front */
.card-front {
  background-color: #0D3B66;
  color: #fff;
  font-size: 1.1rem;
}

.card-front img {
  width: 300px; /* bigger image */
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
  border: 3px solid #fff;
}

.card-front h5 {
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}

/* Back */
.card-back {
  background-color: #f8f9fa;
  color: #0D3B66;
  transform: rotateY(180deg);
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
  overflow-y: auto;
  padding: 20px;
  box-shadow: none !important;
}

/* Tablet and Mobile screens */
@media (max-width: 768px) {
  .service-card-inner {
    height: 300px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .card-front img {
    width: 100%;
    max-width: 450px;
    height: 220px;
    object-fit: cover;
    margin-top: 10px;
  }
  
  .card-front h5 {
    font-size: 1.2rem;
    margin-top: 15px;
  }
  
  .card-back {
    font-size: 0.95rem;
    padding: 15px;
  }
}

/* Extra small screens */
@media (max-width: 576px) {
  .service-card-inner {
    height: 300px;
    width: 100%;
    max-width: 400px;
  }
  
  .card-front img {
    max-width: 350px;
    height: 200px;
    margin-top: 20px;
  }
  
  .card-front h5 {
    font-size: 1.1rem;
    margin-top: 10px;
  }
}
/* Fix top padding for services page */
.services-hero-section {
  height: 500px !important;
  min-height: 350px !important;
}

/* Ensure it works on all devices */
@media (max-width: 991.98px) {
  .services-hero-section {

    height: calc(100vh - 70px) !important;
    min-height: 500px !important;
  }
}

@media (max-width: 768px) {
  .services-hero-section {

    height: calc(100vh - 70px) !important;
    min-height: 450px !important;
  }
}

/* UPDATE THE HERO CONTENT STYLES TO CENTER TEXT */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
  width: 90%;
  max-width: 800px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 300;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  text-align: center;
}

/* Responsive text centering */
@media (max-width: 768px) {
  .hero-content {
    text-align: center;
    width: 95%;
  }
  
  .hero-title {
    font-size: 2.5rem;
    text-align: center;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
    text-align: center;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    text-align: center;
  }
}

/* Projects Hero Section */
.projects-hero-section {
  padding-top: 10px !important;
  height: 500px !important;
  min-height: 350px !important;
}

/* Hero Section Base Styles */
.hero-section {
  width: 100%;
  position: relative;
}

.hero-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(62, 72, 82, 0.7);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
  width: 90%;
  max-width: 800px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 300;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .projects-hero-section {
    padding-top: 100px !important;
    height: 350px !important;
    min-height: 300px !important;
  }
}

@media (max-width: 768px) {
  .projects-hero-section {
    padding-top: 90px !important;
    height: 300px !important;
    min-height: 250px !important;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .projects-hero-section {
    height: 250px !important;
    min-height: 200px !important;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
}


.projects-container {
  padding: 40px 15px 80px; /* Reduced top padding from 80px to 40px */
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.projects-container h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #0D3B66;
  margin-bottom: 50px;
  font-weight: 700;
  margin-top: -20px;
}

/* Grid for images */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  justify-items: center;
}

/* Project image cards */
.project-card {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  height: 200px; /* Fixed height for consistent sizing */
}

.project-card img {
  width: 100%;
  height: 100%; /* Fill the entire card */
  object-fit: cover; /* keeps aspect ratio, crops excess */
  display: block;
  transition: transform 0.3s;
}

/* Hover effect */
.project-card:hover img {
  transform: scale(1.05);
}

.project-card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  transform: translateY(-5px);
}

/* Optional project title overlay */
.project-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(13, 59, 102, 0.7);
  color: #fff;
  padding: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover .overlay {
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .project-card {
    height: 200px; /* Slightly smaller on tablets */
  }
  
  .projects-container h2 {
    font-size: 2rem;
    margin-bottom: 30px;
  }
}

@media (max-width: 576px) {
  .project-card {
    height: 180px; /* Smaller on mobile */
  }
  
  .project-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .projects-container h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }
}
.contact-hero-section {
  position: relative !important;
  background: url('../images/office.jpg') center center/cover no-repeat !important;
  height: 500px !important;
  min-height: 350px !important;
  display: flex !important;
  align-items: center !important;
  text-align: left !important;
  overflow: hidden !important;
}

.contact-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.5) !important;
  z-index: 1 !important;
}

.contact-hero-inner {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
}

.contact-hero-content {
  color: #fff !important;
  max-width: 600px !important;

}

.contact-hero-content h1 {
  font-size: 3.5rem !important;
  font-weight: 700 !important;
  margin-bottom: 1rem !important;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5) !important;
}

.contact-hero-content p {
  font-size: 1.4rem !important;
  font-weight: 300 !important;
  line-height: 1.6 !important;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5) !important;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .contact-hero-section {
    height: 400px !important;
  }

  .contact-hero-content {
    padding-left: 30px !important;
  }

  .contact-hero-content h1 {
    font-size: 2.8rem !important;
  }

  .contact-hero-content p {
    font-size: 1.2rem !important;
  }
}

@media (max-width: 768px) {
  .contact-hero-section {
    height: 320px !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .contact-hero-inner {
    justify-content: center !important;
  }

  .contact-hero-content {
    padding-left: 0 !important;
    max-width: 90% !important;
  }

  .contact-hero-content h1 {
    font-size: 2.4rem !important;
  }

  .contact-hero-content p {
    font-size: 1.1rem !important;
  }
}

@media (max-width: 576px) {
  .contact-hero-section {
    height: 280px !important;
  }

  .contact-hero-content h1 {
    font-size: 2rem !important;
  }

  .contact-hero-content p {
    font-size: 1rem !important;
  }
}

/* Contact Form */
#contactForm .form-control {
  border-radius: 8px;
  padding: 10px 15px;
  box-shadow: none;
  border: 1px solid #ced4da;
  transition: border-color 0.3s;
}

#contactForm .form-control:focus {
  border-color: #0D3B66;
  box-shadow: 0 0 5px rgba(13, 59, 102, 0.3);
}

#contactForm button {
  border-radius: 8px;
  padding: 10px 25px;
  background-color: #0D3B66;
  border: none;
  transition: background-color 0.3s;
}

#contactForm button:hover {
  background-color: #094060;
}

/* Contact Info */
.map-responsive {
  overflow: hidden;
  padding-bottom: 56.25%;
  position: relative;
  height: 0;
}

.map-responsive iframe {
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  position: absolute;
  border-radius: 8px;
}

/* Override Bootstrap's text-primary for h2 elements */
.what-we-do h2.fw-bold.text-primary,
.about-section h2.fw-bold.text-primary,
.clients-section h2.fw-bold.text-primary,
.core-values h2.fw-bold.text-primary {
  color: #0D3B66 !important;
}

body h1.text-primary,
body h2.text-primary,
body h3.text-primary {
  color: #0D3B66 !important;
}

/* About Page - Contact Us Button */
.about-page .btn-primary {
  background-color: #0D3B66 !important;
  border-color: #0D3B66 !important;
  color: white !important;
}

.about-page .btn-primary:hover {
  background-color: #0b3153 !important;
  border-color: #0b3153 !important;
}

/* Services Page - Heading Colors */
.services-page h1,
.services-page h2,
.services-page h3,
.services-page h4,
.services-page h5,
.services-page h6 {
  color: #0D3B66 !important;
}

/* Override Bootstrap's text-primary class on Services page */
.services-page .text-primary {
  color: #0D3B66 !important;
}

/* Service card front headings */
.services-page .card-front h5 {
  color: white !important; /* Keep white text on blue card fronts */
}

/* Contact CTA section heading */
.services-page .contact-cta h2 {
  color: white !important; /* Keep white text on blue background */
}


/* Projects Page - Filter Buttons */
.projects-page .btn-primary {
  background-color: #0D3B66 !important;
  border-color: #0D3B66 !important;
  color: white !important;
}

.projects-page .btn-outline-primary {
  color: #0D3B66 !important;
  border-color: #0D3B66 !important;
}

.projects-page .btn-outline-primary:hover {
  background-color: #0D3B66 !important;
  border-color: #0D3B66 !important;
  color: white !important;
}
.service-img-2 {
  width: 260px;
  height: 380px;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  transition: transform 0.4s ease;
}

.service-img-2:hover {
  transform: scale(1.05);
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .service-img-2 {
    width: 80%;
    height: 360px;
  }
}
.services-hero-section {

  min-height: 500px;
  padding: 60px 0;
  display: flex;
  align-items: center;
}

/* Medium screens (tablet) */
@media (max-width: 991.98px) {
  .services-hero-section {
      height: auto !important;
    min-height: 450px;
    padding: 50px 0;
    flex-direction: column;
    text-align: center;
  }
}

/* Small screens (phones) */
@media (max-width: 768px) {
  .services-hero-section {
      height: auto !important;
    min-height: 400px;
    padding: 40px 0;
  }

  .services-hero-section .col-lg-4,
  .services-hero-section .col-md-5 {
    margin-bottom: 20px;
  }

  .swiper.mySwiper {
    height: 300px !important;
  }

  .service-img-2 {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
}
