/* =========================
   GLOBAL
   ========================= */
html, body{
  width: 100%;
  overflow-x: hidden;
}

:root{
  --bg:#ffffff;
  --bg2:#f6f7f9;
  --text:#101828;
  --muted:#475467;
  --line:#e4e7ec;
  --brand:#0b2a3a;
  --brand2:#163d52;
  --accent:#b08d57;
  --radius:18px;
  --shadow: 0 10px 28px rgba(16,24,40,0.08);
  --max: 1160px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:var(--bg);
  line-height:1.55;
}

a{color:inherit;text-decoration:none}
a:hover{opacity:.92}

img{
  max-width:100%;
  display:block;
}

.hero-shell,
.offer-frame,
.about-frame{
  max-width: 100%;
}

.hero-content{
  max-width: 100%;
}

.container{
  width:100%;
  max-width:var(--max);
  margin:0 auto;
  padding:0 18px;
}

/* =========================
   TOPBAR
   ========================= */

.topbar{
  background:var(--brand);
  color:#fff;
  font-size:14px;
}

.topbar .container{
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  padding:10px 18px;
}

.topbar .meta{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  opacity:.92;
}

.topbar .meta span{white-space:nowrap}

.topbar .meta a{
  color:#fff;
  text-decoration:underline;
  text-underline-offset:3px;
  font-weight:650;
}

/* =========================
   HEADER / NAV
   ========================= */

.header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.88);
  backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--line);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}

.logo{
  width:40px;
  height:40px;
  border-radius:14px;
  /* background:linear-gradient(135deg, var(--brand), var(--brand2)); */
  box-shadow:0 8px 18px rgba(120, 129, 133, 0.18);
}

.brand .name{
  font-weight:800;
  letter-spacing:.2px;
}

.brand .tag{
  font-size:12px;
  color:var(--muted);
  margin-top:-2px;
}

/* Desktop nav links */
.navlinks{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:1;
  gap:14px;
  flex-wrap:nowrap;
  overflow:hidden;
}

.navlinks a{
  font-size:14px;
  color:var(--muted);
  padding:10px 10px;
  border-radius:12px;
  transition:background .15s ease, color .15s ease;
  white-space:nowrap;
}

.navlinks a.active,
.navlinks a:hover{
  color:var(--text);
  background:var(--bg2);
}

/* CTA */
.cta{
  display:flex;
  gap:10px;
  align-items:center;
  flex-shrink:0;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  font-size:14px;
  font-weight:650;
  transition:transform .15s ease, opacity .15s ease;
}

.btn.primary{
  background:#0b0b0b;
  color:#fff;
  border-color:transparent;
  box-shadow:0 10px 22px rgba(0,0,0,.18);
}

.btn.ghost{background:transparent}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(0px)}

/* Hamburger */
.hamburger{
  display:none;
  width:42px;
  height:42px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

/* Mobile menu */
.mobilemenu{
  display:none;
  padding:10px 0 14px;
  border-top:1px solid var(--line);
}

.mobilemenu a{
  display:block;
  padding:12px 10px;
  border-radius:14px;
  color:var(--muted);
}

.mobilemenu a.active{
  background:var(--bg2);
  color:var(--text);
}

.mobilemenu .cta{
  margin-top:10px;
  padding:0 10px;
}

.mobilemenu.open{display:block}

/* Dropdown (desktop) */
.dropdown{
  position:relative;
  display:flex;
  align-items:center;
}

.dropdown-toggle{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:14px;
  color:var(--muted);
  padding:10px 10px;
  border-radius:12px;
  cursor:pointer;
  transition:background .15s ease, color .15s ease;
  white-space:nowrap;
}

.dropdown-toggle::after{
  content:"▾";
  font-size:11px;
  opacity:.6;
  margin-top:1px;
}

.dropdown:hover .dropdown-toggle,
.dropdown:focus-within .dropdown-toggle{
  color:var(--text);
  background:var(--bg2);
}

.dropdown-menu{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  min-width:260px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:0 18px 40px rgba(16,24,40,.14);
  padding:8px;
  display:none;
  z-index:100;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu{
  display:block;
}

.dropdown-menu a{
  display:block;
  padding:12px 14px;
  border-radius:12px;
  font-size:14px;
  color:var(--text);
  white-space:nowrap;
}

.dropdown-menu a:hover{
  background:var(--bg2);
}

/* =========================
   SECTIONS / TYPOGRAPHY
   ========================= */

.section{
  padding:54px 0;
  background:#fff;
}

.section.alt{
  background:var(--bg2);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.section h2{
  margin:0 0 10px;
  font-size:28px;
  letter-spacing:-.3px;
}

.sub{
  color:
  var(--muted);
  margin:0 0 22px;
  max-width:70ch;
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:13px;
  color:var(--muted);
  background:var(--bg2);
  border:1px solid var(--line);
  padding:8px 12px;
  border-radius:999px;
  width:max-content;
}

.kicker .dot{
  width:8px;
  height:8px;
  border-radius:99px;
  background:var(--accent);
}

.lead{
  color:var(--muted);
  font-size:16px;
  max-width:64ch;
}

/* =========================
   REVEAL
   ========================= */

.reveal{
  opacity:0;
  transform:translateY(10px);
  transition:all .55s ease;
}
.reveal.show{
  opacity:1;
  transform:translateY(0);
}

/* =========================
   HERO (REFERENCE CARD + ROTATING IMAGES)
   ========================= */

.hero{
  padding:28px 0 48px;
  background:var(--bg);
}

.hero-shell{
  position:relative;
  border-radius:28px;
  overflow:hidden;
  min-height:520px;
  border:1px solid var(--line);
  box-shadow:0 18px 50px rgba(16,24,40,.12);
}

.hero-media{
  position:absolute;
  inset:0;
  z-index:0;
}

.hero-bg-layer{
  position:absolute;
  inset:0;
  opacity:0;
  transition: opacity 1.15s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  will-change: opacity, transform;
}

/* Update these paths to your real files */
/* Update these paths to your real files (CSS is in /assets/css/, so go up one level) */
.hero-bg-layer[data-bg="0"]{ background-image: url("../img/hero1.png"); }
.hero-bg-layer[data-bg="1"]{ background-image: url("../img/hero2.png"); }
.hero-bg-layer[data-bg="2"]{ background-image: url("../img/hero3.png"); }


.hero-bg-layer.is-active{
  opacity:1;
  transform: scale(1.04);
  transition: opacity 1.15s ease, transform 7s ease;
}

.hero-shade{
  position:absolute;
  inset:0;
  z-index:1;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,.62) 0%,
    rgba(0,0,0,.46) 38%,
    rgba(0,0,0,.18) 70%,
    rgba(0,0,0,.10) 100%
  );
}

.hero-content{
  position:relative;
  z-index:2;
  padding:74px 64px;
  max-width:720px;
}

.hero-content h1{
  margin:0 0 14px;
  font-size:54px;
  line-height:1.02;
  letter-spacing:-1px;
  color:#fff;
}

.hero-content .lead{
  margin:0;
  margin-top:10px;
  color: rgba(255,255,255,.88);
  max-width:52ch;
}

.hero-actions{
  margin-top:22px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.hero-content .btn{
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.12);
  color:#fff;
}

.hero-content .btn.primary{
  background:#0b0b0b;
  border-color:transparent;
  color:#fff;
}

.hero-trust{
  margin:18px 0 0;
  color: rgba(255,255,255,.78);
  font-size:14px;
}

/* =========================
   SECTION 3 — WHAT WE OFFER
   ========================= */

.offer{
  background: var(--bg);
}

.offer-head{
  max-width:640px;
  margin-bottom:42px;
}

.offer-grid{
  display:grid;
  grid-template-columns: 1fr 1.2fr;
  gap:48px;
  align-items:center;
}

.offer-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.offer-item{
  display:flex;
  gap:18px;
  align-items:flex-start;
  padding:18px;
  border-radius:18px;
  border:1px solid var(--line);
  background:#fff;
  cursor:pointer;
  text-align:left;
  transition: background .2s ease, border-color .2s ease;
}

.offer-item:hover{ background: var(--bg2); }

.offer-item.is-active{
  background: linear-gradient(135deg, rgba(11,42,58,.04), rgba(176,141,87,.06));
  border-color: rgba(11,42,58,.28);
}

.offer-index{
  font-size:14px;
  font-weight:800;
  color:var(--muted);
  min-width:28px;
}

.offer-item.is-active .offer-index{ color: var(--brand); }

.offer-body{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.offer-title{
  font-weight:800;
  font-size:16px;
}

.offer-text{
  font-size:14px;
  color:var(--muted);
  line-height:1.45;
}

.offer-cta{ margin-top:18px; }

/* Visual */
.offer-frame{
  position:relative;
  border-radius:26px;
  overflow:hidden;
  min-height:420px;
  border:1px solid var(--line);
  box-shadow:0 18px 50px rgba(16,24,40,.12);
  background:#000;
}

.offer-media{
  position:absolute;
  inset:0;
}

.offer-bg{
  position:absolute;
  inset:0;
  opacity:0;
  transition: opacity .9s ease;
  background-size: cover;
  background-position: center;
  background-repeat:no-repeat;
}

/* Update these paths to your real files */

.offer-bg[data-offer-bg="0"]{ background-image: url("../img/offer-procurement.jpg"); }
.offer-bg[data-offer-bg="1"]{ background-image: url("../img/offer-engineering.jpg"); }
.offer-bg[data-offer-bg="2"]{ background-image: url("../img/offer-aviation.jpg"); }
.offer-bg[data-offer-bg="3"]{ background-image: url("../img/offer-logistics.jpg"); }

.offer-bg.is-active{ opacity:1; }

.offer-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,.55) 0%,
    rgba(0,0,0,.35) 45%,
    rgba(0,0,0,.15) 75%,
    rgba(0,0,0,.08) 100%
  );
  z-index:1;
}

.offer-badge{
  position:absolute;
  bottom:22px;
  left:22px;
  z-index:2;
  background:#fff;
  padding:14px 18px;
  border-radius:16px;
  box-shadow:0 12px 30px rgba(16,24,40,.18);
}

.offer-badge-num{
  font-size:28px;
  font-weight:900;
  line-height:1;
}

.offer-badge-title{
  font-size:13px;
  color:var(--muted);
  margin-top:4px;
}

.offer-rail{
  position:absolute;
  top:50%;
  z-index:2;
  display:flex;
  align-items:center;
  gap:10px;
  color: rgba(255,255,255,.65);
  font-size:12px;
  letter-spacing:.22em;
  transform: translateY(-50%);
}

.offer-rail-left{
  left:-34px;
  transform: translateY(-50%) rotate(-90deg);
}

.offer-rail-right{
  right:-34px;
  transform: translateY(-50%) rotate(90deg);
}

.offer-rail-num{ font-weight:800; }

/* =========================
   SECTION 4 — ABOUT SNAPSHOT
   ========================= */

.about-snapshot{
  background: var(--bg2);
}

.about-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:48px;
  align-items:center;
}

.about-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}

.about-trust{
  margin-top:18px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.about-frame{
  position:relative;
  border-radius:26px;
  overflow:hidden;
  min-height:360px;
  border:1px solid var(--line);
  box-shadow:0 18px 50px rgba(16,24,40,.12);
  background:#000;
}

.about-media{
  position:absolute;
  inset:0;
}

.about-bg{
  position:absolute;
  inset:0;
  opacity:0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
  background-repeat:no-repeat;
}

/* Update these paths to your real files */
.about-bg[data-about-bg="0"]{ background-image: url("../img/about-1.jpg"); }
.about-bg[data-about-bg="1"]{ background-image: url("../img/about-2.jpg"); }
.about-bg[data-about-bg="2"]{ background-image: url("../img/about-3.jpg"); }

.about-bg.is-active{ opacity:1; }

.about-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,.55) 0%,
    rgba(0,0,0,.25) 55%,
    rgba(0,0,0,.12) 100%
  );
  z-index:1;
}

.about-badge{
  position:absolute;
  left:18px;
  bottom:18px;
  z-index:2;
  background:#fff;
  border-radius:16px;
  padding:12px 14px;
  box-shadow:0 12px 30px rgba(16,24,40,.18);
  max-width:80%;
}

.about-badge-label{
  font-size:12px;
  color:var(--muted);
}

.about-badge-items{
  font-size:14px;
  font-weight:800;
  margin-top:4px;
}

/* =========================
   SECTION 5 — INDUSTRIES (INFINITE HORIZONTAL LANE)
   ========================= */

.industries-scroll{
  background: var(--bg);
}

.industries-head{
  margin-bottom:22px;
}

.industries-track-wrap{
  position:relative;
  display:flex;           /* IMPORTANT for clone to sit side-by-side */
  flex-wrap:nowrap;
  overflow-x:auto;
  overflow-y:hidden;
  padding-bottom:10px;

  margin-left:-18px;
  margin-right:-18px;

  -webkit-overflow-scrolling: touch;
}

.industries-track-wrap::-webkit-scrollbar{ height:6px; }
.industries-track-wrap::-webkit-scrollbar-thumb{
  background: rgba(16,24,40,.18);
  border-radius:10px;
}
.industries-track-wrap{
  scrollbar-width: thin;
  scrollbar-color: rgba(16,24,40,.25) transparent;
}

.industries-track{
  display:flex;
  flex:0 0 auto;
  gap:16px;
  padding:0 18px;
  align-items:stretch;
}

.industry-card{
  flex:0 0 280px;
  border-radius:20px;
  border:1px solid var(--line);
  background:#fff;
  padding:22px;
  box-shadow:0 12px 30px rgba(16,24,40,.08);
}

.industry-title{
  font-size:16px;
  font-weight:800;
  margin-bottom:6px;
}

.industry-text{
  font-size:14px;
  color:var(--muted);
  line-height:1.45;
}

.industries-note{
  margin-top:22px;
  max-width:72ch;
}

.industries-cta{ margin-top:22px; }

/* =========================
   PARTNERS — 3D LOGO CUBE
   ========================= */

.partners{
  background: var(--bg);
}

.partners-head{
  max-width:720px;
  margin-bottom:26px;
}

.partners-cube-wrap{
  display:flex;
  justify-content:center;
  align-items:center;
  margin:26px 0 18px;
}

.cube-scene{
  --cube-size: 260px;
  --depth: calc(var(--cube-size) / 2);
  width: var(--cube-size);
  height: var(--cube-size);
  perspective: 900px;
  perspective-origin: 50% 45%;
}

.cube{
  position:relative;
  width:100%;
  height:100%;
  transform-style:preserve-3d;
  animation: cubeSpin 12s linear infinite;
}

.cube-scene:hover .cube{ animation-play-state: paused; }

.cube-face{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:26px;
  background: rgba(255,255,255,.95);
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:
    0 18px 55px rgba(16,24,40,.10),
    inset 0 1px 0 rgba(255,255,255,.55);
}

.cube-face img{
  max-width:78%;
  max-height:78%;
  object-fit:contain;
  filter: grayscale(1);
  opacity:.92;
}

.cube-front  { transform: rotateY(  0deg) translateZ(var(--depth)); }
.cube-right  { transform: rotateY( 90deg) translateZ(var(--depth)); }
.cube-back   { transform: rotateY(180deg) translateZ(var(--depth)); }
.cube-left   { transform: rotateY(-90deg) translateZ(var(--depth)); }
.cube-top    { transform: rotateX( 90deg) translateZ(var(--depth)); }
.cube-bottom { transform: rotateX(-90deg) translateZ(var(--depth)); }

@keyframes cubeSpin{
  0%   { transform: rotateX(-18deg) rotateY(0deg); }
  100% { transform: rotateX(-18deg) rotateY(360deg); }
}

.partners-cta{ margin-top:18px; }

@media (prefers-reduced-motion: reduce){
  .cube{ animation:none; }
}

/* =========================
   FINAL CTA
   ========================= */

.final-cta{
  background: var(--bg2);
  border-top:1px solid var(--line);
}

.final-cta-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:36px 40px;
  border-radius:26px;
  background: linear-gradient(135deg, rgba(11,42,58,.08), rgba(176,141,87,.08));
  border:1px solid var(--line);
  box-shadow:0 16px 40px rgba(16,24,40,.12);
}

.final-cta-copy{
  max-width:620px;
}

.final-cta-copy h2{
  margin:0 0 8px;
  font-size:32px;
  letter-spacing:-.4px;
}

.final-cta-copy .sub{
  margin:0;
  color:var(--muted);
}

.final-cta-actions{
  display:flex;
  gap:12px;
  flex-shrink:0;
}

/* =========================
   FOOTER
   ========================= */

.footer{
  background: var(--brand);
  color:#fff;
  padding:56px 0 22px;
}

.footer .muted{ color: rgba(255,255,255,.82); }

.footer a{
  color:#fff;
  opacity:.92;
}
.footer a:hover{
  opacity:1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-cols{
  display:grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  gap:28px;
  align-items:flex-start;
}

.footer-brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.footer-title{
  font-weight:900;
  letter-spacing:.3px;
}

.footer-desc{
  margin:0;
  font-size:14px;
  line-height:1.55;
  color: rgba(255,255,255,.88);
  max-width:52ch;
}

.footer-head{
  font-weight:800;
  font-size:14px;
  margin-bottom:10px;
  letter-spacing:.3px;
}

.footer-links{
  list-style:none;
  padding:0;
  margin:0;
}

.footer-links li{ margin-bottom:8px; }

.footer-links a{ font-size:13px; }

.footer-space{ height:14px; }
.footer-space-sm{ height:8px; }

.footer hr{
  border:none;
  border-top:1px solid rgba(255,255,255,.14);
  margin:22px 0 14px;
}

.footer-bottom{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.footer .small{
  font-size:12px;
  opacity:.85;
  line-height:1.45;
}

/* =========================
   RESPONSIVE (SINGLE SOURCE OF TRUTH)
   ========================= */

/* Reduce nav spacing on medium screens */
@media (max-width: 1180px){
  .navlinks{ gap:10px; }
  .navlinks a,
  .dropdown-toggle{ padding:10px 8px; }
}

/* Switch to hamburger earlier for long menu */
@media (max-width: 1100px){
  .navlinks, .cta{ display:none; }
  .dropdown{ display:none; }
  .hamburger{ display:flex; }
}

/* Tablet */
@media (max-width: 980px){
  .footer-cols{ grid-template-columns:1fr; gap:22px; }
  .footer-desc{ max-width:100%; }

  .hero-content{
    padding:56px 34px;
    max-width:100%;
  }
  .hero-content h1{
    font-size:40px;
    line-height:1.08;
  }
  .hero-shell{ min-height:520px; }

  .offer-grid{
    grid-template-columns:1fr;
    gap:36px;
  }
  .offer-frame{ min-height:360px; }
  .offer-rail{ display:none; }

  .about-grid{
    grid-template-columns:1fr;
    gap:34px;
  }
  .about-frame{ min-height:320px; }

  .cube-scene{ --cube-size:230px; }
}

/* Mobile */
@media (max-width: 720px){
  .final-cta-card{
    flex-direction:column;
    align-items:flex-start;
  }
  .final-cta-actions{
    width:100%;
    flex-wrap:wrap;
  }
  .final-cta-actions .btn{
    width:100%;
    justify-content:center;
  }
}

@media (max-width: 680px){
  .mobilemenu a{ font-size:15px; }
  .mobilemenu a[href*="procurement"],
  .mobilemenu a[href*="engineering"],
  .mobilemenu a[href*="aviation"],
  .mobilemenu a[href*="logistics"]{
    padding-left:26px;
    font-size:14px;
    color:var(--muted);
  }
  .mobilemenu .btn{ width:100%; }

  .hero-content{ padding:44px 22px; }
  .hero-content h1{ font-size:34px; }
  .hero-actions .btn{ width:100%; justify-content:center; }
  .hero-shell{ border-radius:22px; min-height:520px; }

  .offer-frame{ min-height:300px; border-radius:22px; }
  .offer-badge{ left:16px; bottom:16px; }
  .offer-item{ padding:16px; }

  .about-frame{ min-height:280px; border-radius:22px; }
  .about-actions .btn{ width:100%; justify-content:center; }

  .industry-card{ flex:0 0 240px; padding:18px; }

  .cube-scene{ --cube-size:190px; }
  .cube-face{ padding:18px; border-radius:18px; }
}
