html {
  /* Use JS-driven smooth scrolling (Lenis). Avoid native smooth to prevent conflicts. */
  scroll-behavior: auto;
  /* Enhanced scrolling performance */
  scroll-padding-top: 120px;
  /* Account for fixed header + breathing room */
}

/* ===============================
   GLOBAL: Form Status + Confetti
   =============================== */
/* Modern inline status message */
.form-status {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #0f172a;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.form-status .status-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  background: #e2e8f0;
  color: #0f172a;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.form-status .status-text {
  line-height: 1.5;
}

.form-status--success {
  border-color: #a7f3d0;
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
  color: #065f46;
}

.form-status--success .status-icon {
  background: #10b981;
  color: #ffffff;
}

.form-status--error {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fef2f2 0%, #ffffff 100%);
  color: #991b1b;
}

.form-status--error .status-icon {
  background: #ef4444;
  color: #ffffff;
}

/* Party paper confetti pieces */
.confetti-piece {
  position: fixed;
  top: -12px;
  left: 0;
  width: var(--size, 8px);
  height: var(--size, 8px);
  background: var(--color, #58a6ff);
  border-radius: 2px;
  transform: translateX(var(--x, 50vw)) rotate(var(--rot, 0deg));
  opacity: 0.95;
  pointer-events: none;
  z-index: 9999;
  will-change: transform, top;
  animation: confetti-fall var(--dur, 2000ms) linear forwards;
}

@keyframes confetti-fall {
  0% {
    top: -12px;
  }

  100% {
    top: 110vh;
    transform: translateX(var(--x, 50vw)) rotate(720deg);
  }
}

/* Smooth scrolling enhancements */
html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* Jackals Software Solution - Vibrant & Colorful Redesign */

/* Base responsive viewport settings */
html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  overflow-x: hidden;
  /* Prevent horizontal scrolling */
  -webkit-text-size-adjust: 100%;
  /* Prevent iOS font size adjustment */
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent scrolling when mobile nav is open */
body.nav-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* --- Animated Cards --- */
.animated-cards__container {
  display: grid;
  place-items: center;
  min-height: 500px;
  /* Ensure container has height */
  position: relative;
  width: 100%;
  overflow: visible;
  /* Allow cards to be visible outside the container */
}

.animated-card {
  grid-area: 1 / 1 / 2 / 2;
  /* All cards in the same cell */
  width: min(450px, 90vw);
  height: min(550px, 70vh);
  position: absolute;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Faster transition */
  transform-origin: center center;
  perspective: 1000px;
}

@media (max-width: 768px) {

  /* Mobile: show cards in vertical list with flip on scroll */
  .animated-cards__container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-height: auto;
    padding: 20px 0;
    overflow: visible;
  }

  .animated-card {
    position: static !important;
    width: 100%;
    height: 500px; /* Fixed height for flip functionality */
    margin-bottom: 0; /* Remove margin, use container gap instead */
    transform: none !important;
    opacity: 1 !important;
    perspective: 1000px;
  }

  .animated-card__inner {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
  }

  /* Ensure flip works on mobile */
  .animated-card.flipped .animated-card__inner {
    transform: rotateY(180deg) !important;
  }

  .animated-card__back {
    position: absolute !important;
    height: 100% !important;
    padding: 24px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background: #ffffff;
    overflow-y: auto; /* Scrollable content inside the card */
    backface-visibility: hidden;
    transform: rotateY(180deg); /* Face away initially */
  }
}

/* Mobile override: disable overlay/drawer nav so links show inline without JS */
@media (max-width: 900px) {
  .header {
    position: sticky !important;
    position: -webkit-sticky !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    transform: none !important;
    height: auto !important;
    border-radius: 0 !important;
    overflow: visible !important;
    z-index: 1002 !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    background: rgba(13, 17, 23, 0.85) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25) !important;
  }

  .header__inner {
    position: relative !important;
  }

  .header::before {
    content: none !important;
  }

  .header__inner {
    height: auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    row-gap: 8px !important;
    column-gap: 8px !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  /* Center brand and reduce logo size for cleaner look */
  .header .brand {
    margin: 0 !important;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    justify-content: flex-start;
  }

  .header .brand__logo--img img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px;
  }

  .header .nav {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-height: calc(100vh - 140px) !important;
    overflow: auto !important;
    background: rgba(7, 10, 18, 0.92) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-radius: 0 0 18px 18px !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45) !important;
    z-index: 1001 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-8px) !important;
    pointer-events: none !important;
    transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease !important;
  }

  .header .nav.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }

  .header .nav__list {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    padding: 14px 16px 22px !important;
    width: 100% !important;
  }

  .header .nav__item {
    width: 100%;
  }

  .header .nav__link {
    display: flex !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 14px 14px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: rgba(255, 255, 255, 0.92) !important;
    line-height: 1.1 !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px !important;
    text-transform: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .header .nav__link:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    transform: none !important;
  }

  .header .nav__link.is-active {
    background: rgba(88, 166, 255, 0.14);
    border-color: rgba(88, 166, 255, 0.35);
    color: #ffffff;
  }

  .header .nav__link--cta {
    justify-content: center !important;
    border-radius: 9999px !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    background: #2563eb !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4) !important;
  }

  .header .nav__link--cta:active {
    transform: none !important;
  }

  .header .nav__link:active {
    transform: none !important;
  }

  .nav__toggle {
    display: inline-flex !important;
    position: relative;
    z-index: 1003;
  }

  .header .btn--header-cta {
    display: none !important;
  }

  .header__actions {
    width: auto !important;
    justify-content: flex-end !important;
    margin-top: 0 !important;
    margin-left: auto !important;
  }

  .btn--header-cta {
    min-width: 160px !important;
  }
}

@media (max-width: 420px) {
  .btn--header-cta {
    min-width: 150px !important;
  }
}

.animated-card__inner {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s; /* Faster transition */
  position: relative;
  backface-visibility: hidden;
}

.animated-card__front,
.animated-card__back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.animated-card__front {
  /* Unified front style to match back side */
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 3px solid #ffffff;
  color: #000000;
  font-size: 5rem;
}

@media (max-width: 768px) {

  /* Restore front card on mobile */
  .animated-card__front {
    display: flex;
    font-size: 4rem;
    border: 3px solid white;
    border-radius: 16px;
    backface-visibility: hidden;
  }
}

#software-solutions {
  background: #000000;
  position: relative;
  overflow: hidden;
}

#software-solutions::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: #000000;
  background-image:
    /* Large bright stars */
    radial-gradient(3px 3px at 20px 30px, #ffffff, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(3px 3px at 90px 40px, #ffffff, transparent),
    radial-gradient(2px 2px at 130px 80px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(3px 3px at 160px 30px, #ffffff, transparent),
    radial-gradient(2px 2px at 200px 90px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(3px 3px at 240px 50px, #ffffff, transparent),
    radial-gradient(2px 2px at 280px 10px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(2px 2px at 320px 70px, #ffffff, transparent),
    radial-gradient(3px 3px at 360px 40px, rgba(255, 255, 255, 0.8), transparent),
    /* Medium stars */
    radial-gradient(1px 1px at 420px 20px, #ffffff, transparent),
    radial-gradient(2px 2px at 480px 60px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 520px 90px, #ffffff, transparent),
    radial-gradient(1px 1px at 580px 30px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(2px 2px at 620px 70px, #ffffff, transparent),
    radial-gradient(1px 1px at 680px 40px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(2px 2px at 720px 80px, #ffffff, transparent),
    radial-gradient(1px 1px at 780px 20px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 820px 60px, #ffffff, transparent),
    radial-gradient(2px 2px at 880px 90px, rgba(255, 255, 255, 0.6), transparent),
    /* Small distant stars */
    radial-gradient(0.5px 0.5px at 100px 15px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(0.5px 0.5px at 150px 85px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(0.5px 0.5px at 300px 25px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(0.5px 0.5px at 450px 75px, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(0.5px 0.5px at 600px 45px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(0.5px 0.5px at 750px 95px, rgba(255, 255, 255, 0.4), transparent);
  background-repeat: repeat;
  background-size: 1000px 150px;
  animation: galaxy-move-slow 30s linear infinite, twinkle 3s ease-in-out infinite;
  z-index: 1;
}

#software-solutions::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 150%;
  height: 150%;
  background-image:
    /* Fast moving small stars */
    radial-gradient(1px 1px at 50px 25px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(0.5px 0.5px at 120px 65px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 200px 35px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(0.5px 0.5px at 280px 85px, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 350px 15px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(0.5px 0.5px at 420px 75px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 500px 45px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(0.5px 0.5px at 580px 95px, rgba(255, 255, 255, 0.7), transparent);
  background-repeat: repeat;
  background-size: 600px 100px;
  animation: galaxy-move-fast 15s linear infinite;
  z-index: 1;
}

@keyframes galaxy-move {
  0% {
    transform: translateX(0px);
  }

  100% {
    transform: translateX(-900px);
  }
}

@keyframes galaxy-move-slow {
  0% {
    transform: translateX(0px) translateY(0px);
  }

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

@keyframes galaxy-move-fast {
  0% {
    transform: translateX(0px) translateY(0px);
  }

  100% {
    transform: translateX(-600px) translateY(25px);
  }
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }
}

#software-solutions .container {
  position: relative;
  z-index: 2;
}

@media (min-width: 769px) {
  #software-solutions {
    padding: 120px 0 80px;
  }

  #software-solutions .section__subtitle {
    margin-bottom: 60px;
  }

  #software-solutions .animated-cards__container {
    min-height: 480px;
    margin-top: 80px;
  }
}

@media (max-width: 768px) {
  #software-solutions {
    padding: 60px 0;
  }

  #software-solutions .section__title {
    font-size: 28px;
    margin-bottom: 16px;
    text-align: center;
  }

  #software-solutions .section__subtitle {
    font-size: 15px;
    margin-bottom: 40px;
    text-align: center;
  }

  #software-solutions .container {
    padding: 0 16px;
  }
}

.animated-card__back {
  background-color: #ffffff;
  transform: rotateY(180deg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  opacity: 1;
  visibility: visible;
  z-index: 2;
  border: 2px solid #000000;
}

@media (max-width: 768px) {
  .animated-card__back {
    position: relative !important; /* Allow back card to determine height */
    height: auto !important;
    min-height: 100%;
    padding: 24px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background: #ffffff;
    overflow-y: visible; /* Let content flow naturally */
  }

  .animated-card__back .card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    min-height: 0 !important; /* Allow card to shrink if needed */
  }

  .animated-card__back .card__header {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
  }

  .animated-card__back .card__header-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
  }

  .animated-card__back .card__body {
    color: #333333;
  }

  .animated-card__back .card__body p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
    color: #555555;
  }

  .animated-card__back .list--check {
    margin-top: 12px;
  }

  .animated-card__back .list--check li {
    font-size: 14px;
    padding: 10px 0;
    margin-bottom: 0;
    border-bottom: 1px solid #e5e7eb;
    color: #333333;
  }

  .animated-card__back .list--check li:last-child {
    border-bottom: none;
  }

  .animated-card__back .list--check li::before {
    color: var(--primary);
    font-weight: bold;
  }

  /* Add icon to mobile cards */
  .animated-card:nth-child(1) .animated-card__back .card__header::before {
    content: '📱';
    font-size: 1.5rem;
    margin-right: 10px;
  }

  .animated-card:nth-child(2) .animated-card__back .card__header::before {
    content: '🎨';
    font-size: 1.5rem;
    margin-right: 10px;
  }

  .animated-card:nth-child(3) .animated-card__back .card__header::before {
    content: '⚙️';
    font-size: 1.5rem;
    margin-right: 10px;
  }
}

/* Extra small mobile screens */
@media (max-width: 480px) {
  .animated-cards__container {
    gap: 20px; /* Reduced gap for better mobile spacing */
  }

  .animated-card {
    height: 500px; /* Fixed height for flip functionality */
    min-height: 400px;
    /* Remove max-height as we are using fixed height */
  }

  .animated-card__front {
    font-size: 3rem !important;
  }

  .animated-card__back {
    padding: 20px 16px !important;
  }

  .animated-card__back .card__header {
    font-size: 1.1rem !important;
    justify-content: flex-start !important; /* Align items to start */
    white-space: nowrap;
  }

  /* Push the icon to the far right */
  .animated-card__back .card__header .card__header-icon {
    margin-left: auto !important;
  }

  .animated-card__back .card__header::before {
    font-size: 1.3rem !important;
  }

  .animated-card__back .card__body p {
    font-size: 13px !important; /* Slightly reduce text size */
    line-height: 1.5; /* Tighten line height */
    margin-bottom: 12px;
  }

  .animated-card__back .list--check li {
    font-size: 13px !important;
    padding: 6px 0 !important; /* Reduce padding between list items */
  }
}

/* Individual card front colors with shadows */
.animated-card:nth-child(1) .animated-card__front {
  background: #ffeb3b;
  /* Yellow */
  box-shadow: 0 10px 26px rgba(255, 235, 59, 0.28);
}

.animated-card:nth-child(1) .animated-card__back {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.animated-card:nth-child(2) .animated-card__front {
  background: #f44336;
  /* Red */
  box-shadow: 0 10px 26px rgba(244, 67, 54, 0.28);
}

.animated-card:nth-child(2) .animated-card__back {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.animated-card:nth-child(3) .animated-card__front {
  background: #2196f3;
  /* Blue */
  box-shadow: 0 10px 26px rgba(33, 150, 243, 0.28);
}

.animated-card:nth-child(3) .animated-card__back {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Make card content text black */
.animated-card__back .card,
.animated-card__back .card .card__header,
.animated-card__back .card .card__body,
.animated-card__back .card .card__body p,
.animated-card__back .card .list--check li {
  color: #000000 !important;
}

/* Make card lines darker */
.animated-card__back .card .list--check li {
  border-bottom-color: #333 !important;
}

#software-solutions .card {
  color: #000000;
}

#software-solutions .card .card__header {
  color: var(--text-strong);
  /* Changed to white */
  background: transparent;
  border-bottom: none;
  justify-content: space-between;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  margin-bottom: 0.2rem; /* further tighten space below heading */
}

#software-solutions .card .card__body {
  margin-top: 0; /* remove extra gap above content */
}

#products-solutions {
  background: #ffffff;
  color: #000000;
  position: relative;
  padding-top: 280px;
  /* Extra padding to account for the video */
}

/* Adjust products & solutions padding for smaller screens */
@media (max-width: 992px) {
  #products-solutions {
    padding-top: 200px;
  }
}

@media (max-width: 576px) {
  #products-solutions {
    padding-top: 120px;
  }
}

#products-solutions .section__title {
  color: #000000;
}

#products-solutions .section__subtitle {
  color: #000000;
}

#discover-us {
  background-color: #ffffff;
}

#discover-us .section__title,
#discover-us .discover-us__mission-title,
#discover-us .section__title i {
  color: #0f172a;
  /* Dark text color */
}

#discover-us .section__subtitle,
#discover-us .discover-us__mission-text {
  color: #475569;
  /* Muted dark text color */
}

#discover-us .discover-us__mission-title i {
  color: var(--primary);
}

#software-solutions .section__title {
  color: var(--text-strong) !important;
  /* Ensure white color is applied */
}

#software-solutions .card .card__header-icon {
  font-size: 1.5rem;
  font-weight: bold;
}

#software-solutions .card .card__body p {
  display: block;
  /* Show the paragraph for better content visibility */
  opacity: 1;
  color: #333333;
  font-size: 11px;
  line-height: 1.2;
  margin-bottom: 6px;
}

#software-solutions .list--check {
  font-family: "Poppins", sans-serif;
  color: #333;
}

#software-solutions .list--check li {
  padding-left: 0;
  margin-bottom: 0.7rem;
  border-bottom: 1px dotted #666;
  padding-bottom: 0.7rem;
}

#software-solutions .list--check li::before {
  display: none;
  /* Hide the checkmark */
}

#software-solutions .card__footer {
  margin-top: auto;
  padding-top: 1rem;
  text-align: right;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #000000;
}

.animated-card__back .card {
  height: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
}

:root {
  /* Colors */
  --bg: #0d1117;
  --elev-1: #161b22;
  --elev-2: #21262d;
  --card-bg: rgba(33, 38, 45, 0.6);
  --card-border: rgba(255, 255, 255, 0.1);
  --header-bg: rgba(13, 17, 23, 0.85);
  --header-border: var(--card-border);
  --primary: #58a6ff;
  --primary-glow: rgba(88, 166, 255, 0.3);
  --primary-rgb: 88, 166, 255;
  --accent: #a371f7;
  --accent-glow: rgba(163, 113, 247, 0.4);
  --accent-rgb: 163, 113, 247;
  --text: #c9d1d9;
  --muted: #8b949e;
  --text-strong: #ffffff;

  /* Typography */
  --font-main: "Russo One", sans-serif;
  --font-heading: var(--font-main);
  --font-body: "Poppins", sans-serif;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 1.875rem;
  --font-size-3xl: 2.25rem;
  --font-size-4xl: 3rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Animations */
  --transition-fast: 0.2s;
  --transition-medium: 0.3s;
  --transition-slow: 0.5s;
  --ease-default: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-in-out: cubic-bezier(0.42, 0, 0.58, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1), 0 5px 10px rgba(0, 0, 0, 0.05);
  --shadow-focus: 0 0 0 3px var(--primary-glow);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
}

/* ========================================
   MOBILE OPTIMIZATION - ENHANCED UX
   ======================================== */

@media (max-width: 768px) {

  /* ===== Core Mobile Settings ===== */
  html,
  body {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
  }

  body.is-mobile {
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(88, 166, 255, 0.2);
  }

  /* ===== Container & Spacing ===== */
  .container {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  /* ===== Typography Optimization ===== */
  body {
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0.01em;
  }

  h1,
  .h1 {
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
  }

  h2,
  .h2 {
    font-size: clamp(24px, 6vw, 30px);
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
  }

  h3,
  .h3 {
    font-size: clamp(20px, 5vw, 24px);
    line-height: 1.3;
    margin-bottom: 12px;
  }

  /* ===== Section Improvements ===== */
  .section {
    padding: 100px 0;
  }

  .section__title {
    font-size: clamp(26px, 7vw, 32px);
    margin-bottom: 40px;
    letter-spacing: -0.01em;
    text-align: center;
    padding: 0 10px;
  }

  .section__subtitle {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.9;
    max-width: 100%;
    text-align: center;
    padding: 0 10px;
  }

  /* ===== Hero Section Mobile ===== */
  .hero {
    min-height: auto; /* Reduced from 100vh to remove empty space */
    padding: 40px 0 40px; /* Ensure content clears header */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero__title {
    font-size: clamp(32px, 9vw, 42px);
    line-height: 1.2;
    margin-bottom: 12px; /* Reduced from 20px */
    padding: 0 10px;
  }

  .hero__subtitle {
    font-size: 16px;
    line-height: 1.6;
    max-width: 100%;
    margin: 0 auto 20px; /* Reduced from 32px */
    padding: 0 10px;
  }

  .hero__actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    padding: 0 20px;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 16px 24px;
    font-size: 15px;
    min-height: 52px;
  }

  /* ===== Card Improvements ===== */
  .card {
    margin-bottom: 20px;
    padding: 24px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .card:active {
    transform: scale(0.98);
  }

  .card__header {
    font-size: 20px;
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .card__body {
    font-size: 15px;
    line-height: 1.6;
  }

  .card__body p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 14px;
  }

  /* ===== Grid Layouts Mobile ===== */
  .grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  /* ===== Button Enhancements ===== */
  .btn {
    min-width: 140px;
    height: 52px;
    padding: 14px 28px;
    font-size: 15px;
    border-radius: var(--radius-md);
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
  }

  .btn:active {
    transform: scale(0.96);
  }

  body.is-small-mobile .btn {
    min-width: 120px;
    height: 50px;
    font-size: 14px;
    padding: 12px 24px;
  }

  /* ===== List Improvements ===== */
  .list--check li {
    font-size: 15px;
    padding: 12px 0;
    line-height: 1.6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .list--check li:last-child {
    border-bottom: none;
  }

  /* ===== Discover Us Section ===== */
  .discover-us__grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .discover-us__video-container {
    width: 100%;
    height: 250px;
    border-radius: var(--radius-lg);
    overflow: hidden;
  }

  .discover-us__mission {
    padding: 24px 20px;
    text-align: center;
  }

  .discover-us__mission-title {
    font-size: 22px;
    margin-bottom: 14px;
  }

  .discover-us__mission-text {
    font-size: 15px;
    line-height: 1.6;
  }

  /* ===== Offerings Section ===== */
  #offerings .service.card {
    padding: 28px 24px;
    margin-bottom: 20px;
  }

  #offerings .card__header {
    font-size: 20px;
    margin-bottom: 16px;
  }

  /* ===== Timeline Mobile - Enhanced ===== */
  #how {
    padding: 60px 0 !important;
  }

  .timeline-container {
    padding: 0 !important;
    max-width: 100% !important;
  }

  .timeline-line-wrapper {
    left: 30px !important;
    width: 3px !important;
  }

  .timeline-line {
    background: linear-gradient(180deg, var(--primary), var(--accent)) !important;
  }

  .timeline-progress-dot {
    width: 12px !important;
    height: 12px !important;
    left: -4.5px !important;
  }

  .timeline-item {
    width: 100% !important;
    left: 0 !important;
    padding: 0 0 0 60px !important;
    margin-bottom: 40px !important;
    text-align: left !important;
  }

  .timeline-item::after {
    left: 21px !important;
    width: 18px !important;
    height: 18px !important;
    background: var(--primary) !important;
    border: 3px solid #000 !important;
  }

  .timeline-item.is-active::after {
    background: var(--accent) !important;
    box-shadow: 0 0 20px var(--accent-glow) !important;
  }

  .timeline-step {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
  }

  .timeline-step__number {
    font-size: 2.5rem !important;
    color: var(--primary);
    font-weight: 800;
    line-height: 1;
  }

  .timeline-step__icon {
    font-size: 1.8rem !important;
    color: var(--accent);
    margin: 8px 0;
  }

  .timeline-step__title {
    font-size: 1rem !important;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .timeline-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 24px 20px !important;
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--primary);
    margin-top: 12px;
  }

  .timeline-content__title {
    font-size: 1.25rem !important;
    margin-bottom: 12px !important;
    color: var(--text-strong);
    font-weight: 700;
  }

  .timeline-content p {
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: var(--text);
    margin: 0;
  }

  /* ===== Products Section ===== */
  .project.card {
    margin-bottom: 24px;
    border-radius: var(--radius-lg);
    overflow: hidden;
  }

  .project__video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
  }

  .tags li {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
  }

  /* ===== Why Choose Us Mobile ===== */
  #why {
    overflow: visible !important;
  }

  .horizontal-scroll-container {
    height: auto;
    overflow: visible;
    padding: 0;
  }

  .horizontal-scroll-track {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: static;
    transform: none;
  }

  .why-choose-us__card {
    width: 100%;
    min-width: auto;
    max-width: 100%;
    height: auto;
    padding: 28px 24px;
    margin-bottom: 20px;
    position: static;
    transform: none;
    opacity: 1;
  }

  .why-choose-us__card h3 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .why-choose-us__card p {
    font-size: 15px;
    line-height: 1.6;
  }

  /* ===== Partners Section ===== */
  .partner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px 0;
  }

  .partner-item {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .partner-item img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
  }

  /* ===== Contact Section ===== */
  .contact-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
  }

  .contact-card {
    padding: 24px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
  }

  .contact-card__icon {
    font-size: 32px;
    margin-bottom: 16px;
  }

  .contact-card__title {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .contact-card__text {
    font-size: 15px;
    line-height: 1.6;
  }

  /* ========================================
     CONTACT FORM MOBILE - REDESIGNED UX
     ======================================== */

  #contact {
    padding: 50px 0 24px !important;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%) !important;
  }

  #contact .section__title {
    color: #0f172a !important;
  }

  #contact .section__title .highlight-text {
    color: var(--primary) !important;
  }

  .contact-form-wrapper {
    padding: 28px 20px !important;
    margin: 0 auto 40px !important;
    max-width: 100% !important;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%) !important;
    border-radius: 20px !important;
    box-shadow:
      0 15px 50px rgba(0, 0, 0, 0.1),
      0 0 0 1px rgba(0, 0, 0, 0.05) !important;
    position: relative !important;
    overflow: hidden !important;
  }

  /* Animated gradient top bar for mobile */
  .contact-form-wrapper::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #58a6ff, #a371f7, #58a6ff) !important;
    background-size: 200% 100% !important;
    animation: gradient-shift 3s ease infinite !important;
    z-index: 10 !important;
  }

  .contact-form-simple {
    position: relative !important;
    z-index: 1 !important;
  }

  .contact-form-simple {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .contact-intro {
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin-bottom: 24px !important;
    color: #1a202c !important;
    text-align: center !important;
  }

  .contact-intro p {
    margin-bottom: 20px !important;
    color: #334155 !important;
    font-weight: 500 !important;
  }

  /* On-page form status messages */
  .form-status {
    margin-top: 12px !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    background: #f1f5f9 !important;
    /* slate-100 */
    color: #0f172a !important;
    /* slate-900 */
    border: 1px solid #e2e8f0 !important;
  }

  .form-status--success {
    background: #ecfdf5 !important;
    /* emerald-50 */
    color: #065f46 !important;
    /* emerald-800 */
    border-color: #a7f3d0 !important;
    /* emerald-200 */
  }

  .form-status--error {
    background: #fef2f2 !important;
    /* rose-50 */
    color: #991b1b !important;
    /* red-800 */
    border-color: #fecaca !important;
    /* red-200 */
  }

  /* Mobile Input Fields - Card Style */
  .inline-input {
    display: block !important;
    width: 100% !important;
    margin: 14px 0 !important;
    max-width: 420px !important;
    padding: 18px 20px !important;
    font-size: 16px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 14px !important;
    background: #f8fafc !important;
    color: #1a202c !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04) !important;
  }

  .inline-input:focus {
    border-color: #58a6ff !important;
    background: #ffffff !important;
    outline: none !important;
    box-shadow:
      0 0 0 4px rgba(88, 166, 255, 0.12),
      0 4px 12px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-2px) !important;
  }

  .inline-input::placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
  }

  .project-details {
    margin: 24px 0 !important;
  }

  /* Mobile Textarea - Enhanced */
  textarea {
    width: 100% !important;
    max-width: 420px !important;
    padding: 20px !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 16px !important;
    min-height: 180px !important;
    background: #f8fafc !important;
    color: #1a202c !important;
    resize: vertical !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04) !important;
    font-family: inherit !important;
  }

  textarea:focus {
    border-color: #58a6ff !important;
    background: #ffffff !important;
    outline: none !important;
    box-shadow:
      0 0 0 4px rgba(88, 166, 255, 0.12),
      0 4px 12px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-2px) !important;
  }

  textarea::placeholder {
    color: #94a3b8 !important;
  }

  .services-selection {
    margin: 28px 0 !important;
  }

  .services-selection p {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
  }

  .services-selection p i {
    color: #58a6ff !important;
    font-size: 20px !important;
  }

  /* Mobile Service Tags - List View */
  .service-tags {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 16px !important;
  }

  .service-tag {
    margin: 0 !important;
    width: 100% !important;
  }

  .service-tag span {
    width: 100% !important;
    padding: 16px 20px !important;
    font-size: 15px !important;
    border-radius: 12px !important;
    text-align: left !important;
    border: 2px solid #e2e8f0 !important;
    background: #f8fafc !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 56px !important;
    gap: 12px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    position: relative !important;
  }

  .service-tag span i {
    margin: 0 !important;
    font-size: 20px !important;
    color: #58a6ff !important;
    display: block !important;
    flex-shrink: 0 !important;
  }

  .service-tag:active span {
    transform: scale(0.98) !important;
  }

  .service-tag input[type="checkbox"]:checked+span {
    background: linear-gradient(135deg, #58a6ff 0%, #a371f7 100%) !important;
    border-color: #58a6ff !important;
    color: white !important;
    box-shadow:
      0 8px 24px rgba(88, 166, 255, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transform: translateX(4px) !important;
  }

  .service-tag input[type="checkbox"]:checked+span i {
    color: white !important;
    transform: scale(1.1) !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)) !important;
  }

  .service-tag input[type="checkbox"]:checked+span::after {
    content: '✓' !important;
    position: absolute !important;
    right: 20px !important;
    font-size: 20px !important;
    font-weight: bold !important;
    color: white !important;
    animation: checkmark 0.3s ease !important;
  }

  @keyframes checkmark {
    0% {
      transform: scale(0);
      opacity: 0;
    }

    50% {
      transform: scale(1.2);
    }

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

  .form-submit {
    margin-top: 32px !important;
    width: 100% !important;
    max-width: 420px !important;
  }

  /* Mobile Submit Button - Enhanced */
  .btn-send-request {
    width: 100% !important;
    padding: 20px !important;
    font-size: 16px !important;
    min-height: 64px !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    background: linear-gradient(135deg, #58a6ff 0%, #a371f7 100%) !important;
    border: none !important;
    color: white !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow:
      0 8px 24px rgba(88, 166, 255, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
    text-transform: uppercase !important;
  }

  .btn-send-request::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent) !important;
    transition: left 0.6s !important;
  }

  .btn-send-request:active {
    transform: scale(0.97) !important;
    box-shadow:
      0 4px 16px rgba(88, 166, 255, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  }

  .btn-send-request:active::before {
    left: 100% !important;
  }

  /* Contact Map Section - Mobile */
  .contact-map-section {
    margin-top: 24px !important;
    margin-bottom: 0 !important;
  }

  .map-container {
    height: auto !important;
    line-height: 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  }

  .map-container iframe {
    vertical-align: bottom !important;
    height: 300px !important;
  }

  /* Small Mobile Adjustments */
  @media (max-width: 480px) {
    .contact-form-wrapper {
      padding: 24px 16px !important;
      border-radius: 18px !important;
    }

    .inline-input {
      padding: 16px 18px !important;
      font-size: 15px !important;
    }

    textarea {
      padding: 18px !important;
      min-height: 160px !important;
    }

    .service-tag span {
      padding: 14px 16px !important;
      font-size: 14px !important;
      min-height: 52px !important;
      gap: 10px !important;
    }

    .service-tag span i {
      font-size: 18px !important;
    }

    .service-tag input[type="checkbox"]:checked+span::after {
      right: 16px !important;
      font-size: 18px !important;
    }

    .btn-send-request {
      padding: 18px !important;
      font-size: 15px !important;
      min-height: 60px !important;
    }

    .map-container iframe {
      height: 260px !important;
    }
  }

  /* ===== Footer Mobile ===== */
  .footer__grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .footer__col {
    padding: 0 10px;
  }

  .footer__title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .footer__links {
    font-size: 14px;
    line-height: 2;
  }

  .social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
  }

  .social__link {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  /* ===== Small Mobile Adjustments ===== */
  body.is-small-mobile .section__title {
    font-size: 24px;
  }

  body.is-small-mobile .section__subtitle {
    font-size: 15px;
  }

  body.is-small-mobile .card {
    padding: 20px 16px;
  }

  body.is-small-mobile .hero__title {
    font-size: 28px;
  }

  /* ===== Touch Feedback ===== */
  .btn:active,
  .card:active,
  .nav__link:active,
  .service-tag:active {
    opacity: 0.8;
  }

  /* ===== Prevent Text Selection on Tap ===== */
  .btn,
  .nav__link,
  .service-tag {
    -webkit-user-select: none;
    user-select: none;
  }

  /* ===== Mobile Section Animations ===== */
  .section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .section--visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* ===== Mobile Scroll Indicator ===== */
  .mobile-scroll-hint {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(88, 166, 255, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    z-index: 100;
    animation: fadeInOut 3s ease-in-out;
    pointer-events: none;
  }

  @keyframes fadeInOut {

    0%,
    100% {
      opacity: 0;
    }

    10%,
    90% {
      opacity: 1;
    }
  }

  /* ===== Improved Readability ===== */
  p,
  li,
  span {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  /* ===== Safe Area Insets for Notched Devices ===== */
  .hero,
  .section,
  .footer {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }

  .footer {
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }

  /* ===== Landscape Mode Adjustments ===== */
  @media (max-height: 500px) and (orientation: landscape) {
    .hero {
      min-height: auto;
      padding: 60px 0 40px;
    }

    .hero__title {
      font-size: 28px;
      margin-bottom: 12px;
    }

    .hero__subtitle {
      font-size: 14px;
      margin-bottom: 20px;
    }

    .hero__actions {
      flex-direction: row;
      gap: 12px;
    }

    .hero__actions .btn {
      max-width: 200px;
      padding: 12px 20px;
      min-height: 44px;
    }

    .section {
      padding: 40px 0;
    }
  }

  /* ===== Loading States ===== */
  .card.loading {
    position: relative;
    overflow: hidden;
  }

  .card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent);
    animation: shimmer 1.5s infinite;
  }

  @keyframes shimmer {
    100% {
      left: 100%;
    }
  }
}

/* Mid-size screens: slightly reduce map height to fit viewport better */
@media (max-width: 1024px) and (min-width: 769px) {
  .contact-grid {
    gap: 32px;
  }

  .map-container {
    height: 360px;
  }
}

/* Responsive map container and iframe */
.map-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

@media (max-width: 768px) {
  .map-container iframe {
    height: 300px;
  }
}

@media (max-width: 576px) {
  .map-container iframe {
    height: 260px;
  }
}


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  /* Prevent horizontal scrolling */
  max-width: 100vw;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text);
  background: var(--bg);
  /* Shorthand to ensure no image */
  overflow-x: hidden;
  /* Prevent horizontal scrolling */
  width: 100%;
}

.container {
  width: min(1200px, 96%);
  margin: 0 auto;
  max-width: 100%;
  /* Ensure container doesn't overflow */
  box-sizing: border-box;
  /* Include padding in width calculation */
  padding: 0 20px;
}

/* Laptop screens (14-inch typical: 1366x768 to 1920x1080) */
@media (min-width: 1024px) and (max-width: 1440px) {
  .container {
    width: min(1150px, 92%);
    padding: 0 24px;
  }
}

/* Smaller laptops (1366x768) */
@media (min-width: 1024px) and (max-width: 1366px) {
  .container {
    width: min(1100px, 90%);
    padding: 0 20px;
  }
}

/* Header - Space Theme */
@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px; /* Reduced from 80px */
  background: rgba(3, 3, 5, 0.6);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header.scrolled {
  height: 60px; /* Reduced from 70px */
  background: #030305;
  /* Fully opaque dark background */
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.9);
}


.header::before {
  content: none;
}

/* Glow line at the bottom */
.header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  opacity: 0.6;
  transition: width 0.4s ease, opacity 0.4s ease;
}

.header:hover::after {
  width: 100%;
  opacity: 1;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--space-lg);
  transition: height var(--transition-medium);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  /* even tighter gap to keep CTA visible */
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  /* prevent wrapping into second line */
}

@media (min-width: 901px) {
  .header .nav__item--mobile-cta {
    display: none !important;
  }
}

.nav__item {
  display: flex;
  align-items: center;
}

.nav__link {
  position: relative;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 100px;
  transition: all 0.3s ease;
}

.nav__link::after {
  content: none;
}

.nav__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav__link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  text-shadow: none;
}

/* Header CTA */
.header .btn--header-cta {
  padding: 7px 18px;
  min-height: 34px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  /* Match primary blue button (Explore SAP Services) */
  background: #2563eb;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

.header .btn--header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.38);
  border-color: rgba(255, 255, 255, 0.22);
}

.header .btn--header-cta:focus-visible {
  outline: none;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.38),
    0 0 0 3px rgba(88, 166, 255, 0.28);
}

.header .btn--header-cta .fas {
  font-size: 1rem;
}

/* Hamburger toggle */
/* Modern Hamburger Toggle - Stairs Style */
.nav__toggle {
  display: none;
  /* hidden on desktop */
  padding: 10px;
  cursor: pointer;
  transition-property: opacity, filter;
  transition-duration: 0.15s;
  transition-timing-function: linear;
  font: inherit;
  color: inherit;
  text-transform: none;
  background-color: transparent;
  border: 0;
  margin: 0;
  overflow: visible;
  z-index: 1002;
}

.nav__toggle:hover {
  opacity: 0.8;
}

.hamburger-box {
  width: 30px;
  height: 24px;
  display: inline-block;
  position: relative;
}

.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -1px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  height: 2px;
  background-color: #fff;
  border-radius: 4px;
  position: absolute;
  right: 0;
  /* Align right for stairs effect */
  transition-property: transform, width;
  transition-duration: 0.2s;
  transition-timing-function: ease;
}

.hamburger-inner {
  width: 24px;
  /* Middle line - medium */
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  display: block;
}

.hamburger-inner::before {
  width: 30px;
  /* Top line - long */
  top: -8px;
}

.hamburger-inner::after {
  width: 16px;
  /* Bottom line - short */
  bottom: -8px;
}

/* Hover Effect: All full width */
.nav__toggle:hover .hamburger-inner,
.nav__toggle:hover .hamburger-inner::after {
  width: 30px;
}

/* Animation: Spin to X */
.nav__toggle[aria-expanded="true"] .hamburger-inner {
  width: 30px;
  transform: rotate(225deg);
  transition-delay: 0.12s;
  transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}

.nav__toggle[aria-expanded="true"] .hamburger-inner::before {
  width: 30px;
  top: 0;
  opacity: 0;
  transition: top 0.1s ease-out, opacity 0.1s 0.12s ease-out;
}

.nav__toggle[aria-expanded="true"] .hamburger-inner::after {
  width: 30px;
  bottom: 0;
  transform: rotate(-90deg);
  transition: bottom 0.1s ease-out, transform 0.22s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  /* reserve space for actions */
  z-index: 1002;
  /* ensure above nav */
  position: relative;
  /* Create stacking context */
  justify-self: end;
  /* pin actions to the right end of the card */
}

@media (max-width: 900px) {
  .nav__toggle {
    display: inline-flex;
    position: relative;
    z-index: 1002;
    /* Above header and mobile nav */
    min-width: 48px;
    /* Minimum touch target size */
    min-height: 48px;
    /* Minimum touch target size */
    flex-direction: column;
  }

  .btn--header-cta {
    display: inline-flex;
    position: relative;
    z-index: 1002;
    /* Above header and mobile nav */
  }

  .nav__list {
    gap: 10px;
  }
}

/* Compact brand logo when scrolled */
#header.scrolled .brand__logo--img img {
  transition: transform 0.3s ease;
  transform: scale(0.9);
}

/* Brand logo sizing to avoid overlapping nav */
.brand {
  display: flex;
  align-items: center;
  justify-self: start;
  /* stick to far left */
  margin-right: var(--space-lg);
  /* keep distance from nav */
  position: relative;
  z-index: 1002;
  /* Above mobile nav */
}

.brand__logo--img img {
  width: 48px;
  height: 48px;
}

.nav {
  justify-self: center;
  /* keep nav centered regardless of side widths */
  min-width: 0;
  /* allow nav to shrink */
}

/* Right-aligned header actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1002;
  /* Ensure toggle button is always clickable */
}

/* Border effect */
.header::after {
  content: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-strong);
  font-weight: 700;
  font-size: 18px;
  margin-right: 12px;
}

.brand__logo {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 10px;
  font-weight: 800;
}

/* Image-based brand logo variant */
.brand__logo--img {
  background: transparent;
  color: inherit;
  padding: 0;
  width: 40px;
  height: 40px;
  position: relative;
}

.brand__logo--img::after {
  content: none;
}

.brand__logo--img img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  filter: none;
}

@media (max-width: 768px) {
  .header {
    height: 80px;
  }

  .brand__logo--img,
  .brand__logo--img img {
    width: 55px;
    height: 55px;
  }

  .brand__logo--img::after {
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
  }
}

/* Navigation - Space Theme */
.nav {
  flex-grow: 1;
  /* Allow nav to take up space */
}

.nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  /* keep centered between brand and actions */
  gap: var(--space-sm);
  /* even tighter gap to keep CTA visible */
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  /* prevent wrapping into second line */
}

.nav__item {
  position: relative;
  display: flex;
  align-items: center;
  white-space: nowrap;
  /* keep labels on one line */
}

.nav__item:not(.nav__item--logo):not(.nav__theme) {
  padding: 0 25px;
}

.nav__link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--font-size-sm);
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  padding: var(--space-xs) var(--space-xs);
  transition: color 0.3s ease,
    transform var(--transition-fast) var(--ease-default);
  will-change: transform, color;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav__link::after {
  content: none;
  /* remove underline */
}

/* Modern underline hover */
.nav__link:hover::after,
.nav__link.is-active::after {
  width: 100%;
}

/* Optimized hover effect */
.nav__link:hover {
  color: #fff;
  transform: translateY(-1px);
  text-shadow: none;
}

/* Active state */
.nav__link.is-active {
  color: #fff;
}

/* Click animation class */
.nav__link--clicking {
  transform: scale(1.1);
  color: #fff;
}

.nav__link:hover::after,
.nav__link.is-active::after {
  width: 100%;
}

/* Separator dots between nav items */


/* Mobile navigation - Full-screen overlay menu */
@media (max-width: 900px) {
  .header .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 12px;
    right: 12px;
    width: auto;
    height: auto;
    max-height: calc(100vh - 140px);
    overflow: auto;
    background: rgba(7, 10, 18, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    z-index: 1001;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
  }

  .header .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px;
  }

  .nav__link {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
  }

  .nav__link:hover {
    color: #ffffff;
    transform: none;
  }
}


/* Hero */

.hero {
  /* Reserve room for fixed header but keep hero visually centered */
  min-height: 80vh; /* Reduced from 85vh to bring content up */
  height: auto;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Changed to column to better handle scroll-down flow */
  align-items: center;
  justify-content: center;
  padding-top: 80px; /* Reduced from 100px */
  padding-bottom: 40px;
}

@media (max-width: 768px) {
  .hero {
    /* Tighter on mobile while keeping space under header */
    min-height: auto; /* Allow natural height on mobile */
    padding-top: 40px; /* Reduced from 85px since header is sticky */
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

#world {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: #000000;
  background-image: radial-gradient(2px 2px at 20px 30px, #eee, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, #fff, transparent),
    radial-gradient(1px 1px at 130px 80px,
      rgba(255, 255, 255, 0.6),
      transparent),
    radial-gradient(2px 2px at 160px 30px, #fff, transparent),
    radial-gradient(1px 1px at 200px 90px,
      rgba(255, 255, 255, 0.7),
      transparent),
    radial-gradient(2px 2px at 240px 50px, #eee, transparent),
    radial-gradient(1px 1px at 280px 10px,
      rgba(255, 255, 255, 0.9),
      transparent),
    radial-gradient(1px 1px at 320px 70px, #fff, transparent),
    radial-gradient(2px 2px at 360px 40px,
      rgba(255, 255, 255, 0.8),
      transparent);
  background-repeat: repeat;
  background-size: 400px 200px;
  z-index: 1;
  overflow: hidden;
}

@keyframes move-background {
  from {
    transform: translate3d(0px, 0px, 0px);
  }

  to {
    transform: translate3d(1000px, 0px, 0px);
  }
}

.star {
  position: absolute;
  background: #ffffff;
  border-radius: 50%;
  animation: fall linear infinite;
}

@keyframes fall {
  to {
    transform: translateY(100vh);
    opacity: 0;
  }
}

.shooting-star {
  position: absolute;
  height: 2px;
  background: linear-gradient(-45deg, #ffffff, rgba(255, 255, 255, 0));
  border-radius: 999px;
  filter: drop-shadow(0 0 6px #ffffff);
  animation: tail 3s ease-in-out infinite, shooting 3s ease-in-out infinite;
}

@keyframes tail {
  0% {
    width: 0;
  }

  30% {
    width: 100px;
  }

  100% {
    width: 0;
  }
}

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

  100% {
    transform: translateX(100vw);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Center content horizontally */
  justify-content: center;
}

.hero__content {
  text-align: center;
  /* Center text */
  max-width: 800px;
  /* Adjust as needed */
}

.hero__company-name {
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 600;
  color: #58a6ff;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 10px; /* Reduced from 20px */
  opacity: 0.9;
  font-family: var(--font-heading);
  text-shadow: 0 0 20px rgba(88, 166, 255, 0.5);
  animation: fadeInUp 1s ease-out;
}

.hero__title {
  font-size: clamp(28px, 8vw, 70px);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 12px; /* Reduced from 20px */
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.hero__title--main {
  text-shadow: 0 0 10px rgba(37, 99, 235, 0.7);
}

.hero__title--small {
  font-size: clamp(30px, 6vw, 50px);
  /* Adjusted max font size */
}

.hero__subtitle {
  color: #eee;
  font-size: clamp(16px, 3vw, 24px);
  margin: 0 auto 24px; /* Reduced from 35px */
  padding: 0 20px;
  line-height: 1.6;
  max-width: 600px;
  font-family: "Poppins", sans-serif;
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  /* Taller for better touch targets */
  min-width: 160px;
  /* Minimum width for better touch targets */
  padding: 0 var(--space-xl);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  /* Bolder text for better visibility */
  font-size: var(--font-size-base);
  transition: all var(--transition-medium) var(--ease-default);
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  /* Remove tap highlight on mobile */
}

/* Enhanced typography for mobile devices */
@media (max-width: 768px) {
  .btn {
    min-width: 140px;
    /* Smaller minimum width on mobile */
    height: 54px;
    /* Taller height for better touch target */
    font-size: 16px;
    /* Larger font size for better readability */
    line-height: 1.4;
    /* Improved line height for readability */
    letter-spacing: -0.5px;
    /* Tighter letter spacing for mobile */
    border-radius: 12px;
    /* Larger border radius for modern look */
    padding: 0 24px;
    /* More horizontal padding */
    /* Add haptic feedback for touch */
    touch-action: manipulation;
  }

  /* Enhanced active state for better touch feedback */
  .btn:active {
    transform: scale(0.96);
    opacity: 0.9;
    transition: transform 0.1s ease, opacity 0.1s ease;
  }

  .hero__actions .btn {
    width: 100%;
    /* Full width buttons in hero section on mobile */
    max-width: 280px;
    margin-bottom: 5px;
    /* Add space between stacked buttons */
  }

  .btn--primary,
  .btn--ghost {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    /* Add subtle shadow for depth */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  /* Improve focus styles for accessibility */
  a:focus,
  button:focus,
  input:focus,
  textarea:focus,
  select:focus {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
  }

  /* Add ripple effect container for buttons */
  .btn {
    position: relative;
    overflow: hidden;
  }

  /* Create ripple effect on touch */
  .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1) translate(-50%, -50%);
    transform-origin: 50% 50%;
  }

  .btn:active::after {
    opacity: 1;
    animation: ripple 0.4s ease-out;
  }

  @keyframes ripple {
    0% {
      transform: scale(0) translate(-50%, -50%);
      opacity: 0.5;
    }

    100% {
      transform: scale(20) translate(-50%, -50%);
      opacity: 0;
    }
  }
}

/* Primary button with gradient and glow effect */
.btn--primary {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn--primary:hover {
  background: #1d4ed8;
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-lg), 0 0 30px var(--accent-glow);
}

.btn--primary:active {
  transform: translateY(1px) scale(0.98);
}

/* Ghost button with transparent background */
.btn--ghost {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  transition: all var(--transition-medium) var(--ease-default);
}

.btn--ghost:hover {
  background: #fff;
  color: #000;
  transform: translateY(-2px);
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  right: 30px; /* Keep right on desktop */
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  letter-spacing: 1px;
  text-decoration: none;
  z-index: 3;
  transition: all 0.3s ease;
  cursor: pointer;
}

.scroll-down:hover {
  color: rgba(255, 255, 255, 1);
  transform: translateY(5px);
}

@media (max-width: 768px) {
  .scroll-down {
    position: relative; /* Remove absolute positioning on mobile */
    bottom: auto;
    right: auto;
    transform: none;
    margin-top: 40px; /* Add space between buttons and scroll indicator */
    margin-bottom: 20px;
    font-size: 11px;
  }

  .scroll-down:hover {
    transform: translateY(5px);
  }
}

.scroll-down i {
  display: block;
  margin: 0 auto 5px;
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

/* Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 9999;
  pointer-events: none;
}

.scroll-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0%;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Smooth scroll transition for sections */
section,
main {
  scroll-margin-top: 120px;
  /* Account for fixed header + extra padding */
  scroll-padding-top: 120px;
  /* Additional padding for scroll snap */
}

/* Enhanced focus styles for accessibility during scroll */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 4px;
}

.btn--ghost:active {
  transform: translateY(1px);
}

/* Sections */
.section {
  padding: 100px 0;
}

/* Laptop optimization (14-inch screens) */
@media (min-width: 1024px) and (max-width: 1440px) {
  .section {
    padding: 80px 0;
  }

  .section__title {
    font-size: clamp(32px, 3.5vw, 42px);
    margin-bottom: 24px;
  }

  .section__subtitle {
    font-size: clamp(16px, 1.5vw, 20px);
    margin-bottom: 36px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 992px) {
  .section {
    padding: 70px 0;
  }

  .section__title {
    margin-bottom: 20px;
  }

  .section__subtitle {
    margin-bottom: 40px;
  }
}

/* Partners grid */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: center;
  justify-items: center;
}

.partner-item img {
  max-width: 160px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 992px) {
  .partner-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .partner-item img {
    max-width: 140px;
  }
}

@media (max-width: 768px) {
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partner-item img {
    max-width: 120px;
  }
}

@media (max-width: 480px) {
  .partner-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .partner-item img {
    max-width: 110px;
  }
}

/* Footer grid */
.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 992px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Horizontal scroll cards (Why Choose Us) */
.horizontal-scroll-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.horizontal-scroll-track {
  display: flex;
  gap: 16px;
}

@media (max-width: 768px) {
  .why-choose-us__card {
    min-width: 240px;
  }
}

/* Apply Poppins font to all paragraphs and card content */
p,
.card p,
.card__body,
.card__body p,
.section__subtitle,
.hero__subtitle {
  font-family: var(--font-body);
}

.card .list--check,
.list--check li {
  font-family: var(--font-body);
}

.contact-card__text,
.contact-item p {
  font-family: var(--font-body);
}

.timeline-content p,
.discover-us__mission-text {
  font-family: var(--font-body);
}

.cta__subtitle,
.cta__text {
  font-family: var(--font-body);
}

#offerings {
  background: #000000;
  position: relative;
  overflow: hidden;
  /* Ensure no scrollbars appear */
  max-width: 100vw;
  box-sizing: border-box;
}

/* Hide scrollbars in offerings section */
#offerings::-webkit-scrollbar {
  display: none;
}

#offerings {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

#offerings::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: #000000;
  background-image:
    /* Large bright stars */
    radial-gradient(3px 3px at 20px 30px, #ffffff, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(3px 3px at 90px 40px, #ffffff, transparent),
    radial-gradient(2px 2px at 130px 80px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(3px 3px at 160px 30px, #ffffff, transparent),
    radial-gradient(2px 2px at 200px 90px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(3px 3px at 240px 50px, #ffffff, transparent),
    radial-gradient(2px 2px at 280px 10px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(2px 2px at 320px 70px, #ffffff, transparent),
    radial-gradient(3px 3px at 360px 40px, rgba(255, 255, 255, 0.8), transparent),
    /* Medium stars */
    radial-gradient(1px 1px at 420px 20px, #ffffff, transparent),
    radial-gradient(2px 2px at 480px 60px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 520px 90px, #ffffff, transparent),
    radial-gradient(1px 1px at 580px 30px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(2px 2px at 620px 70px, #ffffff, transparent),
    radial-gradient(1px 1px at 680px 40px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(2px 2px at 720px 80px, #ffffff, transparent),
    radial-gradient(1px 1px at 780px 20px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 820px 60px, #ffffff, transparent),
    radial-gradient(2px 2px at 880px 90px, rgba(255, 255, 255, 0.6), transparent),
    /* Small distant stars */
    radial-gradient(0.5px 0.5px at 100px 15px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(0.5px 0.5px at 150px 85px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(0.5px 0.5px at 300px 25px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(0.5px 0.5px at 450px 75px, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(0.5px 0.5px at 600px 45px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(0.5px 0.5px at 750px 95px, rgba(255, 255, 255, 0.4), transparent);
  background-repeat: repeat;
  background-size: 1000px 150px;
  animation: galaxy-move-slow 30s linear infinite, twinkle 3s ease-in-out infinite;
  z-index: 1;
}

#offerings::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 150%;
  height: 150%;
  background-image:
    /* Fast moving small stars */
    radial-gradient(1px 1px at 50px 25px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(0.5px 0.5px at 120px 65px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 200px 35px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(0.5px 0.5px at 280px 85px, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 350px 15px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(0.5px 0.5px at 420px 75px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 500px 45px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(0.5px 0.5px at 580px 95px, rgba(255, 255, 255, 0.7), transparent);
  background-repeat: repeat;
  background-size: 600px 100px;
  animation: galaxy-move-fast 15s linear infinite;
  z-index: 1;
}

#offerings .container {
  position: relative;
  z-index: 2;
  overflow: hidden;
  max-width: 100%;
  padding: 0 20px;
}

#offerings .section__subtitle {
  color: #ffffff;
  text-align: left;
  margin-left: 0;
  margin-right: auto;
  /* Keep it from stretching full-width */
  max-width: 600px;
  /* Adjust as needed */
}

#offerings .card {
  background: rgba(33, 38, 45, 0.3);
  backdrop-filter: blur(10px);
  color: #ffffff;
}

#offerings .card .card__header {
  color: #ffffff;
}

/* Interactive Spotlight Grid */
.spotlight-grid {
  position: relative;
  --spotlight-x: 50%;
  --spotlight-y: 50%;
  overflow: visible;
  width: 100%;
  max-width: 100%;
}

.spotlight-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at var(--spotlight-x) var(--spotlight-y),
      rgba(255, 255, 255, 0.15) 0%,
      rgba(255, 255, 255, 0.05) 20%,
      transparent 40%);
  transition: background 0.2s ease;
  z-index: 2;
}

#offerings .spotlight-grid .card {
  background: rgba(20, 24, 30, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease, border-color 0.3s ease;
  z-index: 1;
}

#offerings .spotlight-grid .card:hover {
  background: rgba(30, 36, 45, 0.7);
  border-color: rgba(88, 166, 255, 0.5);
  /* Primary blue glow */
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#offerings .card .card__body p {
  color: #ffffff;
}

#offerings .list--check li::before {
  color: var(--primary);
}

.offerings-icon {
  color: #ffffff !important;
}

#how {
  background-color: #000000;
  position: relative;
  overflow: hidden;
  padding-bottom: 300px;
  /* Add space to prevent overlap from rocket video */
}

#how::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: #000000;
  background-image:
    /* Large bright stars */
    radial-gradient(3px 3px at 20px 30px, #ffffff, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(3px 3px at 90px 40px, #ffffff, transparent),
    radial-gradient(2px 2px at 130px 80px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(3px 3px at 160px 30px, #ffffff, transparent),
    radial-gradient(2px 2px at 200px 90px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(3px 3px at 240px 50px, #ffffff, transparent),
    radial-gradient(2px 2px at 280px 10px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(2px 2px at 320px 70px, #ffffff, transparent),
    radial-gradient(3px 3px at 360px 40px, rgba(255, 255, 255, 0.8), transparent),
    /* Medium stars */
    radial-gradient(1px 1px at 420px 20px, #ffffff, transparent),
    radial-gradient(2px 2px at 480px 60px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 520px 90px, #ffffff, transparent),
    radial-gradient(1px 1px at 580px 30px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(2px 2px at 620px 70px, #ffffff, transparent),
    radial-gradient(1px 1px at 680px 40px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(2px 2px at 720px 80px, #ffffff, transparent),
    radial-gradient(1px 1px at 780px 20px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 820px 60px, #ffffff, transparent),
    radial-gradient(2px 2px at 880px 90px, rgba(255, 255, 255, 0.6), transparent),
    /* Small distant stars */
    radial-gradient(0.5px 0.5px at 100px 15px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(0.5px 0.5px at 150px 85px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(0.5px 0.5px at 300px 25px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(0.5px 0.5px at 450px 75px, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(0.5px 0.5px at 600px 45px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(0.5px 0.5px at 750px 95px, rgba(255, 255, 255, 0.4), transparent);
  background-repeat: repeat;
  background-size: 1000px 150px;
  animation: galaxy-move-slow 30s linear infinite, twinkle 3s ease-in-out infinite;
  z-index: 1;
}

#how::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 150%;
  height: 150%;
  background-image:
    /* Fast moving small stars */
    radial-gradient(1px 1px at 50px 25px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(0.5px 0.5px at 120px 65px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 200px 35px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(0.5px 0.5px at 280px 85px, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 350px 15px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(0.5px 0.5px at 420px 75px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 500px 45px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(0.5px 0.5px at 580px 95px, rgba(255, 255, 255, 0.7), transparent);
  background-repeat: repeat;
  background-size: 600px 100px;
  animation: galaxy-move-fast 15s linear infinite;
  z-index: 1;
}

#how .container {
  position: relative;
  z-index: 2;
}

/* CTA Section - New Style */
#cta {
  background: #000000;
  /* Black background */
  position: relative;
  padding: 80px 0 100px;
  text-align: center;
}

#cta .cta__title,
#cta .cta__subtitle,
#cta .cta__text {
  color: #ffffff;
  /* White text color */
}

#cta .container {
  position: relative;
  z-index: 1;
  max-width: 1000px;
}

.glitch-container {
  position: relative;
}

.glitch {
  position: relative;
  color: #fff;
  mix-blend-mode: screen;
  /* Creates a cool color blend effect */
}

.glitch.is-active::before,
.glitch.is-active::after {
  content: attr(data-glitch);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  clip: rect(0, 900px, 0, 0);
}

.glitch.is-active::before {
  left: 2px;
  text-shadow: -1px 0 red;
  animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch.is-active::after {
  left: -2px;
  text-shadow: -1px 0 blue;
  animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
  0% {
    clip: rect(42px, 9999px, 44px, 0);
  }

  5% {
    clip: rect(17px, 9999px, 94px, 0);
  }

  10% {
    clip: rect(86px, 9999px, 87px, 0);
  }

  15% {
    clip: rect(31px, 9999px, 6px, 0);
  }

  20% {
    clip: rect(27px, 9999px, 97px, 0);
  }

  25% {
    clip: rect(34px, 9999px, 55px, 0);
  }

  30% {
    clip: rect(45px, 9999px, 73px, 0);
  }

  35% {
    clip: rect(2px, 9999px, 75px, 0);
  }

  40% {
    clip: rect(63px, 9999px, 9px, 0);
  }

  45% {
    clip: rect(43px, 9999px, 96px, 0);
  }

  50% {
    clip: rect(85px, 9999px, 23px, 0);
  }

  55% {
    clip: rect(5px, 9999px, 47px, 0);
  }

  60% {
    clip: rect(12px, 9999px, 7px, 0);
  }

  65% {
    clip: rect(58px, 9999px, 91px, 0);
  }

  70% {
    clip: rect(8px, 9999px, 99px, 0);
  }

  75% {
    clip: rect(38px, 9999px, 49px, 0);
  }

  80% {
    clip: rect(81px, 9999px, 16px, 0);
  }

  85% {
    clip: rect(54px, 9999px, 82px, 0);
  }

  90% {
    clip: rect(28px, 9999px, 83px, 0);
  }

  95% {
    clip: rect(51px, 9999px, 21px, 0);
  }

  100% {
    clip: rect(69px, 9999px, 57px, 0);
  }
}

@keyframes glitch-anim-2 {
  0% {
    clip: rect(82px, 9999px, 8px, 0);
  }

  5% {
    clip: rect(42px, 9999px, 98px, 0);
  }

  10% {
    clip: rect(8px, 9999px, 9px, 0);
  }

  15% {
    clip: rect(83px, 9999px, 19px, 0);
  }

  20% {
    clip: rect(30px, 9999px, 2px, 0);
  }

  25% {
    clip: rect(11px, 9999px, 52px, 0);
  }

  30% {
    clip: rect(1px, 9999px, 6px, 0);
  }

  35% {
    clip: rect(20px, 9999px, 71px, 0);
  }

  40% {
    clip: rect(89px, 9999px, 43px, 0);
  }

  45% {
    clip: rect(4px, 9999px, 59px, 0);
  }

  50% {
    clip: rect(49px, 9999px, 35px, 0);
  }

  55% {
    clip: rect(78px, 9999px, 1px, 0);
  }

  60% {
    clip: rect(23px, 9999px, 44px, 0);
  }

  65% {
    clip: rect(3px, 9999px, 86px, 0);
  }

  70% {
    clip: rect(93px, 9999px, 54px, 0);
  }

  75% {
    clip: rect(47px, 9999px, 8px, 0);
  }

  80% {
    clip: rect(94px, 9999px, 61px, 0);
  }

  85% {
    clip: rect(13px, 9999px, 68px, 0);
  }

  90% {
    clip: rect(33px, 9999px, 15px, 0);
  }

  95% {
    clip: rect(56px, 9999px, 74px, 0);
  }

  100% {
    clip: rect(18px, 9999px, 92px, 0);
  }
}

.cta__title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
  color: var(--text-strong);
}

.cta__title .highlight {
  color: var(--primary);
  /* Coral/orange color for Business? */
  position: relative;
}

.highlight-blue {
  color: #58a6ff;
  /* Using the --primary color variable */
}

.cta__subtitle {
  font-size: 18px;
  color: var(--text);
  max-width: 800px;
  margin: 0 auto 10px;
  text-align: center;
}

.cta__text {
  font-size: 16px;
  color: var(--muted);
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}

/* Contact Cards */
.contact-cards {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.contact-card {
  background: var(--elev-2);
  border-radius: 10px;
  padding: 25px 20px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  flex: 1;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  min-height: 100px;
  border: 1px solid var(--card-border);
}

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

.contact-card__icon {
  background: var(--primary);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 3px 10px var(--primary-glow);
}

/* All contact card icons use primary color - consolidated above */
.contact-card__content {
  flex: 1;
}

.contact-card__header {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--card-header-text);
  font-family: var(--font-heading);
}

/* Specific styling for products-solutions card headers */
#products-solutions .card__header {
  font-size: 18px;
  margin-bottom: 8px;
  text-align: left;
  justify-content: flex-start;
}

#products-solutions .card__body,
#products-solutions .card__body p,
#products-solutions .list--check,
#products-solutions .list--check li {
  text-align: left;
}

#products-solutions .card__content-wrapper {
  display: flex;
  flex-direction: column;
}

#products-solutions .card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

@media (max-width: 576px) {
  .contact-card__header {
    font-size: 1.25rem;
    padding: 15px;
  }
}

.contact-card__text {
  font-size: 1rem;
  line-height: 1.5;
}

/* Make email and phone links look clickable */
.contact-card:nth-child(2) .contact-card__text a,
.contact-card:nth-child(3) .contact-card__text a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-card:nth-child(2) .contact-card__text a:hover,
.contact-card:nth-child(3) .contact-card__text a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Responsive styles for contact cards */
@media (max-width: 768px) {
  .contact-cards {
    flex-direction: column;
    gap: 25px;
    width: 100%;
  }

  .contact-card {
    width: 100%;
    max-width: 100%;
  }

  .contact-card {
    width: 100%;
  }

  .cta__title {
    font-size: 28px;
  }

  .cta__subtitle,
  .cta__text {
    font-size: 16px;
  }
}

.section__title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin: 0 0 16px;
  text-align: center;
}

.section__subtitle {
  font-size: clamp(18px, 2.5vw, 20px);
  color: var(--muted);
  max-width: 900px;
  margin: 0 auto 70px;
  text-align: center;
}

.highlight-text {
  color: var(--primary);
}

/* Grid & Cards */
.grid {
  display: grid;
  gap: var(--space-xl);
  max-width: 100%;
  /* Prevent grid overflow */
  overflow-x: hidden;
  /* Prevent horizontal scrolling */
}

.discover-us__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  align-items: center;
}

.discover-us__grid:not(.discover-us__grid--reversed) {
  /* Remove negative margin that causes horizontal scroll */
  margin-left: 0;
}

@media (max-width: 768px) {
  .discover-us__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .discover-us__mission {
    padding: 20px;
  }

  .discover-us__grid:not(.discover-us__grid--reversed) {
    margin-left: 0;
  }
}

.discover-us__grid--reversed {
  grid-template-columns: 1fr 1.5fr;
  /* Adjust video column to give more space to text */
}

.discover-us__grid--reversed .discover-us__video-container {
  order: 2;
}

/* Responsive videos */
.discover-us__video,
.project__video,
.rocket-video,
.trust-video {
  display: block;
  width: 100%;
  height: auto;
}

.discover-us__video-container,
.rocket-video-container {
  position: relative;
}

.rocket-video {
  object-fit: cover;
}

.discover-us__video-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--card-border);
}

.discover-us__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.discover-us__mission {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.discover-us__mission-title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text-strong);
  display: flex;
  align-items: center;
  gap: 12px;
}

.discover-us__mission-title i {
  color: var(--primary);
}

.discover-us__mission-text {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--muted);
  line-height: 1.7;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

/* Specific grid spacing for products-solutions */
#products-solutions .grid--2 {
  gap: 20px;
  /* Further reduced gap */
  max-width: 95%;
  /* Make the grid slightly narrower */
  margin: 0 auto;
  /* Center the grid */
}

@media (max-width: 768px) {
  .grid--2 {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 576px) {
  .grid--3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Offerings section specific styles */
#offerings .grid--3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 100%;
  margin: 0 auto;
  overflow: visible;
}

@media (max-width: 992px) {
  #offerings .grid--3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 576px) {
  #offerings .grid--3 {
    grid-template-columns: 1fr;
    gap: 25px;
    margin: 0 auto;
  }
}

#offerings .card {
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  #offerings .card {
    min-height: 360px;
  }
}

@media (max-width: 576px) {
  #offerings .card {
    min-height: 300px;
  }
}

#offerings .card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#offerings .card__body p {
  margin-bottom: 20px;
}

#offerings .list--check {
  margin-top: auto;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  transition: transform var(--transition-medium) var(--ease-default),
    box-shadow var(--transition-medium) var(--ease-default),
    border-color var(--transition-medium) var(--ease-default);
  text-align: left;
  position: relative;
}

@media (max-width: 768px) {
  .card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
    /* Improve touch feedback */
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .card:hover {
    transform: translateY(-4px);
    /* Reduce hover effect on mobile */
    box-shadow: var(--shadow-md), 0 0 10px var(--primary-glow);
  }

  /* Add active state for touch feedback */
  .card:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-sm);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
  }
}

@media (max-width: 576px) {
  .card {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 18px;
    /* Slightly more padding for better spacing */
    margin-bottom: 16px;
  }

  /* Add subtle border for better definition on small screens */
  .card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
  }
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), 0 0 20px var(--primary-glow);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg,
      transparent,
      rgba(var(--primary-rgb), 0.03),
      transparent);
  opacity: 0;
  transition: opacity var(--transition-medium) var(--ease-default);
}

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

.card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  border-bottom: 1px solid var(--card-border);
  position: relative;
  z-index: 1;
}

.card__body {
  padding: var(--space-lg);
  position: relative;
  z-index: 1;
}

/* About Section Cards */
#about .card {
  text-align: center;
}

#about .card__header {
  justify-content: center;
}

#about .card__header i {
  color: var(--accent);
}

#about .list--check {
  text-align: left;
}

/* Lists */
.list--check {
  list-style: none;
  padding: 0;
}

.list--check li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 10px;
}

.list--check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Projects */
.project.card {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: none;
  /* Remove the default card shadow */
  max-width: 100%;
}


/*Specific styling for products-solutions cards */
#products-solutions .project.card {
  max-width: 90%;
  /* Further reduce width */
  margin: 0 auto;
  transform: scale(0.95);
  /* Slightly scale down cards */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  /* Subtle shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Default hover effect for project cards */
.project.card:hover {
  transform: none;
  /* Disable the hover lift effect for this card type */
  box-shadow: none;
}

/* Specific hover effect for products-solutions cards */
#products-solutions .project.card:hover {
  transform: scale(0.97);
  /* Slight scale effect on hover */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card__content-wrapper {
  background-color: rgba(13, 17, 23, 0.5);
  /* Semi-transparent dark background */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* For Safari compatibility */
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* Adds a subtle edge */
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  padding: 20px;
  /* Reduced padding */
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Specific styling for products-solutions card content */
#products-solutions .card__content-wrapper {
  padding: 16px;
  /* Even more compact padding */
  background-color: rgba(10, 14, 20, 0.85);
  /* Darker background for better contrast */
  border: 1px solid rgba(255, 255, 255, 0.15);
  /* Slightly more visible border */
}

/* Default text color for project cards */
.project .card__header,
.project .card__body p,
.project .list--check li {
  color: #ffffff;
  /* Default white text */
}

/* Celebrity Wish card text colors */
#celebrity-wish-card .card__header {
  color: #58a6ff;
  /* Light blue for header */
}

#celebrity-wish-card .card__body p,
#celebrity-wish-card .list--check li {
  color: rgba(255, 255, 255, 0.9);
  /* Slightly off-white for better readability */
}

/* FiFa card text colors */
#fifa-card .card__header {
  color: #7dd3fc;
  /* Light cyan for header */
}

#fifa-card .card__body p,
#fifa-card .list--check li {
  color: rgba(255, 255, 255, 0.9);
  /* Slightly off-white for better readability */
}

.project .card__body {
  padding: 0;
  /* Remove default padding as it's on the wrapper now */
}

/* Make product card text more compact */
#products-solutions .card__body p {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 10px;
}

#products-solutions .list--check li {
  font-size: 14px;
  padding-left: 22px;
  margin-bottom: 5px;
}

#products-solutions .tags li {
  font-size: 12px;
  padding: 4px 10px;
  background-color: rgba(255, 255, 255, 0.1);
  /* Slightly lighter background */
  color: rgba(255, 255, 255, 0.8);
  /* Slightly dimmed text */
}

/* Celebrity Wish card tags */
#celebrity-wish-card .tags li {
  background-color: rgba(88, 166, 255, 0.15);
  /* Light blue background */
  color: #58a6ff;
  /* Light blue text */
}

/* FiFa card tags */
#fifa-card .tags li {
  background-color: rgba(125, 211, 252, 0.15);
  /* Light cyan background */
  color: #7dd3fc;
  /* Light cyan text */
}

/* --- Unique Style for Celluloid Stories Card --- */
#factor-e-card,
#toto-card {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  /* Ensures shadow respects rounded corners of video */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#factor-e-card:hover,
#toto-card:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

#factor-e-card .card__content-wrapper,
#toto-card .card__content-wrapper {
  background-color: rgba(220, 225, 255, 0.6);
  /* Light, blue-tinted, semi-transparent background */
  border-color: rgba(0, 0, 0, 0.1);
}

#factor-e-card .card__header,
#factor-e-card .card__body p,
#factor-e-card .list--check li,
#toto-card .card__header,
#toto-card .card__body p,
#toto-card .list--check li {
  color: #0f172a;
  /* Dark text for readability */
}

#factor-e-card .list--check li::before,
#toto-card .list--check li::before {
  color: var(--primary);
  /* Make checkmarks blue for contrast */
}

#factor-e-card .tags li,
#toto-card .tags li {
  background-color: rgba(0, 0, 0, 0.05);
  color: #0f172a;
}

.project__video {
  width: 100%;
  height: auto;
  /* Further reduced height */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* Specific styling for products-solutions videos */
#products-solutions .project__video {
  height: auto;
  /* Even smaller for products-solutions section */
  aspect-ratio: 16 / 9;
}

.tags {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Adjust tags spacing for products-solutions */
#products-solutions .tags {
  margin: 12px 0 0;
  gap: 6px;
}

#products-solutions #celebrity-wish-card .tags,
#products-solutions #fifa-card .tags {
  margin-bottom: 10px;
}

#products-solutions .btn--try {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  min-width: 0;
  height: 42px;
  padding: 10px 22px;
  font-size: 13px;
}

.tags li {
  background: var(--elev-2);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
}


/* Rocket Video Styling */
.rocket-video-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: -275px;
  /* Half of video height (550px/2) */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 100%;
}

.rocket-video {
  width: 450px;
  height: 550px;
  object-fit: cover;
  margin-top: -1px;
}

#products-solutions {
  position: relative;
  padding-top: 280px;
  /* Extra padding to account for the video */
}

 /* Responsive video sizing */
 @media (max-width: 768px) {
  .rocket-video {
    width: 350px !important;
    height: 350px !important;
  }

  .rocket-video-container {
    top: -175px;
    /* Half of 350px */
  }

  #products-solutions {
    padding-top: 220px;
  }
 }

 @media (max-width: 480px) {
  .rocket-video {
    width: 240px !important;
    height: 240px !important;
  }

  .rocket-video-container {
    top: 0 !important;
    transform: translate(-50%, -50%) !important;
    /* Anchor to the top edge of the section and shift up by half height */
  }

  #products-solutions {
    padding-top: 180px !important;
    /* Ensure content starts below the lower half of the rocket */
  }
 }

 @media (max-width: 480px) {
  #how {
    overflow: visible !important;
  }
 }

 @media (max-width: 480px) {
  #how {
    padding-bottom: 160px !important;
  }
 }

 /* Extra small screens */
 @media (max-width: 400px) {
  .rocket-video {
    width: 240px !important;
    height: 240px !important;
  }

  .section__title {
    font-size: 24px;
  }

  .section__subtitle {
    font-size: 16px;
    line-height: 1.5;
  }

  .btn {
    min-width: 140px;
    height: 48px;
    font-size: 14px;
    padding: 0 20px;
  }

  .card__header {
    font-size: 18px;
    padding: 16px 18px;
    letter-spacing: 0.3px;
    font-weight: 600;
  }

  .card__body {
    padding: 18px;
    font-size: 15px;

  }

  /* Improve spacing for small screens */
  .section {
    padding: 50px 0 40px;
    /* More top padding, less bottom padding */
  }

  /* Improve section title readability */
  .section__title {
    font-size: 24px;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    font-weight: 700;
  }

  .section__subtitle {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
    max-width: 100%;
  }

  /* Improve hero section for very small screens */
  .hero {
    min-height: auto;
    /* Ensure full height on small screens */
    padding-top: 40px;
    /* Account for header height */
  }

  .hero__company-name {
    font-size: clamp(14px, 4vw, 18px);
    letter-spacing: 2px;
    margin-bottom: 15px;
  }

  .hero__title {
    font-size: clamp(24px, 7vw, 28px);
    /* Further reduce size for very small screens */
    letter-spacing: -0.7px;
    /* Even tighter letter spacing */
  }

  .hero__title--small {
    font-size: clamp(20px, 5vw, 24px);
    /* Smaller secondary text */
  }

  /* Adjust buttons for small screens */
  .hero__actions {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    /* Full width container */
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    /* Wider buttons for better touch */
  }

  /* Adjust card padding */
  .card {
    padding: 15px;
    margin-bottom: 20px;
    /* Add space between cards */
    border-radius: var(--radius-lg);
    /* Smaller radius on mobile */
  }

  /* Improve typography for smaller screens */
  @media (max-width: 576px) {
    .section__title {
      font-size: 26px;
      margin-bottom: 15px;
    }

    .section__subtitle {
      font-size: 16px;
      margin-bottom: 30px;
      line-height: 1.5;
    }

    p,
    .card p {
      font-size: 16px;
      line-height: 1.6;
      margin-bottom: 16px;
      letter-spacing: 0.01em;
      /* Improve text rendering */
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
  }

  /* Adjust contact form */
  .contact-form-simple .inline-input {
    max-width: 120px;
  }

  /* Improve readability */
  p,
  li {
    font-size: 15px;
    line-height: 1.6;
  }

  /* Adjust footer spacing */
  .footer__grid {
    gap: 20px;
  }

  .footer__title {
    margin-bottom: 10px;
  }

  /* Adjust spacing between sections */
  .section+.section {
    margin-top: 0;
  }

  /* Improve form elements */
  input,
  textarea,
  select {
    font-size: 16px;
    /* Prevent zoom on focus in iOS */
    padding: 12px;
  }

  /* Adjust spacing in contact section */
  .contact-grid {
    gap: 20px;
  }

  /* Improve card readability */
  .card__header {
    font-size: 18px;
    margin-bottom: 10px;
    gap: 8px;
    /* Reduced gap for smaller screens */
  }

  .card__body {
    font-size: 14px;
  }

  /* Adjust hero spacing */
  #hero {
    padding-top: 100px;
    padding-bottom: 50px;
  }

  /* Fix partner logos */
  .partner-logo {
    max-width: 100px;
    height: auto;
  }

  /* Adjust spacing in discover us section */
  .discover-us__grid {
    gap: 30px;
  }

  .discover-us__mission-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  /* Adjust offerings section */
  #offerings .grid--3 {
    gap: 20px;
  }

  .rocket-video-container {
    top: -140px;
    /* Half of 280px */
  }

  #products-solutions {
    padding-top: 180px;
  }
}

/* Contact Section - Modern & Classy */
#contact {
  position: relative;
  background: #000000;
  overflow: hidden;
  padding: 120px 0 100px;
}

/* Contact grid layout */
.contact-grid {
  gap: 40px;
  align-items: start;
}

/* Explicit column placement and overflow fixes */
@media (min-width: 1001px) {
  .contact-grid {
    grid-template-columns: 1.5fr 1fr;
    /* Make the form even wider */
  }

  .contact-form-container {
    grid-column: 1;
  }

  .contact-map-container {
    grid-column: 2;
  }
}

/* Prevent grid children from forcing wrap due to overflow */
.contact-form-container,
.contact-map-container {
  min-width: 0;
}

/* Ensure form card stretches appropriately */
.contact-form-container .card {
  height: 100%;
}

/* Responsive styling for contact section */

@media (max-width: 480px) {
  .map-container {
    height: 250px;
  }

  .location-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .directions-link {
    width: 100%;
    text-align: center;
  }
}

.map-container {
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--elev-2);
  position: relative;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--card-border);
  display: block;
  width: 100%;
}

/* Ensure embedded Google Map fills the container */
.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}


/* Location info styles */
.location-info {
  margin-top: 20px;
}

.location-card {
  background: var(--elev-1);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--card-border);
}

.location-card h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-strong);
}

.location-card p {
  font-size: var(--font-size-base);
  color: var(--text);
  margin-bottom: 15px;
  line-height: 1.5;
}

.location-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.rating-stars {
  color: #ffd700;
  font-size: var(--font-size-md);
}

.rating-count {
  font-weight: 600;
  color: var(--text-strong);
}

.reviews-link {
  color: var(--primary);
  text-decoration: none;
  font-size: var(--font-size-sm);
}

.reviews-link:hover {
  text-decoration: underline;
}

/* Location actions styling */
.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.view-map-link,
.directions-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: all var(--transition-fast) var(--ease-default);
}

.view-map-link:hover,
.directions-link:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

/* Directions link styles removed - not used in HTML */

/* Contact Message Styling */
.contact-message {
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-message:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 0 20px var(--primary-glow);
  border-color: rgba(255, 255, 255, 0.1);
}

.contact-message p {
  color: var(--text);
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.6;
}

.contact-message__cta {
  margin-top: auto;
  padding-top: 20px;
}


#contact::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.4;
  z-index: 0;
}

#contact .container {
  position: relative;
  z-index: 1;
}

#contact .section__title {
  font-size: clamp(36px, 5vw, 48px);
  margin-bottom: 15px;
  color: #ffffff;
}

#contact .section__title .highlight-text {
  color: #007bff;
}

#contact .section__title i {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 10px;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 35px;
  justify-content: center;
  height: 100%;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact-info:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 0 20px var(--primary-glow);
  border-color: rgba(255, 255, 255, 0.1);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: transform 0.3s;
}

.contact-item:hover {
  transform: translateX(5px);
}

.contact-item i {
  font-size: 24px;
  color: var(--primary);
  margin-top: 4px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: 50%;
  transition: all 0.3s;
}

.contact-item:hover i {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
}

.contact-item__title {
  display: block;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 4px;
  font-size: 18px;
}

.contact-item a,
.contact-item p {
  color: var(--muted);
  text-decoration: none;
  margin: 0;
  font-size: 16px;
  transition: color 0.3s;
}

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

/* Contact Form */
.form {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.form:hover {
  transform: none;
  box-shadow: none;
}

/* Dark Theme Contact Form */
#contact .card {
  background: rgba(30, 41, 59, 0.5);
  /* Dark semi-transparent background */
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#contact .form-group label {
  color: #c9d1d9;
  /* Light text for labels */
}

/* Old form-control styles removed - using new contact form */

.highlight {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}

.highlight-blue {
  color: var(--primary);
}

#contact .btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#contact .btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px var(--primary-glow);
}


.form__body {
  display: grid;
  gap: 20px;
}

/* Form row for two-column layout */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.field {
  margin-bottom: 20px;
  position: relative;
}

/* Ensure inputs and textareas span full width within their container */
.field input,
.field textarea {
  width: 100%;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-strong);
  font-size: 15px;
}

.field-hint {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  font-style: italic;
}

/* Form validation styling */
.form__error {
  color: #f87171;
  /* A reddish color for errors */
  font-size: 13px;
  padding-top: 6px;
  display: none;
  /* Hidden by default */
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

.form__error.is-visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Invalid field styling */
.field input.is-invalid,
.field textarea.is-invalid {
  border-color: #f87171;
  background-color: rgba(248, 113, 113, 0.05);
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Valid field styling */
.field input.is-valid,
.field textarea.is-valid {
  border-color: #34d399;
  background-color: rgba(52, 211, 153, 0.05);
}

/* Add checkmark for valid fields */
.field.has-validation {
  position: relative;
}

.field.has-validation::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  width: 0;
  height: 0;
  opacity: 0;
  transition: all 0.3s ease;
}

.field.has-validation.is-valid::after {
  content: "✓";
  color: #34d399;
  opacity: 1;
  font-size: 16px;
  top: 50%;
  transform: translateY(-50%);
}

/* Shake animation for invalid fields */
@keyframes shake {

  10%,
  90% {
    transform: translateX(-1px);
  }

  20%,
  80% {
    transform: translateX(2px);
  }

  30%,
  50%,
  70% {
    transform: translateX(-3px);
  }

  40%,
  60% {
    transform: translateX(3px);
  }
}

.field input.is-valid,
.field textarea.is-valid {
  border-color: #34d399;
  /* A greenish color for success */
}

.field span {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-strong);
  font-size: 15px;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--elev-2);
  color: var(--text);
  border: 1px solid var(--card-border);
  font-family: var(--font-main);
  font-size: 16px;
  transition: all var(--transition-medium) var(--ease-default);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) inset;
  margin-top: 8px;
}

/* Focus state with animation */
.field input:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow),
    0 2px 10px rgba(0, 0, 0, 0.05) inset;
  outline: none;
  transform: translateY(-2px);
  background-color: rgba(var(--primary-rgb), 0.03);
  transition: all 0.3s var(--ease-bounce);
}

/* Label styling on field focus */
.field:focus-within label {
  color: var(--primary);
  transform: translateY(-2px);
  transition: all 0.3s var(--ease-bounce);
}

/* Field hint styling on focus */
.field:focus-within .field-hint {
  color: var(--primary);
  opacity: 0.8;
}

/* Add hover effect */
.field input:hover,
.field textarea:hover {
  border-color: rgba(var(--primary-rgb), 0.5);
}

/* Style for active/filled inputs */
.field input:not(:placeholder-shown),
.field textarea:not(:placeholder-shown) {
  border-color: var(--accent);
  background-color: rgba(var(--accent-rgb), 0.03);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

#contact .btn--primary {
  width: 100%;
  margin-top: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  height: 54px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 0 15px var(--primary-glow);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

/* Button spinner animation */
.btn-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

/* Button sending state */
.btn.is-sending {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  pointer-events: none;
}

/* Form success animation */
.form-success-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 20px;
  width: 100%;
}

.success-icon {
  margin-bottom: 20px;
}

.success-icon svg {
  width: 80px;
  height: 80px;
}

.success-circle {
  stroke: var(--primary);
  stroke-width: 2;
  fill: none;
}

.success-check {
  stroke: var(--accent);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-success-animation h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 10px;
}

.form-success-animation p {
  font-size: 16px;
  color: var(--text);
  max-width: 250px;
  margin: 0 auto;
}

#contact .btn--primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3), 0 0 20px var(--primary-glow);
}

.form__note {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: 20px;
  font-style: italic;
}

#why {
  background-color: #000;
  padding: 100px 0;
  overflow: hidden;
  position: relative;
  /* Required for pseudo-elements */
}

#why::before,
#why::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  /* Make it wide for horizontal movement */
  height: 100%;
  background-repeat: repeat;
  z-index: 0;
  /* Behind the content */
}

#why::before {
  background-image:
    radial-gradient(2px 2px at 20px 30px, #ffffff, transparent),
    radial-gradient(1px 1px at 90px 40px, #ffffff, transparent),
    radial-gradient(2px 2px at 160px 120px, #ffffff, transparent),
    radial-gradient(1px 1px at 250px 80px, #ffffff, transparent),
    radial-gradient(2px 2px at 340px 40px, #ffffff, transparent),
    radial-gradient(1px 1px at 420px 140px, #ffffff, transparent),
    radial-gradient(2px 2px at 500px 60px, #ffffff, transparent);
  background-size: 500px 200px;
  animation: twinkle 5s ease-in-out infinite;
}

#why::after {
  background-image:
    radial-gradient(1px 1px at 50px 70px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 180px 20px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 300px 150px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 450px 90px, rgba(255, 255, 255, 0.5), transparent);
  background-size: 400px 150px;
  animation: twinkle 7s ease-in-out infinite reverse;
}

#why .container {
  position: relative;
  z-index: 2;
  /* Ensure content is above parallax text */
}

.parallax-text-bg {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-size: 15vw;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
  user-select: none;
  z-index: 1;
  width: 200%;
  /* Make it wide for horizontal movement */
}

/* Why Hero Section */
.why-hero {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
  min-height: 60vh;
}

.why-hero__content {
  flex: 1;
  text-align: left;
  margin-left: 0;
}

@media (max-width: 992px) {
  .why-hero__content {
    margin-left: 0;
  }
}

.why-hero__video {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.trust-video {
  width: 600px;
  height: 600px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateX(50px);
  animation: slideInFromRight 1s ease-out 1s forwards;
}

@keyframes slideInFromRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.why-hero__title {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 0;
  color: #fff;
}

.why-hero__title-line {
  display: block;
  opacity: 0;
  transform: translateY(100px);
  animation: slideUpFade 1s ease-out forwards;
}

.why-hero__title-line:nth-child(1) {
  animation-delay: 0.2s;
}

.why-hero__title-line:nth-child(2) {
  animation-delay: 0.4s;
}

.why-hero__title-line:nth-child(3) {
  animation-delay: 0.6s;
}

.why-hero__subtitle {
  font-size: 1.5rem;
  color: #c9d1d9;
  margin-top: 30px;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 1s ease-out 0.8s forwards;
  max-width: 600px;
  margin-left: 0;
  margin-right: auto;
  line-height: 1.6;
}

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

/* Why Choose Us Grid */
.horizontal-scroll-container {
  height: 480px;
  /* Adjust height for shorter cards */
  width: 100%;
  /* Use 100% instead of 100vw to prevent overflow */
  position: relative;
  overflow-y: hidden;
  overflow-x: auto;
  /* Allow horizontal scrolling with scrollbar */
  -webkit-overflow-scrolling: touch;
  /* Smooth scrolling on iOS */
  scrollbar-width: thin;
  /* Firefox */
  scrollbar-color: var(--primary) transparent;
  /* Firefox */
}

/* Custom scrollbar for Webkit browsers */
.horizontal-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.horizontal-scroll-container::-webkit-scrollbar-track {
  background: transparent;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
  background-color: var(--primary);
  border-radius: 6px;
}

.horizontal-scroll-track {
  display: flex;
  align-items: center;
  gap: 40px;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  padding: 0 5vw;
  gap: 40px;
}

.why-choose-us__grid {
  display: contents;
  /* Makes the grid a direct child of the flex track */
}

.why-choose-us__card {
  flex-shrink: 0;
  width: 320px;
  /* Narrower width for portrait look */
  height: 420px;
  /* Shorter height for ID card feel */
  background-color: #fff;
  padding: 30px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-choose-us__card h3,
.why-choose-us__card p {
  color: #333;
}

.why-choose-us__card--feature i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.why-choose-us__card--feature h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

/* Card Animation States - Right to Left */
.animate-card {
  opacity: 0;
  transform: translateX(100px) scale(0.9);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-card.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Different Card Colors */
.why-choose-us__card--blue {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.why-choose-us__card--green {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
}

.why-choose-us__card--purple {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: #fff;
}

.why-choose-us__card--orange {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  color: #fff;
}

.why-choose-us__card--red {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  color: #fff;
}

.why-choose-us__card--teal {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  color: #333;
}

.why-choose-us__card--indigo {
  background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
  color: #333;
}

.why-choose-us__card--pink {
  background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
  color: #fff;
}

/* Override icon colors for colored cards */
.why-choose-us__card--blue i,
.why-choose-us__card--green i,
.why-choose-us__card--purple i,
.why-choose-us__card--orange i,
.why-choose-us__card--red i,
.why-choose-us__card--pink i {
  color: rgba(255, 255, 255, 0.9);
}

.why-choose-us__card--teal i,
.why-choose-us__card--indigo i {
  color: rgba(0, 0, 0, 0.7);
}



/* Responsive adjustments */
@media (max-width: 992px) {
  .why-choose-us__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .why-choose-us__card {
    padding: 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
  }

  .why-choose-us__card.is-visible {
    transform: translateY(0);
    opacity: 1;
  }

  /* Add pull-to-refresh indicator style */
  @keyframes pullRefresh {
    0% {
      transform: translateY(-50px) rotate(0deg);
    }

    100% {
      transform: translateY(-50px) rotate(360deg);
    }
  }

  /* Add scroll indicator animation */
  .scroll-down {
    animation: bounce 2s infinite;
  }

  @keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
      transform: translateY(0);
    }

    40% {
      transform: translateY(-10px);
    }

    60% {
      transform: translateY(-5px);
    }
  }

  .why-hero {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    min-height: auto;
  }

  .why-hero__content {
    margin-left: 0;
    text-align: center;
  }

  .why-hero__title {
    font-size: clamp(3rem, 10vw, 6rem);
  }

  .why-hero__subtitle {
    font-size: 1.2rem;
  }

  .trust-video {
    width: 500px;
    height: 500px;
  }
}

@media (max-width: 576px) {
  .why-choose-us__grid {
    grid-template-columns: 1fr;
  }

  .why-hero__title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-left: 0;
  }

  .why-hero__subtitle {
    font-size: 1rem;
  }

  .trust-video {
    width: 400px;
    height: 400px;
  }
}


/* Footer - Modern & Futuristic Design */
.footer {
  padding: 100px 0 0;
  background: linear-gradient(180deg, #000000 0%, #0a0e1f 50%, #000000 100%);
  position: relative;
  overflow: hidden;
  color: #fff;
  border-top: 1px solid rgba(88, 166, 255, 0.2);
}

/* Animated glow effect */
.footer__glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 30%, rgba(88, 166, 255, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(163, 113, 247, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(88, 166, 255, 0.08) 0%, transparent 50%);
  animation: pulseGlow 10s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulseGlow {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(1) rotate(0deg);
  }

  33% {
    opacity: 0.7;
    transform: scale(1.05) rotate(2deg);
  }

  66% {
    opacity: 0.5;
    transform: scale(0.98) rotate(-2deg);
  }
}

/* Grid background pattern - Enhanced futuristic grid */
.footer__grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(88, 166, 255, 0.05) 2px, transparent 2px),
    linear-gradient(90deg, rgba(88, 166, 255, 0.05) 2px, transparent 2px),
    linear-gradient(rgba(163, 113, 247, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163, 113, 247, 0.03) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  animation: gridMove 20s linear infinite;
  opacity: 0.6;
  pointer-events: none;
}

@keyframes gridMove {
  0% {
    background-position: 0 0, 0 0, 0 0, 0 0;
  }

  100% {
    background-position: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  }
}

.footer__inner {
  position: relative;
  z-index: 1;
}

/* Brand section - Enhanced with glow */
.footer__brand {
  text-align: center;
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 2px solid transparent;
  background: linear-gradient(90deg, transparent 0%, rgba(88, 166, 255, 0.3) 50%, transparent 100%) bottom / 100% 2px no-repeat;
  position: relative;
}

.footer__brand::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #58a6ff, transparent);
  box-shadow: 0 0 20px rgba(88, 166, 255, 0.8), 0 0 40px rgba(88, 166, 255, 0.4);
  animation: brandGlow 3s ease-in-out infinite;
}

@keyframes brandGlow {

  0%,
  100% {
    opacity: 0.6;
    width: 200px;
  }

  50% {
    opacity: 1;
    width: 300px;
  }
}

.footer__logo {
  display: inline-block;
  margin-bottom: 20px;
}

.footer__logo img {
  height: 70px;
  width: auto;
  filter: drop-shadow(0 0 25px rgba(88, 166, 255, 0.6)) drop-shadow(0 0 50px rgba(163, 113, 247, 0.3));
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

.footer__logo img:hover {
  transform: scale(1.1) translateY(-5px);
  filter: drop-shadow(0 0 40px rgba(88, 166, 255, 1)) drop-shadow(0 0 80px rgba(163, 113, 247, 0.6));
  animation: none;
}

.footer__tagline {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 650px;
  margin: 0 auto 30px;
  line-height: 1.7;
  font-weight: 300;
  text-shadow: 0 0 20px rgba(88, 166, 255, 0.2);
  letter-spacing: 0.3px;
}

/* Footer grid */
.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin-bottom: 60px;
}

.footer__col {
  position: relative;
}

.footer__title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  text-shadow: 0 0 15px rgba(88, 166, 255, 0.4);
}

.footer__title-icon {
  font-size: 26px;
  filter: drop-shadow(0 0 15px rgba(88, 166, 255, 0.8)) drop-shadow(0 0 30px rgba(88, 166, 255, 0.4));
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.footer__title::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #58a6ff 0%, #a371f7 100%);
  box-shadow: 0 0 15px rgba(88, 166, 255, 0.8), 0 0 30px rgba(163, 113, 247, 0.4);
  border-radius: 2px;
  animation: underlineGlow 2s ease-in-out infinite;
}

@keyframes underlineGlow {

  0%,
  100% {
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.8), 0 0 30px rgba(163, 113, 247, 0.4);
  }

  50% {
    box-shadow: 0 0 25px rgba(88, 166, 255, 1), 0 0 50px rgba(163, 113, 247, 0.6);
  }
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__links li {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  font-size: 15px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  position: relative;
  letter-spacing: 0.3px;
}

.link-arrow {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  color: #58a6ff;
}

.footer__links a:hover {
  color: #58a6ff;
  transform: translateX(8px);
  text-shadow: 0 0 15px rgba(88, 166, 255, 0.8), 0 0 30px rgba(88, 166, 255, 0.4);
}

.footer__links a:hover .link-arrow {
  opacity: 1;
  transform: translateX(0);
}

.footer__address {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.6;
}

.footer__address i {
  color: #58a6ff;
  margin-top: 4px;
  font-size: 16px;
}

.footer__links a i {
  color: #58a6ff;
  font-size: 14px;
  transition: transform 0.3s ease;
}

.footer__links a:hover i {
  transform: scale(1.2);
}

/* Footer bar - Enhanced with gradient border */
.footer__bar {
  border-top: 2px solid transparent;
  background: linear-gradient(90deg, transparent 0%, rgba(88, 166, 255, 0.3) 50%, transparent 100%) top / 100% 2px no-repeat;
  padding: 35px 0;
  margin-top: 30px;
  text-align: center;
  position: relative;
}

.footer__bar::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #58a6ff, #a371f7, transparent);
  box-shadow: 0 0 20px rgba(88, 166, 255, 0.6);
  animation: barGlow 4s ease-in-out infinite;
}

@keyframes barGlow {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

.footer__copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin: 0;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(88, 166, 255, 0.2);
  font-weight: 300;
}

.footer__links-inline {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.footer__links-inline a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
}

.footer__links-inline a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #58a6ff;
  transition: width 0.3s ease;
}

.footer__links-inline a:hover {
  color: #58a6ff;
}

.footer__links-inline a:hover::after {
  width: 100%;
}

.footer__links-inline .separator {
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
}

/* Social links - Futuristic style */
.social {
  display: flex;
  gap: 18px;
  margin-top: 30px;
  justify-content: center;
}

.social__link {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.08) 0%, rgba(163, 113, 247, 0.08) 100%);
  color: #58a6ff;
  border-radius: 14px;
  border: 2px solid rgba(88, 166, 255, 0.25);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 22px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(88, 166, 255, 0.15);
}

.social__link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 166, 255, 0.4) 0%, rgba(163, 113, 247, 0.3) 100%);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.social__link::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  padding: 2px;
  background: linear-gradient(135deg, #58a6ff, #a371f7);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.social__link:hover::before {
  width: 150%;
  height: 150%;
}

.social__link:hover::after {
  opacity: 1;
}

.social__link:hover {
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.2) 0%, rgba(163, 113, 247, 0.2) 100%);
  border-color: transparent;
  color: #fff;
  transform: translateY(-8px) scale(1.15) rotate(5deg);
  box-shadow:
    0 15px 40px rgba(88, 166, 255, 0.5),
    0 0 60px rgba(88, 166, 255, 0.3),
    inset 0 0 20px rgba(88, 166, 255, 0.2);
}

.social__link i {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 8px rgba(88, 166, 255, 0.6));
  transition: filter 0.3s ease;
}

.social__link:hover i {
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
  animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: center;
  height: 100%;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.contact-item i {
  font-size: 24px;
  color: var(--primary);
  margin-top: 4px;
  width: 30px;
  text-align: center;
}

.contact-item__title {
  display: block;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 4px;
}

.contact-item a,
.contact-item p {
  color: var(--muted);
  text-decoration: none;
  margin: 0;
  font-size: 15px;
  transition: color 0.3s;
}

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

#partners {
  background-color: #000000;
  padding: 100px 0;
}

#partners .section__title,
#partners .section__subtitle {
  color: #ffffff;
  text-align: center;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  justify-items: center;
  gap: 40px;
  margin-top: 60px;
}

@media (max-width: 992px) {
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .partner-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    justify-items: center;
    gap: 40px;
    margin-top: 60px;
    max-width: 1000px;
    margin: 4rem auto 0;
  }
}

.partner-item {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100px;
}

.partner-item img {
  max-height: 60px;
  max-width: 100%;
  width: auto;
  filter: grayscale(100%) brightness(0.7);
  opacity: 0.8;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.partner-item:hover img {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

.partner-logo-dark {
  filter: brightness(100) grayscale(100%);
  /* Special case for dark logos on dark bg */
}

.partner-item:hover {
  transform: translateY(-8px);
}

.partner-item:hover img {
  transform: scale(1.1);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {

  /* Respect user preference for reduced motion */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .scroller__inner {
    animation: none !important;
    transform: none !important;
  }
}

.partner-item img {
  max-width: 101%;
  max-height: 160px;
  object-fit: contain;
  transition: transform 0.3s var(--ease-default);
}

/* Invert dark logo for visibility */
.partner-logo-dark {
  filter: invert(1) brightness(1.2);
}

/* Body class to prevent scrolling when nav is open */
body.nav-open {
  overflow: hidden;
}

/* Responsive Design System */
/* Extra small devices (phones, 320px and up) */
@media (min-width: 320px) {
  .container {
    width: min(1100px, 96%);
  }
}

/* Small devices (large phones, 480px and up) */
@media (min-width: 480px) {
  .container {
    width: min(1100px, 94%);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .container {
    width: min(1100px, 92%);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .container {
    width: min(1100px, 90%);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    width: min(1100px, 88%);
  }
}

/* ========================================
   LAPTOP OPTIMIZATION (14-inch screens)
   1366x768 to 1920x1080
   ======================================== */
@media (min-width: 1024px) and (max-width: 1440px) {

  /* Hero Section */
  .hero {
    min-height: 100vh; /* Increased to eliminate white space */
    padding: 100px 0 60px; /* Adjusted padding for better vertical balance */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero__company-name {
    font-size: 14px;
    letter-spacing: 3px;
    margin-bottom: 10px; /* Reduced from 16px */
  }

  .hero__title {
    font-size: clamp(38px, 4.5vw, 52px);
    line-height: 1.15;
    margin-bottom: 16px; /* Reduced from 24px */
  }

  .hero__title--main {
    font-size: clamp(38px, 4.5vw, 52px);
  }

  .hero__title--small {
    font-size: clamp(32px, 3.8vw, 44px);
  }

  .hero__subtitle {
    font-size: clamp(16px, 1.4vw, 18px);
    max-width: 700px;
    margin: 0 auto 24px; /* Reduced from 32px */
    line-height: 1.7;
  }

  .hero__actions {
    gap: 16px;
    justify-content: center;
  }

  .hero__actions .btn {
    padding: 14px 32px;
    font-size: 15px;
    min-width: 180px;
  }

  /* Grid Layouts */
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* Card Styling */
  .card {
    padding: 28px 24px;
    border-radius: var(--radius-lg);
  }

  .card__header {
    font-size: clamp(20px, 2vw, 24px);
    margin-bottom: 16px;
    padding-bottom: 14px;
  }

  .card__body {
    font-size: 15px;
    line-height: 1.7;
  }

  .card__body p {
    font-size: 15px;
    margin-bottom: 14px;
  }

  /* Discover Us Section - Enhanced for 14-inch screens */
  .discover-us__grid {
    gap: 24px;
    grid-template-columns: 1.8fr 1fr;
  }

  .discover-us__grid--reversed {
    grid-template-columns: 1fr 1.6fr;
  }

  .discover-us__video-container {
    height: 300px;
    border-radius: var(--radius-lg);
  }

  .discover-us__video {
    height: 100%;
    object-fit: cover;
  }

  .discover-us__mission {
    padding: 26px 24px;
  }

  .discover-us__mission-title {
    font-size: clamp(20px, 2vw, 24px);
    margin-bottom: 12px;
    line-height: 1.3;
  }

  .discover-us__mission-text {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 12px;
  }

  /* Offerings Section - Enhanced for 14-inch screens */
  #offerings .grid--3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }

  #offerings .card {
    padding: 24px 20px;
    min-height: 380px;
  }

  #offerings .card__header {
    font-size: 18px;
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  #offerings .card__body {
    font-size: 14px;
  }

  #offerings .card__body p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 14px;
  }

  #offerings .list--check li {
    font-size: 13px;
    padding: 9px 0;
    padding-left: 26px;
  }

  #offerings .list--check li::before {
    font-size: 12px;
  }

  /* Software Solutions - Enhanced for 14-inch screens */
  .animated-cards__container {
    min-height: 480px;
  }

  .animated-card {
    width: min(400px, 82vw);
    height: min(500px, 62vh);
  }

  .animated-card__front {
    font-size: 4.2rem;
  }

  .animated-card__front i {
    font-size: 4.2rem;
  }

  .animated-card__back {
    padding: 24px 20px;
  }

  .animated-card__back .card__header {
    font-size: 1.15rem;
    margin-bottom: 12px;
  }

  .animated-card__back .card__body p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
  }

  .animated-card__back .list--check li {
    font-size: 13px;
    padding: 9px 0;
  }

  /* Timeline Section */
  .timeline-container {
    max-width: 900px;
    margin: 0 auto;
  }

  .timeline-step__number {
    font-size: 3rem;
  }

  .timeline-step__icon {
    font-size: 2rem;
  }

  .timeline-step__title {
    font-size: 0.95rem;
  }

  .timeline-content__title {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }

  .timeline-content p {
    font-size: 15px;
    line-height: 1.7;
  }

  /* Products Section */
  #products-solutions {
    padding-top: 260px;
  }

  .rocket-video-container {
    top: -250px;
  }

  .rocket-video {
    width: 420px;
    height: 520px;
  }

  .project.card {
    margin-bottom: 24px;
  }

  .project__video {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .card__content-wrapper {
    padding: 20px 18px;
  }

  #products-solutions .card__body p {
    font-size: 14px;
    line-height: 1.6;
  }

  #products-solutions .list--check li {
    font-size: 13px;
    padding-left: 20px;
  }

  .tags li {
    font-size: 12px;
    padding: 5px 11px;
  }

  /* Why Choose Us Section */
  .why-hero {
    gap: 48px;
    margin-bottom: 60px;
    min-height: 50vh;
  }

  .why-hero__title {
    font-size: clamp(3.5rem, 10vw, 6.5rem);
  }

  .why-hero__subtitle {
    font-size: 1.3rem;
    margin-top: 24px;
    max-width: 550px;
  }

  .trust-video {
    width: 500px;
    height: 500px;
  }

  .horizontal-scroll-container {
    height: 440px;
  }

  .why-choose-us__card {
    width: 300px;
    height: 400px;
    padding: 26px;
  }

  .why-choose-us__card--feature i {
    font-size: 2.3rem;
    margin-bottom: 12px;
  }

  .why-choose-us__card--feature h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
  }

  .why-choose-us__card--feature p {
    font-size: 14px;
    line-height: 1.6;
  }

  /* Partners Section */
  .partner-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 48px;
  }

  .partner-item {
    height: 90px;
  }

  .partner-item img {
    max-height: 55px;
  }

  /* CTA Section */
  .cta__title {
    font-size: clamp(32px, 3.5vw, 40px);
    margin-bottom: 18px;
  }

  .cta__subtitle {
    font-size: 17px;
    max-width: 750px;
  }

  .cta__text {
    font-size: 15px;
    max-width: 750px;
    margin-bottom: 36px;
  }

  .contact-cards {
    gap: 24px;
  }

  .contact-card {
    padding: 28px 24px;
  }

  .contact-card__icon {
    font-size: 36px;
    margin-bottom: 16px;
  }

  .contact-card__title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .contact-card__text {
    font-size: 15px;
  }

  /* Contact Form */
  #contact {
    padding: 100px 0 90px;
  }

  .contact-grid {
    gap: 36px;
  }

  .field input,
  .field textarea {
    padding: 14px;
    font-size: 15px;
  }

  .field textarea {
    min-height: 140px;
  }

  #contact .btn--primary {
    height: 50px;
    font-size: 16px;
  }

  .header {
    height: 76px;
  }

  .header__inner {
    height: 76px;
    padding: 0 24px;
  }

  .header .brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
  }

  .header .brand__logo--img img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .nav {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
  }

  .header__actions {
    flex: 0 0 auto;
  }

  /* Navigation - Enhanced for 14-inch screens */
  .nav__list {
    gap: 14px;
  }

  .nav__link {
    font-size: 12px;
    padding: 8px 12px;
    letter-spacing: 0.7px;
  }

  .nav__item:not(.nav__item--logo):not(.nav__theme) {
    padding: 0;
  }

  /* Buttons */
  .btn {
    padding: 12px 28px;
    font-size: 15px;
    min-width: 140px;
    height: 48px;
  }

  .btn--primary {
    padding: 13px 32px;
  }

  .btn--ghost {
    padding: 12px 28px;
  }

  /* List Items */
  .list--check li {
    font-size: 14px;
    padding: 11px 0;
    padding-left: 28px;
  }

  .list--check li::before {
    font-size: 13px;
  }
}

/* ========================================
   SPECIFIC 1366x768 OPTIMIZATION
   Common 14-inch laptop resolution
   ======================================== */
@media (min-width: 1024px) and (max-width: 1366px) and (max-height: 800px) {

  /* Reduce vertical spacing for shorter screens */
  .section {
    padding: 70px 0;
  }

  .hero {
    min-height: 100vh; /* Increased to eliminate white space */
    padding: 90px 0 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero__title {
    font-size: clamp(32px, 4vw, 42px);
    margin-bottom: 16px;
  }

  .hero__subtitle {
    font-size: 15px;
    margin-bottom: 24px;
  }

  /* Compact cards for better fit */
  .card {
    padding: 24px 20px;
  }

  .card__header {
    font-size: 20px;
    margin-bottom: 14px;
  }

  /* Navigation - Compact for 1366x768 */
  .nav__list {
    gap: 12px;
  }

  .nav__link {
    font-size: 12px;
    padding: 5px 8px;
  }

  .nav__item:not(.nav__item--logo):not(.nav__theme) {
    padding: 0 8px;
  }

  /* Discover Us - Compact for 1366x768 */
  .discover-us__grid {
    gap: 24px;
    grid-template-columns: 1fr 1fr; /* Balanced 1:1 split for better fit */
  }

  .discover-us__grid--reversed {
    grid-template-columns: 1fr 1fr; /* Balanced 1:1 split */
    margin-top: 24px !important;
  }

  .discover-us__video-container {
    height: 300px; /* Increased height for better video aspect ratio */
    flex: unset;
  }

  /* Specific fix for Our Vision video to prevent cropping (Head/Foot hidden) */
  .discover-us__grid--reversed .discover-us__video {
    object-fit: contain;
    background: #ffffff; /* White background as requested */
  }

  .discover-us__mission {
    padding: 24px 20px;
    flex: unset; /* Remove flex property */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .discover-us__mission-title {
    font-size: 19px;
    margin-bottom: 12px;
  }

  .discover-us__mission-text {
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
  }

  /* Offerings - Compact for 1366x768 */
  #offerings .grid--3 {
    gap: 18px;
  }

  #offerings .card {
    padding: 22px 18px;
    min-height: 360px;
  }

  #offerings .card__header {
    font-size: 17px;
    margin-bottom: 10px;
  }

  #offerings .card__body p {
    font-size: 13px;
    margin-bottom: 12px;
  }

  #offerings .list--check li {
    font-size: 12px;
    padding: 8px 0;
    padding-left: 26px;
  }

  #offerings .list--check li::before {
    left: 0;
    top: 0.15em;
  }

  /* Software Solutions - Compact for 1366x768 */
  .animated-cards__container {
    min-height: 520px; /* Increased container height */
  }

  .animated-card {
    width: 350px; /* Slightly narrower to prevent edge overlap */
    height: 500px; /* Increased fixed height to fit content */
  }

  .animated-card__back {
    padding: 20px 16px;
    overflow-y: auto; /* Allow scrolling if content overflows */
    scrollbar-width: thin; /* Firefox scrollbar */
  }

  .animated-card__back .card__header {
    font-size: 1.1rem;
  }

  .animated-card__back .card__body p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 8px; /* Tighter margin */
  }

  .animated-card__back .list--check li {
    font-size: 12px;
    padding: 6px 0; /* Tighter padding */
  }

  /* Reduce video heights */
  .project__video {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .rocket-video {
    width: 380px;
    height: 480px;
  }

  .rocket-video-container {
    top: -240px;
  }

  #products-solutions {
    padding-top: 240px;
  }

  /* Compact why section */
  .why-hero {
    min-height: 45vh;
    margin-bottom: 50px;
  }

  .why-hero__title {
    font-size: clamp(3rem, 9vw, 5.5rem);
  }

  .trust-video {
    width: 450px;
    height: 450px;
  }

  .horizontal-scroll-container {
    height: 400px;
  }

  .why-choose-us__card {
    width: 280px;
    height: 380px;
    padding: 24px;
  }

  /* Compact timeline */
  .timeline-step__number {
    font-size: 2.5rem;
  }

  .timeline-content__title {
    font-size: 1.3rem;
  }

  /* Compact CTA */
  .cta__title {
    font-size: 34px;
  }

  #cta {
    padding: 70px 0 90px;
  }

  /* Compact contact */
  #contact {
    padding: 90px 0 80px;
  }
}

/* Project Card Responsive */
@media (max-width: 768px) {
  .project.card {
    margin-bottom: 35px;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  }

  .project__video {
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
  }

  .card__content-wrapper {
    padding: 24px 20px;
    border-radius: 0 0 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Add visual indicator for tappable videos */
  .project__video::after {
    content: '\f144';
    /* Play icon */
    font-family: 'Font Awesome 5 Free';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
  }

  .project.card:active .project__video::after {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 1;
  }
}

@media (max-width: 576px) {
  .project.card {
    margin-bottom: 25px;
    display: flex;
    border-radius: 12px;
  }

  .project__video {
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px 12px 0 0;
  }

  .card__content-wrapper {
    padding: 20px 16px;
    border-radius: 0 0 12px 12px;
  }

  /* Improve typography in project cards */
  .project .card__header {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .project .list--check li {
    font-size: 14px;
    padding: 8px 0;
  }

  .project .tags li {
    font-size: 12px;
    padding: 4px 10px;
  }
}

/* Mobile Scroll Indicator */
.scroll-indicator {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 99;
  opacity: 0.8;
  animation: fadeInUp 0.5s ease-out, bounce 2s infinite 1s;
  transition: opacity 0.3s ease;
}

.scroll-indicator span {
  display: block;
  width: 8px;
  height: 8px;
  margin: 2px 0;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.scroll-indicator.hide {
  opacity: 0;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

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

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Button Ripple Effect */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
  /* Ensure button content stays above ripple */
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.7);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Enhanced Mobile Animations and Transitions */
@media (max-width: 768px) {

  /* Optimize animations for better performance */
  .animated-card__inner {
    transition: transform 0.5s ease-out;
  }

  /* Add subtle entrance animations for sections */
  .section {
    /* Start with normal opacity to avoid flash of invisible content */
    opacity: 1;
    will-change: transform, opacity;
  }

  /* Only animate sections when they have the .animate-section class */
  .section.animate-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
  }

  /* Stagger section animations */
  .section.animate-section:nth-of-type(2) {
    animation-delay: 0.1s;
  }

  .section.animate-section:nth-of-type(3) {
    animation-delay: 0.2s;
  }

  .section.animate-section:nth-of-type(4) {
    animation-delay: 0.3s;
  }

  .section.animate-section:nth-of-type(5) {
    animation-delay: 0.4s;
  }

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

  /* Add tap feedback for interactive elements */
  .card,
  .btn,
  .nav__link,
  [role="button"] {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .card:active,
  .btn:active,
  .nav__link:active,
  [role="button"]:active {
    transform: scale(0.98);
  }

  /* Add subtle hover effect for cards */
  .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  /* Add smooth transitions for section titles */
  .section__title {
    position: relative;
  }

  .section__title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary);
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 2px;
  }

  .section__title:hover::after {
    width: 60px;
  }

  .animated-card {
    width: min(400px, 95vw);
    height: min(500px, 70vh);
  }

  .animated-card__front i {
    font-size: 3rem;
  }

  .project.card:hover {
    transform: translateY(-5px);
    /* Reduce hover effect */
  }

  .btn::before {
    display: none;
    /* Remove complex button animations */
  }
}

/* Touch-friendly tap targets for mobile */
@media (max-width: 768px) {

  button,
  [role="button"],
  .btn,
  input[type="submit"],
  input[type="button"],
  select,
  a.nav__link {
    min-height: 44px;
    /* Apple's recommended minimum tap target size */
  }

  /* Improve tap highlight color */
  a:active,
  button:active,
  [role="button"]:active {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }

  /* Fix iOS input styling */
  input,
  textarea,
  select {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 8px;
  }
}

/* Responsive images and videos */
img,
video,
svg {
  max-width: 100%;
  height: auto;
}

/* Responsive video heights */
@media (max-width: 768px) {
  .discover-us__video {
    height: 300px;
  }

  .project__video {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 576px) {
  .discover-us__video {
    height: 250px;
  }

  .project__video {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

/* Timeline Responsive */
@media (max-width: 768px) {
  .timeline-container {
    padding: 3rem 0;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding: 1rem 0 1rem 50px;
    margin-bottom: 20px;
  }

  .timeline-line-wrapper {
    left: 20px;
  }

  .timeline-item::after {
    left: 11px !important;
  }

  .timeline-step__number {
    font-size: 2.5rem;
  }

  .timeline-step__icon {
    font-size: 1.5rem;
  }

  .timeline-content__title {
    font-size: 1.25rem;
  }
}

@media (max-width: 576px) {
  .timeline-container {
    padding: 2rem 0;
  }

  .timeline-item {
    padding: 1rem 0 1rem 40px;
  }

  .timeline-step__number {
    font-size: 2rem;
  }

  .timeline-content__title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .timeline-content p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

/* Contact Form Responsive */
@media (max-width: 992px) {
  .contact-form-wrapper {
    max-width: 90%;
    padding: 40px 30px;
  }
}

@media (max-width: 768px) {
  .contact-form-wrapper {
    max-width: 100%;
    padding: 30px 20px;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  }

  /* Improve form inputs on mobile */
  input,
  textarea,
  select {
    font-size: 16px !important;
    /* Prevent iOS zoom on focus */
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    -webkit-appearance: none;
    /* Remove default styling on iOS */
    appearance: none;
  }

  /* Add focus states for better feedback */
  input:focus,
  textarea:focus,
  select:focus {
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.3);
    outline: none;
    transition: box-shadow 0.2s ease;
  }

  /* Improve form labels */
  label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
  }

  /* Improve submit button */
  input[type="submit"],
  button[type="submit"] {
    width: 100%;
    height: 54px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
  }

  input[type="submit"]:active,
  button[type="submit"]:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
}

@media (max-width: 480px) {
  .contact-form-wrapper {
    padding: 25px 15px;
    max-width: 95%;
    border-radius: 12px;
  }

  /* Further optimize form for very small screens */
  .form-row {
    gap: 12px;
  }

  /* Larger touch targets for small screens */
  input,
  textarea,
  select {
    padding: 14px 16px;
    margin-bottom: 14px;
  }

  /* Improve spacing between form elements */
  .form-group {
    margin-bottom: 16px;
  }

  /* Make placeholder text more visible */
  ::placeholder {
    opacity: 0.7;
  }

  .btn--submit {
    width: 100%;
  }
}

/* Footer responsive styles */
@media (max-width: 992px) {
  .footer {
    padding: 80px 0 0;
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .footer__brand {
    margin-bottom: 50px;
  }

  .footer__col:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 60px 0 0;
  }

  .footer__brand {
    margin-bottom: 50px;
    padding-bottom: 30px;
  }

  .footer__logo img {
    height: 50px;
  }

  .footer__tagline {
    font-size: 14px;
    padding: 0 20px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
  }

  .footer__col {
    text-align: center;
  }

  .footer__title {
    font-size: 18px;
    justify-content: center;
    margin-bottom: 20px;
  }

  .footer__title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer__links {
    align-items: center;
  }

  .footer__links a {
    justify-content: center;
  }

  .footer__address {
    justify-content: center;
    text-align: center;
  }

  .social {
    justify-content: center;
  }

  .form__body {
    gap: 15px;
  }

  .form-row {
    gap: 15px;
  }
}

@media (max-width: 576px) {
  .footer {
    padding: 50px 0 0;
  }

  .footer__brand {
    margin-bottom: 40px;
    padding-bottom: 25px;
  }

  .footer__logo img {
    height: 45px;
  }

  .footer__tagline {
    font-size: 13px;
  }

  .footer__grid {
    gap: 35px;
    margin-bottom: 35px;
  }

  .footer__title {
    font-size: 16px;
    letter-spacing: 1px;
  }

  .footer__title-icon {
    font-size: 20px;
  }

  .footer__links {
    gap: 12px;
  }

  .footer__links li,
  .footer__links a {
    font-size: 14px;
  }

  .social__link {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .footer__bar {
    padding: 25px 0;
  }

  .footer__copyright,
  .footer__links-inline a {
    font-size: 13px;
  }
}

/* Fix for iOS momentum scrolling */
@supports (-webkit-overflow-scrolling: touch) {
  body {
    -webkit-overflow-scrolling: touch;
  }

  .nav {
    -webkit-overflow-scrolling: touch;
  }
}

/* Enhanced Mobile Navigation */
@media (max-width: 900px) {

  /* Mobile header adjustments */
  .header {
    height: 70px;
  }

  /* Mobile CTA adjustments */
  #cta {
    padding: 80px 0;
  }

  #cta .section__title {
    font-size: clamp(28px, 6vw, 36px);
    text-align: center;
  }

  #cta .section__subtitle {
    text-align: center;
    margin: 0 auto 30px;
  }

  #cta .grid--2 {
    gap: 40px;
  }

  /* Mobile Contact adjustments */
  #contact {
    padding: 80px 0 60px;
  }

  #contact .contact-info {
    margin-bottom: 40px;
  }

  .contact-item i {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .header__inner {
    justify-content: space-between;
    padding: 0 20px;
  }

  .nav__theme {
    position: absolute;
    bottom: 40px;
    left: 30px;
    margin: 0;
    padding: 0;
  }

  .nav__item--logo {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0;
  }

  /* Reduce logo size on smaller screens */
  .brand__logo--img,
  .brand__logo--img img {
    width: 50px;
    height: 50px;
  }

  .brand__logo--img::after {
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
  }

  /* Remove this duplicate grid adjustment as we've added more specific ones above */

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer__title {
    margin-bottom: 15px;
  }

  .footer {
    padding: 50px 0 0;
  }

  .social {
    justify-content: center;
    margin-bottom: 20px;
  }
}

/* Tablet breakpoint: slightly smaller than desktop to balance header */
@media (max-width: 1200px) and (min-width: 901px) {
  .nav__list {
    gap: 12px;
  }

  .nav__link {
    font-size: 0.85rem;
    padding: 4px 6px;
  }

  .btn--header-cta {
    padding: 8px 14px;
    font-size: 13px;
  }

  #contact .contact-info {
    margin-bottom: 40px;
  }

  .header {
    height: 90px;
  }

  .brand__logo--img img {
    width: 44px;
    height: 44px;
  }

  .brand__logo--img::after {
    top: -7px;
    left: -7px;
    right: -7px;
    bottom: -7px;
  }

  .nav__item:not(.nav__item--logo):not(.nav__theme) {
    padding: 0 16px;
  }

  .nav__item--logo {
    padding: 0 32px;
  }
}

/* Medium width: hide less-critical links to keep CTA visible */
@media (max-width: 1280px) and (min-width: 769px) {
  .nav__item--md-hide {
    display: none;
  }
}

/* Filter Controls */
.filter-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--elev-1);
  color: var(--muted);
  border: 1px solid var(--card-border);
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
}

.filter-btn:hover {
  background: var(--elev-2);
  color: var(--text);
  border-color: var(--primary);
}

.filter-btn.is-active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px var(--primary-glow);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 25px;
  /* Position slightly higher */
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 99;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* --- Full-Screen Modal --- */
.modal {
  display: none;
  /* Hidden by default */
}

.modal.is-open {
  display: block;
}

.modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.modal__container {
  background-color: rgba(30, 41, 59, 0.9);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  color: #fff;
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.modal__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.modal__close {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 2rem;
  color: #fff;
  position: relative;
  width: 30px;
  height: 30px;
}

.modal__close::before,
.modal__close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 2px;
  background-color: #fff;
  transition: transform 0.3s ease;
}

.modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.modal__close:hover::before,
.modal__close:hover::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.modal__content p,
.modal__content ul {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
}

.modal__content ul {
  list-style: none;
  padding-left: 0;
}

.modal__content li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 0.5rem;
}

.modal__content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* Animations */
.modal[aria-hidden="false"] .modal__overlay {
  animation: mm-fadeIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.modal[aria-hidden="false"] .modal__container {
  animation: mm-slideIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.modal[aria-hidden="true"] .modal__overlay {
  animation: mm-fadeOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.modal[aria-hidden="true"] .modal__container {
  animation: mm-slideOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

@keyframes mm-fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes mm-fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes mm-slideIn {
  from {
    transform: translateY(15%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes mm-slideOut {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(15%);
  }
}

/* --- Timeline Section --- */
#how {
  background-color: #000000;
  overflow: hidden;
  /* Prevent horizontal scroll */
}

#how .section__title,
#how .section__subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.timeline-container {
  position: relative;
  padding: 4rem 0;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-line-wrapper {
  position: absolute;
  left: 50%;
  /* Centered */
  top: 0;
  bottom: 0;
  width: 3px;
  transform: translateX(-50%);
}

.timeline-line {
  width: 100%;
  height: 100%;
  background-color: var(--primary);
  transform: scaleY(0);
  transform-origin: top;
}

.timeline-progress-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
  transform: translate(-6.5px, -8px);
  /* Center it on the line */
  box-shadow: 0 0 15px var(--primary), 0 0 30px var(--primary);
  z-index: 5;
}

@keyframes pulse-icon {

  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }

  50% {
    transform: scale(1.15);
    filter: brightness(1.5);
  }
}

.timeline-item.is-active .timeline-step__icon {
  animation: pulse-icon 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1rem 40px;
  margin-bottom: 2rem;
  box-sizing: border-box;
}

/* Odd items on the left */
.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

/* Even items on the right */
.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

/* Circle on the timeline */
.timeline-item::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--bg);
  border: 4px solid var(--primary);
  top: 25px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(even)::after {
  left: -10px;
}

.timeline-step {
  font-family: "Russo One", sans-serif;
}

.timeline-step__number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  /* Blue number */
  line-height: 1;
}

.timeline-step__title {
  font-size: 1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
}

.timeline-step__icon {
  font-size: 2rem;
  color: var(--primary);
  margin-top: 1rem;
  display: inline-block;
  /* Allows transforms and animations */
  transition: transform 0.3s ease;
}

.timeline-content {
  margin-top: 1.5rem;
}

.timeline-content__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-strong);
  /* White title */
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.timeline-content p {
  color: var(--muted);
  /* Lighter gray for paragraph */
  line-height: 1.7;
  margin: 0;
}

/* Services Selection */
.services-selection {
  margin-bottom: 30px;
}

.services-selection p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
  margin: 0 0 15px 0;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-tag {
  display: inline-block;
  position: relative;
}

.service-tag input[type="checkbox"] {
  display: none;
  /* Hide the checkbox */
}

.service-tag span {
  display: inline-block;
  background: var(--elev-2);
  color: var(--muted);
  padding: 10px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--card-border);
}

.service-tag input[type="checkbox"]:checked+span {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

/* Services Selection */
.services-selection {
  margin-bottom: 30px;
}

.services-selection p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
  margin: 0 0 15px 0;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-tag {
  display: inline-block;
  position: relative;
}

.service-tag input[type="checkbox"] {
  display: none;
  /* Hide the checkbox */
}

.service-tag span {
  display: inline-block;
  background: var(--elev-2);
  color: var(--muted);
  padding: 10px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--card-border);
}

.service-tag input[type="checkbox"]:checked+span {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

/* ========================================
   REDESIGNED CONTACT FORM - MODERN UX
   ======================================== */

.contact-form-wrapper {
  max-width: 900px;
  margin: 0 auto 60px auto;
  padding: 50px 45px;
  width: 100%;
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 24px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
}

/* Decorative gradient top bar */
.contact-form-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #58a6ff, #a371f7, #58a6ff);
  background-size: 200% 100%;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {

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

  50% {
    background-position: 100% 50%;
  }
}

/* Decorative background element */
.contact-form-wrapper::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(88, 166, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.contact-form-simple {
  position: relative;
  z-index: 1;
}

.contact-intro p,
.services-selection>p {
  color: #000000;
}

.inline-input {
  color: #000000;
  border-bottom-color: #cccccc;
}

.inline-input::placeholder {
  color: #6c757d;
}

.project-details textarea {
  background: #f8f9fa;
  color: #000000;
  border-color: #dee2e6;
}

.service-tag span {
  background: #f8f9fa;
  color: #000000;
  border-color: #dee2e6;
}

.service-tag input[type="checkbox"]:checked+span {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.contact-form-simple {
  width: 100%;
}

.contact-intro {
  margin-bottom: 30px;
}

@media (max-width: 576px) {
  .contact-intro {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

.contact-intro p {
  font-size: 18px;
  line-height: 1.8;
  color: #1a202c;
  margin: 0;
  font-weight: 500;
}

@media (max-width: 768px) {
  .contact-intro p {
    font-size: 16px;
    line-height: 1.6;
  }
}

@media (max-width: 576px) {
  .contact-intro p {
    font-size: 15px;
  }
}

.inline-input {
  display: inline;
  background: #f0f4f8;
  border: none;
  border-bottom: 3px solid #58a6ff;
  padding: 8px 14px;
  font-size: 17px;
  color: #1a202c;
  font-weight: 600;
  margin: 0 6px;
  min-width: 140px;
  border-radius: 8px 8px 0 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
  .inline-input {
    font-size: 16px;
    min-width: 100px;
    padding: 3px 6px;
  }
}

@media (max-width: 576px) {
  .inline-input {
    display: block;
    width: 100%;
    margin: 8px 0;
    font-size: 15px;
    padding: 8px 12px;
    border: 1px solid var(--primary);
    border-radius: 8px;
  }
}

.inline-input:focus {
  outline: none;
  border-bottom-color: #a371f7;
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow:
    0 4px 12px rgba(88, 166, 255, 0.15),
    0 0 0 3px rgba(88, 166, 255, 0.1);
}

.inline-input::placeholder {
  color: #94a3b8;
  font-style: normal;
  font-weight: 400;
}

.project-details {
  margin-bottom: 30px;
}

.project-details textarea {
  width: 100%;
  padding: 20px 24px;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
  color: #1a202c;
  font-size: 16px;
  line-height: 1.7;
  resize: vertical;
  min-height: 140px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.project-details textarea:focus {
  outline: none;
  border-color: #58a6ff;
  background: #ffffff;
  box-shadow:
    0 0 0 4px rgba(88, 166, 255, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.project-details textarea::placeholder {
  color: #94a3b8;
  font-style: normal;
}

.services-selection {
  margin-bottom: 40px;
}

.services-selection>p {
  font-size: 17px;
  color: #1a202c;
  margin-bottom: 24px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.services-selection>p i {
  color: #58a6ff;
  font-size: 20px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

@media (max-width: 576px) {
  .service-tags {
    gap: 8px;
  }

  .service-tag span {
    padding: 10px 16px;
    font-size: 14px;
    min-width: 100px;
  }
}

.service-tag {
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  transform: translateY(0);
  margin: 4px;
}

.service-tag input[type="checkbox"] {
  display: none;
}

.service-tag span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 12px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  color: #334155;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  min-width: 140px;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}

.service-tag span::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

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

.service-tag span i {
  margin-right: 10px;
  font-size: 16px;
  color: #58a6ff;
  transition: all 0.25s ease;
}

.service-tag:hover span i {
  transform: scale(1.15) rotate(5deg);
  color: #58a6ff;
}

.service-tag input[type="checkbox"]:checked+span {
  background: linear-gradient(135deg, #58a6ff 0%, #a371f7 100%);
  border-color: #58a6ff;
  color: white;
  box-shadow:
    0 8px 24px rgba(88, 166, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-2px) scale(1.02);
}

.service-tag input[type="checkbox"]:checked+span i {
  color: white;
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.service-tag:hover span {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(88, 166, 255, 0.2);
  border-color: #58a6ff;
  background: #ffffff;
}

.service-tag input[type="checkbox"]:checked+span {
  background: linear-gradient(145deg, var(--primary), var(--primary-dark, var(--primary)));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 15px rgba(var(--primary-rgb), 0.3);
  font-weight: 600;
  transform: translateY(-2px);
  animation: tagSelected 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes tagSelected {
  0% {
    transform: scale(0.9);
  }

  50% {
    transform: scale(1.05) translateY(-4px);
  }

  100% {
    transform: scale(1) translateY(-2px);
  }
}

.service-tag input[type="checkbox"]:checked+span::before {
  content: '✓';
  margin-right: 6px;
  font-weight: bold;
  display: inline-block;
  animation: checkmark 0.3s ease-in-out;
}

@keyframes checkmark {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  70% {
    transform: scale(1.2);
    opacity: 1;
  }

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

.form-submit {
  text-align: center;
}

.btn-send-request {
  background: linear-gradient(135deg, #58a6ff 0%, #a371f7 100%);
  color: white;
  border: none;
  padding: 18px 48px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 8px 24px rgba(88, 166, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  display: block;
  margin: 0 auto;
}

.btn-send-request::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.btn-send-request:hover::before {
  left: 100%;
}

.btn-send-request:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 12px 32px rgba(88, 166, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-send-request:active {
  transform: translateY(-2px) scale(0.98);
  box-shadow:
    0 6px 20px rgba(88, 166, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .btn-send-request {
    width: 100%;
    padding: 14px 32px;
    font-size: 15px;
  }
}

@media (max-width: 576px) {
  .btn-send-request {
    padding: 12px 24px;
    font-size: 14px;
  }
}

.contact-map-section {
  margin-top: 60px;
}

.contact-map-section .map-container {
  width: 100%;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-map-section .map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive styles for new contact form */
@media (max-width: 768px) {

  /* Service tags mobile styling */
  .service-tags {
    gap: 6px;
  }

  .service-tag {
    margin: 3px;
    width: calc(50% - 6px);
  }

  .service-tag span {
    padding: 10px 12px;
    font-size: 13px;
    min-width: 0;
    width: 100%;
    justify-content: flex-start;
  }

  .service-tag span i {
    margin-right: 6px;
    font-size: 12px;
  }

  .services-selection p {
    font-size: 15px;
    margin-bottom: 12px;
  }

  /* ===== Why Choose Us Mobile Fix ===== */
  .horizontal-scroll-container {
    height: auto !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 20px 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    position: static !important;
  }

  .horizontal-scroll-track {
    position: static !important;
    flex-direction: column !important;
    padding: 0 !important;
    gap: 20px !important;
    height: auto !important;
    width: 100% !important;
    transform: none !important;
    display: flex !important;
  }

  .why-choose-us__card {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 180px !important;
    padding: 28px 24px !important;
    margin: 0 !important;
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  }

  .why-choose-us__card--feature i {
    font-size: 2.5rem !important;
    margin-bottom: 16px !important;
    display: block !important;
  }

  .why-choose-us__card--feature h3 {
    font-size: 1.25rem !important;
    margin-bottom: 12px !important;
    font-weight: 700 !important;
  }

  .why-choose-us__card--feature p {
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
  }

  /* Ensure all color variants are visible */
  .why-choose-us__card--blue,
  .why-choose-us__card--green,
  .why-choose-us__card--purple,
  .why-choose-us__card--orange,
  .why-choose-us__card--red,
  .why-choose-us__card--teal,
  .why-choose-us__card--indigo,
  .why-choose-us__card--pink {
    display: flex !important;
    visibility: visible !important;
  }

  .contact-form-wrapper {
    margin-bottom: 40px;
  }

  .contact-intro p {
    font-size: 16px;
  }

  .inline-input {
    font-size: 16px;
    min-width: 100px;
  }

  .service-tags {
    gap: 8px;
  }

  .service-tag span {
    padding: 10px 16px;
    font-size: 13px;
  }

  .contact-map-section .map-container {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .contact-form-wrapper {
    padding: 20px 15px;
  }

  .contact-intro p {
    font-size: 15px;
    line-height: 1.6;
  }

  .project-details textarea {
    padding: 15px;
    min-height: 100px;
    font-size: 15px;
  }

  .contact-intro .inline-input {
    display: block;
    width: 100%;
    margin: 5px 0;
    padding: 5px 0;
  }

  .inline-input {
    font-size: 15px;
    min-width: 80px;
  }

  .service-tag span {
    padding: 8px 12px;
    font-size: 12px;
  }

  .btn-send-request {
    padding: 14px 30px;
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  .header .overlay-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .header .header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .header .brand {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .header .nav {
    width: 100%;
  }

  .header .nav__list {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 0;
  }

  .header .nav__item {
    margin: 0;
  }

  .header .nav__link {
    display: flex;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    text-decoration: none;
    line-height: 1;
  }
}
