body {
  font-family: "Truculenta", sans-serif;
  margin: 0;
  padding: 0;
  color: #d9d3c6;
  background: url("../Images/Main.png") no-repeat center center fixed;
  background-size: cover;
  position: relative;
  transition: backdrop-filter 0.6s ease, -webkit-backdrop-filter 0.6s ease;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* overlay stays */
  z-index: -1;
  transition: backdrop-filter 0.6s ease, -webkit-backdrop-filter 0.6s ease;
}

/* after scroll: blur */
body.blurred::before {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Sections - always full screen */
section {
  width: 100vw; /* full viewport width */
  max-width: 100%; /* prevent Bootstrap or container from limiting */
  min-height: calc(100vh - 4px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* centers children horizontally */
  padding-top: 60px;
}

.about-us-section,
.vision-mission-container,
.container {
  margin: 60px auto; /* keep them centered */
  width: 90%; /* fit smaller screens */
  max-width: 1100px;
}

.main-section {
  background: url("../Images/Main.png") no-repeat center center fixed;
  background-size: cover; /* default for desktops/laptops */
  min-height: 100vh;
  width: 100%;
}
.main-section {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

/* About us section */
.about-us-div {
  background-color: rgba(3, 21, 39, 0.8);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  padding: 30px;
}

.about-us-section {
  max-width: 1100px;
  margin: 0 auto; /* center horizontally only */
  position: relative;
  z-index: 2;
}

.about-us-p {
  font-size: 18px;
  line-height: 1.6;
  color: #d0c9b4;
  text-align: justify;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-size: 24px;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.logo-img {
  position: fixed;
  top: 5px;
  left: 60px;
  height: 250px;
  width: auto;
  z-index: 1100;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.logo-hide {
  opacity: 0;
  transform: translateY(-20px); /* slide up a bit */
  pointer-events: none; /* prevents accidental clicks */
}

.logo-small {
  height: 100px !important;
  top: 5px;
}

.navbar-toggler {
  border: none; /* optional: remove border */
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255,255,255,1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-nav .nav-link:not(:last-child) {
  border-bottom: 1px solid #d0c9b4; /* thin line */
}

/* Nav links underline */
.nav-link {
  position: relative;
  color: #d0c9b4;
  padding-bottom: 5px;
  transition: 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: #948979;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.navbar .nav-link.active {
  color: #948979 !important;
}

.navbar-nav {
  margin-left: auto; /* pushes nav items to the right naturally */
  padding: 0; /* remove big padding */
  position: relative;
}

a.nav-link:hover,
a.nav-link:active {
  text-shadow: 0px 0px 5px #dfd0b8;
  color: #d0c9b4;
}

/* Headings */
h2 {
  font-size: 40px;
  text-align: center;
  padding: 4%;
  color: #d0c9b4;
}

/* Container */
.container {
  height: auto;
  padding-right: 0%;
  text-align: center;
  justify-content: center;
  background-color: #031527;
  max-width: 1000px; /* cap at 1000px */
  width: 90%; /* shrink nicely on tablets */
  margin: 0 auto; /* center horizontally */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.container p {
  color: #d0c9b4;
}

.acountant-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  padding: 0%;
}

.left-content {
  text-align: center;
  justify-content: center;
  margin-top: 10%;
}

/* Vision & Mission */
.vision-mission-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: 70%;
  height: auto;
  margin: 5% auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  background-color: #031527;
}

.image-box {
  flex: 1; /* takes equal space as text */
  height: auto; /* inherits from parent */
}

.image-box img {
  width: 100%;
  height: 100%; /* fills the column height */
  object-fit: cover; /* crops nicely, no squish */
  display: block;
}

.image-box img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.text-box {
  flex: 1;
  color: white;
  padding: 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.btn-group {
  position: absolute;
  top: 20px;
  right: 120px;
  width: 80px;
  height: auto;
}

.btn {
  padding: 6px 16px;
  margin-left: 10px;
  background-color: transparent;
  color: #948979;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn.active-btn {
  background-color: #dfd0b8;
  border: 2px solid #dfd0b8;
  color: #031527;
}

.text-content {
  display: none;
}

.text-content:not(.hidden) {
  display: block;
}

.hidden {
  display: none;
}

/* Text */
p {
  color: #dfd0b8;
  text-align: center;
  justify-content: center;
}

/* Why choose us */
.reasons {
  text-align: center;
  padding: 50px;
}

.card-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

h3 {
  font-size: 20px;
  margin-top: 20px;
  color: #d0c9b4;
}

div.choose-us-card p {
  color: #ecebde;
  margin-top: 30px;
}

.icon img {
  width: 50px;
  height: auto;
  margin-top: 20px;
  color: #d0c9b4;
}

div.choose-us-card {
  background-color: #031527;
  color: #0b0b45;
  padding: 20px;
  width: 250px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

.choose-us-card::before,
.choose-us-card::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  border: 5px solid #d0c9b4;
}

.choose-us-card::before {
  top: 0;
  right: 0;
  border-left: none;
  border-bottom: none;
  border-radius: 0 15px 0 0;
}

.choose-us-card::after {
  bottom: 0;
  left: 0;
  border-right: none;
  border-top: none;
  border-radius: 0 0 0 15px;
}

/* Navbar expand */
.navbar-expand-md {
  box-shadow: 0px 0px 5px #09101d;
  padding-right: 30px;
}

.navbar-nav {
  display: flex;
  gap: 5px;
}

@media screen and (max-width: 1092px) {
  .main-section {
    background-size: cover;
    background-position: top center;
  }

  .reasons {
    margin: 5%;
  }

  .card-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 80%;
  }

  div.choose-us-card {
    background-color: #031527;
    color: #0b0b45;
    padding: 20px;
    width: 200px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
  }

  .vision-mission-container {
    flex-direction: column;
    width: calc(95% - 50px); /* shrink width to make room */
    margin: 30px auto; /* stays centered */
  }

  .image-box,
  .text-box {
    flex: none;
    width: 100%; /* each takes full width */
  }

  .image-box img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
  }

  .btn-group {
    position: absolute;
    top: 20px;
    right: 160px;
    width: 10px;
    height: auto;
  }

  .vision-h {
    margin: 30px;
  }
}

@media screen and (max-width: 1024px) {
  .about-us-section {
    margin: 30px auto; /* keep them centered */
    width: 80%; /* fit smaller screens */
  }

  .vision-mission-container {
    flex-direction: column; /* stack image & text */
    width: 80%; /* take most of the screen */
    margin: 30px auto; /* center properly */
  }

  .image-box,
  .text-box {
    flex: none;
    width: 100%; /* each takes full width */
  }

  .image-box img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
  }

  .btn-group {
    position: absolute;
    top: 20px;
    right: 160px;
    width: 10px;
    height: auto;
  }

  .vision-h {
    margin: 30px;
  }
}

@media screen and (max-width: 500px) {
  .main-section {
    background-image: url("../Images/main-mobile.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover !important; /* force full coverage */
    background-attachment: scroll !important; /* fix Safari zoom issue */
  }

  .navbar {
    background: rgba(0, 0, 0, 0);
    box-shadow: 2px 1px 4px #82765338;
  }

  .navbar-collapse {
    background-color: rgba(0, 0, 0, 0.9); /* darker full background */
    position: fixed; /* so it covers the whole screen */
    top: 0px;
    left: 0;
    right: 0;
    width: 100%;
    padding: 20px;
    z-index: 999; /* keep it on top */
  }

  .custom-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #d9d3c6; /* Now this works */
    cursor: pointer;
  }

  .card-container {
    flex-direction: column;
    align-items: center;
  }

  .about-us-section {
    padding: 20px;
    margin: 10px auto;
  }

  .about-us-p {
    text-align: left; /* or center */
  }
  .choose-us-card {
    width: 90%;
    max-width: 350px;
  }

  .vision-mission-container {
    display: flex;
    flex-direction: column; /* stack image & text */
    width: 80%; /* responsive width */
    max-width: 1000px; /* don’t stretch too wide */
    margin: 30px auto; /* auto centers left & right */
  }

  .image-box img {
    width: 100%;
    height: auto;
  }

  .btn-group {
    position: absolute;
    top: 25px;
    right: 160px;
    width: 10px;
    height: auto;
  }

  .vision-h {
    margin: 30px;
  }

  .card-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 80%;
  }

  .logo-img {
    position: fixed;
    left: 20px;
    height: 150px;
    width: auto;
    z-index: 1100;
    transition: height 0.3s ease, top 0.3s ease;
  }
}
