@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

@font-face {
  font-family: 'SegoeUI'; /* A unique name for your embedded font */
  src: url('fonts/segoeuithis.ttf') format('truetype'); /* Path to your TTF file */
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* Controls how the font loads (recommended) */
}

body {
  font-family: "SegoeUI";
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1.6;
  text-transform: none;
  font-size: 0.875rem;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-transform: uppercase;
  letter-spacing: 0.25rem;
}
h5 + p,
h5 + ul {
  margin-bottom: 3rem;
}
p {
  text-align: justify;
}
.navbar-nav .nav-link {
  text-transform: uppercase;
  font-size: 0.688rem;
  letter-spacing: 0.25rem;
}
.logo {
  max-width: 15rem;
}
.parallax {
  height: 70dvh;
  background-attachment: fixed;
  background-position-y: -4rem;
  /*background-position-y: 23%;*/
  background-size: cover;
}
.parallax.rem20
{
  height: 20rem;
}
.index {
  background-image: linear-gradient(to right, rgba(0,0,0,0.5), rgba(0,0,0,0)), url("../images/home-1.jpg");
}

.about {
  background-image: url("../images/02.jpg");
}

.practise {
  background-image: url("../images/03.jpg");
}

.team {
  background-image: url("../images/04.jpg");
}

.case {
  background-image: url("../images/05.jpg");
}

.contact {
  background-image: url("../images/06.jpg");
}
.hero-text {
  font-weight: 400;
  font-size: 1.25rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.hero h1,
.hero-text h1 {
  text-transform: uppercase;
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.5625rem;
}
section {
  margin: 10rem 0;
}
.table > :not(caption) > * > * {
  padding: 2rem;
}
footer {
  text-transform: uppercase;
  font-size: 0.688rem;
  letter-spacing: 0.25rem;
}
footer a {
    text-decoration: none;
    color: var(--bs-body-color);
}
footer p {
  margin-bottom: 0;
}
.btn.btn-main {
  text-transform: uppercase;
  color: var(--bs-body-color);
  border: 1px solid var(--bs-body-color);
  border-radius: 0;
  padding: 0.5rem 1rem;
  font-size: 0.688rem;
  letter-spacing: 0.25rem;
}
.btn.btn-sec {
  text-transform: uppercase;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 0;
  padding: 0.5rem 1rem;
  font-size: 0.688rem;
  letter-spacing: 0.25rem;
}
.btn.btn-thi {
  text-transform: uppercase;
  color: #fff;
  background-color: #252f54;
  border: 1px solid #252f54;
  border-radius: 0;
  padding: 0.5rem 1rem;
  font-size: 0.688rem;
  letter-spacing: 0.25rem;
}
.side-image {
  width: 100%;
  height: 35rem;
  object-fit: cover;
}
.bg-main {
  background-color: #252f54;
  color: #fff;
}

@media (min-width: 992px) {
  .navbar-nav .nav-item:first-child .nav-link {
    padding-left: 0 !important;
  }
  .navbar-nav .nav-item:last-child .nav-link {
    padding-right: 0 !important;
    border-right: none;
  }
  .navbar-nav .nav-link {
    border-right: 1px solid #6c757d;
    padding: 0 2rem !important;
  }
}

@media (max-width: 768px) {
  .logo {
    max-width: 9rem;
  }
  .dropdown-menu {
    text-align: end;
    padding-right: 1rem;
  }
  .parallax {
    background-position: center 23%;

  }

  .parallax-home {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)), url(../images/home-4.jpg);
  }
}

/* === swiper === */

.swiper {
  width: 100%;
  padding: 20px 0 40px;
}

.swiper-slide {
  height: auto;
}

.swiper-button-next,
.swiper-button-prev {
  color: #000;
  background-color: rgba(255, 255, 255, 0.8);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px;
  font-weight: bold;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #ddd;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background-color: #000;
}

.card {
  height: 100%;
  border: 1px solid #eee;
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

.card-body {
  display: flex;
  flex-direction: column;
}

.card-text {
  flex-grow: 1;
}

@media (max-width: 768px) {
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}

/* === zigzag expertise === */

/* Zig-zag section styling */
.zigzag-section {
  overflow: hidden;
}

.zigzag-item {
  display: flex;
  align-items: center;
  min-height: 500px;
}

.zigzag-content {
  padding: 60px;
}

.zigzag-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 500px;
}

.zigzag-title {
  font-weight: 400;
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.zigzag-description {
  margin-bottom: 30px;
}

.bg-main .zigzag-title,
.bg-main .zigzag-description {
  color: #fff;
}

/* Responsive styles */
@media (max-width: 992px) {
  .zigzag-item {
    flex-direction: column;
    min-height: auto;
  }
  
  .zigzag-item:nth-child(even) .zigzag-content {
    order: 1;
  }
  
  .zigzag-item:nth-child(even) .image-container {
    order: 2;
  }
  
  .zigzag-content {
    padding: 40px 30px;
  }
  
  .zigzag-image {
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .zigzag-content {
    padding: 30px 20px;
  }
}

/* === team section === */

.team-member-section {
  margin-bottom: 80px;
}

.team-member-image {
  width: 100%;
  /* height: 350px; */
  object-fit: cover;
  margin-bottom: 20px;
}

.team-contact-card {
  background-color: #f8f9fa;
  padding: 20px;
  border-left: 4px solid #252f54;
}

.team-contact-title {
  font-weight: 400;
  font-size: 1.25rem;
  margin-bottom: 15px;
}

.team-contact-info {
  line-height: 1.6;
}

.team-member-name {
  color: #1a1a1a;
  margin-bottom: 5px;
}

.team-member-position {
  font-style: italic;
  margin-bottom: 20px;
}

@supports (-webkit-touch-callout: inherit) {
  .parallax {
    /* Changes 'fixed' to 'scroll' so it behaves normally in Safari */
    background-attachment: scroll; 
    
    /* Optional: Reset the y-position if -4rem looks cut off when scrolling */
    background-position-y: center; 
  }
}

@media (max-width: 768px) {
  .team-member-section {
    margin-bottom: 60px;
  }
  
  .left-column {
    margin-bottom: 30px;
  }
}