/* ===========================
   MSkills Trading – Global CSS
   Colors ONLY via :root vars
   =========================== */
:root {
  /* ===== Brand ===== */
  --c-brand: #ff9a00;                 /* primary orange */
  --c-white: #ffffff;
  --c-black: #090a0b;

  /* ===== Warm slate (premium dark, not muddy) ===== */
  --c-bg:        #181b21;             /* app background */
  --c-surface:   #1f242c;             /* primary surface/cards */
  --c-surface-2: #262c36;             /* raised/alt surface */
  --c-border:    #3a4350;             /* clearer separators */
  --c-muted:     #e2e6ee;             /* readable secondary text */

  /* ===== States ===== */
  --c-success: #17c964;
  --c-error:   #f31260;
  --c-warning: #f5a524;

  /* ===== Overlays & shadows ===== */
  --c-overlay: rgba(0,0,0,0.48);
  --c-shadow-soft: rgba(0,0,0,0.14);
  --c-shadow:      rgba(0,0,0,0.28);

  /* Stronger orange aura so hero/hover/focus feel more brand */
  --c-brand-ghost: rgba(255,154,0,0.44);

  /* ===== Typography ===== */
  --ff-base: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-root: 16px;
  --lh-base: 1.6;

  /* ===== Layout ===== */
  --container-max: 1120px;
  --container-pad: 4vw;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* ===== Effects ===== */
  --shadow-md: 0 10px 24px var(--c-shadow-soft);
  --shadow-lg: 0 20px 44px var(--c-shadow);

  /* ===== Transitions ===== */
  --t-fast: 150ms;
  --t-base: 220ms;
  --t-slow: 380ms;
  --ease: cubic-bezier(.2,.8,.2,1);
}


/* ========== Base ==========\ */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--ff-base);
  line-height: var(--lh-base);
  color: var(--c-white);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.container {
  width: min(var(--container-max), 100% - 2*var(--container-pad));
  margin-inline: auto;
}
li {
  list-style: none;

}
/* Screen-reader & accessibility helpers */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  left: 1rem; top: 1rem; width: auto; height: auto; padding: .6rem 1rem;
  background: var(--c-white); color: var(--c-black); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

/* ========== Header & Nav ==========\ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}

.brand { display: inline-flex; align-items: center; gap: .75rem; }
.brand__logo { width: 44px; height: 44px; }
.brand__name { font-weight: 800; letter-spacing: .4px; }

.nav { position: relative; }
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  border-radius: var(--radius-sm);
  align-items: center; justify-content: center; gap: 4px;
}
.nav__toggle-line {
  display: block; width: 18px; height: 2px; background: var(--c-white);
}

.nav__menu {
  display: flex; align-items: center; gap: 1.2rem;
}
.nav__link {
  display: inline-block; padding: .6rem .2rem; border-radius: 8px; opacity: .9;
  transition: color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.nav__link:hover, .nav__link:focus { color: var(--c-brand); opacity: 1; }

/* Mobile menu */
@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: absolute; right: 0; top: calc(100% + 10px);
    display: none; flex-direction: column; gap: .4rem;
    min-width: 220px; padding: .6rem;
    background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
  }
  .nav__menu.is-open { display: flex; }
}

/* ========== Buttons ==========\ */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9rem 1.2rem; border-radius: var(--radius-md); font-weight: 700;
  border: 1px solid transparent; transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease), background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.button:active { transform: translateY(1px); }

.button--primary {
  background: var(--c-brand); color: var(--c-black);
  border-color: var(--c-brand);
}
.button--primary:hover { opacity: .9; }

.button--ghost {
  background: transparent; color: var(--c-white);
  border-color: var(--c-border);
}
.button--ghost:hover {
  background: var(--c-brand-ghost);
  border-color: var(--c-brand);
  color: var(--c-white);
}

.button--invert {
  background: var(--c-black); color: var(--c-white);
  border-color: var(--c-black);
}
.button--invert:hover { opacity: .9; }


.sample-cta .button {
  /* removing default button style */
  margin: 0;
  height: auto;
  background: transparent;
  padding: 0;
  border: none;
  cursor: pointer;

  /* tokens (brand + size) */
  --border-right: 6px;
  --text-stroke-color: var(--c-muted); /* subtle outline on dark bg */
  --animation-color: var(--c-brand);   /* your brand orange */
  --fs-size: 1em;                      /* keep original size */

  letter-spacing: 3px;
  text-decoration: none;
  font-size: var(--fs-size);
  font-family: "Arial"; /* same as original */
  position: relative;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-stroke-color);
}
@media (max-width: 900px) {
.sample-cta {
  display: none;
}
}
/* base text span (keeps structure identical) */
.sample-cta .actual-text { display: inline-block; }

/* the animated fill text */
.sample-cta .hover-text {
  position: absolute;
  box-sizing: border-box;
  content: attr(data-text);
  color: var(--animation-color);
  width: 0%;
  inset: 0;
  border-right: var(--border-right) solid var(--animation-color);
  overflow: hidden;
  transition: width 0.5s;
  -webkit-text-stroke: 1px var(--animation-color);
}

/* hover behavior (unchanged, but glow uses brand color) */
.sample-cta .button:hover .hover-text {
  width: 100%;
  filter: drop-shadow(0 0 23px var(--animation-color));
}

/* optional: on light sections switch outline to black for contrast */
.sample-cta.on-light .button {
  --text-stroke-color: var(--c-black);
}

/* ========== Hero ==========\ */
.hero {
  position: relative;
  padding-block: min(10vh, 6rem);
  background:
    radial-gradient(1200px 420px at 20% -10%, var(--c-brand-ghost), transparent 60%),
    linear-gradient(180deg, var(--c-bg), var(--c-surface-2));
  border-bottom: 1px solid var(--c-border);
}
.hero__inner {
  display: grid; gap: 2rem; align-items: center;
  grid-template-columns: 1.1fr .9fr;
}
.hero__copy { max-width: 48ch; }
.hero__title { font-size: clamp(1.8rem, 2.6vw + 1rem, 3rem); line-height: 1.2; }
.text--brand { color: var(--c-brand); }
.hero__subtitle { color: var(--c-muted); margin-block: 1rem 1.5rem; }
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero__highlights {
  display: flex; gap: 1.2rem; padding: 0; margin: 1.2rem 0 0; list-style: none; color: var(--c-muted);
}
 
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
}
.hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  /* You can adjust height if needed */
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0; /* shorthand for top/right/bottom/left: 0 */
  background-size: cover;
  background-position: center;
  opacity: 0.4; /* make sure text stays readable */
  z-index: -1;
}

.hero::before {
  background-image: url("assets/img/bg1.gif");
}

.hero::after {
  background-image: url("assets/img/bg2.gif");
  mix-blend-mode: overlay; /* optional: makes the gifs blend nicely */
  opacity: 0.3;
}


/* ===== Spinning 3D Logo (CSS-only thickness illusion) ===== */
.logo-3d{
  /* Easy tweak tokens */
  --size: min(42vw, 280px);   /* overall size */
  --thickness: 18px;          /* visual thickness */
  --speed: 8s;                /* rotation speed */
  --edge-a: rgba(0,0,0,.55);  /* dark edge tone */
  --edge-b: rgba(255,154,0,.75); /* brand highlight on edge */
  --edge-c: rgba(0,0,0,.55);  /* dark edge tone */
  --rim-highlight: rgba(255,255,255,.38);

  width: var(--size);
  height: var(--size);
  perspective: 1100px;
  display: grid;
  place-items: center;
  position: relative;
  margin: auto;
}

/* Ground shadow */
.logo-3d::after{
  content:"";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 22%;
  background: radial-gradient(closest-side, rgba(0,0,0,.35), rgba(0,0,0,0));
  filter: blur(6px);
  z-index: 0;
}

.logo-3d__inner{
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: logoSpinY var(--speed) linear infinite;
  will-change: transform;
  z-index: 1;
}

/* Faces (front/back) */
.logo-3d__face{
  position: absolute;
  inset: 0;
  object-fit: contain;
  backface-visibility: hidden;
  border-radius: 18px;              /* set to 50% if your logo is circular */
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0),
    0 3px 8px rgba(0, 0, 0, 0);
}

/* Push faces out half thickness for a real “plate” */
.logo-3d__face--front{ transform: translateZ(calc(var(--thickness) / 2)); }
.logo-3d__face--back { transform: rotateY(180deg) translateZ(calc(var(--thickness) / 2)); }

/* Edge: a thin panel rotated 90° to create physical thickness */
.logo-3d__edge{
  position: absolute;
  top: 0;
  left: calc(50% - var(--thickness) / 2);
  width: var(--thickness);
  height: 100%;
  transform: rotateY(90deg);
  transform-origin: center;
  border-radius: 12px;

  /* Layered gradient: subtle metallic/brand core + faint ridging */
  background:
    linear-gradient(to bottom, var(--edge-a), var(--edge-b) 55%, var(--edge-c)),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0 3px,
      rgba(0, 0, 0, 0) 3px 6px
    );
  box-shadow:
    inset 0 0 10px rgba(0, 0, 0, 0),
    inset 0 0 1px rgba(255, 255, 255, 0);
}

/* Subtle rotating gloss to fake specular highlight as it spins */
.logo-3d__gloss{
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: 18px;
  mix-blend-mode: screen;
  opacity: .28;
  transform: translateZ(calc(var(--thickness) / 2 + 0.5px));
  background:
    conic-gradient(from 0deg, transparent 0 35%, rgba(255,255,255,.15) 40%, transparent 55% 100%),
    radial-gradient(60% 70% at 30% 35%, rgba(255,255,255,.14), transparent 60%);
  animation: glossSpin var(--speed) linear infinite;
}

/* Optional: thin rim highlight around the front face */
.logo-3d__face--front::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--rim-highlight);
  pointer-events: none;
}

/* Spin animation */
@keyframes logoSpinY{
  from{ transform: rotateY(0deg); }
  to  { transform: rotateY(360deg); }
}

/* Gloss rotates a touch quicker for a dynamic sheen */
@keyframes glossSpin{
  from{ transform: translateZ(calc(var(--thickness) / 2 + 0.5px)) rotate(0deg); }
  to  { transform: translateZ(calc(var(--thickness) / 2 + 0.5px)) rotate(360deg); }
}

/* Hover: pause or reverse (pick one) */
.logo-3d:hover .logo-3d__inner{ animation-play-state: paused; }
/* Or reverse on hover:
.logo-3d:hover .logo-3d__inner{ animation-direction: reverse; }
*/

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .logo-3d__inner,
  .logo-3d__gloss{ animation: none; }
}

/* ========== Sections ==========\ */
.section { padding-block: 4.5rem; background: var(--c-bg); }
.section--alt { background: var(--c-surface); }

.section__header { margin-bottom: 2rem; }
.section__title { font-size: clamp(1.4rem, 1.4vw + 1rem, 2rem); }
.section__lead { color: var(--c-muted); max-width: 60ch; }

/* Grids */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .grid--2, .grid--4 { grid-template-columns: 1fr; }
}

/* ===== About section: mobile-safe rebuild ===== */

/* 1) Ensure the 2-col grid collapses cleanly */
#about .grid--2 {
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
@media (max-width: 900px) {
  #about .grid--2 {
    grid-template-columns: 1fr;
    gap: .9rem;
  }
}

/* 2) Card spacing & text wrapping */
#about .about__block {
  padding: 1rem 1rem;
  overflow-wrap: anywhere;
  background-color: var(--c-border);
  border-radius: 20px;
}

/* 3) Restore bullets just for this list (global li reset is overridden here) */
#about .list {
  padding-left: 1.1rem;
  margin: 0;
}
#about .list li {
  list-style: disc !important;
  margin-left: 1rem;
  color: var(--c-muted);
}

/* 4) Stats: allow wrapping + balanced widths */
#about .stats {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}
#about .stat {
  flex: 1 1 calc(33.333% - .6rem);
  min-width: 120px;
  text-align: center;
  padding: .7rem .8rem;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  border-radius: var(--radius-md);
}
#about .stat__num {
  font-weight: 800;
  font-size: 1.15rem;
  display: block;
}
#about .stat__label {
  color: var(--c-muted);
  font-size: .9rem;
}

/* Tighter on smaller screens */
@media (max-width: 700px) {
  #about .stat {
    flex: 1 1 calc(50% - .6rem);
    min-width: 140px;
  }
}
@media (max-width: 420px) {
  #about .stat {
    flex: 1 1 100%;
    min-width: 0;
  }
}

/* 5) Lead paragraph readability on mobile */
#about .section__lead {
  color: var(--c-muted);
  max-width: 70ch;
  margin-top: .5rem;
}
@media (max-width: 700px) {
  #about .section__lead {
    font-size: .975rem;
    line-height: 1.65;
  }
}

/* 6) Mission quote: nicer mobile treatment */
#about .about__mission {
  margin-top: 1.2rem;
}
#about .mission {
  margin: 0;
  padding: 1rem 1.1rem;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-brand);
  border-radius: var(--radius-sm);
  color: var(--c-muted);
}
@media (max-width: 700px) {
  #about .mission {
    border-left-width: 3px;
    padding: .9rem 1rem;
  }
}

/* 7) Small typography polish for headings in cards */
#about .about__title {
  margin: 0 0 .5rem;
  line-height: 1.25;
}


/* Product cards */
.cards { display: grid; gap: 1.2rem; }
.cards--products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1200px) { .cards--products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .cards--products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .cards--products { grid-template-columns: 1fr; } }

.card {
  overflow: hidden; border-radius: var(--radius-lg);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-md);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--c-brand); }

.product__media img { width: 100%; height: auto; }
.product__content { padding: 1rem 1rem 1.2rem; }
.product__title { margin: .2rem 0 .4rem; }
.product__desc { color: var(--c-muted); }

/* Warehouses */
#warehouses{
  background-color: var(--c-surface);
}
.warehouses .tile {
  padding: 1rem; border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
  background: var(--c-surface-2);
}
.tile__title { margin: 0 0 .4rem; }
.tile__meta { color: var(--c-muted); }

.map {
  margin-top: 1.5rem; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--c-border); box-shadow: var(--shadow-md);
}

/* Logo strip */
.logos {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; list-style: none;
  padding: 0; margin: 0;
}
@media (max-width: 900px) { .logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .logos { grid-template-columns: repeat(2, 1fr); } }
.logos__item {
  display: grid; place-items: center;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 1rem; min-height: 92px;
}

/* CTA banner */
.cta {
  background:
    linear-gradient(180deg, var(--c-surface), var(--c-surface-2)),
    var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding-block: 2.2rem;
}
.cta__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.cta__title { font-size: clamp(1.1rem, 1vw + .8rem, 1.5rem); }

/* Contact */
.contact { align-items: start; }
.form { background: var(--c-surface-2); padding: 1rem; border: 1px solid var(--c-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.form__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 700px) { .form__row { grid-template-columns: 1fr; } }

.form__field { display: grid; gap: .35rem; }
.form__label { font-weight: 600; }
.form__input,
.form__select,
.form__textarea {
  width: 100%;
  background: var(--c-bg);
  color: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: .8rem .9rem;
  outline: none;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--c-brand);
  box-shadow: 0 0 0 3px var(--c-brand-ghost);
}
.form__textarea { resize: vertical; }

.form__submit { margin-top: .6rem; width: 100%; }
.form__note { margin-top: .6rem; color: var(--c-muted); min-height: 1.2em; }

.contact__info { display: grid; gap: 1rem; }
.contact__card {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1rem;
}
.contact__title { margin: 0 0 .4rem; }
.contact__text { color: var(--c-muted); }

.map-embed {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-md);
}
.map-embed__frame { width: 100%; height: 360px; border: 0; }

/* ========== Footer ==========\ */
.footer { border-top: 1px solid var(--c-border); background: var(--c-surface); }
.footer__inner {
  display: grid; gap: 1.2rem; align-items: start;
  grid-template-columns: 1.2fr .8fr .8fr;
  padding-block: 2.2rem;
}
@media (max-width: 900px) { .footer__inner { grid-template-columns: 1fr; } }

.footer__brand { display: grid; grid-template-columns: auto 1fr; gap: .8rem 1rem; align-items: center; }
.footer__logo { width: 42px; height: 42px; }
.footer__mission { color: var(--c-muted); grid-column: 1 / -1; }

.footer__nav { display: flex; flex-wrap: wrap; gap: .6rem 1rem; }
.footer__link {
  color: var(--c-muted); border-bottom: 1px dashed transparent;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.footer__link:hover { color: var(--c-white); border-color: var(--c-brand); }

.footer__social { display: flex; gap: .6rem; }
.social {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--c-surface-2); border: 1px solid var(--c-border);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.social:hover { transform: translateY(-2px); border-color: var(--c-brand); background: var(--c-brand-ghost); }

.footer__bar {
  border-top: 1px solid var(--c-border);
  background: var(--c-black);
  color: var(--c-muted);
  font-size: .9rem;
}
.footer__bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: .9rem;
}

/* ========== Utilities ==========\ */
.u-center { text-align: center; }
.u-mb-0 { margin-bottom: 0; }
.u-mb-1 { margin-bottom: .25rem; }
.u-mb-2 { margin-bottom: .5rem; }
.u-mb-3 { margin-bottom: .75rem; }
.u-mb-4 { margin-bottom: 1rem; }

/* Focus-visible for keyboard users */
:focus-visible {
  outline: 3px solid var(--c-brand);
  outline-offset: 2px;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button,
  .card { transition: none; }
  .nav__menu,
  .map-embed,
  .form__input,
  .form__select,
  .form__textarea { transition: none; }
}




/* ===== Loader overlay ===== */
.site-loader {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  background: var(--c-black);
  z-index: 9999;
  transition: opacity var(--t-base) var(--ease), visibility var(--t-base) var(--ease);
}
.site-loader.is-hidden { opacity: 0; visibility: hidden; }

.loader { width: max-content; height: max-content; display: grid; place-items: center; }
.truckWrapper { width: 200px; height: 100px; display: flex; flex-direction: column; position: relative; align-items: center; justify-content: flex-end; overflow-x: hidden; }
.truckBody { width: 130px; height: auto; margin-bottom: 6px; animation: truck-bounce 1s linear infinite; }
@keyframes truck-bounce { 0%{transform:translateY(0)} 50%{transform:translateY(3px)} 100%{transform:translateY(0)} }
.truckTires { width: 130px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px 0 15px; position: absolute; bottom: 0; }
.tiresvg { width: 24px; height: auto; }
.road { width: 100%; height: 1.5px; background-color: var(--c-border); position: relative; bottom: 0; align-self: flex-end; border-radius: 3px; overflow: hidden; }
.road::before, .road::after { content: ""; position: absolute; top: 0; bottom: 0; border-radius: 3px; background-color: var(--c-border); animation: road-move 1.4s linear infinite; }
.road::before { width: 20px; right: -50%; border-left: 10px solid var(--c-white); }
.road::after  { width: 10px; right: -65%; border-left: 4px solid var(--c-white); }
.lampPost { position: absolute; bottom: 0; right: -90%; height: 90px; animation: road-move 1.4s linear infinite; fill: var(--c-white); }
@keyframes road-move { to { transform: translateX(-350px); } }

/* Truck SVG color tokens */
.trucksvg { width: 130px; height: auto; }
.t-body   { stroke: var(--c-white) !important; stroke-width: 3; fill: var(--c-brand) !important; }
.t-window { stroke: var(--c-white) !important; stroke-width: 3; fill: var(--c-surface) !important; }
.t-detail { stroke: var(--c-white) !important; stroke-width: 2; fill: var(--c-white) !important; }
.t-light  { stroke: var(--c-white) !important; stroke-width: 2; fill: var(--c-warning) !important; }
.t-exhaust{ stroke: var(--c-white) !important; stroke-width: 2; fill: var(--c-white) !important; }
.t-trailer{ stroke: var(--c-white) !important; stroke-width: 3; fill: var(--c-surface-2) !important; }
.t-bumper { stroke: var(--c-white) !important; stroke-width: 2; fill: var(--c-surface-2) !important; }
.t-tyre   { fill: var(--c-black) !important; stroke: var(--c-white) !important; stroke-width: 3; }
.t-rim    { fill: var(--c-muted) !important; }

/* ===== Scroll progress bar ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--c-brand), var(--c-white));
  z-index: 10000;
}

/* ===== Sticky header state + active link ===== */
.header--scrolled { box-shadow: var(--shadow-md); background: rgba(0,0,0,.6); backdrop-filter: blur(10px); }
.nav__link.is-active { color: var(--c-brand); }
/* Positioning wrapper (keeps Uiverse .button styles untouched) */
.backtotop{
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 10001;
  /* hidden by default; JS will toggle visibility on the button */
}

/* From Uiverse.io by vinodjangid07 */
.btn-top {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgb(20, 20, 20);
  border: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 0px 0px 4px rgba(180, 160, 255, 0.253);
  cursor: pointer;
  transition-duration: 0.5s;
  overflow: hidden;
  position: relative;

  /* back-to-top visibility states */
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}
.btn-top.is-visible{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.svgIcon {
  width: 12px;
  transition-duration: 0.3s;
}
.svgIcon path {
  fill: white;
}

.btn-top:hover {
  width: 140px;
  border-radius: 50px;
  transition-duration: 0.5s;
  background-color: rgb(181, 160, 255);
  align-items: center;
}

.btn-top:hover .svgIcon {
  transition-duration: 0.3s;
  transform: translateY(-200%);
}

.btn-top::before {
  position: absolute;
  bottom: -20px;
  content: "Back to Top";
  color: white;
  font-size: 0px;
}

.btn-top:hover::before {
  font-size: 13px;
  opacity: 1;
  bottom: unset;
  transition-duration: 0.5s;
}

/* ===== Map fix: use relative path (not absolute) ===== */
.map--mskills {
  background: url("assets/img/map-malaysia.png") no-repeat center center;
  background-size: contain;
}


/* ===== Gallery Section ===== */
#unique-gallery-section { padding-block: 3rem; background: var(--c-bg); }

#unique-gallery-section .unique-gallery-header { text-align: center; margin-bottom: 1.5rem; }
#unique-gallery-section .unique-gallery-header h2 { font-size: clamp(1.4rem, 1.4vw + 1rem, 2rem); }
#unique-gallery-section .unique-gallery-header p  { color: var(--c-muted); }

#unique-gallery-section .unique-gallery-filters {
  display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; margin-top: 1rem;
}
#unique-gallery-section .filter-btn {
  padding: .55rem .9rem; border-radius: var(--radius-sm);
  background: var(--c-surface); border: 1px solid var(--c-border); color: var(--c-white);
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
#unique-gallery-section .filter-btn:hover,
#unique-gallery-section .filter-btn[aria-selected="true"] {
  background: var(--c-brand-ghost); border-color: var(--c-brand); color: var(--c-white);
}

#unique-gallery-section .unique-gallery-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden; transition: max-height 0.5s var(--ease);
  max-height: 1200px; /* height for ~3 rows on desktop; adjust if needed */
  content-visibility: auto;
}
@media (max-width: 1200px){ #unique-gallery-section .unique-gallery-grid { grid-template-columns: repeat(3,1fr); max-height: 1200px; } }
@media (max-width: 900px) { #unique-gallery-section .unique-gallery-grid { grid-template-columns: repeat(2,1fr);  max-height: 1100px; } }
@media (max-width: 600px) { #unique-gallery-section .unique-gallery-grid { grid-template-columns: 1fr;            max-height: 900px; } }

#unique-gallery-section .unique-gallery-grid:not(.expanded) .unique-gallery-item:nth-child(n+13) { display: none; }
#unique-gallery-section .unique-gallery-grid.expanded { max-height: 5000px; }

#unique-gallery-section .unique-gallery-item {
  overflow: hidden; border-radius: var(--radius-lg);
  background: var(--c-surface-2); border: 1px solid var(--c-border); box-shadow: var(--shadow-md);
}
#unique-gallery-section .unique-gallery-item img {
  width: 100%; height: 100%; display: block;
  aspect-ratio: 4/3; object-fit: cover; opacity: 0; transition: opacity 160ms var(--ease), transform var(--t-base) var(--ease);
}
#unique-gallery-section .unique-gallery-item img.is-loaded,
#unique-gallery-section .unique-gallery-item img:not(.is-lazy) { opacity: 1; }

@media (hover:hover){
  #unique-gallery-section .unique-gallery-item img:hover { transform: scale(1.03); }
}

#unique-gallery-section .gallery-toggle { text-align: center; margin-top: 1rem; }

/* ===== Lightbox ===== */
.lightbox[hidden] { display: none !important; }
.lightbox {
  position: fixed; inset: 0; z-index: 10050;
  display: grid; place-items: center;
  background: var(--c-overlay);
  padding: 2rem;
}
.lightbox__img {
  max-width: min(92vw, 1200px); max-height: 80vh;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.lightbox__close {
  position: absolute; top: 1rem; right: 1rem;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--c-surface-2); color: var(--c-white);
  border: 1px solid var(--c-border); cursor: pointer;
}
.lightbox__caption {
  margin-top: .8rem; color: var(--c-muted); text-align: center; max-width: 80ch;
}

/* ===== Warehouses: text + map split ===== */
.warehouse-split{
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1.05fr .95fr;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.2rem;
}

.warehouse-split__text{
  padding: .6rem .4rem;
}

.warehouse-split__title{
  margin: 0 0 .5rem;
}

.warehouse-split__para{
  color: var(--c-muted);
  margin: 0 0 .9rem;
}

.warehouse-split__bullets{
  margin: 0;
  padding-left: 1.1rem;
  list-style: disc;
  color: var(--c-muted);
}
.warehouse-split__bullets li + li{ margin-top: .25rem; }

.warehouse-split__media{
  margin: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-muted);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-md);
}
.warehouse-split__media img{
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.warehouse-split__media:hover img{
  transform: scale(1.015);
}
.warehouse-split__media:hover{
  border-color: var(--c-brand);
  box-shadow: var(--shadow-lg);
}

/* responsive */
@media (max-width: 1024px){
  .warehouse-split{ grid-template-columns: 1fr; }
  .warehouse-split__media{ order: -1; }
}
.footer__social {
  display: flex;
  gap: .6rem;
}

.social {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  font-size: 18px;
  color: var(--c-white);
  transition: transform var(--t-fast) var(--ease), 
              background var(--t-fast) var(--ease), 
              border-color var(--t-fast) var(--ease), 
              color var(--t-fast) var(--ease);
}

.social:hover {
  transform: translateY(-3px);
}

/* brand-specific hover colors */
.social[href*="instagram"]:hover {
  background: #E4405F;
  border-color: #E4405F;
  color: #fff;
}

.social[href*="facebook"]:hover {
  background: #1877F2;
  border-color: #1877F2;
  color: #fff;
}

.social[href*="wa.me"]:hover {
  background: #25D366;
  border-color: #25D366;
  color: #fff;
}

/* Intro row: text left, logos right */
.about__intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.about__text {
  flex: 1 1 60%;
}

.about__logos {
  flex: 1 1 35%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
}

.about__logos img {
max-height: 70px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px var(--c-shadow-soft));
    display: grid;
    place-items: center;
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    min-height: 92px;
}

/* Mobile stacking */
@media (max-width: 800px) {
  .about__intro {
    flex-direction: column;
    text-align: center;
  }

  .about__logos {
    margin-top: 1rem;
  }

  .about__logos img {
    max-height: 50px;
  }
}
