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

:root {
  --primary: #e2ecf1;
  --secondary: #004960;
  --outline: #97d0a1;
  --btn: #82b449;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
}

body {
  background-color: var(--primary);
  color: var(--secondary);
  overflow-x: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

/* nav bar */

.menu-bar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem 0rem 2rem;
  height: 4.5rem;
  margin-bottom: 4rem;
}

.logo {
  width: 155px;
  height: 125px;
  position: relative;
  top: -5px;
  left: 0px;
  cursor: pointer;
  transform: translateX(-32px);
  flex-shrink: 0;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.horizontal-menu-list {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
  flex-direction: row;
  text-decoration: none;
}

li {
  list-style: none;
  cursor: pointer;
}

.horizontal-menu a {
  font-size: 1rem;
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.horizontal-menu a:hover {
  color: var(--outline);
}

.horizontal-menu .active {
  color: var(--btn);
  position: relative;
}

.horizontal-menu .active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -15px;
  /* Moved lower */
  /* Adjust this value to position underline correctly */
  width: 100%;
  height: 2px;
  /* Made thinner */
  background-color: var(--btn);
}

.hamburger {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 101;
  /* Must be above the menu */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger .bar {
  height: 3px;
  width: 100%;
  background-color: var(--outline);
  /* This is the transition for the 'X' animation */
  transition: all 0.3s ease-in-out;
  /* No border-radius, as requested */
}

.hamburger-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 300px;
  /* You can adjust this width */
  background-color: rgba(0, 73, 96, 0.65);
  /* var(--secondary) with opacity */
  /* Semi-transparent */
  backdrop-filter: blur(15px);
  /* Glassmorphism */
  -webkit-backdrop-filter: blur(15px);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 100;
  /* Below the hamburger icon */

  /* Start off-screen to the right */
  transform: translateX(100%);
  transition: transform 0.4s ease-in-out;

  box-sizing: border-box;
  padding-top: 60px;
  /* Give space for the 'X' icon */
}

.hamburger-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hamburger-menu-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  /* Space between SVG and text */
  padding: 8px 15px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;

  /* Color for text and SVG, as requested */
  color: var(--primary);
  fill: var(--primary);

  transition: background-color 0.2s;
}

.hamburger-menu-list li a svg {
  width: 24px;
  height: 24px;
  /* We use 'fill' here, which inherits the 'color' property, 
               but setting it directly ensures it works. */
  fill: var(--outline);
}

.hamburger-menu-list li a:not(.active):hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* --- 4. Active Link Styling --- */
.hamburger-menu-list li a.active {
  color: var(--btn);
  /* Active text color */
  fill: var(--btn);
  /* Active SVG color */

  /* This makes the "whole selected part" distinguishable */
  background-color: rgba(0, 0, 0, 0.2);
  border-left: 4px solid var(--btn);

  /* Adjust padding to account for the border */
  padding-left: 21px;
}

body.menu-active .hamburger-menu {
  transform: translateX(0);
}

/* --- 5. The "Active" State (Toggled by JavaScript) --- */

/* Animate hamburger bars into an 'X' */
body.menu-active .hamburger .bar:nth-child(1) {
  /* Moves down 9.5px and rotates */
  transform: translateY(9.5px) rotate(45deg);
}

body.menu-active .hamburger .bar:nth-child(2) {
  /* Fades out */
  opacity: 0;
}

body.menu-active .hamburger .bar:nth-child(3) {
  /* Moves up 9.5px and rotates */
  transform: translateY(-9.5px) rotate(-45deg);
}

/* Mobile menu footer */
.mobile-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #ddd;
}

.mobile-socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.mobile-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.3s;
  text-decoration: none;
}

.mobile-social-btn:hover {
  background: var(--btn);
}

.copyright-text {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* About Page Hero */
.about-hero-section {
  position: relative;
  width: 100vw;
  height: 40vh;
  min-height: 300px;
  max-height: 450px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.about-hero-image {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.about-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 73, 96, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.about-hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 2;
}

.about-hero-title {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.about-hero-subtitle {
  font-size: 1.1rem;
  color: var(--primary);
  opacity: 0.9;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

.leadership-callout {
  border-left: 4px solid var(--btn);
  padding-left: 1.25rem;
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--secondary);
  opacity: 0.85;
}

/* ====================================================
   Statistics Marquee
==================================================== */
.stats-marquee-wrapper {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: var(--secondary);
  overflow: hidden;
  padding: 1.5rem 0;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.stats-marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: stats-scroll 38s linear infinite;
}

.stats-marquee-wrapper:hover .stats-marquee-track {
  animation-play-state: paused;
}

@keyframes stats-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.stats-marquee-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0 2.5rem;
  white-space: nowrap;
}

.stats-marquee-number {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--outline);
  letter-spacing: 0.02em;
  line-height: 1;
}

.stats-marquee-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  opacity: 0.75;
}

.stats-marquee-sep {
  color: var(--btn);
  font-size: 0.9rem;
  opacity: 0.6;
  padding: 0 0.5rem;
  flex-shrink: 0;
}

/* ====================================================
   Stats Partial (stats.html — used in about-left / home)
==================================================== */
.stats-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: nowrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  flex-shrink: 0;
}

.stat-value-wrapper {
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
}

.stat-number {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
}

.stat-suffix,
.stat-prefix {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--btn);
}

.stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  opacity: 0.65;
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 2rem;
  background: rgba(0, 73, 96, 0.2);
  flex-shrink: 0;
  align-self: center;
}

.messages-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.message {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 18px;
  margin-bottom: 10px;
  border-radius: 0px;
  color: white;
  font-size: 15px;

  animation: fadeIn 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  min-width: 250px;
}

.message.success {
  background: var(--outline);
}

.message.error {
  background: #dc3545;
}

.message.info {
  background: var(--secondary);
}

.message.warning {
  background: #ffc107;
  color: #333;
}

.message .icon {
  font-size: 18px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* loading dots */
.loader-overlay {
  position: fixed;
  top: 3%;
  right: 0;
  width: 100%;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* Aligns loader to the left */
  padding-left: 20px;
  z-index: 9999;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.loader-overlay.hidden {
  opacity: 0;
}

/* --- NEW LOADER STYLES --- */

/* This is the new loader container */
.loader {
  display: flex;
  gap: 8px;
  /* Adds space between the dots */
}

/* This is the new dot style */
.loader .dot {
  width: 10px;
  height: 10px;

  /* As requested: use the CSS variable, with a fallback */
  background: var(--outline, #97d0a1);

  border-radius: 0%;
  /* Makes them circular dots */

  /* Attach the new animation */
  animation: dot-pulse 1.2s ease-in-out infinite;

  /* Start the dots slightly faded */
  opacity: 0.4;
  transform: scale(0.95);
}

/* Stagger the animation for each dot */
.loader .dot:nth-child(1) {
  animation-delay: 0s;
}

.loader .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.loader .dot:nth-child(3) {
  animation-delay: 0.4s;
}

/* Keyframes for the pulsing effect */
@keyframes dot-pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.95);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hero section */
.hero {
  padding: 2rem 0rem;
  padding-left: 0rem !important;
  padding-right: 0rem !important;
  gap: 1rem;
}

.one-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

@media (max-width: 768px) {
  .hamburger {
    display: flex !important;
  }

  .logo {
    width: 110px;
    height: 90px;
    transform: translate(-6px, -10px);
    scale: 1.2;
  }

  .menu-bar {
    margin-bottom: 0rem;
  }

  .horizontal-menu {
    display: none !important;
  }

  .page-header {
    margin-top: 1rem !important;
  }

  .side-by-side {
    flex-direction: column !important;
  }

  /* About page hero responsive */
  .about-hero-section {
    height: 35vh;
    min-height: 250px;
    max-height: 350px;
    margin-top: 4rem;
  }

  .about-hero-title {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
  }

  .about-hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .about-hero-overlay {
    padding: 1.5rem 1rem;
  }

  /* Home page vision-mission spacing fix */
  .vision-mission-section {
    margin-top: 7rem !important;
  }

  .amenities-grid-container {
    padding: 0rem !important;
  }

  .hero-text {
    padding: 1rem;
    line-height: 1.5rem;
    text-align: center;
    opacity: 0.8;
  }

  .hero-header {
    text-align: center !important;
    font-size: 1.2rem !important;
    line-height: 1.5 !important;
  }

  .hero-img {
    padding: 0 !important;
    height: 50vh !important;
    width: 100vw !important;
  }

  .statistics-carousel {
    left: 50% !important;
    transform: translate(-50%, -75%) !important;
    width: 80%;
  }

  .upper {
    font-size: 1.1rem !important;
  }

  .lower {
    font-size: 0.8rem !important;
  }

  .about {
    padding: 2rem 0rem 0rem 0rem !important;
  }

  .about-right {
    padding: 0 !important;
  }

  .about-left {
    padding: 1rem !important;
  }

  .about-img-wrapper:nth-child(2) {
    height: 165px !important;
  }

  .project-docs-container {
    height: 70% !important;
    position: relative !important;
    bottom: 0 !important;
    left: 0 !important;
    transform: none !important;
    margin-top: 1rem;
    width: 100% !important;
  }

  .project-docs {
    position: relative !important;
    height: 100% !important;
  }

  .project-docs p {
    left: 10% !important;
    font-size: 1rem !important;
  }

  .project-docs form {
    padding: 1.25rem !important;
    gap: 14px !important;
  }

  .form-header h4 {
    font-size: 1.1rem !important;
  }

  .form-group label {
    font-size: 0.75rem !important;
  }

  .interest-selector {
    flex-direction: row !important;
    gap: 10px !important;
  }

  .interest-label {
    font-size: 0.7rem !important;
    min-width: 115px !important;
  }

  .interest-select {
    font-size: 0.9rem !important;
    padding: 11px 12px !important;
  }

  .form-row {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .project-docs form input,
  .project-docs form select {
    font-size: 0.95rem !important;
    padding: 12px 14px !important;
  }

  .project-docs form select {
    padding-right: 38px !important;
  }

  .project-docs form.active {
    transform: translateY(0) !important;
    position: absolute !important;
  }

  .updates-check {
    font-size: 0.8rem !important;
    gap: 8px !important;
  }

  .form-control {
    padding: 10px 12px !important;
  }

  .about-right,
  .about-left,
  .contact-left,
  .contact-right,
  .vision-mission-right,
  .vision-mission-left {
    width: 100% !important;
  }

  /* Home gallery responsive */
  .home-roof-cards {
    width: 100% !important;
    height: 340px !important;
    overflow-x: auto !important;
    scroll-snap-type: x proximity !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  .home-roof-cards::-webkit-scrollbar {
    display: none;
  }

  .home-roof-card {
    min-width: 90px !important;
    scroll-snap-align: start !important;
  }

  .home-roof-card.active {
    min-width: 240px !important;
  }

  .contact-left {
    padding: 0rem !important;
  }

  .contact-info {
    width: 90% !important;
  }

  .contact-info-header {
    font-size: 1rem !important;
  }

  .floating-cube {
    width: 25px !important;
    height: 25px !important;
  }

  .contact-icon {
    width: 15px !important;
    height: 15px !important;
  }

  .contact-info-text {
    font-size: 0.8rem !important;
  }

  .footer-links ul {
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .footer-links ul a {
    font-size: 1rem !important;
  }

  #newsletter-subscription form {
    flex-direction: column !important;
    font-size: 0.8rem !important;
  }

  #newsletter-subscription h3 {
    font-size: 0.8rem !important;
  }

  #newsletter-subscription input {
    font-size: 1rem !important;
  }

  .footer-copyright {
    font-size: 0.8rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .copyright-text {
    text-align: center;
  }

  /* About page */
  .statistics-section {
    margin-bottom: 1rem !important;
  }

  .statistics-section-list {
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .statistics-section-list span {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
  }

  .vision-mission-section {
    padding: 1rem !important;
    margin-top: 8rem !important;
  }

  .vision-mission-right {
    width: 60%;
  }

  .value-header {
    font-size: 0.9rem !important;
  }

  .value-text {
    font-size: 0.9rem !important;
  }

  .vision-two {
    flex-direction: column !important;
    gap: 2rem !important;
  }

  .vision-mission-left {
    padding-top: 1rem !important;
    order: -1 !important;
  }
}

.hero-header {
  font-family: "Playfair display", serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.hero-header h1 {
  font-family: "Playfair Display", serif !important;
}

.accent {
  font-family: "Playfair Display", serif !important;
  color: var(--outline);
}

.hero-text {
  font-size: 1rem;
  line-height: 3;
  margin-bottom: 0rem;
}

.stop {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--secondary);
  margin-left: 0.5rem;
}

.hero-img {
  padding: 0;
  width: 100vw;
  height: 85vh;
  position: relative;
  z-index: 1;
  margin-left: calc(50% - 50vw);
}

.img-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  /* Ensure images outside don't show */
}

.slider-track {
  display: flex;
  width: 500%;
  /* 5 images * 100% */
  height: 100%;
  animation: slider-animation 20s infinite ease-in-out;
}

.slider-track img {
  width: 20%;
  /* 100% / 5 images */
  height: 100%;
  object-fit: cover;
}

@keyframes slider-animation {
  0% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-20%);
  }

  45% {
    transform: translateX(-20%);
  }

  50% {
    transform: translateX(-40%);
  }

  70% {
    transform: translateX(-40%);
  }

  75% {
    transform: translateX(-60%);
  }

  95% {
    transform: translateX(-60%);
  }

  100% {
    transform: translateX(-80%);
  }
}

.img-container::after {
  content: "";
  position: absolute;
  background: rgba(0, 73, 76, 0.3);
  inset: 0;
}

.statistics-carousel {
  background: var(--outline);
  padding: 1rem;
  margin: 1rem 0;
  position: absolute;
  top: 0;
  transform: translateY(-25%);
  right: 9%;
}

.statistics-carousel-list {
  display: flex;
  flex-direction: row;
  gap: 1.2rem;
}

.statistics-carousel-list li {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.upper {
  font-weight: 600;
  font-size: 1.5rem;
}

.lower {
  font-size: 0.85rem;
}

/* Spinning Coin Feature */
.spinning-coin-wrapper {
  position: absolute;
  top: 5%;
  left: 5%;
  width: 160px;
  height: 160px;
  z-index: 10;
  overflow: hidden;
  pointer-events: none;
}

.coin-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinning-text {
  width: 100%;
  height: 100%;
  animation: spin-text 30s linear infinite;
  transform-origin: center;
  overflow: visible;
}

.circular-text {
  fill: var(--primary);
  font-family: "Playfair Display", serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
}

.center-icon {
  position: absolute;
  width: 25px;
  height: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--outline);
  border-radius: 50%;
}

.center-icon:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  scale: 1.2;
}

.center-icon img {
  width: 28px;
  height: 28px;
}

@keyframes spin-text {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* About section */
.about {
  width: 100%;
  height: auto;
  padding: 2rem 0rem 1rem 0rem;
  display: flex;
  gap: 1rem;
}

.about-left {
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-header {
  font-size: 0.7rem;
  color: var(--btn);
  margin-bottom: 0.5rem;
}

.about-text {
  line-height: 1.7;
  margin-bottom: 1rem;
}

.big-text {
  font-size: 1.5rem;
  font-weight: 600;
}

.about-right {
  width: 50%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.about-img {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: row;
  gap: 0.7rem;
}

.about-img-wrapper:first-child {
  position: relative;
  height: 230px;
  width: 50%;
}

.about-img-wrapper:nth-child(2) {
  position: relative;
  height: 140px;
  width: 48%;
}

.about-img-wrapper img:first-child {
  border-radius: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-wrapper:nth-child(2) img {
  border-radius: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--secondary);
  opacity: 0.2;
}

.project-docs-container {
  width: 70%;
  height: 95%;
  position: absolute;
  bottom: 0%;
  left: 28%;
  transform: translateY(60%);
  z-index: 21;
}

.project-docs {
  width: 100%;
  height: 100%;
  border-radius: 0px;
  position: relative;
  overflow: hidden !important;

  box-shadow: 20px 20px 20px 3px rgba(0, 73, 96, 0.23);
  z-index: 22;
}

.project-docs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-docs::after {
  content: "";
  position: absolute;
  background: rgba(0, 73, 76, 0.8);
  inset: 0;
  pointer-events: none;
}

.project-docs p {
  position: absolute;
  top: 10%;
  left: 15%;
  color: var(--outline);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 2;
  z-index: 2;
}

#docGet {
  position: absolute;
  bottom: 10%;
  right: 10%;
  z-index: 2;
}

.hidden {
  display: none;
}

.project-docs form {
  position: absolute;
  inset: 0;
  padding: 1.5rem;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--secondary);
  z-index: 55;
  color: var(--primary);
  box-shadow: 10px 10px 20px rgba(0, 73, 96, 0.5);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  overflow-y: auto;
}

.project-docs form.active {
  transform: translateY(0%);
}

.form-header {
  margin-bottom: 0.25rem;
  padding-bottom: 0.5rem;
}

.form-header h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  line-height: 1.3;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.interest-selector {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.interest-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  min-width: 135px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.interest-select {
  flex: 1;
  padding: 12px 14px;
  font-size: 1rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1.3px solid rgba(151, 208, 161, 0.5);
  cursor: pointer;
  min-width: 0;
  transition: all 0.2s ease;
}

.interest-select:focus {
  border: 1.3px solid #ffffff;
  outline: none;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.interest-select option {
  color: #004960;
  background: #ffffff;
  padding: 10px;
  font-size: 0.95rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-control {
  padding: 12px 14px;
  border: 1.3px solid rgba(151, 208, 161, 0.5);
  border-radius: 0px;
  font-size: 1rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  width: 100%;
  line-height: 1.5;
  transition: all 0.2s ease;
}

.form-control:focus {
  border: 1.3px solid #ffffff;
  outline: none;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
}

/* Fix for auto-fill styling making text invisible */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #004960 inset !important;
  -webkit-text-fill-color: #ffffff !important;
  transition: background-color 5000s ease-in-out 0s;
}

.form-control option {
  color: #004960;
  background: #ffffff;
  padding: 10px;
  font-size: 0.95rem;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

select.form-control option {
  color: #004960;
  background: #ffffff;
  padding: 10px;
}

.updates-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.updates-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.updates-check label {
  cursor: pointer;
  color: var(--primary);
  opacity: 0.9;
}

.submit-btn {
  margin-top: auto;
  padding-top: 0.5rem;
}

/* Home — Gallery Section */
.home-gallery-section {
  margin-top: 4rem;
  margin-bottom: 2rem;
  width: 100%;
}

.home-gallery-intro {
  margin-bottom: 2rem;
}

.home-gallery-intro p {
  font-size: 1rem;
  line-height: 2;
  margin-top: 1rem;
}

.home-roof-cards {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  height: 500px;
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.home-roof-card {
  position: relative;
  flex: 1;
  min-width: 80px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  border-radius: 0;
  text-decoration: none;
  display: block;
}

.home-roof-card.active {
  flex: 3;
}

.home-roof-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.home-roof-card:hover img {
  transform: scale(1.1);
}

.home-roof-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 73, 96, 0.2) 0%,
    rgba(0, 73, 96, 0.5) 50%,
    rgba(0, 73, 96, 0.9) 100%
  );
  z-index: 1;
}

.home-roof-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  z-index: 2;
  color: var(--primary);
  transition: all 0.5s ease;
}

.home-roof-card-title {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-roof-card.active .home-roof-card-title {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.home-roof-card-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--primary);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin-bottom: 0;
  transition:
    opacity 0.4s ease 0.15s,
    max-height 0.4s ease 0.1s,
    margin-bottom 0.3s ease;
}

.home-roof-card.active .home-roof-card-desc {
  opacity: 0.9;
  max-height: 6rem;
  margin-bottom: 0.75rem;
}

.home-roof-card-subtext {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.4s ease 0.1s,
    transform 0.4s ease 0.1s;
  color: var(--outline);
}

.home-roof-card.active .home-roof-card-subtext {
  opacity: 1;
  transform: translateY(0);
}

/* Buy Page */
.buy-hero-section {
  position: relative;
  width: 100vw;
  height: 40vh;
  min-height: 300px;
  max-height: 450px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.buy-hero-image {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.buy-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.buy-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 73, 96, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.buy-hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 2;
}

.buy-hero-title {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.buy-hero-subtitle {
  font-size: 1.1rem;
  color: var(--primary);
  opacity: 0.9;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

/* Buy Intro Section */
.buy-intro-section {
  width: 100%;
  padding: 4rem 2rem;
  gap: 3rem;
  margin-bottom: 2rem;
}

.buy-intro-left {
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.buy-intro-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--secondary);
}

.buy-intro-text .big-text {
  font-size: 1.4rem;
  font-weight: 600;
  display: block;
  margin-bottom: 1rem;
}

.buy-intro-right {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.buy-intro-img-wrapper {
  width: 100%;
  height: 400px;
  position: relative;
  overflow: hidden;
}

.buy-intro-img-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--secondary);
  opacity: 0.25;
  z-index: 1;
}

.buy-intro-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 0;
}

/* Buy Cards Grid */
.buy-cards-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto 5rem;
  padding: 0 1rem;
  align-items: start;
}

.buy-card {
  padding: 2rem;
  position: relative;
  border: 1px solid var(--btn);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.buy-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(0, 73, 96, 0.1);
  padding-bottom: 1.25rem;
  margin-bottom: 0.25rem;
}

.buy-card-icon {
  color: var(--secondary);
  flex-shrink: 0;
}

.buy-card-title {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  color: var(--secondary);
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.buy-card-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--secondary);
  opacity: 0.8;
  flex: 1;
}

.buy-card-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 10px 22px;
  background-color: var(--secondary);
  color: var(--primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.2s ease;
  align-self: flex-start;
}

.buy-card-btn:hover {
  background-color: var(--btn);
  color: var(--primary);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .buy-hero-section {
    height: 35vh;
    min-height: 250px;
    max-height: 350px;
    margin-top: 4rem;
  }

  .buy-hero-title {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
  }

  .buy-hero-subtitle {
    font-size: 0.95rem;
  }

  .buy-hero-overlay {
    padding: 1.5rem 1rem;
  }

  .buy-intro-section {
    flex-direction: column !important;
    padding: 2rem 1rem !important;
  }

  .buy-intro-left,
  .buy-intro-right {
    width: 100% !important;
  }

  .buy-intro-right {
    order: -1 !important;
  }

  .buy-intro-img-wrapper {
    height: 280px !important;
  }

  .buy-cards-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Amenities Section */

.amenities-section {
  padding: 1rem;
  margin-bottom: 4rem;
}

.amenities-section p {
  line-height: 2;
}

/* Contact section*/
.contact {
  margin-top: 4rem;
  margin-bottom: 4rem;
  padding: 0rem;
  height: auto;
  width: 100%;
  gap: 2rem;
}

.contact-left {
  padding: 0rem !important;
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.contact-left form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.contact-left h2 {
  justify-self: flex-start;
  align-self: flex-start;
}

.contact-left .form-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.contact-left .form-group label {
  font-size: 1rem;
  position: absolute;
  left: 2%;
  top: 0;
  transform: translateY(50%);
  color: var(--secondary);
  font-weight: 400;
}

.contact-left .form-group input,
.contact-left .form-group textarea {
  width: 100%;
  padding: 0.5rem;
  padding-left: 4.5rem;
  outline: none;
  border: 1.3px solid var(--outline);
  border-radius: 0px;
  font-size: 1rem;
  resize: none;
  background: transparent;
  color: var(--secondary);
}

#id_subject {
  padding-left: 5rem !important;
}

.contact-left .form-group input:focus,
.contact-left .form-group textarea:focus {
  outline: 1.3px solid var(--secondary);
}

.contact-left .form-group textarea {
  padding-left: 6rem;
}

.contact-right {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-right .contact-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--secondary);
  padding: 2rem;
  border-radius: 0px;
  color: var(--primary);
  position: relative;
}

.floating-cube {
  background: var(--outline);
  width: 50px;
  height: 50px;
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(50%, -50%);
}

.contact-info-header {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--outline);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(230, 125, 34, 0.3);
}

/* Wrapper for each row (Icon + Text) */
.contact-row {
  display: flex;
  align-items: center;
  /* Vertically center icon with text */
  gap: 12px;
  /* Space between icon and text */
  margin-bottom: 15px;
}

/* The SVG Icon styling */
.contact-icon {
  width: 20px;
  height: 20px;
  /* This makes the icon inherit the text color, 
       or you can set a specific color like #e67e22 */
  fill: var(--outline);
  flex-shrink: 0;
  /* Prevents icon from squishing if text is long */
}

/* Optional: Ensure text removes default margins for clean alignment */
.contact-info-text {
  margin: 0;
  line-height: 2;
}

/* Website link styling */
.contact-info-link {
  color: var(--primary);
  text-decoration: none;
  line-height: 2;
  transition: color 0.3s ease;
}

.contact-info-link:hover {
  color: var(--outline);
}

/* Social media section */
.social-media {
  margin-top: 1rem;
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 0%;
  transition: all 0.3s ease;
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--outline);
}

.social-icon:hover {
  background: var(--outline);
  transform: translateY(-3px);
}

.social-icon:hover svg {
  fill: var(--primary);
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  padding-top: 0rem;
  height: auto;
  width: 100%;
}

.footer-links ul {
  list-style-type: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-links ul a {
  font-size: 1.2rem;
  color: var(--secondary);
  text-decoration: none;
}

#newsletter-subscription {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

#newsletter-subscription form {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* About Us Page */
.page-header {
  margin-top: 2rem;
}

.statistics-section {
  margin: 7rem 0 4rem 0;
  padding: 3rem;
  background: var(--outline);
  height: auto;
  width: 100%;
}

.statistics-section span {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

.statistics-section-list {
  width: 100%;
  list-style-type: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.vision-mission-section {
  margin-top: 1rem !important;
  width: 100%;
  padding: 2rem 0 4rem 0;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.vision-mission-left {
  display: flex;
  width: 50%;
  flex-direction: column;
  gap: 1rem;
}

.vision-mission-left p {
  line-height: 2;
}

.vision-mission-right {
  display: flex;
  width: 70%;
  flex-direction: column;
  gap: 2rem;
}

.vision-two {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.value-container {
  display: flex;
  background: var(--secondary);
  padding: 1rem;
  color: var(--primary);
  border-radius: 0px;
  flex-direction: row;
  gap: 1rem;
  position: relative;
}

.value-icon {
  position: absolute;
  width: 2rem;
  height: 2rem;
  right: 4%;
  top: 10%;
}

.value-icon svg {
  width: 100%;
  height: 100%;
  color: var(--outline);
}

.value-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vision-one {
  display: flex;
  justify-self: center;
  align-self: center;
  flex-direction: column;
  gap: 1rem;
}

/* Container for the floating icons */
.social-container {
  position: fixed;
  bottom: 1.5rem;
  /* equivalent to bottom-6 */
  right: 0rem;
  /* equivalent to right-4 */
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  /* equivalent to gap-3 */
}

/* Shared styles for the buttons */
.social-btn {
  color: var(--secondary);
  /* Replacement for 'text-text-secondary' (Gray) */
  background-color: var(--btn);
  /* bg-white/80 */
  border-radius: 0;
  padding: 0.5rem;
  /* p-2 */

  /* shadow-md */
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);

  /* transition-colors */
  transition: color 0.2s ease-in-out;

  /* Flex alignment to center the SVG */
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Specific Hover Colors */

/* WhatsApp Hover Green */
.social-btn.whatsapp:hover {
  color: #25d366;
}

/* Email Hover Dark Color */
/* Replaced 'text-primary-dark' with a dark blue/black. Change as needed. */
.social-btn.email:hover {
  color: #111827;
}

/* Base Transition Style (Smoothness) */
.hidden-left,
.hidden-bottom,
.hidden-right {
  opacity: 0;
  transition: all 1s ease-out;
  /* The animation duration */
}

/* 1. Slide from Left logic */
.hidden-left {
  transform: translateX(-100px);
  /* Move it 100px to the left */
}

/* 2. Slide from Bottom logic */
.hidden-bottom {
  transform: translateY(100px);
  /* Move it 100px down */
}

/* Special handling for footer to prevent layout shift */
.footer {
  position: relative;
  /* Ensure it maintains its place in document flow */
}

.footer input::placeholder {
  color: var(--secondary) !important;
  opacity: 0.8;
}

.footer.hidden-bottom {
  opacity: 0;
  transform: translateY(100px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.footer.show {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.hidden-right {
  transform: translateX(100px);
  /* Move it 100px to the right */
}

/* 3. The Trigger Class */
.show {
  opacity: 1;
  transform: translateX(0) translateY(0);
  /* Reset position to normal */
}

/* Helper classes for delays */
.delay-200 {
  transition-delay: 200ms;
}

.delay-400 {
  transition-delay: 400ms;
}

.delay-600 {
  transition-delay: 600ms;
}

.side-by-side {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Masterplan Section */
.masterplan-section {
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  background-color: var(--primary);
}

.masterplan-header-wrapper {
  display: flex;
  flex-direction: column;
  /* Changed from center to flex-end */
  gap: 1rem;
  text-align: left;
  /* Changed from center to right */
  max-width: 1200px;
  width: 100%;
  /* Ensure it takes width to allow alignment */
}

.masterplan-intro {
  text-align: left;
  /* Changed from center to right */
  line-height: 1.8;
  color: var(--secondary);
  font-size: 1rem;
}

.masterplan-img-wrapper {
  width: 80%;
  height: auto;
  box-shadow: 0 10px 30px rgba(0, 73, 96, 0.15);
  border: 1px solid rgba(0, 73, 96, 0.1);
  overflow: hidden;
}

.masterplan-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.masterplan-img-wrapper:hover img {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .masterplan-section {
    padding: 2rem 1rem;
  }

  .masterplan-img-wrapper {
    width: 100%;
    box-shadow: none;
    border: none;
  }

  .masterplan-intro {
    font-size: 0.9rem;
    padding: 0rem;
  }
}

/* Testimonial Section */
.testimonial-section {
  padding: 4rem 1rem;
  align-items: center;
  overflow: hidden;
  /* Hide overflow for animation */
  gap: 4rem;
}

.testimonial-left {
  width: 40%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  line-height: 2;
}

.testimonial-left p {
  line-height: 2;
}

.testimonial-btn-wrapper a {
  text-decoration: none;
}

.testimonial-right {
  width: 50%;
  height: 600px;
  /* Fixed height for the scrolling window */
  position: relative;
  overflow: hidden;
  /* Mask to fade top and bottom */
  mask-image: linear-gradient(
    to bottom,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.testimonial-container {
  width: 100%;
  height: 100%;
}

.testimonial-track {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: scrollVertical 35s linear infinite;
  /* Slower animation */
  padding: 1rem;
}

.testimonial-track:hover {
  animation-play-state: paused;
}

.testimonial-card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  opacity: 0.8;
  transform: scale(0.95);
}

/* Active/Highlight state (will be triggered by JS) */
.testimonial-card.active {
  background: var(--secondary);
  color: #fff;
  transform: scale(1.05);
  /* Larger size */
  opacity: 1;
  border: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.testimonial-card.active .testimonial-name,
.testimonial-card.active .testimonial-title,
.testimonial-card.active .testimonial-content {
  color: #fff;
}

.testimonial-card.active .testimonial-avatar {
  background: var(--btn);
  color: #fff;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.testimonial-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--secondary);
}

.testimonial-title {
  font-size: 0.9rem;
  color: var(--btn);
  display: block;
}

.testimonial-content {
  font-size: 1rem;
  line-height: 1.8;
  /* Improve readability/line-height */
  color: #555;
  font-style: italic;
}

@keyframes scrollVertical {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-50%);
  }

  /* Assumes content is duplicated 1x, so 50% is one full set */
}

@media (max-width: 768px) {
  .testimonial-section {
    flex-direction: column;
    gap: 3rem;
  }

  .testimonial-left,
  .testimonial-right {
    width: 100%;
  }

  .testimonial-right {
    height: 500px;
  }
}

/* Latest News & Blog Styles */

.latest-news-section {
  padding: 4rem 1rem;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.section-header-wrapper {
  margin-bottom: 3rem;
  width: 100%;
  max-width: 1200px;
  /* Aligns with blog grid */
  align-self: center;
  /* Center the wrapper itself */
  padding: 0;
  /* Text aligns left by default */
}

.home-blogs {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  width: 100%;
  padding: 0rem !important;
  margin: 0 auto !important;
}

@media (max-width: 768px) {
  .home-blogs {
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
  }
}

.home-blogs .blog-card {
  background: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  border-radius: 0;
}

.home-blogs .blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.home-blogs .blog-thumb {
  height: 200px;
  width: 100%;
  overflow: hidden;
  border-radius: 0;
}

.home-blogs .blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.home-blogs .blog-card:hover .blog-thumb img {
  transform: scale(1.05);
}

.home-blogs .blog-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  align-items: flex-start;
}

.home-blogs .blog-title {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
  line-height: 1.3;
}

.home-blogs .blog-meta {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.home-blogs .blog-intro {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.home-blogs .read-more {
  color: var(--btn);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s ease;
}

.home-blogs .read-more:hover {
  gap: 8px;
}

/* --- Stats Section --- */
.stats-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  margin-top: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary);
  font-family: "Playfair Display", serif;
  margin: 0;
  line-height: 1;
}

.stat-suffix {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  font-family: "Playfair Display", serif;
  display: inline-block;
  margin-left: 2px;
}

.stat-label {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .stats-container {
    flex-wrap: nowrap;
    gap: 0.5rem;
    /* Reduced gap to fit */
    overflow-x: hidden;
    /* No scroll */
    justify-content: space-between;
    /* Distribute evenly */
    width: 100%;
  }

  .stat-item {
    width: auto;
    flex: 1;
    /* Allow shrinking/growing */
    min-width: 0;
    /* Allow shrinking below content size if strictly needed, though unlikely for numbers */
    text-align: center;
    /* Center align for better balance */
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Reduce font sizes slightly on mobile to ensure fit */
  .stat-number {
    font-size: 1.8rem;
  }

  .stat-suffix {
    font-size: 1.2rem;
  }

  .stat-label {
    font-size: 0.7rem;
    text-align: center;
  }

  .stat-divider {
    display: block;
    height: 30px;
    margin: 0 5px;
    /* Minimal margin */
  }
}

/* --- Partners Marquee --- */
.partners-section-wrapper {
  padding: 3rem 0;
  background-color: rgba(226, 236, 241, 0.5);
  margin-bottom: 2rem;
}

.partners-scroller {
  width: 100%;
  overflow: hidden;
  position: relative;
  /* Horizontal Blur Mask */
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.partners-track {
  display: flex;
  gap: 4rem;
  /* Spacing between logos */
  animation: scrollHorizontal 80s linear infinite;
  width: max-content;
  padding: 1rem 0 3rem 0;
  /* Extra bottom padding for tooltips */
}

/* Pause on hover */
.partners-track:hover {
  animation-play-state: paused;
}

.partners-track .partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  /* Ensure uniform width */
  cursor: pointer;
  position: relative;
}

.partners-track .partner-logo {
  max-height: 50px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.partners-track .partner-card:hover .partner-logo {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

.partner-tooltip {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary);
  color: white;
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  pointer-events: none;
}

.partners-track .partner-card:hover .partner-tooltip {
  opacity: 1;
}

@keyframes scrollHorizontal {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
    /* Assumes list is duplicated once */
  }
}

.stat-value-wrapper {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 2px;
}

/* --- Standardized Page Header Styles --- */
.page-header-section {
  background-color: var(--primary);
  color: var(--secondary);
  text-align: center;
  padding: 6rem 1rem 4rem 1rem;
  /* Adjusted top padding for nav overlap if any, matches careers.html base */
  margin-bottom: 2rem;
}

.page-title {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1.1rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .page-header-section {
    padding: 5rem 1rem 3rem 1rem;
  }
}

/* Pages headers */
.page-header-section {
  text-align: center;
  padding: 4rem 2rem 2rem;
  background-color: var(--primary);
}

.page-title {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.page-subtitle {
  color: var(--secondary);
  opacity: 0.8;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0rem;
  margin-bottom: 4rem;
}

.project-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.project-img {
  height: 200px;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 1rem;
}

.project-title {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.project-location {
  font-size: 0.9rem;
  color: var(--btn);
  font-weight: 500;
}

.project-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  flex-grow: 1;
}

.project-actions {
  margin-top: auto;
}

.no-content {
  text-align: center;
  width: 100%;
  grid-column: 1 / -1;
  padding: 3rem;
  color: #777;
}

.view-all-link {
  text-decoration: none;
}

@media (max-width: 768px) {
  .projects-container {
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
  }
}

/* Image Tint Overlays */
.project-img,
.home-blogs .blog-thumb {
  position: relative;
}

.project-img::after,
.home-blogs .blog-thumb::after,
.ceo-image::after,
.team-img-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--secondary);
  opacity: 0.2;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-img::after,
.home-blogs .blog-card:hover .blog-thumb::after,
.ceo-card:hover .ceo-image::after,
.team-card:hover .team-img-wrapper::after {
  opacity: 0.1;
}

/* Navigation Dropdown Styles */
.nav-item-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.dropdown-trigger .chevron {
  display: inline-block;
  transition: transform 0.2s ease;
  transform: rotate(90deg);
  font-size: 1.2rem;
  line-height: 1;
}

.nav-item-dropdown:hover .dropdown-trigger .chevron {
  transform: rotate(-90deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: white;
  min-width: 180px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 0;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1000;
  list-style: none;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu li a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background: #f5f5f5;
  color: var(--btn);
}

/* Buy Button Animation Logic with Deep Selection */
.buy-trigger .custom-button .arrow-icon {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When active, rotate the arrow from 90deg (down) to -90deg (up) */
.buy-trigger.active .custom-button .arrow-icon {
  transform: rotate(-90deg) !important;
}

/* Team Section */
.team-section {
  flex-direction: column !important;
  padding: 4rem 1rem;
  gap: 3rem;
}

.team-header-wrapper {
  text-align: left;
  max-width: 100%;
  margin-bottom: 2rem;
}

.team-header-wrapper .section-text {
  line-height: 1.6;
  max-width: 800px;
}

/* CEO Card */
.ceo-card {
  display: flex;
  flex-direction: row;
  background: #fff;
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  max-width: 1000px;
  margin: 0 auto;
  align-items: center;
}

.ceo-image {
  width: 40%;
  height: 400px;
  position: relative;
}

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

.ceo-content {
  width: 60%;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-role {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--outline);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.team-name {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.team-quote {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.6;
  color: #555;
  position: relative;
}

.team-quote::before {
  content: '"';
  font-family: "Playfair Display", serif;
  font-size: 4rem;
  color: var(--outline);
  position: absolute;
  top: -2rem;
  left: -1rem;
  opacity: 0.2;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
}

.team-card {
  background: #fff;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.team-img-wrapper {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
}

.team-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-img-wrapper img {
  transform: scale(1.05);
}

.team-info {
  padding: 1.5rem;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.team-info .team-name {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}

.team-info .team-role {
  font-size: 0.8rem;
  margin-bottom: 1rem;
  color: #777;
  font-weight: 500;
}

.team-quote-small {
  font-size: 0.9rem;
  color: #555;
  font-style: italic;
  margin-top: auto;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .ceo-card {
    flex-direction: column;
  }

  .ceo-image,
  .ceo-content {
    width: 100%;
  }

  .ceo-image {
    height: 300px;
  }

  .ceo-content {
    padding: 2rem;
    text-align: center;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-quote::before {
    left: 0;
  }
}

/* Projects Hero Section */
.projects-hero-section {
  position: relative;
  width: 100vw;
  height: 40vh;
  min-height: 300px;
  max-height: 450px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.projects-hero-image {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.projects-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.projects-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 73, 96, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.projects-hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 2;
}

.projects-hero-title {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.projects-hero-subtitle {
  font-size: 1.1rem;
  color: var(--primary);
  opacity: 0.9;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .projects-hero-section {
    height: 35vh;
    min-height: 250px;
    max-height: 350px;
    margin-top: 4rem;
  }

  .projects-hero-title {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
  }

  .projects-hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .projects-hero-overlay {
    padding: 1.5rem 1rem;
  }
}
