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

body.home-page {
  overflow: hidden;
  height: 100vh;
  margin: 0; /* Critical: Remove default body margin */
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex; /* New: Flex container */
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column; /* New: Stack children vertically */
}

#carouselExampleCaptions {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1; /* New: Expands to fill remaining space */
  min-height: 100vh; /* Fallback */
  overflow: hidden;
  position: relative; /* Helps with absolute-positioned children */
}

/* Fix for Bootstrap carousel items */
.carousel-inner,
.carousel-item,
.carousel-item.active {
  height: 100%; /* Ensures inner elements inherit full height */
}

.carousel-inner .carousel-item img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.navbar {
  position: static;
  background-color: #012e4d;
}
.navbar .nav-link {
  color: #d6d6d6;
}
.navbar .nav-link:hover {
  color: white;
}

.open-icon {
  display: inline;
}

.close-icon {
  display: none;
}

.navbar-toggler[aria-expanded=true] .open-icon {
  display: none;
}
.navbar-toggler[aria-expanded=true] .close-icon {
  display: inline;
}

/* Style for icons */
.navbar-toggler i {
  font-size: 1.5rem;
  color: grey;
}

/* Optional: smooth transition */
.navbar-toggler i {
  -webkit-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}

.bgImage {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url("../img/Ramnad_1/img-460x400-3(H).webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* Hide on desktop by default */
.sticky-social-icons {
  display: none;
}

/* Show only on screens smaller than 768px (mobile) */
@media (max-width: 767px) {
  .sticky-social-icons {
    position: fixed;
    top: 37%;
    right: 15px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 12px;
    padding: 10px;
    background: rgba(128, 128, 128, 0.4); /* light gray with transparency */
    backdrop-filter: blur(10px); /* blurred background */
    border-radius: 12px;
    z-index: 10000;
  }
  .sticky-social-icons a {
    color: #fafafa;
    font-size: 18px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    display: inline-block;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
  .sticky-social-icons a:hover {
    background: #000;
    color: #fff;
  }
}
/* Mobile navbar style overrides */
@media (max-width: 991px) {
  .navbar .container-fluid {
    padding: 0px;
  }
  .navbar .container-fluid .navbar-toggler {
    margin-right: 10px;
  }
  #navbarNavDropdown {
    background-color: #f1f1f1; /* Light grey background */
    padding: 15px 20px;
  }
  #navbarNavDropdown .nav-link {
    color: #012e4d !important; /* Bootstrap primary blue */
    font-weight: 500;
    padding: 10px 0;
  }
  #navbarNavDropdown .nav-link:hover {
    color: #0056b3 !important; /* Darker blue on hover */
  }
}
.projects .grid-container {
  position: relative;
}
.projects .grid-item {
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}
.projects .grid-item .img-fluid {
  display: block;
  width: 100%; /* Make images responsive */
  height: 400px;
}
.projects .grid-item .img-fluid.custom {
  height: unset;
}
.projects .grid-item:hover {
  z-index: 2;
}
.projects .grid-container:hover .grid-item:not(:hover) .project-link {
  -webkit-filter: brightness(0.3);
          filter: brightness(0.3);
}
.projects .project-link {
  display: block;
  position: relative;
  overflow: hidden;
}
.projects .project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 15px;
  opacity: 0;
  -webkit-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}
.projects .project-link:hover .project-overlay {
  opacity: 1;
}
.projects .img-fluid {
  width: 100%;
  height: 400px;
  -webkit-transition: all 0.5s ease;
  transition: all 0.5s ease;
}
.projects .gallery-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(254, 254, 254, 0.8);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  opacity: 0;
  color: black;
}
.projects .grid-item:hover .gallery-icon {
  opacity: 1;
}

.video-icon {
  position: absolute;
  top: 60px;
  right: 10px;
  color: black;
  background-color: rgba(254, 254, 254, 0.8);
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 1rem;
  opacity: 0;
  z-index: 2;
}

.grid-item:hover .video-icon {
  opacity: 1;
}

.project .img-fluid {
  width: 100%;
  height: 400px;
}

.read-more {
  text-decoration: underline;
  color: lightblue;
  cursor: pointer;
}

@media screen and (max-width: 991px) {
  .project .img-fluid {
    height: unset;
  }
}
/* On mobile devices, force overlays and icons to always show */
@media (max-width: 767px) {
  .project-link .project-overlay,
  .project-link .gallery-icon,
  .project-link .video-icon {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;
  }
  /* Disable image dimming on mobile */
  .grid-container:hover .grid-item:not(:hover) img {
    -webkit-filter: none !important;
            filter: none !important;
  }
  /* Prevent stacking styles from hover */
  .grid-item:hover {
    z-index: 1 !important;
  }
}
.philosophy .container {
  min-height: 330px;
}

.philosophy .row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  overflow: hidden;
}

.description {
  width: 100%;
  margin: 0 20% 1% 15%;
  text-align: justify;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 4;
  grid-template-columns: 4;
}

@media (max-width: 998px) {
  .philosophy .frame {
    width: 100%;
    text-align: center;
  }
}
/* Smooth accordion animations */
.accordion-collapse {
  -webkit-transition: height 0.4s ease, opacity 0.3s ease !important;
  transition: height 0.4s ease, opacity 0.3s ease !important;
}

/* Sticky image fix */
.philosophy .frame {
  position: sticky;
  top: 100px; /* Match your header height */
  -ms-flex-item-align: start;
      align-self: flex-start;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
  margin-top: 0;
  z-index: 1;
}

/* Layout stabilization */
.philosophy .row {
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  min-height: 70vh;
  overflow-anchor: none; /* Disables scroll anchoring */
}

/* Remove all default accordion styling */
.accordion {
  --bs-accordion-border-width: 0;
  --bs-accordion-border-color: transparent;
  --bs-accordion-btn-focus-border-color: transparent;
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-active-color: inherit;
  --bs-accordion-active-bg: transparent;
}

.accordion-button {
  padding-left: 0;
  color: inherit;
}

.accordion-button:not(.collapsed) {
  color: inherit;
  background-color: transparent;
  -webkit-box-shadow: none;
          box-shadow: none;
}

.accordion-button:focus {
  border-color: transparent;
  outline: 0;
  -webkit-box-shadow: none;
          box-shadow: none;
}

.accordion-button::after {
  -webkit-filter: brightness(0);
          filter: brightness(0);
  margin-left: 10px;
}

.process .container {
  min-height: 330px;
}

.process .row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  overflow-y: hidden;
}

.description {
  width: 75%;
  margin: 0 20% 1% 15%;
  text-align: justify;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 4;
  grid-template-columns: 4;
}

@media (max-width: 998px) {
  .process .frame {
    width: 100%;
    text-align: center;
  }
}
/* Smooth accordion animations */
.accordion-collapse {
  -webkit-transition: height 0.4s ease;
  transition: height 0.4s ease;
}

/* Sticky image fix */
.process.frame {
  position: sticky;
  top: 100px;
  -ms-flex-item-align: start;
      align-self: flex-start;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
  margin-top: 0;
  z-index: 1;
}

/* Layout stabilization */
.process.row {
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  min-height: 80vh;
  overflow-anchor: none;
}

@media screen and (max-width: 991px) {
  .description {
    margin: 0 5% 1% 5%;
    width: 90% !important;
  }
}
.openings {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  min-height: 90vh;
}
.openings .card {
  position: relative;
  -webkit-column-gap: 1%;
     -moz-column-gap: 1%;
          column-gap: 1%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 360px;
  height: 450px;
  margin: 2%;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  border: 2px solid #012e4d;
  background-color: #012e4d;
  border-radius: 20px;
}
.openings .card .card-header {
  padding: 15px;
}
.openings .card .card-header h4 {
  margin-bottom: 0px;
}
.openings .card a {
  background-color: #012e4d;
  border: 1px solid #e2e3e5 !important;
}
.openings .card ol li {
  line-height: 28px;
}
.openings p {
  text-indent: 20px;
  line-height: 30px;
}
.openings .button {
  position: absolute;
  bottom: 15px;
  left: 36%;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

@media (max-width: 768px) {
  .card {
    margin: 2%;
    width: 360px;
    height: 460px;
    -webkit-column-gap: 1%;
       -moz-column-gap: 1%;
            column-gap: 1%;
    justify-items: center;
    gap: 20px;
    width: 100%;
  }
}
@media (max-width: 480px) {
  .card {
    -webkit-column-gap: 1%;
       -moz-column-gap: 1%;
            column-gap: 1%;
    row-gap: 1%;
    justify-items: center;
    width: 360px;
    height: 460px;
  }
}
.contact {
  margin: 15%;
}

.social_media a {
  color: white;
  text-decoration: none;
  text-align: center;
  border-radius: 20%;
  margin: 50px 10px;
  width: 50px;
  height: 50px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.social_media a:hover {
  -webkit-transform: translateY(-5px);
          transform: translateY(-5px);
}

.social_media i {
  font-size: 2rem;
}

.youtube {
  background-color: #FF0000;
}

.whatsapp {
  background-color: #25D366;
}

.facebook {
  background-color: #1877F2;
}

.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.envelope {
  background-color: #EA4335;
}

.linkedin {
  background-color: #0077b5;
}

.telegram {
  background-color: #0088cc;
}

.location {
  background-color: #ddd9d9;
}

.phone {
  background-color: #4285F4;
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 200px) and (max-width: 992px) {
  .icon-square {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    max-width: 3.5rem;
    max-height: 3.5rem;
  }
  .icon-square i {
    font-size: 2rem;
  }
}
/* Main Carousel Container */
.main-carousel {
  position: relative;
  width: 100%;
  height: 100vh; /* Changed to viewport units for better responsiveness */
  overflow: hidden;
  background: #000;
}

/* Slides Container */
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Individual Slide */
.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  -webkit-transform: scale(0.99);
          transform: scale(0.99);
  -webkit-transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), -webkit-transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), -webkit-transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), -webkit-transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  -webkit-transform: scale(1);
          transform: scale(1);
  z-index: 2;
}

/* Slide Image */
.carousel-slide img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
}

.carousel-slide.active .testimonial-panel {
  opacity: 1;
}

.testimonial-panel {
  position: absolute;
  left: 50%;
  bottom: 5%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  width: 80%;
  max-width: 150vh;
  background: rgba(0, 0, 0, 0.7);
  padding: 1.5rem;
  border-radius: 8px;
  color: white;
  opacity: 0;
  -webkit-transition: opacity 0.8s ease;
  transition: opacity 0.8s ease;
  max-height: 40%;
  overflow-y: auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.testimonial-text {
  font-size: 1rem;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  max-height: 120px;
}

.testimonial-author {
  font-size: 1rem;
  color: #ccc;
  -ms-flex-item-align: end;
      align-self: flex-end; /* Right-align on desktop */
  margin-top: 0.5rem;
}

/* Navigation Dots */
.carousel-nav {
  position: absolute;
  bottom: 2%; /* Lowered to make space for testimonial */
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
  z-index: 10;
  margin-bottom: 4px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4); /* Lighter for better visibility */
  cursor: pointer;
  -webkit-transition: all 0.4s ease;
  transition: all 0.4s ease;
}

.carousel-dot.active {
  background-color: white;
  -webkit-transform: scale(1.4);
          transform: scale(1.4);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .main-carousel {
    height: 100%;
  }
  .testimonial-panel {
    width: 85%;
    padding: 1rem;
    bottom: 10%;
    max-height: 45%;
    text-align: center; /* Center text on mobile */
  }
  .testimonial-text {
    font-size: 1rem;
  }
  .testimonial-author {
    -ms-flex-item-align: center;
        -ms-grid-row-align: center;
        align-self: center; /* Center author on mobile */
    margin-left: 0;
  }
  .carousel-nav {
    bottom: 1%;
    margin-bottom: 4px;
  }
}
/* Small mobile devices */
@media (max-width: 480px) {
  .testimonial-panel {
    bottom: 6%;
    max-height: 50%;
  }
  .testimonial-text {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  .testimonial-author {
    font-size: 0.8rem;
  }
  .carousel-nav {
    bottom: 1%;
    margin-bottom: 4px;
  }
}