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

body.home-page {
  overflow: hidden;
  height: 100vh;
}

/* If you're using a section for the hero/carousel */
#carouselExampleCaptions {
  min-height: 100vh;
  overflow: hidden;
}

/* Optional: If it's a Bootstrap carousel */
.carousel-inner .carousel-item img {
  display: block;
  width: 100%;
  height: 100vh;
  -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;
}

.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;
}

.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:hover {
  z-index: 2;
}
.projects .grid-container:hover .grid-item:not(:hover) img {
  -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;
}

.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: 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) {
  .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;
}

.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 a {
  background-color: #012e4d;
}
.openings .card ol li {
  line-height: 28px;
}
.openings p {
  text-indent: 20px;
  line-height: 30px;
}
.openings .button {
  position: absolute;
  bottom: 15px;
  left: 30%;
  -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;
  }
}
body.no-scroll {
  overflow: hidden;
  height: 100vh;
}

#carouselExampleCaptions {
  height: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
  position: relative;
}
#carouselExampleCaptions .carousel-inner .carousel-caption {
  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-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  position: sticky;
}
#carouselExampleCaptions .carousel-inner .carousel-caption h5 {
  position: absolute;
  bottom: 0;
  background: rgb(0, 0, 0); /* Fallback color */
  background: rgba(0, 0, 0, 0.5); /* Black background with 0.5 opacity */
  color: #ffffff;
  width: 100%;
  padding: 5px;
}

.quote p {
  text-indent: 50%;
}

.carousel-inner .img {
  width: 1500px;
  height: 580px;
  -o-object-fit: cover;
     object-fit: cover;
}

@media screen and (max-width: 768px) {
  .carousel-item img {
    width: 100%;
    height: auto;
    -o-object-fit: cover;
       object-fit: cover;
  }
  .quote-container .quote-wrapper .quote {
    padding: 1rem;
  }
  .quote-container .quote-indicators {
    top: 76%;
    left: 5%;
  }
  .philosophy .container {
    width: 100% !important;
  }
  .process .container {
    width: 100% !important;
  }
  .openings .button {
    bottom: 6px;
  }
}
.quote-container {
  position: absolute;
  bottom: 90px;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  width: 80%;
  z-index: 10;
  pointer-events: none; /* prevents interfering with carousel controls */
}

.quote-wrapper .quote {
  display: none;
  text-align: center;
  color: white;
  background: rgba(0, 0, 0, 0.7);
  padding: 1.5rem;
  border-radius: 10px;
  position: relative;
}

.quote-indicators {
  text-align: center;
  margin-top: 10px;
  pointer-events: auto; /* allow clicks */
  position: absolute;
  top: 61%;
  left: 35%;
}

.quote-indicators span {
  display: inline-block;
  width: 30px;
  height: 2px;
  margin: 0 4px;
  background-color: #888;
  cursor: pointer;
  -webkit-transition: background-color 0.3s;
  transition: background-color 0.3s;
}

.quote-indicators span.active {
  background-color: #fff;
}

.quote-wrapper .quote {
  display: none;
}

.quote-wrapper .quote.active {
  display: block;
}

.quote-container {
  visibility: hidden;
  opacity: 0;
  -webkit-transition: opacity 0.5s ease;
  transition: opacity 0.5s ease;
}

.quote-container.loaded {
  visibility: visible;
  opacity: 1;
}

/* ===== Carousel Transition Control ===== */
.carousel {
  overflow: hidden;
}

.carousel-inner {
  -webkit-transition: all 50s ease-in-out;
  transition: all 50s ease-in-out;
}

.carousel-zoom .carousel-item {
  -webkit-transition: opacity 0.5s ease, -webkit-transform 1.5s ease-out;
  transition: opacity 0.5s ease, -webkit-transform 1.5s ease-out;
  transition: transform 1.5s ease-out, opacity 0.5s ease;
  transition: transform 1.5s ease-out, opacity 0.5s ease, -webkit-transform 1.5s ease-out;
  -webkit-transform: scale(0.5);
          transform: scale(0.5);
  opacity: 0;
}

.carousel-zoom .carousel-item.active {
  -webkit-transform: scale(1);
          transform: scale(1);
  opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.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: #34a853;
}

.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;
  }
}