/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 4rem;
  background: #ffffff;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 31, 46, 0.1);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* LOGO */
.nav-logo img {
  height: 55px;
  width: auto;
  display: block;
}

/* LINKS */
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2c3347;
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rust);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--rust);
}

.nav-links a:hover::after {
  width: 100%;
}

/* HAMBURGER BUTTON */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--steel);
  border-radius: 2px;
  transition:
    transform 0.35s ease,
    opacity 0.25s ease,
    background 0.3s;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* MOBILE DRAWER */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
  padding: 0;
  margin: 0;
}

.mobile-menu ul li {
  border-bottom: 1px solid rgba(26, 31, 46, 0.07);
}

.mobile-menu ul li:first-child {
  border-top: 1px solid rgba(26, 31, 46, 0.07);
}

.mobile-menu ul li a {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.2rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--steel);
  text-decoration: none;
  padding: 1rem 3rem;
  transition:
    color 0.3s,
    background 0.3s;
}

.mobile-menu ul li a:hover {
  color: var(--rust);
  background: rgba(192, 57, 43, 0.04);
}

.mobile-menu-logo {
  margin-bottom: 2rem;
}

.mobile-menu-logo img {
  height: 50px;
  width: auto;
}

/* BUTTONS */
.btn-primary {
  display: inline-block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--steel);
  padding: 1rem 3rem;
  border: 1px solid var(--rust);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 0.9s 1.1s forwards;
  cursor: none;
  transition: color 0.35s;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--rust);
  transform: translateX(-101%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.btn-primary:hover::before {
  transform: translateX(0);
}

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

.btn-back {
  display: inline-block;
  margin-top: 2.5rem;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  padding: 0.9rem 2.5rem;
  border: 1px solid var(--rust);
  transition: all 0.35s;
  cursor: none;
}

.btn-back:hover {
  background: var(--rust);
}

.btn-submit {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--rust);
  border: none;
  padding: 1.1rem 3rem;
  cursor: none;
  transition: background 0.3s;
  align-self: flex-start;
}

.btn-submit:hover {
  background: #a93226;
}

/* ABOUT COMPONENTS */
.about-box {
  width: 100%;
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(192, 57, 43, 0.25);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.about-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
  filter: brightness(0.9) contrast(1.05);
}

.about-box:hover img {
  transform: scale(1.04);
}

.about-box::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(192, 57, 43, 0.25);
  pointer-events: none;
  z-index: 1;
}

/* About Section Responsive Image Slider */
.about-slider-container {
  position: relative;
}

.about-slider-track {
  display: flex;
  height: 100%;
  width: 500%; /* 5 slides */
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-slide {
  width: 20%; /* 100% / 5 */
  height: 100%;
  flex-shrink: 0;
  position: relative;
}

.about-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.9) contrast(1.05);
  transition: transform 0.8s ease;
}

.about-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(26, 31, 46, 0.75);
  border: 1px solid rgba(184, 197, 214, 0.2);
  color: var(--white);
  font-size: 1.25rem;
  cursor: none;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.about-slider-btn:hover {
  background: var(--rust);
  border-color: var(--rust);
}

.about-slider-btn.prev {
  left: 20px;
}

.about-slider-btn.next {
  right: 20px;
}

.about-stat {
  position: absolute;
  background: var(--rust);
  padding: 1rem 1.5rem;
  bottom: -1.5rem;
  right: -1.5rem;
}

.about-stat-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.5rem;
  line-height: 1;
}

.about-stat-label {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.pill {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(192, 57, 43, 0.4);
  color: var(--chrome);
  transition: all 0.3s;
}

.pill:hover {
  background: var(--rust);
  border-color: var(--rust);
  color: var(--white);
}

/* SERVICE CARDS */
.service-card {
  background: var(--steel);
  position: relative;
  overflow: hidden;
  cursor: none;
  aspect-ratio: 4/3;
  text-decoration: none;
  display: block;
}

.service-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.5s ease;
  filter: brightness(0.45) saturate(0.6);
}

.service-card:hover .service-img {
  transform: scale(1.07);
  filter: brightness(0.25) saturate(0.4);
}

.service-label {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.6rem;
  background: linear-gradient(to top,
      rgba(26, 31, 46, 0.9) 0%,
      rgba(26, 31, 46, 0.3) 55%,
      transparent 100%);
  transition: opacity 0.4s ease;
}

.service-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  color: rgba(192, 57, 43, 0.55);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.service-name {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
}

.service-card.touch-active .service-overlay {
  opacity: 1;
  transform: translateY(0);
}

.service-card.touch-active .service-label {
  opacity: 0;
}

/* CLIENT LOGOS */
.logo-track-wrap {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right,
      transparent 0%,
      black 10%,
      black 90%,
      transparent 100%);
  mask-image: linear-gradient(to right,
      transparent 0%,
      black 10%,
      black 90%,
      transparent 100%);
}

.logo-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: logoScroll 22s linear infinite;
}

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

@keyframes logoScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.logo-item {
  min-width: 180px;
  height: 90px;
  background: var(--white);
  border: 1px solid rgba(26, 31, 46, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.8rem;
  transition: all 0.35s ease;
  flex-shrink: 0;
  overflow: hidden;
}

.logo-item img {
  max-width: 100%;
  max-height: 58px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition:
    transform 0.35s ease;
}

.logo-item:hover {
  border-color: rgba(192, 57, 43, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(192, 57, 43, 0.1);
}

.logo-item:hover img {
  transform: scale(1.06);
}

/* TEAM COMPONENTS */
.team-card {
  background: var(--steel);
  border: 1px solid rgba(184, 197, 214, 0.08);
  overflow: hidden;
  position: relative;
  transition: border-color 0.3s;
}

.team-card:hover {
  border-color: rgba(192, 57, 43, 0.4);
}

.team-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  filter: grayscale(30%);
  transition: filter 0.4s;
}

.team-card:hover .team-img {
  filter: grayscale(0%);
}

.team-img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg,
      var(--smoke) 0%,
      rgba(192, 57, 43, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.team-img-placeholder::before {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(184, 197, 214, 0.1);
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 50px 0 60px rgba(184, 197, 214, 0.06);
}

.team-initials {
  font-family: "Bebas Neue", sans-serif;
  font-size: 4rem;
  color: rgba(184, 197, 214, 0.2);
  position: relative;
  z-index: 1;
  margin-top: 2rem;
}

.team-info {
  padding: 1.5rem;
  border-top: 1px solid rgba(184, 197, 214, 0.08);
  position: relative;
}

.team-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.5rem;
  width: 30px;
  height: 2px;
  background: var(--rust);
}

.team-name {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.team-role {
  font-size: 0.8rem;
  color: var(--chrome);
  margin-top: 0.3rem;
  letter-spacing: 1px;
}

.slider-controls {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
}

.slider-btn {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(184, 197, 214, 0.2);
  background: transparent;
  color: var(--white);
  font-size: 1.2rem;
  cursor: none;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background: var(--rust);
  border-color: var(--rust);
}

/* TESTIMONIALS COMPONENTS */
.testi-card {
  min-width: 100%;
  padding: 3rem;
  border: 1px solid rgba(184, 197, 214, 0.08);
  background: var(--smoke);
  position: relative;
}

.testi-quote {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--chrome);
  font-style: italic;
  margin-bottom: 2rem;
}

.testi-stars {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
}

.star {
  color: var(--gold);
  font-size: 0.9rem;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testi-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--rust);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.testi-name {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.testi-company {
  font-size: 0.8rem;
  color: var(--chrome);
  margin-top: 0.2rem;
}

.testi-dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 2rem;
  justify-content: center;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(184, 197, 214, 0.2);
  cursor: none;
  transition: all 0.3s;
}

.dot.active {
  background: var(--rust);
  width: 20px;
  border-radius: 3px;
}

/* CONTACT COMPONENTS */
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(192, 57, 43, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rust);
  flex-shrink: 0;
  font-size: 0.9rem;
}

.contact-detail-text {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--chrome);
  line-height: 1.6;
}

.contact-detail-text strong {
  display: block;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
  font-size: 0.75rem;
  letter-spacing: 2px;
}

.contact-detail-text a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
  cursor: none;
}

.contact-detail-text a:hover {
  color: var(--rust);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  position: relative;
}

.form-input,
.form-textarea {
  width: 100%;
  background: rgba(26, 31, 46, 0.6);
  border: 1px solid rgba(184, 197, 214, 0.15);
  color: var(--white);
  padding: 1.1rem 1.4rem;
  font-family: "Barlow", sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
  resize: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--rust);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(184, 197, 214, 0.4);
  letter-spacing: 1px;
  font-size: 0.85rem;
}

.form-textarea {
  min-height: 130px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

/* FOOTER COMPONENTS */
footer {
  background: var(--steel);
  border-top: 1px solid rgba(184, 197, 214, 0.08);
  padding: 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 3px;
  text-decoration: none;
  color: inherit;
}

.footer-logo span {
  color: var(--rust);
}

.footer-copy {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: rgba(184, 197, 214, 0.3);
}

/* ==========================================================================
   SERVICE PAGE SPECIFIC COMPONENTS
   ========================================================================== */
.carousel-section {
  margin-top: 80px;
  height: 60vh;
  position: relative;
  overflow: hidden;
  background: #0d0f14;
  padding: 0;
}

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

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
  height: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(26, 31, 46, 0.95), transparent);
  padding: 4rem 4rem 2rem;
  z-index: 10;
}

.carousel-title-caption {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--white);
  letter-spacing: 2px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(26, 31, 46, 0.6);
  border: 1px solid rgba(184, 197, 214, 0.2);
  color: var(--white);
  font-size: 1.5rem;
  cursor: none;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.carousel-btn:hover {
  background: var(--rust);
  border-color: var(--rust);
}

.carousel-btn.prev {
  left: 2rem;
}

.carousel-btn.next {
  right: 2rem;
}

.carousel-dots {
  position: absolute;
  bottom: 2rem;
  right: 4rem;
  display: flex;
  gap: 0.5rem;
  z-index: 20;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(184, 197, 214, 0.3);
  cursor: none;
  transition: all 0.3s;
}

.carousel-dot.active {
  background: var(--rust);
  width: 24px;
  border-radius: 4px;
}

.details-section {
  padding: 5rem 4rem;
  background: var(--steel);
}

.details-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 5rem;
}

.details-main h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.8rem;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--rust);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.details-main p {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--chrome);
  margin-bottom: 2rem;
}

.tech-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

.tech-specs-table th, .tech-specs-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(184, 197, 214, 0.1);
}

.tech-specs-table th {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 700;
  letter-spacing: 1px;
}

.tech-specs-table td {
  color: var(--chrome);
}

.sidebar {
  background: var(--smoke);
  border: 1px solid rgba(184, 197, 214, 0.08);
  padding: 2.5rem;
  height: fit-content;
}

.sidebar-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.8rem;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.spec-item {
  margin-bottom: 1.2rem;
}

.spec-label {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.2rem;
}

.spec-value {
  font-size: 1rem;
  color: var(--white);
}

/* Stagger Delays for Services Grid */
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }
