/* ══════════════════════════════════════════════════════════
   VARIABLES
══════════════════════════════════════════════════════════ */
:root {
   --c-white:     #ffffff;
  --c-gold:      #ffff00;
  --c-gold-dim:  rgba(255, 255, 80, 0.85);

  --bg-blue:     #2e4f84;   /* exact steel blue from original */
  --bg-dark:     #1a2e5a;
  --bg-navy:     #1e3868;

  --bd:          rgba(255, 255, 255, 0.30);
  --bd-h:        rgba(255, 255, 255, 0.70);

  /* FONT SIZES — match original scale */
  --fs-h1:       clamp(2.6rem, 5vw, 5rem);     /* large hero heading */
  --fs-slide:    clamp(0.9rem,  1.4vw, 1.15rem); /* top-right slide text */
  --fs-tab:      clamp(1rem,    1.5vw, 1.15rem); /* tab labels          */
  --fs-body:     clamp(0.85rem, 1.1vw, 0.98rem);
  --fs-sm:       clamp(0.78rem, 0.95vw, 0.88rem);
  --fs-modal-x:  clamp(3rem,    7.5vw, 7rem);
}

/* ══════════════════════════════════════════════════════════
    RESET
══════════════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%; height: 100%; overflow: hidden;
  background: var(--bg-blue);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  color: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════════════════════════
   BACKGROUND
══════════════════════════════════════════════════════════ */
#bg { position: fixed; inset: 0; z-index: 0; }

/* Blueprint SVG pattern */
#bg-pattern {
  position: absolute; inset: 0; z-index: 1;
  opacity: 0.30;
   pointer-events: none;
}
#bg-pattern svg { width: 100%; height: 100%; }

/* Subtle dark tint so text stays readable */
#bg-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: rgba(30, 50, 100, 0.25);
}

/* ══════════════════════════════════════════════════════════
   APP WRAPPER
══════════════════════════════════════════════════════════ */
#app {
  position: relative; z-index: 1;
  height: 100vh;
  overflow: hidden;   /* no scroll on home — single screen */
  display: flex;
  flex-direction: column;
}

/* ══════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════ */
header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 24px;
  padding: clamp(16px, 2.8vh, 30px) clamp(20px, 3.5vw, 52px) 0;
}

/* ── Logo ── */
.logo { display: flex; align-items: center; text-decoration: none; }

.logo-img {
  height: clamp(32px, 4vh, 54px);
  width: auto; display: block;
}
.logo-fallback {
  display: none;   /* shown by onerror JS */
  align-items: center; gap: 5px;
  color: var(--c-white);
} .logo-icon {
  font-size: clamp(18px, 2.4vw, 30px);
  font-weight: 200; letter-spacing: -2px; line-height: 1;
}
.logo-name {
  font-size: clamp(9px, 1.1vw, 13px);
  font-weight: 700; letter-spacing: 3.5px; margin-top: 3px;
}

/* ── Sliding text top-right ── */
.slide-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  flex-shrink: 0;
  line-height: 1.6;
}

.slide-box {
  display: block;
  overflow: hidden;
  height: 1.5em;
  text-align: right;
}

#slide-verb {
  display: block;
  font-size: var(--fs-slide);
  font-weight: 700;
  color: var(--c-gold);
  text-align: right;
  white-space: nowrap;
}

.slide-suffix {
  font-size: var(--fs-slide);
  font-weight: 400;
  color: var(--c-gold-dim);
  white-space: nowrap;
  line-height: 1.55;
}

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(16px, 3vh, 40px) clamp(20px, 3.5vw, 52px) 60px;
  overflow: visible;
}

.hero-content {
  /* Wide enough so heading fits on 3 lines naturally */
  max-width: min(920px, 65vw);
}

/* ── Big Heading ── */
.hero-heading {
  font-size: var(--fs-h1);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -2px;
  color: #ffffff;
}

/* ══════════════════════════════════════════════════════════
   TABS  (hover-only popup — JS-controlled for reliability)
══════════════════════════════════════════════════════════ */
.htabs {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4.5vw, 64px);
  margin-top: clamp(20px, 3.8vh, 48px);
  align-items: flex-start;
}

.htab {
  position: relative;
  cursor: default;
  /* !! No overflow:hidden — popup must escape this box !! */
}

/* Label row */
.htab-label-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
}

/* Bullet — image swap: default dot / hover "clicked" state */
.htab-bullet {
  flex-shrink: 0;
  width:  clamp(20px, 2.2vw, 26px);
  height: clamp(20px, 2.2vw, 26px);
  background-image: url('images/click-6.gif');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.htab:hover .htab-bullet {
  background-image: url('images/clicked-1.png');
}

/* Tab label text */
.htab-label {
  font-size: var(--fs-tab);
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  transition: color 0.2s;
}
.htab:hover .htab-label { color: var(--c-gold); }

/* ── Popup — hidden by default via JS class, NOT CSS hover ── */
.htab-popup {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  width: clamp(190px, 21vw, 270px);
  background: rgba(15, 30, 80, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: clamp(14px, 2vw, 22px);
  z-index: 100;

  /* Hidden state */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  pointer-events: none;
}

/* Shown state — toggled by JS */
.htab-popup.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}

/* Bridge gap from label to popup */
.htab-popup::before {
  content: '';
  position: absolute;
  top: -16px; left: 0;
  width: 100%; height: 16px;
}

.htab-popup p {
  font-size: var(--fs-body);
  color: rgba(200, 220, 255, 0.92);
  line-height: 1.65;
  margin-bottom: 16px;
}

.htab-popup button {
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  font-family: inherit;
  font-size: var(--fs-sm);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s;
}
.htab-popup button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

/* ══════════════════════════════════════════════════════════
   WORD BOX — bottom-right
══════════════════════════════════════════════════════════ */
.word-box {
  position: absolute;
  bottom: clamp(50px, 8vh, 85px);
  right:  clamp(20px, 3.5vw, 55px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  background: transparent;
  padding: clamp(14px, 2.2vh, 24px) clamp(22px, 2.8vw, 36px);
  min-width: clamp(130px, 13vw, 175px);
  text-align: center;
  z-index: 10;
}

.word-box-text {
  font-size: clamp(0.92rem, 1.25vw, 1.1rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  white-space: nowrap;
}

.here-btn {
  background: none;
  border: none;
  padding: 0;
  margin-top: 5px;
  font-family: inherit;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  font-weight: 700;
  color: var(--c-gold);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
}
.here-btn:hover { opacity: 0.75; }

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 10px 40px;
  background: rgba(0, 0, 0, 0.20);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: var(--fs-sm);
  color: rgba(200, 220, 255, 0.55);
  backdrop-filter: blur(5px);
}
footer a {
  color: rgba(200, 220, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}
footer a:hover { color: #ffffff; }

/* ══════════════════════════════════════════════════════════
   WEBSITE AIM SIDEBAR
══════════════════════════════════════════════════════════ */
.aim-widget {
  position: fixed;
  right: 0; top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  cursor: pointer;
  transition: transform 0.35s ease;
}
.aim-widget:hover { transform: translateY(-50%) translateX(-5px); }

.aim-inner {
  background: rgba(12, 24, 66, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-right: none;
  border-radius: 4px 0 0 4px;
  padding: clamp(14px, 2.5vh, 28px) clamp(9px, 1.2vw, 14px);
  display: flex;
  align-items: center;
}

.aim-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: clamp(7px, 0.9vw, 10px);
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--c-gold);
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════
   MODAL BASE
══════════════════════════════════════════════════════════ */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
}
.modal.open { display: flex; }

/* Full-screen modals */
#m-about, #m-services, #m-portfolio {
  align-items: stretch;
  justify-content: stretch;
}

.m-close {
  position: absolute; top: 18px; right: 22px; z-index: 10;
  background: none; border: none;
  font-size: clamp(20px, 2.5vw, 32px);
  line-height: 1; padding: 5px;
  color: rgba(200, 215, 240, 0.55);
  cursor: pointer;
  transition: color 0.2s;
}
.m-close:hover { color: #ffffff; }
.m-close-sm { top: 10px; right: 14px; font-size: clamp(16px, 1.8vw, 22px); }

/* ══════════════════════════════════════════════════════════
   MODAL: ABOUT
══════════════════════════════════════════════════════════ */
.m-about-inner {
  width: 100vw; height: 100vh;
  background: #050505;
  display: flex;
  position: relative;
  overflow: hidden;
}

.about-graphic {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.about-graphic-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; }

.fe {
  position: absolute;
  border: 1px solid rgba(80, 112, 205, 0.28);
  background: rgba(38, 50, 110, 0.12);
  animation: floatY 4.2s ease-in-out infinite;
}
.fe::before {
  content: ''; display: block;
  margin: 12px 10px 6px;
  height: 1.5px;
  background: rgba(115, 145, 215, 0.24);
  box-shadow: 0 9px 0 rgba(115, 145, 215, 0.17), 0 18px 0 rgba(115, 145, 215, 0.13);
}
.fe-1 { width: clamp(85px,13vw,170px); height: 78px; top: 17%; left: 11%; animation-delay: 0s; }
.fe-2 { width: clamp(60px, 8vw,107px); height: 54px; top: 10%; left: 44%; animation-delay: 0.6s; }
.fe-3 { width: clamp(80px,11vw,136px); height: 70px; top: 36%; left: 56%; animation-delay: 1.0s; }
.fe-4 { width: clamp(50px, 7vw, 83px); height: 47px; top: 55%; left: 20%; animation-delay: 1.5s; }
.fe-5 { width: clamp(88px,12vw,150px); height: 76px; top: 62%; left: 43%; animation-delay: 0.9s; }
.fe-6 { width: clamp(42px, 6vw, 67px); height: 44px; top: 78%; left: 65%; animation-delay: 0.3s; }
.fe-3::after {
  content: '▶'; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 16px; color: rgba(115, 145, 215, 0.30);
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-13px); }
}

.about-dots { position: absolute; opacity: 0.26; display: grid; gap: 5px; }
.about-dots span { width: 3px; height: 3px; border-radius: 50%; background: rgba(100, 150, 220, 0.9); display: block; }
.about-dots-1 { grid-template-columns: repeat(4, 1fr); top: 46%; left: 26%; }
.about-dots-2 { grid-template-columns: repeat(3, 1fr); top: 20%; left: 62%; opacity: 0.15; }

.slash-line { position: absolute; height: 1px; background: rgba(80, 200, 200, 0.18); transform-origin: left center; }
.sl-1 { width: 68px; top: 42%; left: 38%; transform: rotate(-28deg); }
.sl-2 { width: 85px; top: 70%; left: 28%; transform: rotate(22deg); }
.sl-3 { width: 50px; top: 28%; left: 54%; transform: rotate(45deg); }

.about-text {
  width: clamp(280px, 42%, 540px);
  padding: clamp(50px, 8vh, 90px) clamp(24px, 3.8vw, 56px) clamp(50px, 8vh, 90px) clamp(20px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.about-paras p {
  font-size: var(--fs-body);
  color: rgba(200, 220, 255, 0.90);
  line-height: 1.8;
  margin-bottom: clamp(12px, 2vh, 22px);
}
.text-gold { color: var(--c-gold); font-style: normal; }
 .about-contact {
  margin-top: clamp(14px, 2.2vh, 26px);
  padding-top: clamp(12px, 1.8vh, 20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--fs-body);
  color: rgba(200, 220, 255, 0.85);
  line-height: 1.8;
}
.about-contact strong {
  display: block; margin-bottom: 4px;
  font-size: var(--fs-sm);
  color: rgba(185, 210, 248, 0.70);
}
.about-exp-link {
  display: inline-block;
  margin-top: clamp(14px, 2vh, 22px);
  font-size: var(--fs-sm);
  color: var(--c-gold-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.about-exp-link:hover { color: var(--c-gold); }

.about-bigtitle {
  position: absolute;
  bottom: clamp(20px, 3.5vh, 40px);
  right: clamp(18px, 3vw, 50px);
  font-size: var(--fs-modal-x);
  font-weight: 900;
  color: #ffffff;
  line-height: 0.92;
  text-align: right;
  letter-spacing: -2px;
}

/* ══════════════════════════════════════════════════════════
   MODAL: SERVICES
══════════════════════════════════════════════════════════ */
.m-services-inner {
  width: 100vw; height: 100vh;
  background: #080808;
  display: flex;
  position: relative;
  overflow: hidden;
}
.m-services-inner::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 25% 60%, rgba(28, 38, 64, 0.92) 0%, transparent 55%),
    radial-gradient(ellipse at 62% 26%, rgba(22, 30, 54, 0.78) 0%, transparent 48%);
}

.srv-grid {
  position: relative; z-index: 1;
  width: clamp(55%, 63%, 72%);
  padding: clamp(18px, 2.5vh, 34px) clamp(14px, 2vw, 32px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(5px, 0.7vw, 10px);
  align-content: center;
  overflow-y: auto;
}
.srv-card { background: rgba(255, 255, 255, 0.95); padding: clamp(10px, 1.3vw, 15px); }
.srv-icon  { color: #2b3a5c; font-size: clamp(13px, 1.5vw, 17px); margin-bottom: clamp(5px, 0.8vh, 8px); height: clamp(18px, 2.2vh, 24px); display: flex; align-items: center; }
.srv-title { font-size: clamp(10px, 1.0vw, 12px); font-weight: 700; color: #111; line-height: 1.3; margin-bottom: clamp(3px, 0.5vh, 5px); }
.srv-desc  { font-size: clamp(8.5px, 0.85vw, 10.5px); color: #444; line-height: 1.55; }
 .srv-side-title {
  position: relative; z-index: 1; flex: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(48px, 8.5vw, 115px);
  font-weight: 900; color: #ffffff; letter-spacing: -2px;
}

/* ══════════════════════════════════════════════════════════
   MODAL: PORTFOLIO
══════════════════════════════════════════════════════════ */
.m-portfolio-inner {
  width: 100vw; height: 100vh;
  background: var(--bg-navy);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
}
.m-portfolio-inner::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(80, 110, 200, 0.14) 1px, transparent 1px);
  background-size: 28px 28px; opacity: 0.55;
}

.pf-map {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  gap: clamp(18px, 3.5vh, 38px);
  padding: 0 clamp(16px, 4vw, 60px);
}
.pf-row { display: flex; align-items: center; gap: clamp(32px, 6vw, 80px); }
.pf-row-3, .pf-row-4 { justify-content: center; }
.pf-item { display: flex; align-items: center; }

.pf-logo-box {
  flex-shrink: 0;
  min-width: clamp(100px, 12vw, 150px);
  height: clamp(42px, 6vh, 58px);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 6px 10px;
  position: relative; overflow: hidden;
}
.pf-logo-box::after {
  content: attr(data-name);
  font-size: clamp(9px, 1vw, 12px);
  font-weight: 700; color: #333;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.pf-logo-box img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: contain; padding: 5px;
  background: #fff;
}
.pf-logo-wide { min-width: clamp(130px, 15vw, 180px); }
.pf-logo-sq   { min-width: clamp(46px, 6vw, 68px); width: clamp(46px, 6vw, 68px); height: clamp(46px, 6vw, 68px); }

.pf-conn { display: flex; align-items: center; flex-shrink: 0; }
.pf-line { width: clamp(36px, 5vw, 65px); height: 1.5px; background: var(--c-gold); }
.pf-dot  {
  width: clamp(7px, 1vw, 11px); height: clamp(7px, 1vw, 11px);
  border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--c-gold);
  background: var(--bg-navy);
}
.pf-cat { font-size: clamp(9px, 1.05vw, 12.5px); line-height: 1.5; color: #ffffff; white-space: nowrap; }
.pf-cat-l { text-align: right;  padding-right: clamp(6px, 1vw, 12px); }
.pf-cat-r { text-align: left;   padding-left:  clamp(6px, 1vw, 12px); }

.pf-big-title {
  position: absolute;
  bottom: clamp(32px, 6vh, 60px);
  left: clamp(26px, 4vw, 50px);
  font-size: var(--fs-modal-x);
  font-weight: 900; color: #ffffff;
  line-height: 0.92; z-index: 2;
}

/* ══════════════════════════════════════════════════════════
   MODAL: CONTACT
══════════════════════════════════════════════════════════ */
.m-contact-inner {
  width: clamp(270px, 90vw, 360px);
  background: rgba(12, 24, 66, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 2px;
  padding: clamp(20px, 3.5vh, 36px) clamp(18px, 2.8vw, 30px);
  position: relative;
}
.contact-title {
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 600;
  color: rgba(205, 220, 255, 0.95);
  text-align: center;
  line-height: 1.5;
  margin-bottom: clamp(14px, 2.5vh, 26px);
}
.cform input, .cform textarea {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(78, 125, 205, 0.30);
  padding:  10px 12px;
  font-size: clamp(12px, 1.1vw, 14px);
  color: #333;
  font-family: inherit;
  display: block;
  margin-bottom: 10px;
  outline: none;
}
.cform textarea { resize: none; height: 92px; }
.cform input::placeholder, .cform textarea::placeholder { color: #999; }
.cform input:focus, .cform textarea:focus { border-color: rgba(88, 155, 240, 0.6); }
.captcha-row {
  display: flex; align-items: center; gap: 10px;
  background: #f9f9f9;
  border: 1px solid #d3d3d3;
  padding: 9px 12px;
  margin-bottom: 12px;
  font-size: clamp(11px, 1.1vw, 13px); color: #444;
}
.captcha-row input[type="checkbox"] { width: 18px; height: 18px; margin: 0; cursor: pointer; flex-shrink: 0; }
.captcha-logo { margin-left: auto; text-align: center; font-size: 8px; color: #aaa; line-height: 1.4; }
.captcha-logo strong { display: block; font-size: 10px; color: #777; margin-bottom: 1px; }

.deliver-btn {
  width: 100%;
  background: #2f64cc; color: #fff;
  border: none;
  padding: clamp(9px, 1.5vh, 13px);
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: 600; cursor: pointer;
  font-family: inherit; letter-spacing: 0.5px;
  transition: background 0.22s;
}
.deliver-btn:hover { background: #2451b0; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 980px) {
  .srv-grid { grid-template-columns: repeat(2, 1fr); width: 100%; }
  .srv-side-title { display: none; }
  .hero-content { max-width: 90vw; }
}
@media (max-width: 700px) {
  .hero { padding-bottom: 90px; }
  .htabs { flex-direction: column; gap: 20px; }
  .about-graphic { display: none; }
  .about-text { width: 100%; }
  .word-box { right: 50%; transform: translateX(50%); }
  .aim-widget { display: none; }
}
@media (max-width: 480px) {
  .srv-grid { grid-template-columns: 1fr; }
  .about-bigtitle { position: static; margin-top: 18px; font-size: 2.5rem; text-align: left; }
  .hero-content { max-width: 100%; }
}