/* =========================
   HEADER
========================= */
.header-area {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  transition: transform 0.3s ease;
}

/* scroll behavior */
.header-area.scroll-down {
  transform: translateY(-100%);
}

.header-area.scroll-up {
  transform: translateY(0);
}

/* initial (hero overlap) */
.header-area.style-1 {
  position: absolute;
  background: #fff;
}

/* after scroll */
.header-area.scrolled {
  background: #fff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* prevent layout break on tablet */
@media (max-width: 992px) {
  .header-area .container {
    flex-wrap: wrap;
  }
}

/* =========================
   HERO SECTION
========================= */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

/* background video */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -2;
}

/* overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;

  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.6) 35%,
    rgba(255, 255, 255, 0.2) 70%,
    rgba(255, 255, 255, 0.05) 100%
  );
}

/* =========================
   HERO LAYOUT
========================= */
.hero-container {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  height: 100%;
  position: relative;
}

/* =========================
   LEFT CONTENT (BOTTOM-ALIGNED)
========================= */
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 120px; /* key visual offset */
  max-width: 520px;
  gap: 20px;
}

.hero-left h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* =========================
   RIGHT SIDE
========================= */

/* STATS (upper-right positioning) */
.hero-stats {
  width: 320px;
  padding: 30px;
  border-radius: 20px;
  margin-left: auto;
  align-self: flex-end;
  margin-right: 0;
  margin-top: auto;
  margin-bottom: 140px;

  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* stats items */
.stat {
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.stat:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.stat h3 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat p {
  font-size: 14px;
  opacity: 0.7;
}

/* =========================
   CLIENTS (BOTTOM RIGHT)
========================= */
.hero-clients {
  position: absolute;
  bottom: 40px;
  right: 20px;
  text-align: right;
}

.clients-label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
  opacity: 0.85;
}

/* logos */
.hero-client-logos img {
  height: 48px;
  margin-left: 20px;
  opacity: 0.9;
  transition: 0.3s;
}

.hero-client-logos img:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* =========================
   THEME SUPPORT (LIGHT / DARK)
========================= */

/* light mode */
.hero-left h1,
.clients-label {
  color: #000;
}

/* dark mode */
body.dark .hero-left h1,
body.dark .clients-label {
  color: #fff;
}

/* =========================
   RESPONSIVE
========================= */

/* tablet */
@media (max-width: 992px) {
  .hero-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-left {
    padding-bottom: 40px;
  }

  .hero-stats {
    width: 100%;
    margin: 30px 0;
    align-self: flex-start;
  }

  .hero-clients {
    position: static;
    text-align: left;
    margin-top: 30px;
  }
}

/* mobile */
@media (max-width: 768px) {
  .hero-left h1 {
    font-size: 2rem;
  }
}

/* =========================
   CLIENT LOGO STRIP (GENERIC)
========================= */
.client-logos a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 180px;
  height: 80px;
  padding: 10px;
  background-color: #fff;
  border-radius: 5px;
}

.client-logos img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all 0.3s ease-in-out;
}

.client-logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* responsive logo scaling */
@media (max-width: 1024px) {
  .client-logos a {
    padding: 8px;
  }
}

@media (max-width: 768px) {
  .client-logos a {
    padding: 6px;
  }

  .client-logos img {
    opacity: 0.7;
  }
}

@media (max-width: 480px) {
  .client-logos a {
    padding: 4px;
  }

  .client-logos img {
    opacity: 0.6;
  }
}
