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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: #fff;
  display: flex;
}

.content {
  width: 100%;
  height: 100vh;
  padding-left: 16%;
  padding-top: 10px;
  position: relative;
  margin-right: 0.6rem;
  z-index: 2;
}

@media only screen and (max-width: 990px) {
  .content {
    padding-left: 0;
    padding-top: 80px;
    margin-right: 0;
    z-index: 2;
  }
}

/*NAVBAR*/

header {
  position: fixed;
  z-index: 10;
  width: 100%;
}
.navbar {
  background-color: #fdfff9;
  z-index: 100;
  height: 0;
  padding: 0;
}
.nav-container {
  width: 100%;
  background-color: #fdfff9;
  display: flex;
  flex-direction: row;
}

.nav-mobile {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.sidebar {
  width: 15%;
  height: 100vh;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 10;
  padding: 0;
}

.nav-ul {
  list-style-type: none;
  padding: 0;
  margin-bottom: 0;
}

.nav-li {
  height: 20vh;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  transition: height 0.3s;
}

.nav-li-first {
  height: 20vh;
  padding: 10px;
}

.nav-li-middle,
.nav-li-last {
  padding: 0 10px 10px 10px;
}

.nav-li-1 {
  background-color: #282828;
  border-radius: 12px;
  padding: 10px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-li-2 {
  background-color: #ff6331;
  color: white;
}
.nav-li-3 {
  background-color: #ffec3f;
  color: black;
}
.nav-li-4 {
  background-color: #bff81d;
  color: black;
}
.nav-li-5 {
  background-color: #7378f9;
  color: white;
}

.nav-li-nav {
  border-radius: 12px;
  padding: 10px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  transition: background-color 0.3s, color 0.3s;
  cursor: pointer;
}

.nav-li a {
  text-decoration: none;
  font-size: 1.2em;
}
.nav-li-2:hover,
.nav-li-3:hover,
.nav-li-4:hover,
.nav-li-5:hover {
  background-color: #fff;
  border: solid 1px #282828;
  color: #282828;
}

.p-nav {
  margin-bottom: 0;
}

.navbar-logo {
  height: 40px;
}

.navbar-toggler {
  color: #616161;
  border: none;
}

.btn-nav {
  margin-left: 10px;
}

.navbar-brand {
  display: none;
}

@media only screen and (max-width: 990px) {
  .navbar-nav {
    margin-top: 2rem;
  }
  .btn-nav {
    margin-left: 0;
  }
  .nav-link {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 1rem 0;
    text-align: center;
  }
  .align-items-center {
    display: flex;
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }
  .nav-li-first {
    display: none;
  }
  .sidebar {
    width: 100%;
    height: 100vh;
    margin-top: 2rem;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
  }
  .nav-li {
    height: 12vh;
  }
  .navbar {
    height: 80px;
  }
  .navbar-brand {
    display: block;
  }
}
/*MAIN*/

/*BUTTONS*/

.btn-primary {
  background-color: #282828;
  color: #fff;
  border: solid 1px #282828;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 10%;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.chevron {
  font-size: 1.4rem;
}

.btn-primary .chevron {
  margin-left: 10px;
  transition: transform 0.3s;
}

.btn-primary:hover {
  background-color: #fff;
  color: #282828;
  border: 1px solid #282828;
}

.btn-primary:hover .chevron {
  transform: translateX(8px);
}

.btn-section {
  position: relative;
  display: inline-block;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: black;
  text-decoration: none;
  font-weight: bold;
  text-align: left;
}

.arrow-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  padding-top: 12px;
}

.arrow-line {
  width: 180px; /* Initial width of the arrow-line */
  height: 2px;
  background-color: #282828;
  transition: width 0.3s ease;
  display: inline;
}

.arrow-head {
  display: inline;
  position: absolute;
  left: 175px;
  transition: left 0.3s ease;
}

.btn-section:hover .arrow-line {
  width: 280px;
}
.btn-section:hover .arrow-head {
  left: 275px;
}

/*TEXT STYLES*/

.h1 {
  font-size: 2.5rem;
  letter-spacing: 3px;
  font-weight: 500;
}

.h2 {
  font-size: 2.5rem;
  letter-spacing: 3px;
  font-weight: 500;
}
.h3 {
  font-size: 1rem;
  font-weight: 300;
}
.h4 {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 2rem;
}
.p-section {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 2rem;
}
.upper-case {
  text-transform: uppercase;
  font-weight: 600;
}
.dots {
  font-size: 1.8rem;
  font-weight: 400;
}

.subheading-1 {
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 2rem;
}
.subheading-2 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 2rem;
  color: #282828;
  text-decoration: none;
}
.h2-project {
  font-size: 1rem;
  font-weight: 500;
  line-height: 2.2rem;
}
.p-project {
  font-size: 1rem;
  font-weight: 400;
  line-height: 2rem;
}

/*SECTIONS*/

#nav-1 {
  border-radius: 12px;
  background: conic-gradient(
    #f1f2fe 0%,
    #fef0eb 25%,
    #edf5fe 50%,
    #f8fdea 75%,
    #f1f2fe 100%
  );
  padding: 70px;
  margin-bottom: 0.6rem;
}

#nav-2 {
  border-radius: 12px;
  background-color: #f6faff;
  padding: 70px;
  margin-bottom: 0.6rem;
}
#nav-3 {
  border-radius: 12px;
  background-color: #fff8f5;
  padding: 70px;
  margin-bottom: 0.6rem;
}
#nav-4 {
  border-radius: 12px;
  background-color: #fcfef5;
  padding: 70px;
  margin-bottom: 0.6rem;
}
#nav-5 {
  border-radius: 12px;
  background-color: #f6faff;
  padding: 70px;
  margin-bottom: 0.6rem;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 70vh;
}

.hero-img {
  max-width: 350px !important;
}

.hero-row-1 {
  align-items: center;
  justify-content: flex-start;
}

.hero-row-2 {
  width: 100%;
  align-items: flex-end;
  justify-content: flex-start;
  margin-top: -50px;
}

.hero-col {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

.nav-2-img,
.nav-4-img {
  width: 150px;
  height: auto;
}
.nav-3-img {
  width: 300px;
  height: auto;
}
.nav-5-img {
  width: 150px;
  height: auto;
}

.section-col {
  height: 350px;
}

.column-start {
  padding: 0 36px 0 0;
}
.column-middle {
  padding: 0 18px;
}
.column-end {
  padding: 0 0 0 36px;
}

.col-between {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.col-arrow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.row-spacer {
  margin-bottom: 2rem;
}

.col-end {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.frame-bg {
  background: conic-gradient(
    #f1f2fe 0%,
    #fef0eb 25%,
    #edf5fe 50%,
    #f8fdea 75%,
    #f1f2fe 100%
  );
  padding: 2rem;
  border-radius: 12px;
}

/* STYLE */

.color-white {
  color: #ffffff;
}
.bg-black {
  background-color: #282828 !important;
}
.bg-highlight {
  background-color: #fff !important;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  color: #282828;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06); /* Shadow effect */
}

.border-radius-12 {
  border-radius: 12px;
}
.box-padding {
  padding: 10px 20px;
}

@media only screen and (max-width: 400px) {
  #nav-1 {
    padding: 100px 2rem;
    margin-bottom: 0;
  }
  .hero-container {
    padding: 0;
    margin: 0;
    height: 90vh !important;
  }
  .footer {
    padding-bottom: 0 !important;
  }
  .footer-padding {
    border-radius: 12px 12px 0 0;
  }
}
@media only screen and (max-width: 779px) {
  #nav-1 {
    padding: 100px 2rem;
    margin-bottom: 0.6rem;
  }
  .hero-container {
    padding: 0;
    margin: 0;
    height: 70vh;
  }
  #nav-2,
  #nav-3,
  #nav-4,
  #nav-5 {
    padding: 100px 2rem;
    margin-bottom: 0.6rem;
  }
  .hero-row-2 {
    margin-top: 1rem;
  }
  .mt-mobile-2 {
    margin-top: 2rem;
  }
  .row-spacer {
    margin-bottom: 0;
  }
  .d-mobile-none {
    display: none !important;
  }
  .column-start {
    padding: 0;
  }
  .column-middle {
    padding: 0;
  }
  .column-end {
    padding: 0;
  }
  .section-cases-padding {
    padding: 0;
  }
  .hero {
    height: 50%;
  }
  .y-spacer {
    margin-top: 2rem;
  }
  .nav-3-img {
    width: 250px;
    height: auto;
  }
  .footer-padding {
    padding: 10px 2rem !important;
  }
  .h1,
  .h2 {
    font-size: 2rem !important;
  }
  .bg-highlight {
    background-color: #fff !important;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    color: #282828;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06); /* Shadow effect */
  }
}
@media only screen and (min-width: 780px) and (max-width: 990px) {
  #nav-1 {
    padding: 100px 2rem;
    margin-bottom: 0.6rem;
  }
  .hero-container {
    padding: 0;
    margin: 0;
    height: 60vh;
  }
  #nav-2,
  #nav-3,
  #nav-4,
  #nav-5 {
    padding: 100px 2rem;
    margin-bottom: 0.6rem;
  }
  .column-start {
    padding: 0 36px 0 0;
  }
  .column-middle {
    padding: 0 18px;
  }
  .column-end {
    padding: 0 0 0 36px;
  }
  .section-cases-padding {
    padding: 2rem;
  }
  .y-spacer {
    margin-top: 2rem;
  }
}

/*CAROUSEL*/
.cards-wrapper {
  display: flex;
  justify-content: space-between;
}
.card img {
  max-width: 100% !important;
  max-height: 100% !important;
  height: auto !important;
}
.carousel-inner {
  padding: 1em;
}
.carousel-control-prev,
.carousel-control-next {
  width: 5vh;
  height: 5vh;
  position: absolute;
  top: 30%;
  opacity: 1;
}

.card-text {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* limit to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis; /* optional: show "..." if text is longer */
  min-height: 3.7rem; /* optional: ensures space for 2 lines even if shorter */
}

#carousel-nav-4 .carousel-item {
  min-height: 500px; /* pick a height that fits all slides */
}

.card-image {
  border-radius: 12px; /* Rounded corners */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06); /* Shadow effect */
  transition: box-shadow 0.3s ease-in-out; /* Smooth transition on hover */
  width: 100%; /* Ensures the image spans the width of its container */
  height: auto; /* Fixed height for the image container */
  overflow: hidden;
  position: relative; /* Ensure image is positioned within the container */
}

.card-img-top {
  width: 100%; /* Ensure the image spans the full width of the container */
  height: 100%; /* Set height to 100% to fill the container */
  object-fit: cover; /* Ensure the image covers the container without stretching */
}

.card-image:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2), 0 4px 6px rgba(0, 0, 0, 0.1); /* Stronger shadow on hover */
}

.p-pill {
  background-color: #bff81d;
  color: #282828;
  border-radius: 6px;
  display: inline;
  font-size: 0.8rem;
  font-weight: 400;
  padding: 0.3rem 0.5rem;
}
.pill {
  display: inline;
  margin: 0 0.2rem 0.2rem 0;
}
.cards-wrapper {
  width: 100%;
  margin: 0;
}

@media only screen and (max-width: 576px) {
  .section-cases-padding {
    padding: 1rem;
  }
}
@media only screen and (min-width: 577px) and (max-width: 990px) {
  .section-cases-padding {
    padding: 1rem;
  }
}

@media only screen and (max-width: 576px) {
  .carousel-item,
  .carousel-inner,
  .work-card {
    margin: 0;
    padding: 0;
    margin-top: 5rem;
  }
  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }
}
@media (min-width: 768px) {
  .card img {
    height: 11em;
  }
}

/* LOGO SLIDER */

.logos-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.logos-slide {
  display: flex;
  animation: slide-left 20s linear infinite;
}

.logos-slide img {
  height: 60px; /* Adjust logo height */
  object-fit: contain;
  flex-shrink: 0;
}

@keyframes slide-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/*CONTACT*/

form {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: 0 0 transparent;
}

.form-control {
  background-color: #fffacd;
  border-radius: 4px 4px 0 0;
  border-bottom: 2px solid #616161;
  padding: 8px 0 4px 0;
}

.form-control:focus {
  color: var(--bs-body-color);
  background-color: #fffdea;
  border-color: #bff81d;
  box-shadow: 0 0 0 0.25rem #bff81d;
}

/* FOOTER */

.footer {
  padding-bottom: 10px;
}
.footer-padding {
  padding: 2px 100px;
}

/*WORK PAGE*/

.section-padding {
  padding: 100px;
}
.section-cases-padding {
  padding: 100px;
  padding-top: 1rem;
}

/*STUDY CASE*/

.h6 {
  font-size: 0.8rem;
  font-weight: 600;
  display: inline;
}

.p-label {
  font-size: 0.8rem;
  line-height: 3.6rem;
  font-weight: 400;
  display: inline;
  background-color: #282828;
  color: #fff;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 2rem;
  display: inline;
}

.filters {
  background-color: #282828;
  border-radius: 14px;
  margin: 0 0 2rem 0;
  padding: 0.3rem 0.3rem 0.4rem 0.3rem;
}

.nav-tabs .nav-link.active {
  background-color: #fff;
  color: #282828;
  border: solid 1px #282828;
  border-bottom-color: transparent; /* Remove bottom border when active */
  padding: 1rem;
}

.nav-tabs .nav-link {
  font-size: 0.8rem;
  font-weight: 400;
  color: #fff;
  border: solid 1px #282828;
  border-radius: 12px;
  padding: 1rem;
  transition: background-color 0.3s, color 0.3s;
}

.nav-tabs {
  --bs-nav-tabs-border-width: 0; /* Remove default bottom border */
}

.nav-tabs .nav-link:hover {
  background-color: transparent; /* Background color on hover */
  color: white; /* Text color on hover */
  border: solid 1px #fff;
}

.d-row-center {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
}
.d-column-start {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
}

.border {
  padding: 1rem;
  border: solid 2px #ff7235;
  border-radius: 12px;
}

@media only screen and (max-width: 576px) {
  .nav-tabs .nav-link {
    width: 40vw;
    margin: 0 0.2rem;
  }
}
@media only screen and (min-width: 577px) and (max-width: 990px) {
}
