/* =========================================================
   1. RESET + ROOT VARIABLES
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Manrope, sans-serif;
}

:root {
  --navy: #202784;
  --blue: #37bdf2;
  --sky: #eaf7ff;
  --red: #e31f26;
  --dark: #101828;
  --text: #475467;
  --white: #fff;
  --line: #d9eaf5;
  --shadow: 0 26px 70px rgba(16, 24, 40, .13);
}


/* =========================================================
   2. BODY + BACKGROUND
========================================================= */
body {
  min-height: 100vh;
  background: linear-gradient(135deg, #dff4ff 0%, #f7fcff 45%, #fff 100%);
  color: var(--dark);
  overflow: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(55, 189, 242, .3), transparent 28%),
    radial-gradient(circle at 10% 85%, rgba(32, 39, 132, .16), transparent 30%);
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  width: 500px;
  height: 500px;
  background: rgba(55, 189, 242, .12);
  border-radius: 50%;
  top: -120px;
  right: -120px;
  z-index: -1;
}

.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(32, 39, 132, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 39, 132, .035) 1px, transparent 1px),
    url('bg-tech.png');
  background-size: 42px 42px, 42px 42px, 700px;
  background-position: center;
  background-repeat: repeat, repeat, no-repeat;
  opacity: .95;
  z-index: -1;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}


/* =========================================================
   3. INTRO LOADER
========================================================= */
#intro-logo {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  will-change: opacity;
  animation: introHide 3.5s forwards;
  -webkit-animation: introHide 3.5s forwards;
}

#intro-logo img {
  width: 280px;
  will-change: transform, opacity;
  animation: logoAnimation 3.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  -webkit-animation: logoAnimation 3.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@keyframes logoAnimation {
  0%   { opacity: 0; transform: translateZ(0) scale(0.6); }
  20%  { opacity: 1; transform: translateZ(0) scale(1); }
  75%  { opacity: 1; transform: translateZ(0) scale(1.08); }
  100% { opacity: 0; transform: translateZ(0) scale(1.5); }
}

@keyframes introHide {
  0%, 80% { opacity: 1; visibility: visible; pointer-events: all; }
  100%     { opacity: 0; visibility: hidden;  pointer-events: none; }
}
@keyframes introZoom {
  0%   { transform: scale(.4);  opacity: 0; }
  30%  { transform: scale(1);   opacity: 1; }
  75%  { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(2.6); opacity: 0; }
}

@keyframes introFade {
  0%, 80% { opacity: 1; visibility: visible; }
  100%     { opacity: 0; visibility: hidden; }
}


/* =========================================================
   4. HEADER / NAVBAR
========================================================= */
header {
  height: 82px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  position: relative;
  z-index: 10;
  box-shadow: 0 8px 30px rgba(16, 24, 40, .06);
}

.brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-top: 6px;
}

.brand img {
  height: 54px;
  width: auto;
  margin-top: 0;
}

.brand strong {
  display: block;
  color: var(--navy);
  font-size: 18px;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1.5px;
}

.brand span {
  font-size: 12px;
  color: var(--text);
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-sub {
  font-size: 14px;
  color: var(--text);
  margin-top: 4px;
  margin-left: 3.5px;
  letter-spacing: .5px;
}

.tabs {
  display: flex;
  gap: 6px;
  background: #f2f9ff;
  padding: 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.tab {
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 11px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  transition: .25s;
}

.tab:hover {
  color: var(--navy);
  background: white;
}

.tab.active {
  color: white;
  background: linear-gradient(135deg, var(--navy), #1b62b2);
  box-shadow: 0 10px 25px rgba(32, 39, 132, .25);
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
  background: linear-gradient(135deg, #0d1240 0%, #152060 60%, #1a2a7a 100%);
  color: rgba(255, 255, 255, .75);
  padding: 60px 5% 0;
  position: relative;
  z-index: 5;
  margin-top: 0;
}

.footer-inner {
  max-width: 1240px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}


.footer-tagline {
  font-size: 12px !important;
  color: rgba(255, 255, 255, .5) !important;
  margin: 6px 0 4px !important;
  line-height: 1.4 !important;
}

.footer-reg {
  font-size: 11px !important;
  color: rgba(255, 255, 255, .35) !important;
  margin-bottom: 18px !important;
  line-height: 1.4 !important;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
  transition: .25s;
}

.footer-socials a svg {
  width: 18px;
  height: 18px;
}

.footer-socials a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  transform: translateY(-3px);
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li {
  font-size: 13px;
  color: rgba(255, 255, 255, .65);
  line-height: 1.5;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
  transition: color .2s;
}

.footer-col ul li a:hover {
  color: var(--blue);
}

.footer-bottom {
  max-width: 1240px;
  margin: auto;
  padding: 20px 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 12px !important;
  color: rgba(255, 255, 255, .35) !important;
  margin: 0 !important;
  line-height: 1 !important;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  white-space: nowrap;
  align-items: center;
}

.footer-bottom-links span {
  font-size: 11px;
  color: rgba(255, 255, 255, .25);
  letter-spacing: .5px;
  white-space: nowrap;
}

.footer-logo-wrap {
  background: white;
  border-radius: 20px;
  padding: 14px 18px;
  display: inline-block;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .3);
  margin-bottom: 16px;
  width: 250px
} 

.footer-logo-wrap img {
  height: 120px;
  width: 100%;
  display: block;
  object-fit: contain;
}
.site-footer {
  position: relative;
  z-index: 1;
}

/* Footer Responsive */
@media (max-width: 950px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .site-footer {
    padding: 40px 20px 0;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-logo-wrap {
    width: 260px;
    padding: 18px 24px;
  }

  .footer-logo-wrap img {
    height: 110px;
  }

  .footer-tagline {
    font-size: 13px !important;
    margin-top: 8px !important;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-col h4 {
    font-size: 10px;
    margin-bottom: 14px;
  }

  .footer-col ul li {
    font-size: 12px;
  }

  .footer-col ul {
    gap: 8px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 18px 0 20px;
  }

  .footer-bottom-links {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 390px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-logo-wrap {
    width: 100%;
  }
}

/* =========================================================
   5. MAIN PANEL / LAYOUT
========================================================= */
.app {
  position: relative;
  min-height: calc(100vh - 82px);

}
.panel {
  display: none;
  padding: 34px 5%;
  min-height: calc(100vh - 82px);
  opacity: 0;
  animation: none;
}

.panel.active {
  display: block;
  opacity: 1;
  animation: panelFadeIn 0.35s ease forwards;
}
.panel.exit-left {
  transform: translateX(-60px) scale(.985);
}

.content {
  max-width: 1240px;
  margin: auto;
  min-height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 42px;
}

.home-content {
  grid-template-rows: auto auto;
}

.home-map {
  grid-column: 1 / 3;
  margin-top: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(16, 24, 40, .08);
}

.home-map iframe {
  width: 100%;
  height: 245px;
  border: 0;
  display: block;
}

.map-head {
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}

.map-head b {
  color: var(--navy);
  font-size: 18px;
}

.map-head span {
  color: var(--text);
  font-size: 13px;
}

.map-location {
  padding: 14px 22px;
  font-size: 14px;
  color: var(--text);
  border-top: 1px solid var(--line);
  background: white;
}

.kicker {
  display: inline-block;
  background: white;
  border: 1px solid var(--line);
  color: var(--navy);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 18px;
}

.text h1 {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.03;
  letter-spacing: -2px;
  margin-bottom: 18px;
}

.text h1 span {
  color: var(--navy);
}

.text p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  max-width: 620px;
  margin-bottom: 25px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 12px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  background: var(--navy);
  color: white;
  box-shadow: 0 14px 35px rgba(32, 39, 132, .22);
  transition: .25s;
}

.btn:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, var(--navy), var(--blue));
}

.progress {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--blue));
  transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 100;
  border-radius: 0 2px 2px 0;
  will-change: width;
}

/* =========================================================
   6. HERO SLIDER
========================================================= */
.visual {
  height: 490px;
  border-radius: 30px;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.07);
  transition: opacity 1s ease, transform 5s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 165px;
  background: linear-gradient(transparent, rgba(16, 24, 40, .72));
}

.caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  color: white;
  z-index: 2;
}

.caption b {
  font-size: 24px;
}

.caption p {
  margin-top: 6px;
  color: rgba(255, 255, 255, .86);
}

.slide-dots {
  position: absolute;
  right: 24px;
  bottom: 28px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.slide-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .7);
}

.slide-dots span.active {
  background: white;
}


/* =========================================================
   7. CARDS / GENERAL BOXES
========================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.card, .product, .project, .formbox {
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(16, 24, 40, .08);
}

.card {
  border-radius: 22px;
  padding: 24px;
  transition: .28s;
}

.card:hover, .product:hover, .project:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px rgba(16, 24, 40, .13);
}

.card h3 {
  color: var(--navy);
  margin-bottom: 14px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.5px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card h3::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--navy), var(--blue));
}

.card p {
  color: var(--text);
  line-height: 1.6;
  font-size: 14px;
}

.icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #eaf7ff;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  color: var(--navy);
  font-size: 22px;
}


/* =========================================================
   8. SERVICES SECTION
========================================================= */
.service-card {
  position: relative;
  overflow: hidden;
  padding: 36px !important;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(234, 247, 255, .94));
  border: 1px solid rgba(55, 189, 242, .22);
  box-shadow: 0 24px 70px rgba(16, 24, 40, .10);
}

.service-main {
  padding: 48px !important;
  transform: scale(1.02);
  box-shadow: 0 35px 90px rgba(32, 39, 132, .12) !important;
  border: 1px solid rgba(55, 189, 242, .35) !important;
}

.service-main::after {
  content: "";
  position: absolute;
  inset: auto -60px -60px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32, 39, 132, .14), transparent 70%);
}

.service-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(55, 189, 242, .28), transparent 68%);
}

.service-title {
  text-align: center !important;
  font-size: clamp(28px, 3vw, 42px) !important;
  margin-bottom: 22px !important;
  letter-spacing: -1px !important;
  background: linear-gradient(135deg, var(--navy), #168cc8, var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-title::after {
  content: "";
  display: block;
  width: 90px;
  height: 5px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--navy), var(--blue), var(--red));
  box-shadow: 0 0 18px rgba(55, 189, 242, .35);
}

.service-card p {
  font-size: 15px !important;
  line-height: 1.9 !important;
}

.agent-row img {
  height: 85px !important;
  filter: grayscale(100%);
  opacity: .9;
  transition: .35s;
  padding: 18px 22px;
  border-radius: 20px;
  background: white;
  border: 1px solid var(--line);
  object-fit: contain;
}

.agent-row img:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 22px 55px rgba(16, 24, 40, .18);
}

.permit-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  align-items: center;
}

.permit-row img {
  height: 72px !important;
  object-fit: contain;
  background: white;
  padding: 12px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  transition: .35s;
  box-shadow: 0 12px 30px rgba(16, 24, 40, .08);
}

.permit-row img:hover {
  transform: translateY(-7px) scale(1.08);
  box-shadow: 0 24px 60px rgba(55, 189, 242, .28);
  border-color: rgba(55, 189, 242, .55);
}

.service-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 40px;
  align-items: stretch;
}

.service-photo {
  height: 340px;
  border-radius: 34px;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(55, 189, 242, .18);
  box-shadow: 0 28px 75px rgba(16, 24, 40, .14);
  position: relative;
  transition: .45s;
  padding: 18px;
}

.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  transition: .7s;
  border-radius: 24px;
}

.service-photo:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow: 0 38px 90px rgba(16, 24, 40, .18);
}

.service-photo:hover img {
  transform: scale(1.08);
}

.service-photo::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  height: 6px;
  width: 100%;
  background: linear-gradient(90deg, var(--navy), var(--blue), var(--red));
  z-index: 2;
}

.service-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(32, 39, 132, .08), rgba(55, 189, 242, .08));
  opacity: 0;
  transition: .35s;
}

.service-photo:hover::after {
  opacity: 1;
}

.service-img-1 { object-position: center 20% !important; }
.service-img-2 { object-position: center 45% !important; }
.service-img-3 { object-position: center 35% !important; }
.service-img-4 { object-position: center 55% !important; }


/* =========================================================
   SERVICE FLIP CARDS
========================================================= */
.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 22px;
  list-style: none;
  position: relative;
  z-index: 5;
}

.service-item {
  min-height: 72px;
  height: 72px;
  perspective: 1000px;
  cursor: pointer;
  
}

.service-item.flipped {
  height: 300px;
}

.service-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.55s ease;
  -webkit-transition: -webkit-transform 0.55s ease;
}

.service-item.flipped .service-inner {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

.service-front,
.service-back{
  position: absolute;
  inset: 0;
  border-radius: 16px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  -webkit-font-smoothing: subpixel-antialiased;
}
.service-front {
  background: white;
  border: 1px solid var(--line);
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, .05);
  transition: box-shadow 0.25s, border-color 0.25s;
}

.service-item:hover .service-front {
  border-color: var(--blue);
  box-shadow: 0 16px 40px rgba(55, 189, 242, .18);
}

.service-check {
  color: var(--blue);
  font-weight: 900;
  font-size: 16px;
  flex-shrink: 0;
}

.service-front::after {
  content:"tap";
  position:absolute;
  right:14px;
  top:14px;

  font-size:9px;
  font-weight:800;

  color:var(--blue);

  letter-spacing:.5px;
  text-transform:uppercase;

  opacity:0;
  transition:.25s;
}


.service-item:hover .service-front::after {
  opacity: 1;
}

.service-back {
  background: linear-gradient(135deg, var(--navy), #1b62b2);
  padding: 20px;
  transform: rotateY(180deg) translateZ(0);
  -webkit-transform: rotateY(180deg) translateZ(0);
  overflow-y: auto;
  color: white;
}

.service-back h4 {
  font-size: 13px;
  font-weight: 900;
  color: var(--blue);
  margin-bottom: 8px;
  letter-spacing: .3px;
}

.service-back p {
  font-size: 13px !important;
  color: rgba(255, 255, 255, .78) !important;
  line-height: 1.7 !important;
  margin-bottom: 8px;
}

.service-back ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.service-back ul li {
  font-size: 12px;
  color: rgba(255, 255, 255, .88);
  padding: 5px 0 5px 14px;
  background: transparent;
  border: none;
  box-shadow: none;
  font-weight: 500;
  position: relative;
}

.service-back ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 11px;
}


/* =========================================================
   9. PRODUCTS SECTION
========================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.product {
  border-radius: 22px;
  padding: 14px;
  transition: .28s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 390px;
}

.product p {
  min-height: 58px;
}

.product .details-btn {
  margin-top: auto;
}

.product::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--blue), var(--red));
  opacity: .8;
}

.slot {
  height: 190px;
  border: 1px solid #cfe7f7;
  background: #eaf7ff;
  border-radius: 18px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #667085;
  font-size: 13px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
}

.slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: .45s;
  background: #fff;
  display: block;
}

.product:hover .slot img {
  transform: scale(1.08);
}

.product h3 {
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 8px;
}

.product p {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

.view-list,
.details-btn {
  margin-top: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f4fbff;
  color: var(--navy);
  font-weight: 900;
  cursor: pointer;
  transition: .25s;
}

.details-btn {
  background: var(--navy);
  color: white;
}

.view-list:hover,
.details-btn:hover {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: white;
}

.product-list {
  display: none;
}

.product-list ul {
  padding-left: 18px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.75;
}

@keyframes listOpen {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* =========================================================
   10. PORTFOLIO SECTION
========================================================= */
#portfolio .content {
  display: block;
}

#portfolio .text {
  max-width: 850px;
  margin-bottom: 36px;
}

.portfolio {
  background: white;
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 28px;
  box-shadow: 0 28px 80px rgba(16, 24, 40, .10);
  height: 780px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: relative;
}

.portfolio-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.portfolio-slider {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.portfolio-track {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.project {
  min-height: 360px;
  border-radius: 28px;
  padding: 0;
  transition: .28s;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.project-wide {
  grid-column: 1 / -1;
}

.project-img {
  min-height: 360px;
  background: #eaf7ff center / cover no-repeat;
}

.project-body {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: white;
}

.project::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 7px;
  background: linear-gradient(90deg, var(--navy), var(--blue), var(--red));
}

.project small {
  color: var(--red);
  font-weight: 900;
}

.project h3 {
  margin: 15px 0;
  color: var(--navy);
  font-size: 22px;
}

.project p {
  color: var(--text);
  line-height: 1.6;
}

.project-tag {
  margin-top: auto;
  padding-top: 18px;
  color: var(--navy);
  font-weight: 900;
  font-size: 13px;
}

.track-showcase {
  background: linear-gradient(135deg, #1f2a8a 0%, #2446b8 55%, #37bdf2 100%);
  border-radius: 34px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: .45s;
  box-shadow: 0 28px 80px rgba(32, 39, 132, .28);
  border: 1px solid rgba(255, 255, 255, .12);
}

.track-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, .22), transparent 35%);
}

.track-showcase:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow: 0 40px 80px rgba(32, 39, 132, .38);
  filter: brightness(1.03);
}

.track-bottom {
  width: 100%;
  min-height: 900px;
}

.track-top {
  max-width: 380px;
}

.track-showcase span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, .58);
}

.track-quote {
  margin-top: 28px;
  font-size: 42px;
  line-height: 1.02;
  font-weight: 800;
  color: white;
  letter-spacing: -2px;
}

.track-line {
  width: 70px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  margin: 30px 0;
}

.track-top .track-desc {
  font-size: 20px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .78);
  max-width: 360px;
}

.track-showcase h3 {
  font-size: 54px;
  line-height: 1;
  color: white;
  margin-bottom: 28px;
  letter-spacing: -2px;
}

.track-link {
  font-size: 24px;
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.long-arrow {
  width: 155px;
  height: 2px;
  background: white;
  position: relative;
  display: inline-block;
  margin-left: 10px;
}

.long-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 10px solid white;
  border-right: 10px solid white;
  transform: translateY(-50%) rotate(45deg);
}


/* =========================================================
   11. CONTACT SECTION
========================================================= */
.contact-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.contact-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-row:last-child {
  border-bottom: 0;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #eaf7ff;
  display: grid;
  place-items: center;
  color: var(--navy);
  font-size: 20px;
  font-weight: 900;
}

.contact-row b {
  display: block;
  color: var(--navy);
  margin-bottom: 5px;
}

.contact-row p {
  color: var(--text);
  line-height: 1.55;
}

.formbox {
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.formbox input,
.formbox textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 16px;
  outline: none;
  background: #f9fcff;
}

.formbox textarea {
  min-height: 160px;
  resize: none;
}

.formbox .btn {
  width: 100%;
  padding: 16px;
  border-radius: 18px;
  font-size: 16px;
}


/* =========================================================
   12. WHATSAPP FLOAT BUTTON
========================================================= */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 40;
  background: #25D366;
  color: white;
  text-decoration: none;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 28px;
  box-shadow: 0 18px 40px rgba(37, 211, 102, .35);
  transition: .25s;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 24px 55px rgba(37, 211, 102, .45);
}


/* =========================================================
   13. MODAL / POPUP
========================================================= */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, .58);
  backdrop-filter: blur(8px);
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.modal.active {
  display: flex;
}

.modal-box {
  width: min(900px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: white;
  border-radius: 28px;
  box-shadow: 0 35px 90px rgba(0, 0, 0, .28);
  animation: modalIn .35s ease;
}

.modal-head {
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.modal-head h2 {
  color: var(--navy);
}

.close {
  border: 0;
  background: #f2f4f7;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 20px;
}

.modal-body {
  padding: 26px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 22px;
}

.modal-image {
  min-height: 380px;
  height: auto;
  border-radius: 20px;
  background: #fff;
  border: 1px dashed #b8d8ea;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 10px;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: scale(1.1);
  border-radius: 18px;
  background: #fff;
}

.modal-body ul {
  padding-left: 20px;
  color: var(--text);
  line-height: 1.85;
}

.modal-body p {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 12px;
}

.track-record-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}

.track-record-grid img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(16, 24, 40, .12);
}

.track-record-box {
  max-width: 1100px !important;
}

.modal-close {
  border: 0;
  background: #f2f4f7;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 20px;
  display: block;
  margin-left: auto;
  margin-bottom: 8px;
}

@keyframes panelFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadePage {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}


/* =========================================================
   FIX: iOS zoom + overflow
========================================================= */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  width: 100%;
}

input,
textarea,
select {
  font-size: 16px !important;
  -webkit-text-size-adjust: 100%;
}


/* =========================================================
   14. TABLET (max-width: 1024px) — iPad Pro
========================================================= */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .track-bottom {
    min-height: 700px;
  }

  .track-quote {
    font-size: 34px;
  }

  .track-showcase h3 {
    font-size: 42px;
  }

  .service-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* =========================================================
   15. TABLET (max-width: 950px) — iPad / iPad Air
========================================================= */
@media (max-width: 950px) {
  body { overflow: auto; }

  header {
    height: auto;
    min-height: 72px;
    padding: 10px 4%;
    flex-wrap: wrap;
    gap: 10px;
  }

  .app {
    height: auto;
    min-height: calc(100vh - 72px);
    overflow: visible;
  }

  .panel {
    position: relative;
    display: none;
    min-height: calc(100vh - 72px);
    overflow: visible;
    padding: 36px 5%;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .panel.active { display: block; }

  .content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .home-content { grid-template-rows: auto; }
  .home-map { grid-column: 1; }

  .visual {
    height: 420px;
    border-radius: 26px;
  }

  .text h1 {
    font-size: 52px;
    line-height: 1.05;
    letter-spacing: -1.5px;
  }

  .text p {
    font-size: 17px;
    max-width: 100%;
  }

  .tabs {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar { display: none; }

  .tab {
    white-space: nowrap;
    font-size: 14px;
    padding: 11px 16px;
  }

  .cards { grid-template-columns: 1fr 1fr; }

  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .product { min-height: 400px; }
  .slot { height: 220px; }

  .service-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .service-photo { height: 300px; }

  .portfolio-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .track-bottom {
    min-height: 480px;
    aspect-ratio: auto;
    top: auto;
    position: relative;
    margin-top: 0;
  }

  .project {
    min-height: auto;
    grid-template-columns: 1fr 1fr;
  }

  .project-img { min-height: 300px; }
  .project-body { padding: 32px; }

  .project.reverse .project-body { order: 2; }
  .project.reverse .project-img  { order: 1; }

  .modal-body { grid-template-columns: 1fr; }
  .modal-image { min-height: 260px; }

  .service-item { height: 64px; }
  .service-item.flipped { height: 260px; }

  .service-inner {
    transform-style: flat;
    -webkit-transform-style: flat;
    transition: none;
    -webkit-transition: none;
  }

  .service-item.flipped .service-inner {
    transform: none;
    -webkit-transform: none;
  }

  .service-front {
    transition: opacity 0.3s ease;
    opacity: 1;
    pointer-events: auto;
  }

  .service-item.flipped .service-front {
    opacity: 0;
    pointer-events: none;
  }

  .service-back {
    transform: none;
    -webkit-transform: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }

  .service-item.flipped .service-back {
    opacity: 1;
    pointer-events: auto;
  }

  .service-item {
    height: auto;
    min-height: 64px;
    transition: min-height 0.3s ease;
  }

  .service-item.flipped {
    min-height: 260px;
    height: auto;
  }
}

/* =========================================================
   HERO VIDEO
========================================================= */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* =========================================================
   16. SMALL TABLET (max-width: 820px) — iPad Mini
========================================================= */
@media (max-width: 820px) {
  header { padding: 10px 4%; }
  .brand img { height: 46px; }
  .panel { padding: 30px 4%; }
  .content { gap: 26px; }

  .text h1 {
    font-size: 44px;
    line-height: 1.08;
    letter-spacing: -1px;
  }

  .text p { font-size: 16px; }
  .visual { height: 360px; }
  .kicker { font-size: 12px; }
  .cards { grid-template-columns: 1fr; }

  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .product { min-height: 370px; }
  .slot { height: 200px; }

  .service-list { grid-template-columns: 1fr; }

  .service-gallery {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .service-photo { height: 280px; }

  .service-main {
    padding: 32px !important;
    transform: none;
  }

  .project { grid-template-columns: 1fr; }
  .project-img { min-height: 260px; }
  .project-body { padding: 26px; }

  .track-quote { font-size: 28px; }
  .track-showcase h3 { font-size: 32px; }
  .track-top .track-desc { font-size: 16px !important; }

  .tabs { max-width: 100%; }
  .tab { white-space: nowrap; }

  .modal-body { grid-template-columns: 1fr; }
  .track-record-grid { grid-template-columns: 1fr; }

  .service-item { height: 64px; height:auto; }
  .service-item.flipped { height: 260px; height:auto; }
}


/* =========================================================
   17. LARGE PHONE (max-width: 620px) — iPhone Plus / Android XL
========================================================= */
@media (max-width: 620px) {
  header {
    height: auto;
    min-height: 70px;
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .brand img { height: 42px; }
  .brand-text img { height: 22px !important; }
  .brand-sub { font-size: 11px; margin-left: 4px; }

  .tabs {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    padding: 5px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar { display: none; }
  .tab { padding: 10px 13px; font-size: 13px; }

  .app {
    height: auto;
    min-height: calc(100vh - 70px);
    overflow: visible;
  }

  .panel { padding: 24px 16px; }
  .content { gap: 22px; }

  .text h1 {
    font-size: 36px;
    letter-spacing: -1px;
    line-height: 1.1;
  }

  .text p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  .kicker { font-size: 11px; padding: 6px 12px; }
  .btn { padding: 13px 20px; font-size: 14px; }
  .visual { height: 280px; border-radius: 22px; }
  .caption b { font-size: 18px; }
  .caption p { font-size: 13px; }

  .map-head { display: block; padding: 14px 16px; }
  .map-head b { font-size: 15px; }
  .home-map iframe { height: 200px; }
  .map-location { padding: 10px 16px; font-size: 13px; }

  .service-main { padding: 24px !important; transform: none; }
  .service-title { font-size: 26px !important; }

  .service-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-item { height: 64px; height: auto; }
  .service-item.flipped { min-height: 300px; height: auto; }
  .service-front { font-size: 13px; }

  .service-gallery {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
  }

  .service-photo { height: 240px; border-radius: 22px; padding: 10px; }
  .agent-row img { height: 80px !important; padding: 16px 20px; }
  .agent-row { gap: 14px !important; justify-content: center !important; }
  .permit-row img { height: 64px !important; padding: 12px 16px; }
  .permit-row { gap: 14px !important; }

  .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .product { min-height: auto; }
  .slot { height: 200px; }

  .portfolio-layout { grid-template-columns: 1fr; gap: 20px; }
  .project { grid-template-columns: 1fr; min-height: auto; }
  .project.reverse .project-body { order: 2; }
  .project.reverse .project-img  { order: 1; }
  .project-img { min-height: 220px; height: 220px; }
  .project1 { background-position: center 10%; }
  .project2 { background-position: center 70%; }
  .project3 { background-position: center 50%; }
  .project-body { padding: 22px; }
  .project h3 { font-size: 18px; }

  .track-bottom,
  .track-showcase {
    width: 100%;
    aspect-ratio: auto;
    min-height: 460px;
    margin-top: 0;
    position: relative;
    top: auto;
    padding: 28px 22px;
  }

  .track-quote { font-size: 22px; margin-top: 18px; }
  .track-showcase h3 { font-size: 26px; margin-bottom: 18px; }
  .track-top .track-desc { font-size: 14px !important; line-height: 1.65; max-width: 100%; }
  .track-line { margin: 20px 0; }
  .long-arrow { width: 80px; }

  .contact-card,
  .formbox { padding: 18px; border-radius: 22px; }

  .contact-icon { width: 38px; height: 38px; font-size: 17px; }
  .contact-row { grid-template-columns: 38px 1fr; gap: 12px; padding: 14px 0; }

  .formbox input,
  .formbox textarea { padding: 14px 16px; font-size: 16px; border-radius: 14px; }
  .formbox textarea { min-height: 130px; }
  .formbox .btn { padding: 14px; font-size: 15px; }

  .modal { padding: 12px; align-items: flex-start; overflow-y: auto; }
  .modal-box { width: 100%; max-height: none; border-radius: 20px; margin: 14px 0; }
  .modal-head { padding: 16px 18px; }
  .modal-head h2 { font-size: 22px; line-height: 1.2; }
  .modal-body { padding: 18px; gap: 16px; display: block; }
  .modal-image { width: 100%; height: auto; min-height: 0; padding: 8px; margin-bottom: 16px; overflow: visible; }
  .modal-image img { width: 100%; height: auto; object-fit: contain; transform: none; }
  .modal-body ul { font-size: 14px; line-height: 1.75; }
  .track-record-grid { grid-template-columns: 1fr; gap: 14px; }

  .whatsapp-float { right: 16px; bottom: 18px; width: 52px; height: 52px; font-size: 24px; }
}


/* =========================================================
   18. SMALL PHONE (max-width: 390px) — iPhone SE / Mini
========================================================= */
@media (max-width: 390px) {
  .text h1 { font-size: 30px; letter-spacing: -.5px; }
  .text p { font-size: 14px; }
  .visual { height: 240px; }
  .tab { padding: 9px 11px; font-size: 12px; }
  .service-photo { height: 210px; }
  .slot { height: 180px; }
  .project-img { min-height: 190px; height: 190px; }

  .track-bottom,
  .track-showcase { min-height: 400px; padding: 24px 18px; }

  .track-quote { font-size: 20px; }
  .track-showcase h3 { font-size: 22px; }
  .modal-head h2 { font-size: 19px; }
  .brand-text img { height: 20px !important; }
  .brand img { height: 38px; }

  .service-item.flipped { height: 290px; height: auto; }
}

