:root {
  --yellow-color: #fce151;
  --red-color: #ff5b5b;
  --black-color: #000;
  --white-color: #fff;
  --transition-time: 5s;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h1 {
  font-family: "Roboto", sans-serif;
}

h2 {
  font-family: "Playfair Display", serif;
}

header {
  height: 100vh;
  position: relative;
}

header .bg-container {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: linear-gradient(
    to right,
    var(--yellow-color) 70%,
    var(--red-color) 30%
  );
}

header .black-triangle {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: var(--black-color);
  clip-path: polygon(0 100%, 100% 100%, 100% 70%, 0% 100%);
  z-index: -1;
}

.animate-triangle {
  animation: expandTriangle 2s ease-in-out forwards;
}

@keyframes expandTriangle {
  from {
    clip-path: polygon(0 100%, 100% 100%, 100% 70%, 0% 100%);
  }
  to {
    clip-path: polygon(0 100%, 100% 100%, 100% 0%, 0% 0%);
  }
}

header .navbar {
  padding: 15px 40px;
  position: fixed;
  right: auto;
  left: auto;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.nav-active {
  background-color: #000000;
}

header .container-fluid {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .navbar-brand img {
  height: 50px;
  transition: opacity 1s ease-in-out, filter 1s ease-in-out;
}

header .alternate-logo {
  position: absolute;
  left: 50px;
  top: 20px;
  height: 40px;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.navbar-container {
  position: relative;
}

/* Show dropdown on hover */
.navbar-container:hover .dropdown-content {
  display: flex;
}

.navbar-container:hover #menuButton {
  transform: rotate(90deg);
  background-color: #fbe360;
}

.navbar-container:hover .lines {
  background-color: black !important;
}

/* Keep dropdown hidden by default */
.dropdown-content {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
  position: absolute;
  top: 50px;
  right: 0;
  background-color: #fff6c2;
  width: 300px;
  border-radius: 5px;
  flex-direction: column;
  z-index: 999;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
}

.navbar-toggler:focus {
  box-shadow: none !important;
}

.navbar-container:hover .dropdown-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  padding: 20px;
}

#menuButton {
  padding: 10px;
  background-color: transparent;
  color: white;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

header .hamburger-icon {
  width: 30px;
  height: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

header .hamburger-icon .line1 {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--black-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

header .hamburger-icon .line2 {
  display: block;
  height: 3px;
  width: 70%;
  background-color: var(--black-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

header .hamburger-icon .line3 {
  display: block;
  height: 3px;
  width: 40%;
  background-color: var(--black-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.animate-triangle .hamburger-icon span {
  background-color: var(--white-color);
}

.dropdown-content.show {
  display: flex;
}

.dropdown-content a {
  padding: 12px 10px;
  text-decoration: none;
  color: black;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 23px;
  text-align: center;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background-color: #f0e36d;
}

.let-talk-btn {
  background-color: var(--white-color);
  color: var(--black-color);
  border: none;
  padding: 10px 25px;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color var(--transition-time),
    color var(--transition-time);
}

/* landing page starts */

.hero-content {
  padding: 80px 40px;
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: self-start;
  justify-content: center;
  z-index: 5;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  font-family: "Roboto", sans-serif;
  line-height: 1;
  color: black;
  transition: color 0.8s ease-in-out;
}

.hero-subtitle {
  font-size: 2.5rem;
  font-style: italic;
  font-family: "Playfair Display", serif;
  margin-top: 10px;
  color: var(--black-color);
  transition: color 1s ease-in-out;
}

.quote-container {
  position: absolute;
  bottom: 60px;
  right: 40px;
  max-width: 250px;
  color: var(--yellow-color);
  text-align: right;
  transition: color var(--transition-time);
}

.quote-text {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-family: "Hind Madurai", sans-serif;
}

.quote-author {
  font-size: 0.9rem;
  font-family: "Hind Madurai", sans-serif;
}

/* Dark mode styles that will be applied after animation */
.animate-triangle .bg-container {
  background: var(--black-color);
}

.animate-triangle .black-triangle {
  clip-path: polygon(0 100%, 100% 100%, 100% 0%, 0% 0%);
  transition: clip-path var(--transition-time) cubic-bezier(0.19, 1, 0.22, 1);
}

.animate-triangle .hero-title {
  color: white !important;
}

.animate-triangle .navbar-brand img {
  filter: brightness(0) invert(1);
  opacity: 0;
}

.animate-triangle .alternate-logo {
  opacity: 1;
}

.animate-triangle .let-talk-btn {
  background-color: var(--yellow-color);
  color: var(--black-color);
}

.animate-triangle .navbar-toggler {
  color: var(--white-color);
}

.animate-triangle .quote-container {
  color: var(--yellow-color);
}

.main-container {
  width: 100%;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.8rem;
  }

  .quote-container {
    bottom: 30px;
    right: 20px;
    max-width: 200px;
  }

  .navbar {
    padding: 15px 20px;
  }
}

/* landing page ends */

.titles h1 {
  font-size: 40px;
  font-weight: 700;
  color: #fbe360;
}

.titles h2 {
  font-size: 30px;
  font-weight: 700;
  font-style: italic;
}

/* services-section starts */
.services-section {
  padding: 70px 0px;
}

.services-section .titles h1 {
  color: #000000;
}

.services-section .titles h2 {
  color: #ff8928;
}

.services-section .container .service-div h1 button {
  font-weight: 800 !important;
  font-size: 38px;
  padding: 20px;
  font-family: "Roboto", sans-serif;
}

.services-section .custom-accordion-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 24px;
  padding: 30px;
  border-radius: 15px;
  transition: background-color 0.3s ease;
}

/* Initially collapsed - white background */
.services-section .custom-accordion-button.collapsed {
  background-color: white;
  border: 1px solid #ff414e;
}

/* When expanded */
.services-section .custom-accordion-button:not(.collapsed) {
  background-color: #fbe360;
  border: 1px solid #fbe360;
}

/* Optional: Icon rotation */
.services-section .accordion-icon i {
  transition: transform 0.3s ease;
}

.services-section .custom-accordion-button:not(.collapsed) .accordion-icon i {
  transform: rotate(180deg);
}

.services-section .accordion-body .card {
  padding: 25px;
  background-color: #f5f5f5;
  border: none;
  transition: all 0.3s ease-in-out;
  height: 100%;
}

.services-section .accordion-body .card:hover {
  background-color: black;
  color: white;
}

.services-section .accordion-body .card h5 {
  font-size: 30px;
  font-weight: bold;
  padding-left: 20px;
  position: relative;
  line-height: normal;
  width: 75%;
}

.services-section .accordion-body .card:hover h5 {
  color: #fbe360;
}

.services-section .accordion-body .card h5::before {
  content: "";
  position: absolute;
  left: 0px;
  width: 2px;
  height: 100%;
  background: transparent linear-gradient(179deg, #ff414e 0%, #ff8928 100%) 0%
    0% no-repeat padding-box;
  transition: all 0.6s ease-in-out;
}

.services-section .accordion-body .card:hover h5::before {
  width: 25px;
  left: -25px;
}

.services-section .accordion-body .row2 .div {
  padding: 20px;
  position: relative;
}

.services-section .accordion-body .row2 .div h2 {
  padding: 20px;
  font-size: 30px;
  font-weight: bold;
  font-style: italic;
  z-index: 10;
}

.services-section .accordion-body .row2 .div p {
  z-index: 1000;
  position: relative;
}

.services-section .accordion-body .row2 .div img {
  width: 100%;
  max-width: 60px;
  position: absolute;
  left: 0px;
  top: 30px;
  z-index: 0;
}

.services-section .accordion-body .lets-talk {
  display: flex;
  justify-content: flex-end;
}

.services-section .accordion-body .lets-talk button {
  background-color: #fbe360;
  color: var(--black-color);
  border: none;
  padding: 10px 25px;
  border-radius: 5px;
  font-weight: 600;
}

.services-section .V-P-A .accordion-body hr {
  width: 100%;
  height: 2px;
  background-color: rgb(79, 78, 78);
  margin: 35px 0px;
}

.services-section .V-P-A .accordion-body video {
  width: 100%;
}

/* services-section ends */

/* our-proficiency starts */

.our-proficiency {
  padding: 70px 0px;
  background-color: #000000;
}

/* A-E-S section starts */

.our-proficiency .container .row {
  display: flex;
  width: 100%;
  margin: auto;
}

.our-proficiency .container .titles h2{
  color: #fbe360;
}

.our-proficiency .container .box div {
  padding: 30px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  background-image: linear-gradient(to top, #ff822c, #ff474b);
}

.our-proficiency .container .box {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 50vh;
  cursor: pointer;
  flex: 0.8; /* Keeps inactive boxes small */
  margin: 0px;
  position: relative;
  transition: flex 0.7s ease-out;
  color: white;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 0px;
  border: 2px solid white;
}

/* Ensure h1 is always visible in all boxes */
.our-proficiency .container .box h1 {
  font-size: 20px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  font-weight: 800;
}

.our-proficiency .container .box h5 {
  font-size: 18px;
  font-weight: bold;
}

.our-proficiency .container .box p {
  font-size: 15px;
  /* font-weight: lighter; */
}

.our-proficiency .container .box a {
  width: 100%;
  max-width: 180px;
  padding: 10px 5px;
  border-radius: 20px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 0px;
  text-decoration: none;
}

/* Hide h5 and p by default */
.our-proficiency .container .box h5,
.our-proficiency .container .box p,
.our-proficiency .container .box a {
  display: none;
}

/* Active box expands */
.our-proficiency .container .box.active {
  flex: 3;
}

/* Active box expands */
.our-proficiency .container .box.active {
  flex: 3;
}

/* our-proficiency ends */

/* partner-section starts */

.partners-section {
  padding: 60px 0px;
}

.partners-section .slider   {
  position: relative;
  width: 95vw;
  overflow: hidden;
  margin: auto;
}

.partners-section .slider .action-button:hover {
  background: rgba(255, 255, 255, 0.9);
  color: black;
  cursor: pointer;
}

.partners-section .slider .action-button.left-chevron {
  left: 0;
  transform: translate(5%, -50%);
}

.partners-section .slider .action-button.left-chevron:hover {
  transform: translate(15%, -50%);
}

.partners-section .slider .action-button.right-chevron {
  right: 0;
  transform: translate(-5%, -50%);
}

.partners-section .slider .action-button.right-chevron:hover {
  transform: translate(-15%, -50%);
}

.partners-section .slider .slider-list {
  display: grid;
  grid-auto-columns: 15% !important;
  grid-auto-flow: column;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  transition: transform 5s linear;
  gap: 20px;
}

@media (max-width: 768px) {
  .partners-section .slider .slider-list {
    grid-auto-columns: 75% !important;
    gap: 10px;
    padding: 10px 0px;
  }
}

@media (max-width: 992px) {
  .partners-section .slider .slider-list {
    grid-auto-columns: 50% !important;
  }
}

@media (max-width: 1200px) {
  .partners-section .slider .slider-list {
    grid-auto-columns: 30%;
  }
}

@media (min-width: 1200px) {
  .partners-section .slider .slider-list {
    grid-auto-columns: 20%;
  }
}

.partners-section .slider .slider-list .slider-item {
  display: inline-block;
  box-shadow: 0 0 11px 0 #06163a24;
  color: white;
  text-align: center;
}

.partners-section .slider .slider-list .slider-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.1s linear;
}

.partners-section .slider .slider-list .slider-item img:hover {
  transform: scale(1.1);
}

.partners-section h1 {
  font-size: 40px;
  color: #077fff;
  font-weight: 700;
  margin: auto;
}

/*  */
/* partner-section ends */

/* section6 starts */

.section6 {
  padding: 70px 0px;
}

.section6 .container {
  position: relative;
  top: 0;
  bottom: 0;
  height: 100%;
}

.section6 .container .titles {
  position: absolute;
  height: 100%;
  left: 100px;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

/* section6 ends */

/* footer starts */

footer {
  padding: 50px 0px;
  background-color: #000000;
  color: white;
}

footer hr {
  width: 100%;
  height: 2px;
  background-color: white;
  margin: 30px 0px;
}

footer a {
  color: white;
  text-decoration: none;
}

footer a:hover {
  text-decoration: none;
  color: white;
}

footer .row1 p {
  width: 75%;
}

footer .row1 .btn {
  background: linear-gradient(283deg, #ff8928 0%, #ff414e 100%);
  color: white;
}

footer .row2 ul {
  list-style-type: none;
  line-height: 30px;
  font-size: 14px;
}

footer .row2 p {
  margin-bottom: 0px;
}

/* footer ends */

@media (max-width: 450px) {
  header .navbar {
    padding: 10px;
  }

  header .alternate-logo {
    position: absolute;
    left: 20px;
  }

  header .navbar-brand img {
    height: 45px;
  }

  .navbar-menu {
    display: none;
  }

  .dropdown-content {
    width: 200px;
  }

  .hero-content {
    padding: 0px;
    left: 10px;
  }

  .hero-title {
    font-size: 4rem;
  }

  .quote-container {
    bottom: 10px;
    right: 20px;
    max-width: 200px;
  }

  .quote-text {
    font-size: 1rem;
  }

  .hero-subtitle {
    font-size: 1.6rem;
  }

  .quote-author {
    font-size: 0.7rem;
  }

  .titles h1 {
    font-size: 30px;
    font-weight: 700;
    color: #fbe360;
  }

  .titles h2 {
    font-size: 28px;
    font-weight: 700;
    font-style: italic;
  }

  /* secton1 */
  .services-section .container .service-div h1 button {
    font-size: 20px;
    padding: 15px;
  }

  .services-section .container .accordion-body {
    padding: 5px;
  }

  .services-section .accordion-body .card h5 {
    font-size: 18px;
    width: auto;
  }

  .services-section .accordion-body .card p {
    margin-bottom: 0px;
  }

  .services-section .accordion-body .card {
    padding: 15px;
  }

  .services-section .accordion-body .row2 .div h2 {
    padding: 15px;
    font-size: 20px;
  }

  .services-section .accordion-body .row2 .div p {
    margin-bottom: 0px;
  }

  /*.our-proficiency */

  /* Stack boxes vertically */
  .our-proficiency .container .row {
    flex-direction: column;
    width: 100%;
    row-gap: 15px;
  }

  /* Make all boxes take full width */
  .our-proficiency .container .box {
    width: 100%;
    height: 20vh; /* Smaller height initially */
    flex: none;
    transition: height 0.7s ease-out;
  }

  /* Expand the active box to show content */
  .our-proficiency .container .box.active {
    height: 80vh; /* Expand in vertical direction */
  }

  .our-proficiency .container .box div {
    padding: 15px !important;
  }

  .our-proficiency .container .box h1 {
    font-size: 25px;
  }

  .our-proficiency .container .box p {
    margin-bottom: 10px;
    line-height: 20px;
  }

  .our-proficiency .container .box a {
    padding: 5px;
  }

  .our-proficiency .container .box a {
    max-width: 130px;
  }

  /* partners-section */
  .partners-section .partner_div {
    margin: 0px 8px;
  }

  .partners-section .partners-logos::after {
    width: 0px;
  }

  .partners-section .partners-logos::before {
    width: 0px;
  }

  .partners-section .partners-logos .partner_image {
    width: 100% !important;
    margin-bottom: 16px;
  }

  /* section6 */

  .section6 {
    padding: 50px 0px;
  }

  .section6 .container {
    padding: 0px;
  }

  .section6 .container .titles {
    left: 10px;
    padding: 20px;
  }

  .section6 .container .titles p {
    font-size: 13px;
    width: 70%;
  }
}

@media (min-width: 451px) and (max-width: 885px) {
 .our-proficiency .container .box {
    height: 45vh;
  }

 .our-proficiency .container .box.active {
    flex: 2;
  }

 .our-proficiency .container .box div {
    padding: 20px;
  }
}
