:root {
  --navy: #12284D;
  --navy-deep: #0A1830;
  --navy-mid: #1B345E;
  --navy-soft: #2B4A7C;
  --silver: #E0E5EF;
  --steel: #9CA8C0;
  --text: #F0F3F9;
  --muted: #98A4BC;
}

body {
  background: var(--navy-deep);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  min-width: 320px;
  -webkit-text-size-adjust: 100%;
}

img,
svg {
  max-width: 100%;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

#bgCanvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.mesh-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(43,74,124,.55), transparent 55%),
    radial-gradient(ellipse at 80% 60%, rgba(27,52,94,.45), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(156,168,192,.06), transparent 60%);
  animation: meshShift 22s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes meshShift {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(-2%, 1%) scale(1.03); }
  100% { transform: translate(2%, -1%) scale(1); }
}

.grid-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(224,229,239,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224,229,239,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 80%);
}

.content { position: relative; z-index: 10; }

/* REVEAL ON SCROLL */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(.16,1,.3,1), transform 0.8s cubic-bezier(.16,1,.3,1);
  will-change: transform, opacity;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* HERO WORD ANIMATION */
.word { display: inline-block; opacity: 0; transform: translateY(40px); animation: wordIn 1s cubic-bezier(.16,1,.3,1) forwards; }
.word:nth-child(1) { animation-delay: .1s; }
.word:nth-child(2) { animation-delay: .2s; }
.word:nth-child(3) { animation-delay: .3s; }
.word:nth-child(4) { animation-delay: .4s; }
@keyframes wordIn { to { opacity: 1; transform: translateY(0); } }

/* HOME HERO IMAGE */
.hero-section {
  isolation: isolate;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.12) contrast(1.04) brightness(1.14);
  transform: scale(1.015);
  animation: heroImageIn 1.4s cubic-bezier(.16,1,.3,1) both;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,24,48,.94) 0%, rgba(10,24,48,.82) 39%, rgba(10,24,48,.39) 64%, rgba(10,24,48,.06) 100%),
    linear-gradient(0deg, rgba(10,24,48,.88) 0%, rgba(10,24,48,.04) 48%, rgba(10,24,48,.2) 100%);
}
@keyframes heroImageIn {
  from { opacity: 0; transform: scale(1.05); }
  to { opacity: 1; transform: scale(1.015); }
}

/* HERO TYPOGRAPHY RHYTHM & STEEL SHINE */
.hero-section h1 {
  padding-bottom: .18em;
  line-height: 1.2;
  overflow: visible;
}
.hero-section h1 .word {
  width: fit-content;
  padding-bottom: .1em;
  margin-bottom: -.02em;
  overflow: visible;
}
.hero-section h1 + p {
  margin-top: .8rem;
}
.hero-section #about {
  padding-top: 2.25rem;
}
.hero-section h1 .word {
  background-image: linear-gradient(
    110deg,
    #ffffff 0%,
    #ffffff 38%,
    #a3b4d5 46%,
    #ffffff 53%,
    #ffffff 100%
  );
  background-size: 300% 100%;
  background-position: 100% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-section h1 .word:nth-child(1) {
  animation: wordIn 1s cubic-bezier(.16,1,.3,1) forwards .1s, titleSweep 5.8s ease-in-out infinite 1.4s;
}
.hero-section h1 .word:nth-child(2) {
  animation: wordIn 1s cubic-bezier(.16,1,.3,1) forwards .2s, titleSweep 5.8s ease-in-out infinite 1.65s;
}
.hero-section h1 .word:nth-child(3) {
  animation: wordIn 1s cubic-bezier(.16,1,.3,1) forwards .3s, titleSweep 5.8s ease-in-out infinite 1.9s;
}
.hero-section h1 .word:nth-child(4) {
  animation: wordIn 1s cubic-bezier(.16,1,.3,1) forwards .4s, titleSweep 5.8s ease-in-out infinite 2.15s;
}
@keyframes titleSweep {
  0%, 12% { background-position: 100% 50%; }
  42%, 100% { background-position: -100% 50%; }
}
.hero-title-dot {
  display: inline-block;
  color: #fff;
  transform-origin: center bottom;
  animation: dotCloseOpen 5.8s ease-in-out infinite 2.55s;
}
@keyframes dotCloseOpen {
  0%, 35%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  40% {
    opacity: .15;
    transform: scale(.25);
  }
  46% {
    opacity: 1;
    transform: scale(1.18);
  }
  52% {
    transform: scale(1);
  }
}

/* BUTTONS */
.btn-primary {
  position: relative;
  background: #FFFFFF;
  color: var(--navy-deep);
  font-weight: 700;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease;
}
.btn-primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent, rgba(18,40,77,.08), transparent);
  transform: translateX(-100%);
  transition: transform .6s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -5px rgba(255,255,255,.2);
}
.btn-primary:hover::before { transform: translateX(100%); }

.btn-ghost {
  border: 1px solid rgba(255,255,255,.15);
  color: var(--text);
  transition: all .3s cubic-bezier(.16,1,.3,1);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.4);
  transform: translateY(-1px);
}

/* CARDS */
.card-anim {
  position: relative;
  background: rgba(18,40,77,0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  transition: transform .4s cubic-bezier(.16,1,.3,1), border-color .3s ease, background .3s ease;
}
.card-anim::before {
  content: ""; position: absolute; top: 0; left: -100%;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  transition: left .7s ease;
}
.card-anim:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,.2);
  background: rgba(27,52,94,0.6);
}
.card-anim:hover::before { left: 100%; }

/* CORPORATE SERVICE CATALOG */
.service-card {
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid rgba(224,229,239,.1);
  border-radius: 1.25rem;
  overflow: hidden;
  background:
    linear-gradient(rgba(224,229,239,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224,229,239,.025) 1px, transparent 1px),
    linear-gradient(145deg, rgba(27,52,94,.72), rgba(10,24,48,.84));
  background-size: 24px 24px, 24px 24px, auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  transition: transform .3s cubic-bezier(.16,1,.3,1), border-color .3s ease, background-color .3s ease;
}

.whatsapp-float {
  box-shadow: 0 0 25px rgba(22,163,74,.4);
}
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.035), transparent 42%);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(224,229,239,.24);
}
.service-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.service-card-head > span {
  color: rgba(224,229,239,.28);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .18em;
}
.service-card-head svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: #cbd5e1;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-photo {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 8.5;
  margin: 0 0 1.25rem;
  border: 1px solid rgba(224,229,239,.1);
  border-radius: .8rem;
  overflow: hidden;
  background: var(--navy);
}
.service-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 76%, rgba(10,24,48,.08));
}
.service-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.03) brightness(1.1);
  transition: transform .55s cubic-bezier(.16,1,.3,1), filter .4s ease;
}
.service-card:hover .service-photo img {
  transform: scale(1.025);
  filter: saturate(1.12) contrast(1.04) brightness(1.12);
}
.service-card h3 {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 750;
  margin-bottom: .75rem;
}
.service-card > p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.service-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: auto;
}
.service-tags span {
  color: #cbd5e1;
  background: rgba(224,229,239,.055);
  border: 1px solid rgba(224,229,239,.1);
  border-radius: 999px;
  padding: .32rem .65rem;
  font-size: .67rem;
  line-height: 1;
}
.why-us {
  padding: 1.5rem;
  border: 1px solid rgba(224,229,239,.1);
  border-radius: 1.25rem;
  background: rgba(10,24,48,.56);
  backdrop-filter: blur(14px);
}
.why-card {
  min-height: 92px;
  padding: 1rem;
  border-left: 2px solid rgba(163,180,213,.5);
  background: rgba(255,255,255,.025);
}
.why-card span {
  display: block;
  color: #fff;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .12em;
  margin-bottom: .45rem;
}
.why-card p {
  color: #b8c2d4;
  font-size: .78rem;
  line-height: 1.45;
}

@media (max-width: 767px) {
  .service-card { min-height: 0; padding: 1.5rem; }
  .hero-media img { object-position: 64% center; }
  .hero-media::after {
    background:
      linear-gradient(90deg, rgba(10,24,48,.78), rgba(10,24,48,.2)),
      linear-gradient(0deg, rgba(10,24,48,.94) 0%, rgba(10,24,48,.48) 55%, rgba(10,24,48,.32) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none; transform: none; }
}

/* IMAGES BLUEPRINT MESH EFFECT */
.project-img {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255,255,255,.03), transparent),
    repeating-linear-gradient(90deg, #1B345E 0 2px, transparent 2px 60px),
    repeating-linear-gradient(0deg, #122B53 0 1px, transparent 1px 30px),
    var(--navy);
  overflow: hidden;
}
.project-img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 1; transition: transform .5s ease, filter .5s ease;
  filter: saturate(1.02) contrast(1.03) brightness(1.04);
}
.card-anim:hover .project-img img {
  transform: scale(1.02); filter: saturate(1.08) contrast(1.04) brightness(1.06);
}
.project-img::after {
  content: ""; position: absolute; inset: 0; z-index: 5;
  background: linear-gradient(180deg, transparent 38%, rgba(10,24,48,.22) 58%, rgba(10,24,48,.92) 100%);
}
.machinery-img::after {
  background: linear-gradient(180deg, transparent 68%, rgba(10,24,48,.3) 100%);
}
.machinery-img img {
  opacity: .94;
}

/* HISTORY PAGE */
.history-hero {
  position: relative;
  min-height: 74vh;
  display: flex;
  align-items: end;
  padding: 9rem 0 5rem;
  overflow: hidden;
}
.history-hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.history-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: saturate(.86) contrast(1.04);
}
.history-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,24,48,.97) 0%, rgba(10,24,48,.82) 47%, rgba(10,24,48,.35) 100%),
    linear-gradient(0deg, rgba(10,24,48,.96), transparent 58%);
}
.history-intro {
  border: 1px solid rgba(224,229,239,.1);
  background: rgba(18,40,77,.48);
  backdrop-filter: blur(16px);
}
.history-timeline {
  position: relative;
}
.history-timeline::before {
  content: "";
  position: absolute;
  top: .5rem;
  bottom: .5rem;
  left: 1.25rem;
  width: 1px;
  background: linear-gradient(#a3b4d5, rgba(163,180,213,.08));
}
.history-item {
  position: relative;
  padding-left: 4rem;
}
.history-item::before {
  content: "";
  position: absolute;
  left: .94rem;
  top: .45rem;
  width: .65rem;
  height: .65rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 7px rgba(163,180,213,.1);
}
.history-year {
  color: #fff;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .2em;
}

/* MARQUEE LOOP */
.marquee { animation: marquee 40s linear infinite; will-change: transform; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.draw-path { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 3.5s cubic-bezier(.16,1,.3,1) forwards .5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.nav-blur {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10,24,48,0.8);
}

#mainNavbar > div {
  position: relative;
}

@media (min-width: 1024px) {
  #mainNavbar > div {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
    align-items: center;
  }
  #mainNavbar > div > :first-child {
    justify-self: start;
  }
  #mainNavbar > div > .hidden.lg\:flex {
    position: static;
    justify-self: center;
    transform: none;
    white-space: nowrap;
    gap: 1.5rem !important;
  }
  #mainNavbar > div > :last-child {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: .75rem;
  }
}

@media (min-width: 1024px) and (max-width: 1180px) {
  #mainNavbar > div > .hidden.lg\:flex {
    gap: 1rem !important;
    font-size: .78rem;
  }
}

#mainNavbar #langBtn {
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.05);
  color: #fff;
  letter-spacing: .08em;
  transition: border-color .25s ease, background .25s ease, color .25s ease;
}

#mainNavbar #langBtn:hover {
  border-color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.1);
}

.link-anim { position: relative; transition: color .3s ease; }
.link-anim::after {
  content:""; position:absolute; left:0; bottom:-4px;
  width:0; height:1px; background: #FFFFFF;
  transition: width .3s ease;
}
.link-anim:hover::after { width:100%; }
.link-anim:hover { color: #FFFFFF; }

.text-gradient {
  background: linear-gradient(135deg, #FFFFFF 30%, #A3B4D5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.float-slow { animation: floatSlow 5s ease-in-out infinite; }
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* OFFICIAL BRAND ASSETS */
.brand-logo {
  display: block;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.brand-logo-nav {
  height: 34px;
}
.brand-logo-footer {
  height: 38px;
  opacity: .9;
}

@media (max-width: 420px) {
  .brand-logo-nav { height: 29px; }
}

/* MOBILE MENU DRAWER */
#mobileMenu {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  max-height: calc(100dvh - 73px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
#mobileMenu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

body.menu-open {
  overflow: hidden;
}

/* MULTI-PAGE NAVIGATION & DETAIL PAGES */
.section-rail {
  position: fixed;
  top: 50%;
  right: 1.4rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  transform: translateY(-50%);
}
.section-rail-link {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(224,229,239,.5);
  border-radius: 50%;
  background: rgba(10,24,48,.78);
  transition: .25s ease;
}
.section-rail-link::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(224,229,239,.4);
}
.section-rail-link.active {
  border-color: #fff;
  background: rgba(18,40,77,.96);
  box-shadow: 0 0 0 4px rgba(163,180,213,.1);
  transform: scale(1.08);
}
.section-rail-link.active::after { background: #fff; }
.section-rail-link span {
  position: absolute;
  top: 50%;
  right: 2.7rem;
  padding: .35rem .55rem;
  border: 1px solid rgba(224,229,239,.12);
  border-radius: .4rem;
  color: #e2e8f0;
  background: rgba(10,24,48,.94);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(5px,-50%);
  transition: .2s ease;
}

/* SHORT HOME PAGE PREVIEWS */
.home-service-grid > .service-card:nth-child(n+7),
.home-project-grid > article:nth-child(n+4) {
  display: none;
}

/* DESKTOP NAV DROPDOWNS */
.services-nav-group,
.nav-dropdown-group {
  position: relative;
  display: flex;
  align-items: center;
  padding: .75rem 0;
  margin: -.75rem 0;
}
.services-nav-trigger,
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .32rem;
  white-space: nowrap;
  line-height: 1;
}
.services-nav-trigger::after,
.nav-dropdown-trigger::after {
  content: "▾";
  position: static;
  left: auto;
  bottom: auto;
  width: auto;
  height: auto;
  margin-left: .16rem;
  background: transparent;
  font-size: 1.05em;
  line-height: 1;
  display: inline-block;
  flex: 0 0 auto;
  opacity: .9;
  transform: translateY(.01em);
  transition: transform .2s ease, opacity .2s ease;
}
.services-nav-trigger:hover::after,
.services-nav-group:hover .services-nav-trigger::after,
.nav-dropdown-trigger:hover::after,
.nav-dropdown-group:hover .nav-dropdown-trigger::after {
  width: auto;
  opacity: 1;
  transform: translateY(.08em);
}
.services-dropdown,
.nav-dropdown {
  position: absolute;
  top: calc(100% - .25rem);
  left: 50%;
  width: min(680px, 72vw);
  padding: 1rem;
  border: 1px solid rgba(224,229,239,.13);
  border-radius: 1rem;
  background: rgba(10,24,48,.98);
  box-shadow: 0 26px 65px rgba(0,0,0,.38);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}
.nav-dropdown.compact {
  width: min(440px, 56vw);
}
.services-nav-group:hover .services-dropdown,
.services-nav-group:focus-within .services-dropdown,
.nav-dropdown-group:hover .nav-dropdown,
.nav-dropdown-group:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.services-dropdown-grid,
.nav-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .4rem;
}
.services-dropdown a,
.nav-dropdown a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .7rem .8rem;
  border-radius: .65rem;
  color: #cbd5e1;
  font-size: .75rem;
  line-height: 1.3;
  transition: color .2s ease, background .2s ease;
}
.services-dropdown a:hover,
.services-dropdown a:focus-visible,
.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  color: #fff;
  background: rgba(255,255,255,.065);
}
.services-dropdown-all,
.nav-dropdown-all {
  margin-top: .65rem;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #fff !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.section-rail-link:hover span,
.section-rail-link:focus-visible span {
  opacity: 1;
  transform: translate(0,-50%);
}
.section-detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.35rem;
  min-height: 46px;
  padding: .85rem 1.25rem;
  color: #0a1830;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 999px;
  background: #f8fafc;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.section-detail-link:hover {
  color: #0a1830;
  background: #fff;
  box-shadow: 0 14px 34px rgba(255,255,255,.13);
  transform: translateY(-2px);
}
.page-home-link {
  position: fixed;
  top: 88px;
  left: max(1.25rem, calc((100vw - 80rem) / 2 + 1.5rem));
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 42px;
  padding: .65rem 1rem;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 999px;
  color: #f8fafc;
  background: rgba(10,24,48,.82);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  backdrop-filter: blur(14px);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.page-home-link:hover {
  border-color: rgba(255,255,255,.42);
  background: rgba(18,40,77,.96);
  transform: translateX(-3px);
}
.page-home-link > span:first-child {
  font-size: 1rem;
  line-height: 1;
}
.detail-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: end;
  padding: 10rem 0 5rem;
  overflow: hidden;
}
.detail-hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.detail-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9) contrast(1.05);
}
.detail-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,24,48,.97), rgba(10,24,48,.7) 55%, rgba(10,24,48,.28)),
    linear-gradient(0deg, rgba(10,24,48,.96), transparent 65%);
}
.detail-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(224,229,239,.1);
  border-radius: 1.25rem;
  background: rgba(18,40,77,.44);
  backdrop-filter: blur(12px);
  transition: border-color .25s ease, transform .25s ease;
}
.detail-card[id] { scroll-margin-top: 110px; }
.detail-card:hover {
  border-color: rgba(224,229,239,.24);
  transform: translateY(-3px);
}
.detail-card-media {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #12284d;
}
.detail-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.95) contrast(1.04);
  transition: transform .4s ease;
}
.detail-card:hover .detail-card-media img { transform: scale(1.025); }
.detail-card-body { padding: 1.5rem; }
.detail-kicker {
  color: #a3b4d5;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.principle-card {
  border-left: 2px solid rgba(163,180,213,.55);
  background: rgba(255,255,255,.025);
  padding: 1.5rem;
}
@media (max-width: 1279px) {
  .section-rail { display: none; }
}
@media (max-width: 767px) {
  .detail-hero { min-height: 54vh; padding: 8rem 0 3.5rem; }
}

/* CONTACT */
.contact-section {
  background:
    radial-gradient(circle at 15% 30%, rgba(73,104,154,.14), transparent 35%),
    rgba(2,6,23,.2);
}
.contact-shell {
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  overflow: hidden;
  border: 1px solid rgba(224,229,239,.11);
  border-radius: 1.75rem;
  background: rgba(10,24,48,.72);
  box-shadow: 0 28px 80px rgba(0,0,0,.22);
  backdrop-filter: blur(18px);
}
.contact-intro {
  padding: clamp(2rem,5vw,4.5rem);
  border-right: 1px solid rgba(224,229,239,.09);
}
.contact-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem clamp(1rem,3vw,2rem);
}
.contact-detail-row {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 108px;
  padding: 1.25rem;
  border-bottom: 1px solid rgba(224,229,239,.09);
  transition: background .25s ease, padding-left .25s ease;
}
.contact-detail-row:last-child { border-bottom: 0; }
.contact-detail-row:hover {
  padding-left: 1.5rem;
  background: rgba(255,255,255,.035);
}
.contact-detail-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(224,229,239,.15);
  border-radius: 50%;
  color: #dbe5f5;
  background: rgba(255,255,255,.035);
}
.contact-detail-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-detail-row small,
.location-banner small {
  display: block;
  margin-bottom: .4rem;
  color: #8290a8;
  font-size: .67rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.contact-detail-row strong {
  display: block;
  color: #f8fafc;
  font-size: clamp(.9rem,1.4vw,1.05rem);
  line-height: 1.5;
}
.contact-detail-row em {
  display: inline-block;
  margin-top: .45rem;
  color: #a3b4d5;
  font-size: .72rem;
  font-style: normal;
  font-weight: 700;
}
.contact-detail-list .contact-detail-row {
  grid-template-columns: 46px minmax(0,1fr);
}
.contact-arrow {
  color: #8495b2;
  font-size: 1.15rem;
  transition: color .25s ease, transform .25s ease;
}
.contact-detail-row:hover .contact-arrow {
  color: #fff;
  transform: translate(2px,-2px);
}
.location-banner {
  position: relative;
  display: block;
  min-height: 190px;
  margin-top: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(224,229,239,.1);
  border-radius: 1.5rem;
  background:
    linear-gradient(90deg, rgba(10,24,48,.96), rgba(18,40,77,.76)),
    #12284d;
}
.location-grid {
  position: absolute;
  inset: 0;
  opacity: .42;
  background:
    linear-gradient(27deg, transparent 47%, rgba(163,180,213,.2) 48% 49%, transparent 50%),
    linear-gradient(153deg, transparent 46%, rgba(163,180,213,.13) 47% 48%, transparent 49%),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(255,255,255,.055) 80px),
    repeating-linear-gradient(0deg, transparent 0 59px, rgba(255,255,255,.05) 60px);
  transform: scale(1.15) rotate(-3deg);
}
.location-pin {
  position: absolute;
  top: 50%;
  right: 24%;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 50% 50% 50% 0;
  background: rgba(163,180,213,.16);
  transform: translateY(-60%) rotate(-45deg);
  transition: transform .3s ease, background .3s ease;
}
.location-pin span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%,-50%);
}
.location-banner:hover .location-pin {
  background: rgba(163,180,213,.28);
  transform: translateY(-65%) rotate(-45deg);
}
.location-banner-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 2rem;
  background: linear-gradient(90deg, rgba(10,24,48,.72), transparent 68%);
}
.location-banner-content strong {
  display: block;
  color: #fff;
  font-size: clamp(1.45rem,3vw,2.4rem);
}
.location-banner-arrow {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  color: #fff;
  font-size: 1.4rem;
  transition: transform .25s ease, background .25s ease;
}
.location-banner:hover .location-banner-arrow {
  background: #fff;
  color: #0a1830;
  transform: translateX(4px);
}
.contact-action-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.contact-map-card,
.contact-mail-form {
  overflow: hidden;
  border: 1px solid rgba(224,229,239,.11);
  border-radius: 1.5rem;
  background: rgba(10,24,48,.72);
}
.contact-map-card {
  position: relative;
  min-height: 520px;
}
.contact-map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
  filter: saturate(.75) contrast(1.03);
}
.map-direction-link {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 44px;
  padding: .75rem 1rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(10,24,48,.94);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.contact-mail-form {
  padding: clamp(1.4rem,3vw,2.25rem);
}
.contact-form-card {
  display: grid;
  gap: 1rem;
}
.contact-form-heading small {
  display: block;
  margin-bottom: .65rem;
  color: #a3b4d5;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.contact-form-heading h3 {
  color: #fff;
  font-size: clamp(1.6rem,3vw,2.35rem);
  font-weight: 900;
  line-height: 1.1;
}
.contact-form-heading p {
  margin: .8rem 0 1.5rem;
  color: #98a4bc;
  font-size: .82rem;
  line-height: 1.65;
}
.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1rem;
}
.contact-form-wide { grid-column: 1 / -1; }
.contact-mail-form label > span {
  display: block;
  margin-bottom: .45rem;
  color: #cbd5e1;
  font-size: .72rem;
  font-weight: 750;
}
.contact-mail-form input,
.contact-mail-form textarea {
  width: 100%;
  border: 1px solid rgba(224,229,239,.13);
  border-radius: .75rem;
  color: #fff;
  background: rgba(255,255,255,.035);
  transition: border-color .2s ease, background .2s ease;
}
.contact-mail-form input {
  min-height: 46px;
  padding: .7rem .85rem;
}
.contact-mail-form textarea {
  min-height: 130px;
  padding: .8rem .85rem;
  resize: vertical;
}
.contact-mail-form input:focus,
.contact-mail-form textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.055);
}
.contact-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 1.1rem;
  padding: .8rem 1.25rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .contact-shell { grid-template-columns: 1fr; }
  .contact-intro { border-right: 0; border-bottom: 1px solid rgba(224,229,239,.09); }
  .contact-action-grid { grid-template-columns: 1fr; }
  .contact-map-card,
  .contact-map-card iframe { min-height: 380px; }
}
@media (max-width: 600px) {
  .contact-detail-row {
    grid-template-columns: 40px 1fr auto;
    min-height: 96px;
    padding: 1rem .5rem;
  }
  .contact-detail-row:hover { padding-left: .75rem; }
  .contact-detail-icon { width: 40px; height: 40px; }
  .location-banner { min-height: 170px; }
  .location-pin { right: 15%; width: 56px; height: 56px; }
  .location-banner-content { padding: 1.4rem; }
  .contact-form-grid { grid-template-columns: 1fr; }
  .contact-form-wide { grid-column: auto; }
  .contact-form-submit { width: 100%; }
}

/* COMPLETE MOBILE LAYOUT */
@media (max-width: 767px) {
  .mesh-bg { opacity: .72; }
  .grid-overlay {
    background-size: 36px 36px;
    opacity: .72;
  }

  #mainNavbar > div {
    padding: .85rem 1rem;
  }
  #menuToggle {
    min-width: 44px;
    min-height: 44px;
    display: grid;
    place-items: center;
  }
  #langBtn {
    min-width: 44px;
    min-height: 36px;
  }
  #mobileMenu {
    top: 65px;
    max-height: calc(100dvh - 65px);
    touch-action: pan-y;
  }
  #mobileMenu > div {
    gap: 0;
    padding: .75rem 1rem calc(1rem + env(safe-area-inset-bottom));
  }
  #mobileMenu .mobile-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: .65rem .5rem;
    border-bottom: 1px solid rgba(255,255,255,.065);
    color: #e2e8f0;
    line-height: 1.25;
  }
  #mobileMenu .mobile-link:last-child { border-bottom: 0; }
  #mobileMenu .btn-primary {
    justify-content: center;
    margin-top: .75rem;
    border-bottom: 0;
  }

  .hero-section {
    min-height: auto;
    padding-top: 7.4rem;
    padding-bottom: 2rem;
  }
  .hero-section h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
    line-height: 1.19;
    padding-bottom: .2em;
    overflow-wrap: anywhere;
  }
  .hero-section h1 .word {
    padding-bottom: .12em;
    margin-bottom: 0;
  }
  .hero-section h1 + p {
    margin-top: 1rem;
  }
  .hero-section > div > .inline-flex {
    max-width: 100%;
    line-height: 1.45;
  }
  .hero-section .flex.flex-wrap.gap-4 {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .hero-section .flex.flex-wrap.gap-4 > a {
    width: 100%;
    min-height: 50px;
    justify-content: center;
    text-align: center;
  }
  #about {
    gap: .7rem;
    padding-top: 2rem;
  }
  #about .card-anim {
    min-width: 0;
    padding: 1rem;
  }
  #about .stat-num {
    font-size: clamp(1.7rem, 8vw, 2.5rem);
    overflow-wrap: anywhere;
  }

  main > section.py-24,
  main > section.md\:py-32 {
    padding-top: 4.75rem;
    padding-bottom: 4.75rem;
  }
  main > section.py-20,
  main > section.md\:py-28 {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  main > section.pb-24 {
    padding-bottom: 4rem;
  }
  main .max-w-7xl,
  main .max-w-5xl,
  footer .max-w-7xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .service-card {
    padding: 1.15rem;
    border-radius: 1rem;
  }
  .service-photo {
    margin-bottom: 1rem;
  }
  .service-card-head svg {
    width: 36px;
    height: 36px;
  }
  .why-us { padding: 1rem; }
  .why-card {
    min-height: 0;
    padding: .9rem;
  }

  .project-img {
    min-height: 310px;
    aspect-ratio: 4/5;
    padding: 1.15rem;
  }
  .project-img > .relative .flex {
    flex-direction: column;
    gap: .35rem;
  }
  .project-img h3 {
    font-size: 1.08rem;
    line-height: 1.35;
  }
  .project-img::after {
    background: linear-gradient(180deg, transparent 22%, rgba(10,24,48,.28) 45%, rgba(10,24,48,.96) 100%);
  }

  .history-hero {
    min-height: 62vh;
    padding: 7.5rem 0 3.5rem;
  }
  .history-hero h1,
  .detail-hero h1 {
    font-size: clamp(2.25rem, 11.5vw, 3.4rem);
    overflow-wrap: anywhere;
  }
  .history-hero-media img { object-position: 58% center; }
  .history-hero-media::after {
    background:
      linear-gradient(90deg, rgba(10,24,48,.96), rgba(10,24,48,.58)),
      linear-gradient(0deg, rgba(10,24,48,.97), rgba(10,24,48,.18) 70%);
  }
  .history-intro { padding: 1.35rem; }
  .history-intro .grid-cols-2 {
    grid-template-columns: 1fr;
  }
  .history-timeline::before { left: .65rem; }
  .history-item { padding-left: 2.35rem; }
  .history-item::before { left: .34rem; }

  .detail-hero {
    min-height: 58vh;
    padding: 7.5rem 0 3.5rem;
  }
  .page-home-link {
    top: 74px;
    left: 1rem;
    min-height: 40px;
    padding: .6rem .85rem;
    font-size: .65rem;
  }
  .section-detail-link {
    width: 100%;
    max-width: 360px;
    min-height: 48px;
    padding: .85rem 1rem;
    text-align: center;
  }
  .detail-hero-media::after {
    background:
      linear-gradient(90deg, rgba(10,24,48,.96), rgba(10,24,48,.55)),
      linear-gradient(0deg, rgba(10,24,48,.97), rgba(10,24,48,.16) 72%);
  }
  .detail-card {
    border-radius: 1rem;
  }
  .detail-card.p-8 {
    padding: 1.4rem;
  }
  .detail-card-body { padding: 1.2rem; }
  .principle-card { padding: 1.2rem; }
  .detail-kicker {
    letter-spacing: .14em;
    line-height: 1.5;
  }

  .contact-shell { border-radius: 1.15rem; }
  .contact-intro { padding: 1.5rem; }
  .contact-intro h2 {
    font-size: clamp(2.5rem, 13vw, 3.7rem);
  }
  .contact-intro .flex.flex-wrap {
    display: grid;
    grid-template-columns: 1fr;
  }
  .contact-intro .flex.flex-wrap > a {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    text-align: center;
  }
  .contact-details { padding: .5rem 1rem; }
  .contact-detail-row {
    grid-template-columns: 40px minmax(0,1fr);
    gap: .8rem;
    min-height: 94px;
    padding: 1rem 0;
  }
  .contact-detail-row strong,
  .contact-detail-row em {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .contact-arrow { display: none; }
  .location-banner {
    min-height: 180px;
    border-radius: 1.15rem;
  }
  .location-banner-content {
    align-items: end;
    gap: 1rem;
    padding: 1.25rem;
  }
  .location-banner-content strong {
    font-size: 1.4rem;
    line-height: 1.25;
  }
  .location-banner-arrow {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
  }
  .location-pin {
    top: 36%;
    right: 16%;
  }

  footer > div {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  footer .flex.gap-6 {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .whatsapp-float {
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 374px) {
  .brand-logo-nav { height: 26px; }
  .hero-section h1 { font-size: 2.35rem; }
  #about { grid-template-columns: 1fr; }
  .project-img { min-height: 330px; }
  .contact-intro,
  .contact-details { padding-left: .9rem; padding-right: .9rem; }
  .contact-detail-row { grid-template-columns: 36px minmax(0,1fr); }
  .contact-detail-icon { width: 36px; height: 36px; }
}

@media (hover: none) and (pointer: coarse) {
  .card-anim:hover,
  .service-card:hover,
  .detail-card:hover,
  .btn-primary:hover,
  .btn-ghost:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-section h1 .word {
    animation: wordIn .01s forwards;
    background-position: 50% 50%;
  }
  .hero-title-dot { animation: none; }
}
