/* ======================================= */
/* 🚀 Variables & General Configuration */
/* ======================================= */
:root {
  --primary: #295594;
  --primary-dark: #1e3f6d;
  --secondary: #5f656f;
  --light: #f5f5f5;
  --dark: #212529;
  --accent-red: #d32027;
  --accent-yellow: #fdd000;
  /* Configuration */
  --transition-speed: 0.5s;
  --border-radius-base: 15px;
  --box-shadow-base: 0 0 45px rgba(0, 0, 0, 0.07);
  --z-index-fixed: 99;
}

/* Font Weight Styles */
h1,
.h1,
h2,
.h2,
.fw-bold {
  font-weight: 700;
}
h3,
.h3,
h4,
.h4,
.fw-medium {
  font-weight: 600;
}
h5,
.h5,
h6,
.h6,
.fw-semi-bold {
  font-weight: 500;
}

/* ======================================= */
/* 🔗 Fixed Elements & Buttons */
/* ======================================= */

.back-to-top {
  position: fixed;
  display: none;
  right: 30px;
  bottom: 30px;
  z-index: var(--z-index-fixed);
}

/* Button */
.btn {
  transition: var(--transition-speed);
  font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
  color: #ffffff;
}

/* Square Button Grouping */
.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}

/* Solar Specific Styles */
.btn-solar {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-solar:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(41, 85, 148, 0.3);
}

/* ======================================= */
/* ⚙️ Spinner & Animation */
/* ======================================= */

#spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--transition-speed) ease-out,
    visibility var(--transition-speed);
}

#spinner.show {
  opacity: 1;
  visibility: visible;
}

.gaclay-logo-spinner {
  max-width: 250px;
  height: auto;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.loading-progress {
  position: absolute;
  bottom: 30%;
  width: 200px;
  height: 4px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.loading-progress-bar {
  height: 100%;
  width: 0%;
  background-color: #2c5aa0;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.spinner-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(
      circle at 25% 25%,
      rgba(44, 90, 160, 0.05) 0%,
      transparent 55%
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(44, 90, 160, 0.05) 0%,
      transparent 55%
    );
}

/* ======================================= */
/* 🏷️ Division Badges */
/* ======================================= */

/* Base styles for all division badges */
.division-badge-base {
  color: var(--light);
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 10px;
}

/* Applying specific colors */
.division-badge {
  background: var(--accent-red);
  color: var(--light);
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 10px;
}

.itdivision-badge {
  background: #ff3300;
  color: var(--light);
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 10px;
}

.solar-badge {
  background: var(--accent-yellow);
  color: var(--light);
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 10px;
}

.coming-soon-badge {
  background: #28a745;
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}

/* ======================================= */
/* 🧭 Topbar & Navbar - FIXED STICKY NAVBAR */
/* ======================================= */

.topbar-right {
  position: relative;
  background: var(--primary);
}

.topbar-right::before {
  position: absolute;
  content: "";
  width: 30px;
  height: 100%;
  top: 0;
  left: -15px;
  transform: skewX(-30deg);
  background-color: var(--primary);
}

/* FIX: Sticky navbar fixes */
.navbar.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1020;
  transition: all var(--transition-speed) ease;
  will-change: transform, background-color, box-shadow;
  transform: translateY(0);
}

/* FIX: Remove the negative top that was hiding the navbar */
.navbar.sticky-top {
  top: 0;
}

/* FIX: Navbar background when scrolled - added in JavaScript */
.navbar.navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar .navbar-brand {
  position: relative;
  padding-right: 50px;
  height: 75px;
  display: flex;
  align-items: center;
  background: var(--primary);
  transition: background-color var(--transition-speed) ease;
}

/* FIX: Brand background when navbar is scrolled */
.navbar.navbar-scrolled .navbar-brand {
  background: transparent;
}

.navbar .navbar-brand::after {
  position: absolute;
  content: "";
  width: 50px;
  height: 100%;
  top: 0;
  right: -25px;
  transform: skewX(-30deg);
  background-color: var(--primary);
  transition: background-color var(--transition-speed) ease;
}

/* FIX: Brand pseudo-element background when navbar is scrolled */
.navbar.navbar-scrolled .navbar-brand::after {
  background-color: transparent;
}

.navbar .navbar-nav .nav-link {
  margin-right: 35px;
  padding: 20px 0;
  color: var(--dark);
  font-size: 18px;
  font-weight: 500;
  outline: none;
  transition: color var(--transition-speed) ease;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: var(--primary);
}

/* Media Queries Navbar */
@media (max-width: 991.98px) {
  .navbar .navbar-nav .nav-link {
    margin-right: 0;
    padding: 10px 0;
  }

  .navbar .navbar-nav {
    border-top: 1px solid #eeeeee;
  }

  /* FIX: Mobile navbar background */
  .navbar.navbar-scrolled {
    background-color: rgba(255, 255, 255, 1);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    border: none;
    margin-top: 0;
    top: 150%;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-speed);
  }

  .navbar .nav-item:hover .dropdown-menu {
    top: 100%;
    visibility: visible;
    transition: var(--transition-speed);
    opacity: 1;
  }
}

/* FIX: Prevent content from jumping under fixed navbar */
body {
  padding-top: 0;
}

/* FIX: Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* FIX: When scrolling, account for navbar height for anchor links */
:target::before {
  content: "";
  display: block;
  height: 80px; /* Height of your navbar */
  margin: -80px 0 0; /* Negative top margin equal to navbar height */
}

/* ======================================= */
/* 🖼️ Header & Carousel */
/* ======================================= */

.carousel-caption {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(
    to right,
    rgba(2, 36, 91, 1) 0%,
    rgba(2, 36, 91, 0) 100%
  );
  z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
  width: 15%;
}

/* Control Icon Grouping */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--primary);
  border: 15px solid var(--primary);
  border-radius: 3.5rem;
}

@media (max-width: 768px) {
  #header-carousel .carousel-item {
    position: relative;
    min-height: 450px;
  }

  #header-carousel .carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.page-header {
  background:
    linear-gradient(to right, rgba(2, 36, 91, 1) 0%, rgba(2, 36, 91, 0) 100%),
    url("../images/carrousel/carousel-3.png") center center no-repeat;
  background-size: cover;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: var(--light);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
  font-size: 18px;
  color: var(--light);
}

/* ======================================= */
/* 📊 Facts & Features (Play Button) */
/* ======================================= */

/* Facts */
.facts {
  position: relative;
  margin: 6rem 0;
  background: var(--dark);
}

.facts .border {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Features (Play Button) */
.btn-play {
  position: absolute;
  top: 50%;
  right: -30px;
  transform: translateY(-50%);
  display: block;
  box-sizing: content-box;
  width: 16px;
  height: 26px;
  border-radius: 50%;
  border: none;
  outline: none;
  padding: 18px 20px 20px 28px;
  background: var(--primary);
}

@media (max-width: 992px) {
  .btn-play {
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
  }
}

.btn-play::before,
.btn-play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  display: block;
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
}

.btn-play::before {
  z-index: 0;
  animation: pulse-border 1.5s ease-out infinite;
}

.btn-play::after {
  z-index: 1;
  transition: all 200ms;
}

.btn-play span {
  display: block;
  position: relative;
  z-index: 3;
  width: 0;
  height: 0;
  left: -1px;
  border-left: 16px solid #ffffff;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}

@keyframes pulse-border {
  0% {
    transform: translateX(-50%) translateY(-50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(-50%) scale(2);
    opacity: 0;
  }
}

/* Modal Video */
.modal-video .modal-dialog {
  position: relative;
  max-width: 800px;
  margin: 60px auto 0 auto;
}

.modal-video .modal-body {
  position: relative;
  padding: 0;
}

.modal-video .close {
  position: absolute;
  width: 30px;
  height: 30px;
  right: 0;
  top: -30px;
  z-index: 999;
  font-size: 30px;
  font-weight: normal;
  color: #ffffff;
  background: #000000;
  opacity: 1;
  border: none;
  cursor: pointer;
}

/* ======================================= */
/* 🛠️ Services */
/* ======================================= */
/* Fix for navigation conflicts - ensure these only affect navbar */
.navbar-nav .nav-link {
  position: relative;
  color: var(--secondary);
  font-weight: 600;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: color var(--transition-speed) ease;
  overflow: hidden;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus-visible {
  color: var(--primary);
  background-color: transparent;
}

.navbar-nav .nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform var(--transition-speed) ease-out;
}

.navbar-nav .nav-link:hover::before {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.navbar-nav .nav-link.active {
  color: var(--primary);
}

.navbar-nav .nav-link.active::before {
  transform: scaleX(1);
  background-color: var(--accent-yellow);
}

/* Card enhancements */
.card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

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

.card-img-top .carousel-control-prev,
.card-img-top .carousel-control-next {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover .card-img-top .carousel-control-prev,
.card:hover .card-img-top .carousel-control-next {
  opacity: 0.75;
}

/* Service card specific styles */
.service-card .carousel-item img {
  height: 220px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .service-card .carousel-item img {
    height: 200px;
  }
}

/* ======================================= */
/* 🏗️ Project Carousel */
/* ======================================= */

/* Industrial Professional Styling */
.letter-spacing-2 {
  letter-spacing: 2px;
}

.project-carousel {
  position: relative;
  background: var(--dark);
  padding: 20px 0;
}

.project-item {
  position: relative;
  display: block;
  margin: 0 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-speed) ease;
}

.project-item img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  filter: grayscale(20%);
  transition: all var(--transition-speed) ease;
}

/* --- Fixed Height Title Box --- */
.project-info-box {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: rgba(33, 37, 41, 0.9);
  border-top: 3px solid var(--primary);
  transform: translateY(0);
  transition: all var(--transition-speed) ease;

  /* Ensures the dark box itself is always the same height */
  min-height: 110px;
  display: flex;
  align-items: center;
}

/* --- Unified Heading Logic --- */
.project-info-box h5 {
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 0;
  color: #fff;

  /* The "Fix": Forces text to 2 lines and adds "..." if longer */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;

  /* Ensures 1-line titles take up the same space as 2-line titles */
  height: 2.8em;
}

/* --- Hover Effects --- */
.project-item:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.project-item:hover .project-info-box {
  background: var(--primary);
}

/* --- Navigation Controls --- */
.project-carousel .owl-nav {
  position: absolute;
  top: -80px;
  right: 10%;
  display: flex;
}

.project-carousel .owl-nav .owl-prev,
.project-carousel .owl-nav .owl-next {
  width: 45px;
  height: 45px;
  margin-left: 10px;
  background: var(--secondary);
  color: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.project-carousel .owl-nav .owl-prev:hover,
.project-carousel .owl-nav .owl-next:hover {
  background: var(--primary);
}

/* ======================================= */
/* 👨‍💼 Team & Section Header */
/* ======================================= */

.team-section {
  background-color: var(--light);
}

.section-subtitle {
  letter-spacing: 1.5px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* Team Card Design */
.team-card {
  background: white;
  border-radius: var(--border-radius-base);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: all var(--transition-speed) ease;
  height: 100%;
}

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

/* Image Handling */
.team-img-container {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Hover Overlay */
.team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(41, 85, 148, 0.9), transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
}

.team-card:hover .team-overlay {
  opacity: 1;
}

/* Social Icons */
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  margin: 0 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.social-links a:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-3px);
}

.team-info {
  padding: 1.75rem 1rem;
}

.team-name {
  font-weight: 700;
  color: var(--dark);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .team-img-container {
    height: 280px;
  }
}

@media (max-width: 575.98px) {
  .section-title {
    font-size: 2rem;
  }
}

/* ======================================= */
/* 🤝 Partners Carousel */
/* ======================================= */

/* Partners Carousel */
.partners-carousel {
  position: relative;
}

.partners-carousel .partners-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  padding: 0;
  pointer-events: none;
}

.partners-carousel .partners-item img {
  max-width: 200px;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: auto;
  cursor: pointer;
  mix-blend-mode: multiply;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: all 0.3s ease-in-out;
}

.partners-carousel .partners-item img:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.05);
  mix-blend-mode: normal;
}

/* W3C Validation Logic: 
   We hide the nav buttons to remove the < > symbols. 
   Ensure your JS has 'dots: true' so users can still navigate on desktop.
*/
.partners-carousel .owl-nav {
  display: none; /* This removes the < > buttons entirely */
}

/* Optional: Style the pagination dots so the user knows they can scroll */
.partners-carousel .owl-dots {
  text-align: center;
  margin-top: 20px;
}

.partners-carousel .owl-dot span {
  width: 10px;
  height: 10px;
  margin: 5px 7px;
  background: #d6d6d6;
  display: block;
  transition: opacity 0.2s ease;
  border-radius: 30px;
}

.partners-carousel .owl-dot.active span {
  background: var(--primary);
}

/* ======================================= */
/* 🦶 Footer & Copyright */
/* ======================================= */
.footer {
  color: #b0b9ae;
  letter-spacing: 0.5px;
}

/* Header styling for a premium look */
.footer h5 {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

/* Link transitions and icons */
.footer .btn.btn-link {
  color: #b0b9ae;
  transition: var(--transition-speed);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer .btn.btn-link:hover {
  color: var(--light);
  transform: translateX(5px); /* Elegant slide effect */
  background: transparent;
}

/* Hover effect for legal links */
.footer-legal a:hover {
  color: var(--primary);
}

/* Social buttons beauty upgrade */
.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-outline-light:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ======================================= */
/* 🌞 Solar Division Specific Styles */
/* ======================================= */

.hero-solar {
  background:
    linear-gradient(
      135deg,
      rgba(41, 85, 148, 0.9) 0%,
      rgba(30, 63, 109, 0.9) 100%
    ),
    url("https://plus.unsplash.com/premium_photo-1682148205811-e8a8ce759f4b?q=80&w=953&auto=format&fit=crop")
      center/cover no-repeat;
  color: white;
  padding: 6rem 0;
}

.service-card {
  border: none;
  border-radius: var(--border-radius-base);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
}

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

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
}

.feature-box {
  text-align: center;
  padding: 2rem;
  border-radius: 10px;
  background: var(--light);
  transition: all 0.3s ease;
}

.feature-box:hover {
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stats-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.info-section {
  background: linear-gradient(135deg, var(--light) 0%, #e9ecef 100%);
}

/* Makes the links turn pure white when hovered */
.footer a.text-white-50:hover {
  color: #ffffff;
  opacity: 1;
}

/* ======================================= */
/* 🔧 ADDITIONAL FIXES FOR STICKY NAVBAR */
/* ======================================= */

/* FIX: Ensure navbar is always on top */
.navbar {
  z-index: 1030;
}

/* FIX: Navbar transition for smooth appearance */
.navbar {
  transition: all 0.3s ease-in-out;
}

/* FIX: Navbar toggler styling for mobile */
.navbar-toggler {
  border: 2px solid transparent;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(41, 85, 148, 0.25);
  border-color: var(--primary);
}

/* FIX: Mobile menu background when navbar is scrolled */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
  }

  .navbar.navbar-scrolled .navbar-collapse {
    background-color: white;
  }
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

/* For mobile responsiveness */
@media (max-width: 768px) {
  #map {
    height: 350px;
  }
}

/* Applying your provided :root variables */
.facts-section {
  background: linear-gradient(rgba(41, 85, 148, 0.9), rgba(30, 63, 109, 0.9));
  background-size: cover;
  background-attachment: fixed;
  border-radius: var(--border-radius-base);
}

.fact-card {
  transition: var(--transition-speed);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  border-radius: var(--border-radius-base);
}

.fact-card:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--box-shadow-base);
  transform: translateY(-10px);
}

/* Using your --accent-yellow for the numbers */
.counter-value {
  color: var(--accent-yellow);
  font-weight: 700;
}

/* Icon Color using your --light variable */
.fact-card i {
  color: var(--light);
}

/* Look for classes with -webkit-line-clamp and add standard property */
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Language Switcher Styles */
.language-switcher-container {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 1000;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.language-switcher-container:hover {
  opacity: 1;
}

.language-btn {
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  transition: all 0.3s ease;
}

.language-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .language-switcher-container {
    top: 80px;
    right: 10px;
  }

  .language-btn {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }
}

/* For RTL languages if needed */
html[dir="rtl"] {
  text-align: right;
}

html[dir="rtl"] .ms-auto {
  margin-right: auto;
  margin-left: 0;
}

html[dir="rtl"] .me-2 {
  margin-left: 0.5rem;
  margin-right: 0;
}

/* CSS Variables */

/* Global Styles */
body {
  font-family: "Open Sans", sans-serif;
  overflow-x: hidden;
}

/* Top Bar Styles */
.top-bar-minimalist {
  font-size: 0.875rem;
  background-color: var(--dark);
}

.social-link {
  color: var(--light);
  opacity: 0.7;
  transition: all var(--transition-speed) ease;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.social-link:hover {
  color: var(--accent-yellow);
  opacity: 1;
  transform: translateY(-1px);
}

.contact-link {
  transition: opacity var(--transition-speed) ease;
}

.contact-link:hover {
  opacity: 0.8;
}

/* Navigation Styles */
.navbar-nav {
  gap: 0.5rem;
  align-items: center;
}

.nav-link {
  position: relative;
  color: var(--secondary);
  font-weight: 600;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: color var(--transition-speed) ease;
  overflow: hidden;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--primary);
  background-color: transparent;
}

.nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform var(--transition-speed) ease-out;
}

.nav-link:hover::before {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.nav-link.active {
  color: var(--primary);
}

.nav-link.active::before {
  transform: scaleX(1);
  background-color: var(--accent-yellow);
}

@media (max-width: 991.98px) {
  .navbar-nav {
    align-items: flex-start;
    padding-left: 1rem;
  }

  .nav-link::before {
    width: 4px;
    height: 100%;
    top: 0;
    left: 0;
    transform: scaleY(0);
    transform-origin: top;
  }

  .nav-link:hover::before,
  .nav-link.active::before {
    transform: scaleY(1);
  }

  .nav-link {
    padding-left: 1.5rem;
    width: 100%;
  }
}

/* Hero Carousel */
.carousel-caption {
  background: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-radius: 10px;
}

.carousel-item img {
  height: 600px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .carousel-item img {
    height: 400px;
  }

  .carousel-caption h1 {
    font-size: 2rem;
  }
}

/* Service Cards */
.custom-service-grid {
  --primary: #295594;
  --primary-dark: #1e3f6d;
  --accent-yellow: #fdd000;
  --text-muted: #6c757d;
}

.service-card-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.service-card-wrapper:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(41, 85, 148, 0.12);
}

.service-img-box {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.service-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card-wrapper:hover .service-img-box img {
  transform: scale(1.08);
}

.service-info-content {
  padding: 1.75rem;
  border-top: 5px solid var(--primary);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-badge {
  display: inline-block;
  padding: 2px 10px;
  background: #eef2f7;
  color: var(--primary-dark);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: 12px;
  letter-spacing: 1px;
  width: fit-content;
}

.service-btn-link {
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  margin-top: auto;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  transition: color 0.3s;
}

.service-btn-link:hover {
  color: var(--accent-red);
}

.service-btn-link span {
  margin-left: 8px;
  transition: transform 0.3s;
}

.service-btn-link:hover span {
  transform: translateX(5px);
}

/* Facts Section */
.facts-section {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
}

.fact-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.fact-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

/* Projects Section */
.project-carousel .project-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
}

.project-item img {
  transition: transform 0.5s ease;
}

.project-item:hover img {
  transform: scale(1.05);
}

.project-info-box {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  padding: 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.project-item:hover .project-info-box {
  transform: translateY(0);
}

/* Footer */
.footer {
  background: var(--dark);
}

.copyright {
  background: rgba(0, 0, 0, 0.9);
}

.hover-primary:hover {
  color: var(--primary);
}

/* Loading Spinner */
#spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner-content {
  text-align: center;
}

.gaclay-logo-spinner {
  width: 150px;
  height: auto;
  margin-bottom: 2rem;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.loading-progress {
  width: 200px;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
}

.loading-progress-bar {
  height: 100%;
  background: var(--primary);
  animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
  0% {
    width: 0;
    transform: translateX(-100%);
  }
  50% {
    width: 60%;
  }
  100% {
    width: 0;
    transform: translateX(200%);
  }
}

/* RTL Support */
html[dir="rtl"] {
  text-align: right;
}

html[dir="rtl"] .ms-auto {
  margin-right: auto;
  margin-left: 0;
}

html[dir="rtl"] .me-2 {
  margin-left: 0.5rem;
  margin-right: 0;
}

/* Responsive Typography */
@media (max-width: 768px) {
  .display-1 {
    font-size: 3rem;
  }

  .display-5 {
    font-size: 2rem;
  }

  .display-2 {
    font-size: 2.5rem;
  }
}

/* Print Styles */
@media print {
  .language-switcher-container,
  .navbar-toggler,
  .carousel-controls,
  .btn-play,
  .social-links {
    display: none;
  }

  .footer {
    page-break-inside: avoid;
  }
}

/* Language Switcher Styles */
.language-switcher-container {
  position: fixed;
  top: 120px;
  right: 20px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(-20px);
  animation: slideInDown 0.5s ease forwards 0.5s;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.language-switcher-dropdown {
  position: relative;
}

.language-current-btn {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 25px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #212529;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-width: 90px;
}

.language-current-btn:hover {
  background: #f8f9fa;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.language-current-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(41, 85, 148, 0.25);
}

.dropdown-menu {
  min-width: 160px;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  margin-top: 8px;
  overflow: hidden;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border-radius: 5px;
  margin: 2px 5px;
  transition: all 0.2s ease;
}

.language-option:hover {
  background-color: #295594;
  color: white;
  transform: translateX(3px);
}

.language-option:hover .language-name {
  color: white;
}

.language-flag {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  display: inline-block;
  background-size: cover;
  background-position: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.flag-en {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"><clipPath id="s"><path d="M0,0 v30 h60 v-30 z"/></clipPath><clipPath id="t"><path d="M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z"/></clipPath><g clip-path="url(%23s)"><path d="M0,0 v30 h60 v-30 z" fill="%23012169"/><path d="M0,0 L60,30 M60,0 L0,30" stroke="%23fff" stroke-width="6"/><path d="M0,0 L60,30 M60,0 L0,30" clip-path="url(%23t)" stroke="%23C8102E" stroke-width="4"/><path d="M30,0 v30 M0,15 h60" stroke="%23fff" stroke-width="10"/><path d="M30,0 v30 M0,15 h60" stroke="%23C8102E" stroke-width="6"/></g></svg>');
}

.flag-fr {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"><rect width="60" height="30" fill="%23ED2939"/><rect width="40" height="30" fill="%23fff"/><rect width="20" height="30" fill="%23002495"/></svg>');
}

.flag-cn {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"><rect width="60" height="30" fill="%23DE2910"/><g fill="%23FFDE00"><path d="M30,8.2 L34.3,18.5 L45.5,18.5 L36.6,24.8 L40.9,35 L30,28.8 L19.1,35 L23.4,24.8 L14.5,18.5 L25.7,18.5z"/><circle cx="30" cy="15" r="4.5"/></g></svg>');
}

.language-name {
  flex-grow: 1;
  font-size: 14px;
  color: #212529;
  transition: color 0.2s ease;
}

.language-code {
  font-size: 12px;
  font-weight: 600;
  color: #6c757d;
  min-width: 25px;
  text-align: right;
}

.language-option:hover .language-code {
  color: white;
}

/* Scroll behavior */
body.scrolling-down .language-switcher-container {
  transform: translateY(-100px);
  opacity: 0;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

body.scrolling-up .language-switcher-container {
  transform: translateY(0);
  opacity: 1;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .language-switcher-container {
    top: 100px;
    right: 10px;
  }

  .language-current-btn {
    padding: 6px 12px;
    min-width: 80px;
    font-size: 13px;
  }

  .language-flag {
    width: 20px;
    height: 14px;
  }

  .language-name {
    font-size: 13px;
  }
}

@media (max-width: 576px) {
  .language-switcher-container {
    top: 90px;
  }

  .dropdown-menu {
    position: fixed;
    top: 130px;
    right: 10px;
    left: auto;
    min-width: 140px;
  }
}

/* Hide on print */
@media print {
  .language-switcher-container {
    display: none;
  }
}

/* Contact Page Specific Styles */
.contact-card {
  border-radius: 10px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

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

.contact-icon {
  width: 70px;
  height: 70px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.contact-icon i {
  font-size: 24px;
  color: white;
}
