:root {
  --bg: #0b1220;
  --text: #e6e8ee;
  --muted: #aab3c5;
  --brand: #3b82f6;
  --accent: #f59e0b;
  --accent-2: #22d3ee;
  --card: #111827;
  --max: 1100px;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

html { scroll-behavior: smooth; }           /* nice smooth scroll */

:root { --nav-height: 80px; }               /* adjust if your header is taller */

#products,
#how,                                       /* add other anchors you use */
#about {
  scroll-margin-top: var(--nav-height);     /* offset for sticky header */
}


/* HERO */
.hero{
  position: relative;
  min-height: 68vh;                        /* a bit taller on mobile */
  padding: clamp(56px, 10vw, 120px) 16px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #eaf2ff;

  /* lighter overlay + explicit layering */
  background-image:
    linear-gradient(to bottom, rgba(5,10,20,.28), rgba(5,10,20,.45)), /* was .55 /.75 */
    url("../hero.jpg");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}

/* Use the larger image on wide screens */
@media (min-width: 1200px){
  .hero{
    background-image:
      linear-gradient(to bottom, rgba(5,10,20,.28), rgba(5,10,20,.45)),
      url("../hero-1280.jpg");   /* use 1280 instead of 1920 */
  }
}



.hero__inner{ max-width: 960px; margin: 0 auto; }

.hero h1{
  margin: 0 0 14px;
  font-size: clamp(32px, 6vw, 64px);
  line-height: 1.08;
}

.hero__sub{
  margin: 0 auto 22px;
  max-width: 900px;
  font-size: clamp(16px, 2.1vw, 22px);
  color: #c9d6ea;
}

.hero__cta{
  display: inline-block;
  padding: 12px 18px;
  font-weight: 700;
  border-radius: 10px;
  background: #12a4ff;
  color: #08121f;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(18,164,255,.25);
}
.hero__cta:hover{ filter: brightness(1.08); }

/* RESET any legacy hero background rules */
.hero{
  background: none !important;
  background-image: none !important;
  background-size: initial !important;
  background-position: initial !important;
  background-repeat: initial !important;

  /* these were useful for the background-image version; not needed now */
  padding: 0;
  min-height: auto;
}


/* desktop: use a desktop-optimized crop */
@media (min-width: 1200px){
  .hero{
    background-image:
      linear-gradient(to bottom, rgba(5,10,20,.15), rgba(5,10,20,.35)),
      url("../hero-1920-wide.jpg");  /* export a wider crop */
    background-position: center 35%;
    min-height: 72vh;
  }
}
.hero{
  background-size: contain;       /* show whole image */
  background-repeat: no-repeat;
  background-position: center top;
  background-color: #0e1b2b;      /* band color behind the image */
  min-height: 64vh;
}

/**** for About us ******/
.about-hero{
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 16px 8px;
  color: #eaf2ff;
}
.about-hero .eyebrow{
  display:inline-block;
  font-size: 0.9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .8;
  margin-bottom: 8px;
}
.about-section { position: relative; }

.about-hero{
  position: static !important;     /* cancel sticky/absolute/fixed if any */
  top: auto !important;
  inset: auto !important;
  z-index: auto !important;
  background: transparent;
  max-width: 1100px;
  margin: 0 auto 24px;             /* space below About so Products doesn’t tuck under */
  padding: 24px 16px;
}

/* Make sure Products starts “fresh” below */
.product-section{
  position: relative;
  clear: both;                     /* if any floats exist above */
  margin-top: 0;
}

/* ===== HERO (image + overlay) ===== */
.hero{
  position: relative;              /* create stacking context */
  overflow: hidden;
  text-align: center;
  color: #eaf2ff;
}

/* make the picture/img not add extra gaps */
.hero picture{ display:block; line-height:0; }
.hero__img{ display:block; width:100%; height:auto; }

/* gradient overlay between image and text */
.hero::before{
  content:"";
  position:absolute; inset:0;
  z-index:1;                       /* below text, above image */
  pointer-events:none;
  background: linear-gradient(
    to bottom,
    rgba(5,10,20,0.15) 0%,
    rgba(5,10,20,0.25) 35%,
    rgba(5,10,20,0.48) 100%
  );
}

/* TEXT OVERLAY — ensure it sits ON TOP of the image */
.hero__overlay{
  position:absolute;               /* << this is the key */
  inset:0;
  z-index:2;                       /* above the ::before and image */
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  padding: 0 16px;
}

/* tighter spacing */
.hero__overlay h1{
  margin: 0 0 8px;
  line-height: 1.15;
  font-size: clamp(32px, 6vw, 64px);
}
.hero__sub{
  margin: 0 0 14px;
  max-width: 900px;
  font-size: clamp(16px, 2vw, 20px);
  color: #c9d6ea;
}
.hero__cta{
  margin-top: 0;
  padding: 10px 18px;
  font-weight: 600;
  border-radius: 8px;
  background: #12a4ff;
  color: #08121f;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(18,164,255,.25);
}




/* === Reset & Base === */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === Layout === */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
.grid {
  display: grid;
  gap: 22px;
}
@media (max-width: 768px) {
  .logo-wrap img {
    height: 80px;
  }
}
@media (min-width: 800px) {
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* === Header === */
.header {
  min-height: 150px; 
}
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo-wrap {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  height: 76px;
}
.logo-wrap > img {
  height: 100px;
  width: auto;
  display: block;
}
.logo-container svg {
  width: 100%;
  height: auto;
  max-width: 300px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 46vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 20px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: url('../hero-pano-v1.jpg') center / cover no-repeat;
  filter: brightness(0.9);
}
.hero-blend {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(11,18,32,0) 43%,
    rgba(11,18,32,0.10) 50%,
    rgba(11,18,32,0.18) 56%,
    rgba(11,18,32,0.24) 64%,
    rgba(11,18,32,0.30) 72%,
    rgba(11,18,32,0.36) 100%);
}
.hero-inner {
  position: relative;
  z-index: 3;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 56px);
  margin: 0.2em 0 0.3em;
  line-height: 1.05;
}
.hero p {
  max-width: 900px;
  margin: 0 auto 18px;
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 20px);
}

/* === Buttons === */
.btn {
  display: inline-block;
  background-color: #0078D4; /* UniversumGS blue tone */
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 120, 212, 0.3);
}

.btn:hover {
  background-color: #005ea2;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 120, 212, 0.4);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 120, 212, 0.2);
}

.btn.secondary {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--text);
}
.btn {
  background-color: #00B6F1;
  color: #0a0a0a;
  box-shadow: 0 4px 10px rgba(0, 182, 241, 0.3);
}

.btn:hover {
  background-color: #0099cc;
}
.btn .icon {
  margin-right: 8px;
  font-size: 18px;
  vertical-align: middle;
}
/* === Cards & Fade-in === */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 22px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Typography === */
h2 {
  font-size: clamp(22px, 3vw, 34px);
  margin-bottom: 18px;
}
h3 {
  margin-top: 0;
}
.lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 900px;
}
.tagline {
  color: var(--accent);
  font-weight: 700;
}

/* === Media & Lists === */
.media {
  margin-top: 14px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}
.media img {
  display: block;
  width: 100%;
  height: auto;
}
.list {
  display: grid;
  gap: 12px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  margin-top: 8px;
  flex: 0 0 10px;
}

/* === Values & Timeline === */
.values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 700px) {
  .values {
    grid-template-columns: repeat(4, 1fr);
  }
}
.value {
  padding: 18px;
  border-radius: 14px;
  background: rgba(148, 163, 184, .06);
  border: 1px solid rgba(148, 163, 184, .16);
}
.timeline {
  position: relative;
  padding-left: 24px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 2px;
  bottom: 2px;
  width: 2px;
  background: linear-gradient(var(--accent), transparent);
}
.event {
  position: relative;
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(96, 165, 250, .06);
  border: 1px solid rgba(96, 165, 250, .18);
}
.event::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* === Footer & Utility === */
footer {
  padding: 36px 0;
  color: var(--muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.kbd {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,.18);
  border-bottom-width: 2px;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  font-size: 12px;
  color: var(--muted);
}
/* Back-to-top button */
#backToTop {
  position: fixed;
  right: 20px;
  bottom: 24px;
  height: 44px;
  width: 44px;            /* <-- add this */
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  cursor: pointer;
  z-index: 99;
}

/* === Products Section === */
.product-section {
  margin: 2rem 0;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  padding: 20px 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.products::-webkit-scrollbar {
  height: 8px;
}

.products::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

/* === Product Card === */
.product-container {
  display: flex;
  align-items: center;       /* vertical centering */
  justify-content: flex-start;
  gap: 20px;                 /* space between image and text */
  margin-top: 20px;
}

.product-image {
  width: 40%;                /* image takes 40% of container */
  max-width: 400px;
  height: auto;
  border-radius: 8px;
}

.product-details {
  width: 60%;                /* text takes 60% of container */
  color: #fff;
}

@media (max-width: 768px) {
  .product-container {
    flex-direction: column;   /* stack on smaller screens */
    text-align: center;
  }
  .product-image, .product-details {
    width: 100%;
  }
}
.product-grid{
  display:grid;
  grid-template-columns: minmax(260px, 42%) 1fr;
  gap:24px;
  align-items:center;            /* vertical centering */
  margin-top:20px;
}
.pg-img{
  width:100%; height:auto; border-radius:10px; object-fit:cover;
}
.pg-body{ color:#fff; }
.pg-title{ margin:0 0 8px; font-size:clamp(22px,2.2vw,28px); }
.pg-text{ line-height:1.65; }

/* stack on small screens */
@media (max-width: 768px){
  .product-grid{ grid-template-columns: 1fr; }
}
.split-card{
  display:grid; grid-template-columns: 44% 1fr;
  gap:24px; padding:24px; border-radius:16px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.12);
  box-shadow:0 10px 30px rgba(0,0,0,0.25);
  margin-top:20px;
}
.split-media img{ width:100%; height:auto; border-radius:10px; object-fit:cover; }
.split-content h3{ margin:0 0 8px; font-size:clamp(22px,2.2vw,28px); }
.split-content p{ line-height:1.65; color:#e5eaf1; }
@media (max-width:768px){ .split-card{ grid-template-columns:1fr; } }

.media{ display:flex; gap:20px; align-items:center; margin-top:20px; }
.media-img{ width:420px; max-width:42vw; height:auto; border-radius:10px; }
.media-body{ flex:1; color:#fff; }
.media-body h3{ margin:0 0 8px; font-size:clamp(22px,2.2vw,28px); }
.media-body p{ line-height:1.65; }
@media (max-width:768px){ .media{ flex-direction:column; text-align:center; } .media-img{ max-width:100%; } }

/* Force side-by-side just for this section */
#v2b .v2b-row {
  display: grid !important;
  grid-template-columns: minmax(280px, 42%) 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 20px;
}
#v2b .v2b-media img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}
#v2b .v2b-copy h3 { margin: 0 0 8px; font-size: clamp(22px, 2.2vw, 28px); }
#v2b .v2b-copy p  { line-height: 1.65; }

/* Stack on small screens */
@media (max-width: 768px){
  #v2b .v2b-row { grid-template-columns: 1fr; text-align: left; }
}
.media { display:flex; gap:20px; align-items:center; margin-top:20px; }
.media-img { width:420px; max-width:42vw; height:auto; border-radius:10px; }
.media-body { flex:1; color:#fff; }
@media (max-width:768px){
  .media { flex-direction:column; text-align:center; }
  .media-img { max-width:100%; }
}

/* Media layout */
.media {
  display: flex;
  align-items: flex-start;      /* top-align the text with the image */
  gap: 28px;
  margin-top: 28px;
}

.media--reverse {               /* optional: image on the right */
  flex-direction: row-reverse;
}

.media-img {
  flex: 0 0 44%;                /* image column width */
  max-width: 44%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.media-body {
  flex: 1;
  color: #fff;
}

.media-body h3 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.2vw, 28px);
}

.media + .media {
  margin-top: 48px;             /* space between product blocks */
}

/* Stack on mobile */
@media (max-width: 768px){
  .media, .media--reverse { flex-direction: column; }
  .media-img { max-width: 100%; }
  .media-body { text-align: left; }
}
/* Product blocks */
.product-block {
  padding: 28px;
  margin-top: 40px;
  background: rgba(255, 255, 255, 0.03);  /* subtle background */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.product-block h3 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.2vw, 28px);
  color: #fff;
}

.product-block .tagline {
  font-weight: 600;
  color: #ffb347;   /* orange accent, tweak as you like */
  margin-bottom: 12px;
}

.product-block p {
  line-height: 1.65;
  color: #dbe3f0;
}

.product-block .btn {
  background: #007bff;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
}

.product-block .btn:hover {
  background: #0056b3;
}

/* Uniform image height for product blocks */
.product-block .media-img {
  display: block;
  width: 100%;
  max-width: 44%;        /* same column width you’re using */
  flex: 0 0 44%;
  height: 280px;         /* <<< unified height on desktop */
  object-fit: cover;     /* crop to fill without distortion */
  border-radius: 10px;
}

/* If you ever want a different ratio per image, use these helpers: */
.product-block .media-img.img-240 { height: 240px; }
.product-block .media-img.img-320 { height: 320px; }

/* Mobile: full width and a bit shorter */
@media (max-width: 768px){
  .product-block .media-img {
    max-width: 100%;
    flex: 0 0 auto;
    height: 220px;
  }
}
