/* ============================================
   MS Logistics — Main Stylesheet
   Premium Logistics & Freight Website
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-primary: #0B1F3A;
  --color-primary-dark: #061428;
  --color-primary-light: #1E3A5F;
  --color-secondary: #F7F8FA;
  --color-dark: #202124;
  --color-accent: #D8A95E;
  --color-accent-light: #e8c48a;
  --color-white: #FFFFFF;
  --color-grey: #8B8B8B;
  --color-grey-light: #E8E8E8;
  --color-grey-dark: #5a5a5a;

  --font-family: 'Poppins', sans-serif;
  --font-size-base: 16px;
  --line-height: 1.7;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(32, 33, 36, 0.06);
  --shadow-md: 0 8px 30px rgba(32, 33, 36, 0.08);
  --shadow-lg: 0 20px 60px rgba(32, 33, 36, 0.12);
  --shadow-xl: 0 30px 80px rgba(32, 33, 36, 0.15);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --header-height: 80px;
  --container-max: 1200px;
  --section-padding: 100px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
}

body {
  font-family: var(--font-family);
  color: var(--color-dark);
  line-height: var(--line-height);
  background: var(--color-white);
  overflow-x: hidden;
}

@media (hover: hover) and (pointer: fine) {
  body:not(.loaded) {
    cursor: none;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Utility Classes --- */
.glass {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.section {
  padding: var(--section-padding) 0;
}

.section--grey {
  background: var(--color-secondary);
}

.section__tag {
  display: inline-block;
  font-size: clamp(1.625rem, 3.5vw, 2.375rem);
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0.5px;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  padding: 14px 32px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(11, 31, 58, 0.28);
  position: relative;
  overflow: hidden;
  line-height: 1.25;
}

.section__tag::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: sectionTagShine 4s ease-in-out infinite;
}

.section__tag--main {
  display: inline-block;
}

.section__title {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.section__desc {
  font-size: 1.0625rem;
  color: var(--color-grey);
  max-width: 600px;
}

.section__header {
  text-align: center;
  margin-bottom: 60px;
}

.section__header .section__desc {
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(11, 31, 58, 0.3);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(11, 31, 58, 0.4);
}

.btn--outline {
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: 0 6px 18px rgba(11, 31, 58, 0.12);
}

.btn--outline:hover {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(11, 31, 58, 0.28);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--lg {
  padding: 18px 40px;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
}

.btn--ripple .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: rippleEffect 0.6s linear;
  pointer-events: none;
}

/* --- Loading Screen --- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__inner {
  text-align: center;
}

.loader__logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 30px;
}

.loader__logo span {
  color: var(--color-accent);
}

.loader__bar {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0 auto 16px;
}

.loader__progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.loader__text {
  color: var(--color-grey);
  font-size: 0.875rem;
  letter-spacing: 1px;
}

/* --- Scroll Progress --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-height);
  transition: all var(--transition);
}

.header--transparent {
  background: transparent;
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.header--transparent .header__logo,
.header--transparent .header__link {
  color: var(--color-white);
}

.header--scrolled .header__logo,
.header--scrolled .header__link {
  color: var(--color-dark);
}

.header__logo span {
  color: var(--color-accent);
}

.header__logo-icon {
  color: var(--color-primary);
  font-size: 1.1rem;
}

.header__nav {
  display: flex;
}

.header__menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__link {
  font-size: 0.9375rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}

.header__link:hover::after,
.header__link.active::after {
  width: 100%;
}

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

.header--transparent .header__link.active {
  color: var(--color-accent);
}

.header__cta {
  padding: 10px 24px;
  font-size: 0.875rem;
}

.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 1001;
}

.header__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-dark);
  transition: all var(--transition);
  border-radius: 2px;
}

.header--transparent .header__hamburger span {
  background: var(--color-white);
}

.header__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 45%, var(--color-primary-light) 100%);
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero__bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero__logistics-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  color: var(--color-accent-light);
  opacity: 0.14;
  pointer-events: none;
}

.hero__logistics-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__route {
  stroke-width: 1.1;
  opacity: 0.62;
}

.hero__route-highlight {
  stroke-width: 1.6;
  stroke-dasharray: 3 34;
  opacity: 0.7;
}

.hero__route-nodes {
  opacity: 0.78;
}

.hero__route-shipment {
  opacity: 0.92;
}

.hero__shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}

.hero__shape--1 {
  width: 600px;
  height: 600px;
  background: var(--color-accent);
  top: -200px;
  right: -100px;
}

.hero__shape--2 {
  width: 400px;
  height: 400px;
  background: var(--color-primary-light);
  bottom: -100px;
  left: -100px;
}

.hero__shape--3 {
  width: 200px;
  height: 200px;
  background: var(--color-white);
  top: 50%;
  left: 40%;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-top: 40px;
  padding-bottom: 80px;
}

.hero__badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(216, 169, 94, 0.15);
  color: var(--color-accent);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  border: 1px solid rgba(216, 169, 94, 0.3);
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: 16px;
}

.hero__title-accent {
  display: block;
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  line-height: 1.4;
  font-weight: 750;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__typing {
  border-right: 3px solid var(--color-accent);
  padding-right: 4px;
}

.hero__typing.typing-done {
  border-right: none;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 16px;
}

.hero__desc {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero__trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.hero__trust-item svg {
  color: var(--color-accent);
}

.hero__visual {
  position: relative;
}

.hero__image-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: perspective(1000px) rotateY(-3deg);
}

.hero__image {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.hero__float-card {
  position: absolute;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: floatCard 4s ease-in-out infinite;
}

.hero__float-card strong {
  display: block;
  font-size: 1.25rem;
  color: var(--color-dark);
}

.hero__float-card span {
  font-size: 0.75rem;
  color: var(--color-grey);
}

.hero__float-stars {
  color: var(--color-accent);
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.hero__float-card--1 {
  top: 10%;
  left: -30px;
  animation-delay: 0s;
}

.hero__float-card--2 {
  bottom: 20%;
  left: -40px;
  animation-delay: 1s;
}

.hero__float-card--3 {
  top: 15%;
  right: -20px;
  animation-delay: 2s;
}

/* --- Clients Logo Strip --- */
.clients {
  padding: 40px 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-grey-light);
  overflow: hidden;
}

.clients__track-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.clients__track {
  display: flex;
  gap: 80px;
  animation: logoScroll 30s linear infinite;
  width: max-content;
}

.clients__logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-grey-light);
  white-space: nowrap;
  flex-shrink: 0;
}

.clients__logo span {
  color: var(--color-grey);
}

/* --- Statistics --- */
.stats {
  padding: 60px 0;
  background: var(--color-primary);
}

.stats__container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  text-align: center;
}

.stats__number {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 8px;
}

.stats__label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

/* --- About --- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about__collage {
  position: relative;
}

.about__img--main {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about__img--secondary {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow-md);
}

.about__badge {
  position: absolute;
  top: 30px;
  left: -20px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.about__badge-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.about__badge-text {
  font-size: 0.75rem;
  font-weight: 500;
}

.about__text {
  color: var(--color-grey);
  margin-bottom: 24px;
}

.about__mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.about__mission-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.about__mission-item p {
  font-size: 0.875rem;
  color: var(--color-grey);
}

.about__promise {
  padding: 16px 20px;
  background: var(--color-secondary);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-accent);
  font-size: 0.9375rem;
  margin-bottom: 30px;
}

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

.about__feature-card {
  padding: 20px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.about__feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.about__feature-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.about__feature-card h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.about__feature-card p {
  font-size: 0.8125rem;
  color: var(--color-grey);
}

/* --- Services --- */
.services__stack {
  position: relative;
  overflow: visible;
}

.services__stage {
  position: sticky;
  top: calc(var(--header-height) + 32px);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 480px;
  overflow: hidden;
}

.services__cards {
  position: relative;
  width: min(76%, 1050px);
  max-width: 1050px;
  height: 100%;
}

.services__scroll-track {
  width: 100%;
}

.stack-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 32px;
  align-items: stretch;
  padding: 0;
  box-sizing: border-box;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(11, 31, 58, 0.08);
  box-shadow: 0 30px 80px rgba(11, 31, 58, 0.08);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 100%, 0);
  will-change: transform, opacity;
  isolation: isolate;
}

.stack-card.is-active,
.stack-card.is-next {
  pointer-events: auto;
}

.stack-card:not(.is-active):not(.is-next) {
  opacity: 0;
}

.stack-card.is-active {
  z-index: 150;
}

.stack-card.is-next {
  z-index: 200;
}

.stack-card__image {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.stack-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.stack-card__content {
  padding: 40px 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.stack-card__number {
  display: block;
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 18px;
}

.stack-card__title {
  font-size: clamp(2rem, 2.75vw, 2.75rem);
  line-height: 1.05;
  color: var(--color-primary);
  margin-bottom: 22px;
  max-width: 14ch;
}

.stack-card__desc {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-grey);
  margin-bottom: 26px;
  max-width: 42rem;
  max-height: calc(1.8rem * 4);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.stack-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.stack-card__tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  background: rgba(11, 31, 58, 0.06);
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 600;
}

.stack-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s ease;
  margin-top: auto;
}

.stack-card__link::after {
  content: '';
  width: 0;
  height: 2px;
  background: currentColor;
  display: block;
  transition: width 0.3s ease;
}

.stack-card__link:hover::after {
  width: 100%;
}

.stack-card__link span {
  transition: transform 0.3s ease;
}

.stack-card__link:hover span {
  transform: translateX(6px);
}

@media (max-width: 1023px) {
  .services__stage {
    top: calc(var(--header-height) + 20px);
    height: 470px;
  }

  .services__cards {
    width: min(90%, 840px);
  }

  .stack-card {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .stack-card__content {
    padding: 30px 28px;
  }

  .stack-card__title {
    font-size: clamp(1.75rem, 6vw, 2.4rem);
  }

  .stack-card__desc {
    line-height: 1.65;
    margin-bottom: 20px;
  }

  .stack-card__tags {
    margin-bottom: 24px;
  }
}

@media (max-width: 767px) {
  .services__stage {
    height: 430px;
  }

  .services__cards {
    width: calc(100% - 8px);
  }

  .stack-card {
    grid-template-columns: 38% 62%;
    gap: 0;
  }

  .stack-card__content {
    min-height: 0;
    padding: 18px 16px;
  }

  .stack-card__number {
    font-size: 1.125rem;
    margin-bottom: 8px;
  }

  .stack-card__tags {
    gap: 6px;
    margin-bottom: 14px;
  }

  .stack-card__tags span {
    padding: 6px 8px;
    font-size: 0.6875rem;
  }

  .stack-card__title {
    font-size: clamp(1.1rem, 5vw, 1.45rem);
    line-height: 1.15;
    margin-bottom: 8px;
  }

  .stack-card__desc {
    font-size: 0.78rem;
    line-height: 1.55;
    margin-bottom: 12px;
    max-height: calc(0.78rem * 1.55 * 3);
    -webkit-line-clamp: 3;
  }

  .stack-card__link {
    font-size: 0.8125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stack-card,
  .stack-card__image img,
  .stack-card__link span {
    transition: none !important;
  }

.stack-card {
  transform: none !important;
}
}

/* --- Service Detail Modal --- */
.modal__content--service {
  max-width: 640px;
  max-height: 90vh;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal__service {
  overflow-y: auto;
  max-height: 90vh;
}

.modal__service-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  padding: 28px 56px 28px 28px;
}

.modal__service-header h3 {
  font-size: 1.375rem;
  margin: 0;
  color: var(--color-white);
}

.modal__service-body {
  padding: 28px;
}

.modal__service img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.modal__service-body p {
  font-size: 0.9375rem;
  color: var(--color-grey-dark);
  line-height: 1.8;
  margin-bottom: 14px;
}

.modal__service-body p:last-child {
  margin-bottom: 0;
}

.modal__content--service .modal__close {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  top: 16px;
  right: 16px;
}

.modal__content--service .modal__close:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* --- Why Choose Us --- */
.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.why__visual {
  position: relative;
}

.why__image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.why__visual-badge {
  position: absolute;
  bottom: 30px;
  right: -20px;
  padding: 20px 28px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.why__visual-badge strong {
  display: block;
  font-size: 2rem;
  color: var(--color-primary);
}

.why__visual-badge span {
  font-size: 0.8125rem;
  color: var(--color-grey);
}

.why__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.why__item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.why__item:hover {
  background: var(--color-secondary);
  transform: translateX(8px);
}

.why__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 31, 58, 0.1);
  border-radius: var(--radius-sm);
}

.why__item strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.why__item p {
  font-size: 0.8125rem;
  color: var(--color-grey);
}

/* --- Projects --- */
.projects__filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.projects__filter {
  padding: 10px 24px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  background: var(--color-white);
  color: var(--color-grey);
  border: 1px solid var(--color-grey-light);
  transition: all var(--transition);
}

.projects__filter:hover,
.projects__filter.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.project-card.hidden {
  display: none;
}

.project-card__image {
  position: relative;
  overflow: hidden;
  height: 360px;
  border-radius: var(--radius-lg);
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(32, 33, 36, 0.95) 0%, rgba(32, 33, 36, 0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition);
}

.project-card:hover .project-card__overlay {
  opacity: 1;
}

.project-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 4px;
}

.project-card__location {
  font-size: 0.8125rem;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.project-card__meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.project-card__meta span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
}

.project-card__desc {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
  line-height: 1.5;
}

.project-card__btn {
  padding: 10px 20px;
  background: var(--color-accent);
  color: var(--color-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  align-self: flex-start;
  transition: all var(--transition);
}

.project-card__btn:hover {
  background: var(--color-white);
  transform: translateY(-2px);
}

/* --- Process Timeline --- */
.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  position: relative;
  padding-top: 40px;
}

.timeline__line {
  position: absolute;
  top: 70px;
  left: 8%;
  right: 8%;
  height: 3px;
  background: var(--color-grey-light);
  border-radius: var(--radius-full);
}

.timeline__line-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-full);
  transition: width 1.5s ease;
}

.timeline__item {
  text-align: center;
  position: relative;
  z-index: 1;
}

.timeline__number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.timeline__icon {
  width: 60px;
  height: 60px;
  background: var(--color-white);
  border: 3px solid var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}

.timeline__item:hover .timeline__icon {
  background: var(--color-primary);
  transform: scale(1.1);
}

.timeline__title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline__desc {
  font-size: 0.75rem;
  color: var(--color-grey);
  line-height: 1.5;
}

/* --- Video Section --- */
.video-section {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-section__bg {
  position: absolute;
  inset: 0;
}

.video-section__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-section__overlay {
  position: absolute;
  inset: 0;
  background: rgba(32, 33, 36, 0.7);
}

.video-section__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
}

.video-section__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.video-section__desc {
  font-size: 1.0625rem;
  opacity: 0.8;
  margin-bottom: 32px;
}

.video-section__play {
  width: 80px;
  height: 80px;
  background: var(--color-accent);
  color: var(--color-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 0 0 15px rgba(216, 169, 94, 0.3);
  transition: all var(--transition);
}

.video-section__play svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
}

.video-section__play:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 25px rgba(216, 169, 94, 0.2);
}

/* --- Modal --- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal[hidden] {
  display: none;
}

.modal:not([hidden]) {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.modal__content {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 800px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: scale(0.9);
  transition: transform var(--transition);
}

.modal.active .modal__content {
  transform: scale(1);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background var(--transition);
}

.modal__close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.modal__video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.modal__video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.modal__content--project {
  max-width: 600px;
  padding: 40px;
}

.modal__project img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.modal__project h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.modal__project .project-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 0.875rem;
  color: var(--color-grey);
}


/* --- Team --- */
.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.team-card {
  text-align: center;
  transition: transform var(--transition);
}

.team-card:hover {
  transform: translateY(-8px);
}

.team-card__image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}

.team-card__image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.team-card__social {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(transparent, rgba(32, 33, 36, 0.8));
  transform: translateY(100%);
  transition: transform var(--transition);
}

.team-card:hover .team-card__social {
  transform: translateY(0);
}

.team-card__social a {
  width: 36px;
  height: 36px;
  background: var(--color-white);
  color: var(--color-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all var(--transition);
}

.team-card__social a:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.team-card__name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-card__role {
  font-size: 0.875rem;
  color: var(--color-grey);
}

/* --- Testimonials --- */
.testimonials__slider {
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonials__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide {
  min-width: 100%;
  padding: 40px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.testimonial-slide__stars {
  color: var(--color-accent);
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.testimonial-slide__text {
  font-size: 1.0625rem;
  color: var(--color-grey-dark);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 30px;
}

.testimonial-slide__author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.testimonial-slide__photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-primary);
}

.testimonial-slide__author strong {
  display: block;
  font-size: 0.9375rem;
}

.testimonial-slide__author span {
  font-size: 0.8125rem;
  color: var(--color-grey);
}

.testimonials__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.testimonials__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--color-grey-light);
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.testimonials__btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.testimonials__dots {
  display: flex;
  gap: 8px;
}

.testimonials__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-grey-light);
  transition: all var(--transition);
  cursor: pointer;
}

.testimonials__dot.active {
  background: var(--color-primary);
  width: 30px;
  border-radius: var(--radius-full);
}

/* --- FAQ --- */
.faq__list {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  transition: color var(--transition);
}

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

.faq__icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background: var(--color-primary);
  transition: transform var(--transition);
}

.faq__icon::before {
  width: 14px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq__icon::after {
  width: 2px;
  height: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq__item.active .faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq__answer p {
  padding: 0 24px 20px;
  font-size: 0.9375rem;
  color: var(--color-grey);
  line-height: 1.7;
}

.faq__item.active .faq__answer {
  max-height: 300px;
}

/* --- CTA --- */
.cta {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 50%, #0d2847 100%);
  overflow: hidden;
}

.cta__shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta__shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  background: var(--color-white);
}

.cta__shape--1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -50px;
  animation: floatShape 6s ease-in-out infinite;
}

.cta__shape--2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: 10%;
  animation: floatShape 8s ease-in-out infinite reverse;
}

.cta__shape--3 {
  width: 150px;
  height: 150px;
  top: 50%;
  right: 20%;
  animation: floatShape 5s ease-in-out infinite;
}

.cta__container {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
}

.cta__desc {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 500px;
  margin: 0 auto 32px;
}

/* --- Contact --- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact__item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact__icon {
  width: 48px;
  height: 48px;
  background: rgba(11, 31, 58, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact__item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact__item p {
  font-size: 0.9375rem;
  color: var(--color-grey);
}

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

.contact__map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 10px;
}

.contact__map iframe {
  width: 100%;
  height: 250px;
  border: none;
}

.contact__form {
  background: var(--color-secondary);
  padding: 40px;
  border-radius: var(--radius-lg);
}

.form__group {
  margin-bottom: 20px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form__group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-grey-light);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  transition: border-color var(--transition);
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--color-primary);
  outline: none;
}

.form__group input.error,
.form__group select.error,
.form__group textarea.error {
  border-color: #e74c3c;
}

.form__error {
  display: block;
  font-size: 0.75rem;
  color: #e74c3c;
  margin-top: 4px;
  min-height: 18px;
}

.form__success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(11, 31, 58, 0.1);
  border-radius: var(--radius-sm);
  margin-top: 16px;
  color: var(--color-primary);
}

.form__success svg {
  flex-shrink: 0;
}

.form__success[hidden] {
  display: none;
}

.form__success:not([hidden]) {
  display: flex;
}

/* --- Footer --- */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--color-white);
  display: inline-block;
  margin-bottom: 16px;
}

.footer__logo span {
  color: var(--color-accent);
}

.footer__desc {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer__social {
  display: flex;
  gap: 10px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all var(--transition);
}

.footer__social a:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.footer__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 20px;
}

.footer__links li {
  margin-bottom: 10px;
}

.footer__links a {
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-accent);
}

.footer__newsletter-text {
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.footer__newsletter {
  display: flex;
  gap: 0;
}

.footer__newsletter input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.footer__newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.footer__newsletter button {
  padding: 12px 20px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.125rem;
  transition: background var(--transition);
}

.footer__newsletter button:hover {
  background: var(--color-primary-light);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.8125rem;
}

.footer__top {
  color: var(--color-accent);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: color var(--transition);
}

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

/* --- Custom Cursor --- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--color-primary);
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(11, 31, 58, 0.4);
}

.cursor-ring.hover {
  width: 60px;
  height: 60px;
  border-color: var(--color-accent);
  background: rgba(216, 169, 94, 0.1);
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  body {
    cursor: auto;
  }
}
