:root {
  --primary-color: #0a4174;
  --accent-color: #052659;
  --teal-highlight: #ffc108;
  --bg-light: #f4f7fa;
  --dark-text: #2c3e50;
  --white: #ffffff;
  --yellow: #ffc108;
  --construction-orange: #ff6b35;
  --steel-blue: #4a5a6b;
  --success: #10b981;
}

/* Modern Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 193, 8, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 193, 8, 0.6);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--dark-text);
  background-color: var(--bg-light);
  overflow-x: hidden;
  /* padding-top: 80px;\
  \ */
}

/* Modern Scroll Animation Support */
.scroll-animate {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.card-fade {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Gradient Text Effect */
.gradient-text {
  background: linear-gradient(135deg, #ffc108, #ff6b35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Enhanced Button Hover Effects */
.button-hover {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.button-hover::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.button-hover:hover::before {
  width: 300px;
  height: 300px;
}

/* Logo Animation */
.logo-link {
  transition: transform 0.3s ease;
}

.logo-link:hover {
  transform: translateY(-2px);
}

/* Modern Navbar with Sticky Animation */
.navbar-animated {
  animation: slideInDown 0.5s ease-out;
}

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

h1,
h2,
h3,
h4,
h5 {
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 700;
}

section {
  padding: 6rem 0;
}

/* Section Titles */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
  position: relative;
  color: var(--primary-color);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--teal-highlight);
  border-radius: 2px;
}

/* Header Customizations */
.main-header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.logo {
  max-height: 50px;
  width: auto;
}

.nav-link {
  color: var(--dark-text) !important;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

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

/* Hero Section */
#home {
  height: calc(100vh - 80px);
  min-height: 600px;
  position: relative;
  background: linear-gradient(135deg, #061527 0%, #0a4174 100%);
  overflow: hidden;
}

#home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1541888946425-d81bb19240f5?q=80&w=2070&auto=format&fit=crop")
    no-repeat center center/cover;
  opacity: 0.08;
  transform: scale(1);
  animation: subtleZoom 20s infinite alternate;
  z-index: 0;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
}

@keyframes subtleZoom {
  100% {
    transform: scale(1.08);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.btn-custom {
  padding: 0.8rem 2rem;
  border-radius: 6px;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-custom-primary {
  background-color: var(--teal-highlight);
  color: var(--white);
  border: 2px solid var(--teal-highlight);
}

.btn-custom-bg {
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
}

.btn-custom-warning {
  background-color: var(--yellow);
  color: var(--primary-color);
  border: 2px solid var(--teal-highlight);
}

.btn-custom-warning:hover {
  background-color: #e3ac07;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(22, 160, 133, 0.2);
  color: #000;
}

.btn-custom-bg:hover {
  background-color: var(--accent-color);
  color: var(--white);
}

.btn-custom-primary:hover {
  background-color: #12826c;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(22, 160, 133, 0.2);
  color: var(--white);
}

.btn-custom-outline {
  background-color: transparent;
  color: var(--yellow);
  border: 2px solid var(--yellow);
}

.btn-custom-outline:hover {
  background-color: var(--yellow);
  color: var(--white);
  transform: translateY(-3px);
}

/* Info Cards Grid (About) */
.info-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  /* border-left: 4px solid var(--primary-color); */
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(
    180deg,
    var(--primary-color),
    var(--construction-orange)
  );
  transition: height 0.3s ease;
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(10, 65, 116, 0.12);
}

.info-card:hover::before {
  height: 100%;
}

.info-card h3 {
  font-size: 1.35rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.info-card ul {
  padding-left: 0;
  margin-bottom: 0;
}

.info-card ul li {
  list-style: none;
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.info-card ul li i {
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--primary-color);
}

#about .hitados {
  color: var(--yellow);
}

#about p {
  font-size: 0.9rem;
}

/* Services Custom Layout */
#services {
  background-color: var(--accent-color);
  color: var(--white);
}

#services .section-title {
  color: var(--white);
}

.service-card {
  background: var(--white);
  color: var(--dark-text);
  padding: 3rem 2rem;
  border-radius: 14px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 193, 8, 0.1),
    transparent
  );
  transition: left 0.5s ease;
  z-index: 0;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  border-left: 4px solid var(--construction-orange);
}

.service-card:hover .card-number {
  background: var(--primary-color);
  color: var(--white);
  transition: 0.7s;
}

.service-card .card-number {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  background: rgba(9, 62, 90, 0.116);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.service-card h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-right: 2.5rem;
}

.service-card ul {
  padding-left: 0;
}

.service-card ul li {
  list-style: none;
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.5rem;
}

.service-card ul li::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands";
  font-weight: 900;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  position: absolute;
  left: 0;
  color: var(--primary-color);
  display: inline-block;
}

/* Modernized Dynamic Projects Grid */
.project-card {
  /* border: none; */
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 65, 116, 0.8),
    rgba(255, 107, 53, 0.6)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(10, 65, 116, 0.15);
}

.project-card:hover::after {
  opacity: 0.1;
}

.project-card:hover img {
  transform: scale(1.08) rotate(1deg);
}

.lod-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(10, 65, 116, 0.9);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 193, 8, 0.3);
  animation: pulse-glow 2s ease-in-out infinite;
}

.project-card .card-title {
  color: var(--primary-color);
}

.project-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
  background-color: #eaeef3;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Interactive Team Carousel Styling */
#team-work {
  background: linear-gradient(180deg, var(--primary-color) 0%, #052240 100%);
  color: var(--white);
  /* background: linear-gradient(180deg, #dee1e4 0%, #eef6fc 100%); */
  /* color: var(--dark-text); */
}
#team-work .section-title {
  color: var(--white);
}

/* CEO Message Section Styles */
#ceo-message {
  background: linear-gradient(180deg, #f7fbff 0%, #eef6fc 100%);
  color: var(--dark-text);
}

#ceo-message .section-title {
  color: var(--primary-color);
}

/* .ceo-bio { */
/* background: var(--white); */
/* border-radius: 14px; */
/* padding: 1.5rem; */
/* box-shadow: 0 15px 40px rgba(10, 65, 116, 0.06); */
/* text-align: left; */
/* } */

.ceo-photo {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}
.ceo-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.ceo-name {
  margin: 0;
  font-size: 1.1rem;
  color: var(--primary-color);
}
.ceo-role {
  margin: 0 0 0.75rem 0;
  color: var(--steel-blue);
}
.ceo-timeline {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.ceo-timeline li {
  padding: 0.45rem 0;
  color: var(--dark-text);
  font-size: 0.95rem;
}

.ceo-message {
  background: transparent;
  padding: 0 0.5rem;
}
.ceo-message .section-badge {
  display: inline-block;
  /* margin-bottom: 0.75rem; */
}
.ceo-message-title {
  color: var(--primary-color);
  margin-bottom: 0.85rem;
}
.ceo-message p {
  color: var(--dark-text);
  line-height: 1.8;
}
.ceo-signature {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--primary-color);
}

@media (max-width: 991.98px) {
  /* .ceo-bio {
    padding: 1rem;
  } */
  .ceo-message {
    padding-left: 0;
    padding-right: 0;
  }
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: auto;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 380px;
}

.carousel-item-custom {
  position: absolute;
  width: 290px;
  left: calc(50% - 145px);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.6) translateX(0);
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  text-align: center;
}

.carousel-item-custom img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 1.5rem;
}

.carousel-item-custom.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateX(0);
  z-index: 3;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-item-custom.left-pos {
  opacity: 0.5;
  visibility: visible;
  transform: scale(0.8) translateX(-280px);
  z-index: 2;
  cursor: pointer;
}

.carousel-item-custom.right-pos {
  opacity: 0.5;
  visibility: visible;
  transform: scale(0.8) translateX(280px);
  z-index: 2;
  cursor: pointer;
}

.slider-btn-container {
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: space-between;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
}

.slider-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 50px;
  height: 50px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  pointer-events: auto;
}

.slider-btn:hover {
  background: var(--teal-highlight);
  border-color: var(--teal-highlight);
  transform: scale(1.1);
}

.ceo-media-social i {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin: 0 0.5rem;
  transition:
    color 0.3s,
    transform 0.3s;
}

.ceo-media-social i:hover {
  color: var(--teal-highlight);
  transform: scale(1.2);
}

.team-social i {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  margin: 0 0.5rem;
  transition:
    color 0.3s,
    transform 0.3s;
}

.team-social i:hover {
  color: var(--teal-highlight);
  transform: scale(1.2);
}

/* Team section CEO message and directory */
.team-intro {
  gap: 2rem;
}

.team-intro-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

.team-intro-image {
  width: 100%;
  max-width: 380px;
  border-radius: 28px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.18);
}

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

.team-intro-badge {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 193, 8, 0.15);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.team-intro-text {
  color: var(--white);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(255, 193, 8, 0.12);
  color: var(--yellow);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.team-intro-title {
  font-size: clamp(2rem, 2.4vw, 2.6rem);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.team-intro-text p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.team-intro-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.team-intro-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  color: #000;
  font-size: 0.98rem;
  transition: transform 0.3s ease;
}

.team-intro-list li i {
  color: #000;
  margin-top: 0.25rem;
}

.team-intro-list li:hover {
  transform: translateX(4px);
}

.team-lead-row {
  gap: 1.5rem;
}

.team-lead-card,
.team-lead-message {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 1.7rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.team-lead-photo {
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  /* border: 1px solid rgba(255, 255, 255, 0.18); */
}

.team-lead-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.team-lead-meta h5 {
  margin: 0.75rem 0 0.4rem;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.team-lead-meta p {
  margin: 0;
  color: #928e8e;
  font-size: 0.97rem;
}

.team-lead-message {
  min-height: 100%;
}

.team-lead-message p {
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.experience-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 1.25rem 1.15rem;
}

.experience-card h4 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  color: var(--white);
}

.experience-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.65;
}

.team-directory .section-subtitle {
  font-size: 1.5rem;
  letter-spacing: 0.3px;
}

.team-list {
  margin-top: 3rem;
}

.team-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 1.5rem;
  min-height: 140px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.22);
}

.team-card h4,
.team-card p {
  margin: 0;
  color: var(--white);
}

.team-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
}

.team-card p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 991.98px) {
  .team-intro-card {
    padding: 1.25rem;
  }

  .team-intro-title {
    font-size: 2rem;
  }

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

@media (max-width: 767.98px) {
  .carousel-wrapper {
    min-height: auto;
  }

  .slider-btn-container {
    top: auto;
    bottom: -10px;
    transform: none;
    justify-content: center;
    gap: 1rem;
    padding-top: 1rem;
  }
}

/* Modern Contact Grid Layout */
.contact-grid-box {
  background-color: var(--primary-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(10, 65, 116, 0.15);
}

.contact-form-side {
  padding: 4rem 3rem;
  background: var(--white);
}

.contact-form-side h3 {
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.form-control-custom {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background-color: #f8f9fa;
  color: var(--dark-text);
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.form-control-custom:focus {
  background-color: var(--white);
  border-color: var(--teal-highlight);
  box-shadow: 0 0 0 4px rgba(22, 160, 133, 0.1);
  outline: none;
}

.contact-info-side {
  padding: 4rem 3rem;
  background: linear-gradient(135deg, var(--accent-color) 0%, #051a3a 100%);
  color: var(--white);
}

.contact-info-list {
  padding-left: 0;
  margin-bottom: 0;
}

.contact-info-list li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-info-list li:last-child {
  margin-bottom: 0;
}

.contact-info-list i {
  font-size: 1.5rem;
  color: var(--teal-highlight);
  margin-top: 0.25rem;
}

/* ===== Vision & Mission Section Styles ===== */
.vision-mission-section {
  background: linear-gradient(135deg, #f8fbff 0%, #f0f4f9 100%);
  position: relative;
  overflow: hidden;
}

.vision-mission-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(255, 193, 8, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 0;
}

.vision-mission-section::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(10, 65, 116, 0.05) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 0;
}

.vision-mission-section .container {
  position: relative;
  z-index: 1;
}

.section-subtitle {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 600;
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Vision & Mission Cards */
.vm-card {
  background: var(--white);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  box-shadow: 0 15px 40px rgba(10, 65, 116, 0.08);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
  border: 1px solid rgba(255, 193, 8, 0.1);
}

.vm-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--construction-orange),
    var(--primary-color)
  );
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  100% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 0%;
  }
}

.vm-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(10, 65, 116, 0.15);
  border-color: var(--teal-highlight);
}

.vm-card.vision-card:hover {
  border-color: #ffc108;
}

.vm-card.mission-card:hover {
  border-color: var(--primary-color);
}

/* Icon Wrappers */
.vm-icon-wrapper {
  margin-bottom: 2rem;
  perspective: 1000px;
}

.vision-icon-wrapper {
  width: 100px;
  height: 100px;
  background: linear-gradient(
    135deg,
    rgba(255, 193, 8, 0.15),
    rgba(255, 107, 53, 0.15)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  animation: float 3s ease-in-out infinite;
}

.mission-icon-wrapper {
  width: 100px;
  height: 100px;
  background: linear-gradient(
    135deg,
    rgba(10, 65, 116, 0.15),
    rgba(5, 38, 89, 0.15)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  animation: float 3s ease-in-out infinite;
  animation-delay: 0.5s;
}

.vm-icon {
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  animation: rotate-icon 20s linear infinite;
}

@keyframes rotate-icon {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(5deg);
  }
}

.vision-icon-wrapper:hover .vm-icon,
.mission-icon-wrapper:hover .vm-icon {
  animation: pulse-icon 0.6s ease-out;
}

@keyframes pulse-icon {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* VM Content */
.vm-content {
  position: relative;
}

.vm-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--construction-orange)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vm-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--dark-text);
  margin-bottom: 1.5rem;
  text-align: justify;
}

.vm-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.vm-list li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--dark-text);
  transition: all 0.3s ease;
}

.vm-list li:hover {
  padding-left: 2.25rem;
  color: var(--primary-color);
}

.vm-list li i {
  position: absolute;
  left: 0;
  top: 0.65rem;
  font-size: 0.8rem;
  color: var(--teal-highlight);
  animation: pulse 2s ease-in-out infinite;
}

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

/* Values Grid */
.value-card {
  background: var(--white);
  padding: 2rem 0.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(10, 65, 116, 0.08);
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 193, 8, 0.05),
    rgba(255, 107, 53, 0.05)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(10, 65, 116, 0.12);
  border-color: var(--teal-highlight);
}

.value-card:hover::before {
  opacity: 1;
}

.value-icon {
  position: relative;
  z-index: 1;
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--white);
  transition: all 0.3s ease;
}

.value-card:hover .value-icon {
  /* transform: rotateY(180deg) scale(1.1);
  transition: all 1.3s ease; */
  transform: scale(1.15);
}

.value-card h4 {
  position: relative;
  z-index: 1;
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.value-card p {
  position: relative;
  z-index: 1;
  color: var(--dark-text);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Mobile Responsive - Vision & Mission */
@media (max-width: 768px) {
  .vm-card {
    padding: 2.5rem 2rem;
    margin-bottom: 1.5rem;
  }

  .vm-title {
    font-size: 1.75rem;
  }

  .vm-text {
    font-size: 0.95rem;
    text-align: left;
  }

  .vision-mission-section::before {
    width: 300px;
    height: 300px;
    right: -150px;
  }

  .vision-mission-section::after {
    width: 400px;
    height: 400px;
    left: -150px;
  }
}

/* Responsive Adapters */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
  }

  .carousel-item-custom.left-pos {
    transform: scale(0.75) translateX(-180px);
  }
  .carousel-item-custom.right-pos {
    transform: scale(0.75) translateX(180px);
  }
  .contact-form-side,
  .contact-info-side {
    padding: 3rem 2rem;
  }
}

@media (max-width: 767.98px) {
  body {
    padding-top: 70px;
  }

  section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  /* Team Carousel Mobile Optimization */
  .carousel-wrapper {
    min-height: auto;
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
  }

  .carousel-track {
    position: relative;
    height: auto;
    width: auto;
    min-width: 280px;
    max-width: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .carousel-item-custom {
    position: relative !important;
    width: 100% !important;
    left: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 2rem 1.5rem !important;
    margin-bottom: 0;
    display: none;
    min-height: 300px;
  }

  .carousel-item-custom.active {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1 !important;
  }

  .carousel-item-custom.left-pos,
  .carousel-item-custom.right-pos {
    display: none !important;
  }

  .carousel-item-custom img {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
  }

  .carousel-item-custom h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-align: center;
  }

  .carousel-item-custom p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-align: center;
  }

  .team-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
  }

  .team-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(22, 160, 133, 0.2);
    border-radius: 50%;
    transition: all 0.3s;
  }

  .team-social a:hover {
    background: var(--teal-highlight);
    transform: translateY(-2px);
  }

  .slider-btn-container {
    position: relative !important;
    width: auto !important;
    transform: none !important;
    top: auto !important;
    display: flex !important;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0;
    padding: 0;
    flex-direction: row;
    order: 0;
  }

  .slider-btn {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    flex-shrink: 0;
  }

  .slider-btn:hover {
    transform: scale(1.15);
  }

  .contact-form-side,
  .contact-info-side {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 576px) {
  section {
    padding: 6rem 0;
  }

  /* Mobile: center photo and place name below it */
  .ceo-photo {
    width: 100%;
    max-width: 220px;
    margin: 0 auto 0.5rem; /* center and add spacing below photo */
    display: block;
  }
  .ceo-photo img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto; /* ensure image is centered */
    /* border-radius: 50%; /* optional: make photo round on mobile */
  }

  .team-lead-meta {
    text-align: center; /* center name and meta under the photo */
  }
  .team-lead-meta h3 {
    margin: 0.5rem 0 0.25rem;
    font-size: 1.65rem;
    color: var(--primary-color);
  }

  .bom {
    display: none;
  }

  .nav-link {
    position: relative;
    display: inline-block;
    padding: 0.35rem 0.5rem;
    white-space: nowrap;
  }

  .nav-link::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.22s ease;
    border-radius: 2px;
  }

  /* keep active menu visible/expanded on small screens and preserve underline */
  .nav-link.active {
    white-space: normal; /* allow wrapping if needed */
    color: var(--primary-color);
  }

  .nav-link.active::after {
    width: 70%;
  }

  /* ensure collapsed navbar that is shown stays visible on mobile */
  .navbar-collapse.show {
    display: block !important;
  }

  /* expand underline on hover/active for small screens */
  .nav-link:hover::after,
  .nav-link.active::after {
    width: 70%;
  }

  /* if nav is in a horizontal limited space, allow links to wrap cleanly */
  .navbar-nav,
  .nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    justify-content: center;
  }

  .hero-badge {
    display: none;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .carousel-wrapper {
    padding: 1.5rem 0.75rem;
    gap: 1rem;
  }

  .carousel-track {
    min-width: 260px;
    max-width: 280px;
  }

  .carousel-item-custom {
    padding: 1.5rem 1rem !important;
    min-height: 280px;
  }

  .carousel-item-custom img {
    width: 80px;
    height: 80px;
  }

  .carousel-item-custom h4 {
    font-size: 0.9rem;
  }

  .carousel-item-custom p {
    font-size: 0.8rem;
  }

  .team-social i {
    font-size: 1rem;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .slider-btn-container {
    gap: 1rem;
  }

  .contact-form-side,
  .contact-info-side {
    padding: 1.5rem 1rem;
  }

  .contact-grid-box {
    flex-direction: column;
  }

  .service-card {
    padding: 2rem 1.5rem;
  }

  .form-control-custom {
    padding: 0.75rem 0.875rem;
    font-size: 16px;
  }
}

/* Utility animation delay classes */
.anim-delay-00 {
  animation-delay: 0s !important;
}
.anim-delay-02 {
  animation-delay: 0.2s !important;
}
.anim-delay-04 {
  animation-delay: 0.4s !important;
}
.anim-delay-15 {
  animation-delay: 0.15s !important;
}
.anim-delay-30 {
  animation-delay: 0.3s !important;
}
.anim-delay-45 {
  animation-delay: 0.45s !important;
}

/* Team overlay hover handling (moved from inline attributes) */
.team-overlay {
  background: rgba(10, 65, 116, 0.8);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.position-relative:hover .team-overlay {
  opacity: 1;
}

/* Modal logo sizing */
.modal-logo {
  max-height: 180px;
}

/* Image fallback helper */
img[data-fallback] {
  object-fit: cover;
}
