@font-face {
    font-family: 'Oswald';
    src: url('fonts/Oswald.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


.desc .decorator {
  display: flex;
  justify-content: space-between;
}
.desc .decorator span::before {
  content: "------";
  position: relative;
  color: red;
  /* margin-top: 10px;
  margin-left: -50px; */
  /* display: block; */
}

.button-holder {
  display: flex;
}

.button-holder b {
  cursor: pointer;
  color: red;
  display: flex;
  flex-direction: column;
}

.button-holder b span {
  background-color: red;
  height: 1px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: right; /* Change to 'left' to reverse direction */
  transition: transform 0.5s;
}

.button-holder b:hover span {
  transform: scaleX(1);
  transform-origin: left; /* Change to 'left' to reverse direction */
}

/* .button-holder b:hover{
    text-decoration: underline;
} */


/* Popup Styles */
.video-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.video-popup.active-popup {
  opacity: 1;
  visibility: visible;
}

.video-container {
  position: relative;
  width: 90%;
  max-width: 1200px;
  aspect-ratio: 16/9;
  background: #000;
  transform: scale(0.8);
  transition: transform 0.3s;
}

.video-popup.active-popup .video-container {
  transform: scale(1);
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Close Button */
.close-btn {
  all: unset;
  position: absolute;
  top: -50px;
  right: 0;
  background: red;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 40px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s, transform 0.2s;
  z-index: 10;
}

.close-btn:hover {
  background: #ff3333;
  transform: rotate(90deg);
}

/* Slider Navigation */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  display: none;
  justify-content: center;
  align-items: center;
  transition: background 0.3s;
  z-index: 10;
}

.slider-nav:hover {
  background: rgba(255, 255, 255, 0.4);
}

.slider-nav.active-popup {
  display: flex;
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

/* Video Counter */
.video-counter {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.7);
  padding: 8px 16px;
  border-radius: 20px;
  display: none;
}

.video-counter.active-popup {
  display: block;
}

/* Dots Navigation */
.dots-container {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  gap: 10px;
}

.dots-container.active-popup {
  display: flex;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active-popup {
  background: white;
}

/* Responsive */
@media (max-width: 768px) {
  .video-container {
    width: 95%;
  }

  .close-btn {
    top: -45px;
    width: 35px;
    height: 35px;
    font-size: 20px;
  }

  .slider-nav {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

#intro {
  display: flex;
  height: 100%;
  justify-content: center;
  align-items: center;
  /* height: 100vh; */
}

.intro_container {
  display: flex;
  justify-content: center;
}

.intro_row {
  margin-top: 100px !important;
  width: 100%;
  height: 100vh;
  /* position: absolute; */
  z-index: 10;
}

.content_container {
  display: flex;
  height: 100%;
  justify-content: center;
  align-items: center;
  position: relative;
  flex-direction: column;
}

.content_container {
  position: relative;
}

.corner-borders {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 30px;
  /* Ensure content has proper spacing */
  min-height: fit-content;
}

/* Top-left */
.corner-borders::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-top: 3px solid #c71d1f;
  border-left: 3px solid #c71d1f;
  pointer-events: none; /* Prevent interference with content */
}

/* Bottom-right */
.corner-borders::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 40px;
  border-bottom: 3px solid #c71d1f;
  border-right: 3px solid #c71d1f;
  pointer-events: none;
}

/* For top-right and bottom-left, add wrapper spans */
.corner-borders h1::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  border-top: 3px solid #c71d1f;
  border-right: 3px solid #c71d1f;
  pointer-events: none;
}

.corner-borders p::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-bottom: 3px solid #c71d1f;
  border-left: 3px solid #c71d1f;
  pointer-events: none;
}

/* .content_container::after {
  content: url(../wp-content/uploads/2021/07/bicas.png);
  transform: scaleY(-1);
  margin-bottom: -240px;
  margin-left: -50px;
  display: block;
}  */

.content_container p {
  font-weight: normal;
  font-style: normal;
  font-size: calc(15px + 0.1vw);
  max-width: 420px;
  letter-spacing: 1px;
  color: white;
  margin-top: 25px !important;
  /* width: 100%; */
}

.content_container h1 {
  color: white;
  font-size: calc(30px + 1vw);
  font-weight: 300;
  line-height: 1em;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 7px;
  margin: 0;
  /* width: 100%; */
}

.image_container {
  /* margin-right: 20px; */
  /* margin-top: 15vh; */
  /* width: 65vw; */
  /* width: 28%; */
  /* position: absolute; */
  /* right: 17%; */
  /* top: 0; */
  bottom: 0%;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.image_container img {
  width: 70% !important;
  transform-origin: bottom;
  margin-top: 10%;
  margin-right: 20%;
  /* transform: translateZ(15px); */
}

.image_container .image_holder {
  display: flex;
  flex-direction: column;
  justify-content: end;
  /* margin-right: 40% !important; */
  margin-bottom: 5%;
}

@media (max-width: 992px) {
  .image_container .image_holder {
    align-items: center;
    margin-left: 0 !important;
    margin-bottom: 0 !important;
  }
}

#solutions {
  background: #191d21;
  position: relative;
  z-index: 0;
}

#solutions .header {
  background: rgb(2, 11, 19);
  background: linear-gradient(
    0deg,
    rgba(25, 29, 33, 1) 59%,
    rgba(25, 29, 33, 0) 100%
  );
  padding: 200px 0px 80px 0px;
  margin-top: -200px;
}

#solutions .header h1 {
  text-align: center;
  color: white;
  font-size: calc(20px + 1vw);
  font-weight: 300;
  line-height: 1.1em;
  text-transform: uppercase;
  letter-spacing: 7px;
}

#solutions .header h1 span {
  color: #c71d1f;
}


#solutions .solution .heading h3 {
  text-align: center;
  width: 100%;
  opacity: 0.05;
  visibility: inherit;
  font-family: "Oswald", sans-serif;
  font-size: 14vw;
  color: white;
  text-transform: uppercase;
  /* position: absolute; */
}

#solutions .solution .heading {
  pointer-events: none;
}

#solutions .solution .content .desc p {
  margin-top: 30px !important;
  margin-left: 20vw !important;
  font-weight: 100;
  font-size: 20px;
  margin: 0;
  line-height: 24px;
  letter-spacing: 1px;
  color: #fff;
}

#solutions .solution .content {
  display: flex;
  align-items: center;
}

/* #solutions .solution .detail {
  margin-top: -15%;
} */

#solutions .solution .model img {
  width: 100%;
}

#solutions .solution .model  {
  display: flex;
  align-items: center;
  justify-content: center;
}

#solutions .solution  {
  margin-top: 50px;
}


#solutions .solution .model .model_image {
  display: flex;
  justify-content: center;
}

@media (max-width: 992px) {
  #intro .intro_row {
    height: 100% !important;
  }
}

#intro {
  min-height: 100vh !important;
}

#intro {
  background-image: url(./assets/hangar.png);
  background-size: cover;
  position: relative;
  z-index: -20;
}

#intro:after {
  animation: grain 8s steps(10) infinite;
  background-image: url(./assets/noise.jpg);
  content: "";
  height: 300%;
  left: -50%;
  opacity: 0.15;
  position: fixed;
  z-index: -10;
  top: -110%;
  width: 300%;
  pointer-events: none;
}

@keyframes grain {
  0%,
  100% {
    transform: translate(0, 0);
  }
  10% {
    transform: translate(-5%, -10%);
  }
  20% {
    transform: translate(-15%, 5%);
  }
  30% {
    transform: translate(7%, -25%);
  }
  40% {
    transform: translate(-5%, 25%);
  }
  50% {
    transform: translate(-15%, 10%);
  }
  60% {
    transform: translate(15%, 0%);
  }
  70% {
    transform: translate(0%, 15%);
  }
  80% {
    transform: translate(3%, 35%);
  }
  90% {
    transform: translate(-10%, 10%);
  }
}

#services {
  padding-top: 150px;
  background: #191d21;
  position: relative;
  z-index: 0;
}

#services .header h1 {
  text-align: center;
  font-size: calc(20px + 1vw);
  font-weight: 300;
  line-height: 1.1em;
  text-transform: uppercase;
  letter-spacing: 7px;
  color: white;
}

#services .header h1 span {
  color: #c71d1f;
}

#services .header h5 {
  text-align: center;
  font-size: 18px;
  font-size: calc(13px + 0.4vw);
  font-weight: lighter !important;
  color: white;
  margin-top: 10px;
}

#services .service_card {
  margin-top: 80px;
}

#services .card_holder {
  display: flex;
  justify-content: center;
  align-items: center;
}

footer {
  background-color: #191d21; /* Slightly lighter than body */
  /* border-top: 1px solid #334155; */
  color: #f8fafc;
  padding: 60px 20px 20px;
  /* margin-top: 50px; */
  position: relative;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* --- 1. Top Section: STC Brand --- */
.footer-brand {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.brand-logo {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -2px;
  background: linear-gradient(to right, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  display: inline-block;
}

.brand-tagline {
  color: #64748b;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 5px;
  font-weight: 600;
}

/* Separator Line */
.footer-brand::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #c71d1f; /* Blue accent */
  margin: 30px auto 0;
  border-radius: 2px;
}

/* --- 2. Middle Section: Content Grid --- */
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: center; /* Vertically centers the map and text */
  margin-bottom: 50px;
}

/* --- Contact Section (Left) --- */
.contact-section {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.contact-title {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: #ffffff;
  border-left: 3px solid #c71d1f;
  padding-left: 15px;
}

.contact-section-holder {
  display: flex;
  justify-content: center;
}

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

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  color: #cbd5e1;
  font-size: 1.05rem;
  transition: color 0.3s ease;
}

.contact-item:hover {
  color: #c71d1f;
}

.contact-icon {
  min-width: 40px;
  max-width: 40px;
  min-height: 40px;
  max-height: 40px;
  background-color: #611e20;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
  background-color: #c71d1f;
  color: white;
  transform: scale(1.1);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.contact-link {
  text-decoration: none;
  color: inherit;
}

/* --- Map Section (Right) --- */
.map-section {
  flex: 1;
  min-width: 300px;
}

.map-wrapper {
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid #334155;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  height: 250px;
  width: 100%;
  transition: all 0.3s ease;
  position: relative;
}

.map-wrapper:hover {
  border-color: #c71d1f;
  box-shadow: 0 15px 40px rgba(226, 16, 33, 0.2);
}

/* Styling the iframe to fill the wrapper */
.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  /* filter: grayscale(80%) invert(90%); */
}

/* Map Overlay Label */
.map-label {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: #c71d1f;
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  pointer-events: none;
}

/* --- 3. Bottom Bar --- */
.footer-bottom {
  border-top: 1px solid #5a3a3e;
  margin-top: 20px !important;
  padding-top: 20px;
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
}

#map {
  width: 100%;
  height: 100%;
}

.place-card {
  width: 170px !important;
}

.language-switcher-container {
  position: fixed;
  top: 40px;
  right: 40px;
  z-index: 1000;
}

.language-button {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c71d1f 0%, #c71d1f 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(226, 74, 74, 0.4);
  transition: all 0.3s ease;
  position: relative;
  z-index: 10;
}

.language-button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px #611e20;
}

.language-button .globe-icon {
  opacity: 1;
  visibility: visible;
  transition: all 0.3s ease;
  position: absolute;
}

.language-button .close-icon {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  position: absolute;
}

.language-button.active {
  background: rgba(26, 35, 50, 0.95);
  border: 2px solid #c71d1f;
}

.language-button.active .globe-icon {
  opacity: 0;
  visibility: hidden;
  transform: rotate(90deg) scale(0.8);
}

.language-button.active .close-icon {
  opacity: 1;
  visibility: visible;
  transform: rotate(0deg) scale(1);
}

.language-button svg {
  width: 35px;
  height: 35px;
}

.globe-icon {
  fill: white;
}
.globe-icon path {
  stroke: #c71d1f;
}

.close-icon {
  stroke: white;
  stroke-width: 3;
  transform: rotate(-90deg) scale(0.8);
}

.language-menu {
  position: absolute;
  top: 85px;
  right: 0;
  background: #181c21;
  border: 2px solid #5f181a;
  border-radius: 16px;
  padding: 8px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.language-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: white;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}

.language-option:last-child {
  margin-bottom: 0;
}

.language-option:hover {
  background: rgba(122, 32, 44, 0.2);
}

.language-option.selected {
  background: linear-gradient(135deg, #c71d1f 0%, #c71d1f 100%);
}

.language-option .flag {
  width: 28px;
  height: 28px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.language-option .checkmark {
  margin-left: auto;
  width: 20px;
  height: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.language-option.selected .checkmark {
  opacity: 1;
}

header {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  padding: 3vw 5vw;
  z-index: 999;
}

header p {
  color: white;
  font-size: 30px;
  font-weight: 300;
  line-height: 1em;
  text-transform: uppercase;
  letter-spacing: 7px;
  margin: 0;
}

header .secondary_name {
  display: none;
}

@media (max-width: 1024px) {
  header .secondary_name {
    display: block !important;
  }
  header .primary_name {
    display: none !important;
  }
}

/* Preloader styles */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #191d21; /* Or your brand color */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  text-align: center;
}

.loader-gif {
  width: 70%; /* Adjust size as needed */
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Optional: Add text below GIF */
.loader p {
  font-size: 18px;
  color: #333;
  font-weight: 500;
  margin: 20px 0 0 0;
}

.services-container {
  display: flex;
  gap: 20px;
  padding: 20px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1100px;
}

/* --- The Card (FIXED HEIGHT) --- */
.service_card {
  background: #611e20;
  border: 1px solid #4d1314;
  border-radius: 12px;
  padding: 30px;
  width: 280px;

  /* KEY FIX 1: Fixed Height prevents footer jumping */
  height: 400px;

  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;

  /* Centers content vertically by default */
  justify-content: center;
}

/* --- Elements that will move --- */
.service_icon,
.service-title {
  transition: transform 0.4s ease;
  z-index: 2; /* Keeps them above background */
}

.service_icon {
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
}

.service_icon img {
  height: auto;
  max-width: 100%;
}

.service_icon svg {
  width: 100%;
  height: 100%;
  stroke: #fff;
  stroke-width: 1.5;
  fill: none;
}

.service-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- The Description (ABSOLUTE POSITION) --- */
.service-desc {
  font-size: 0.9rem;
  color: #fff;
  line-height: 1.5;

  /* KEY FIX 2: Absolute position takes it out of the flow */
  position: absolute;
  bottom: 30px; /* Pinned to bottom padding */
  left: 30px;
  right: 30px;

  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  z-index: 1;
}

/* --- HOVER EFFECTS --- */
.service_card:hover {
  border-color: #4d1314;
  box-shadow: 0 0 30px #da5355;
}

/* KEY FIX 3: Move Icon and Title UP to make room */
.service_card:hover .service_icon {
  transform: translateY(-40px);
  stroke: #4d1314;
}

.service_card:hover .service-title {
  transform: translateY(-40px);
}

/* Fade in the text */
.service_card:hover .service-desc {
  opacity: 1;
  transform: translateY(0);
}
