/* ========== RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  font-family: "Poppins", sans-serif;
  background: #f9f9f9;
  color: #222;
  scroll-behavior: smooth;
}
img, video {
  max-width: 100%;
  border-radius: 12px;
}

/* ========== UTILITIES ========== */
.container {
  width: 95%;
  max-width: 1400px;
  margin: auto;
}
.section {
  padding: 10px 0;
  text-align: center;
}
h1, h2, h3, h4 {
  font-weight: 600;
}
h2 {
  margin-bottom: 40px;
  font-size: 2.2rem;
  position: relative;
}
h2::after {
  content: "";
  width: 60px;
  height: 4px;
  background: #ff5a5f;
  display: block;
  margin: 15px auto 0;
  border-radius: 4px;
}

/* ========== TOPBAR ========== */
.topbar {
  background: #ff5a5f;
  color: #fff;
  font-size: 14px;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ========== HEADER ========== */
.site-header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 999;
}
.header-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
}
.brand {
  display: flex;
  align-items: center;
}
.brand-logo {
  width: 50px;
  margin-right: 2px;
}
.brand-name {
  font-size: 20px;
  font-weight: bold;
}
.brand-sub {
  font-size: 12px;
  color: #666;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
.main-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: 0.3s;
}
.main-nav a:hover,
.main-nav a.active {
  color: #ff5a5f;
}
.cta {
  background: #ff5a5f;
  border: none;
  padding: 8px 15px;
  border-radius: 25px;
}
.cta a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
}
.hero-inner {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
}
.hero-inner h1 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 20px;
}
.hero-inner h1 span {
  color: #ffffff;
}
.hero-ctas {
  margin-top: 25px;
}
.btn {
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}
.btn-primary {
  background: #ff5a5f;
  color: #fff;
}
.btn-primary:hover {
  background: #e6484c;
}
.btn-ghost {
  border: 2px solid #fff;
  color: #fff;
  margin-left: 15px;
}
.btn-ghost:hover {
  background: #fff;
  color: #222;
}

/* ========== AUTO-SCROLL ROWS ========== */
.scroll-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.scroll-row::-webkit-scrollbar {
  display: none;
}
.scroll-row img, 
.scroll-row video,
.service-card {
  flex: 0 0 auto;
  width: 250px;
  height: 250px;
  object-fit: cover;
}

/* ========== SERVICE CARDS ========== */
.service-card {
  background: rgba(255,255,255,0.9);
  padding: 10px;
  border-radius: 15px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
  text-align: center;
  transition: 0.3s;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.service-card h4 {
  margin-top: 5px;
  font-size: 1rem;
}

/* ========== STATS ========== */
.stats {
  color: #fff;
}
.bg-dark {
  background: #1a1a1a;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.stat {
  text-align: center;
}
.num {
  font-size: 2.5rem;
  font-weight: bold;
  color: #ff5a5f;
}
.label {
  margin-top: 10px;
  font-size: 1rem;
  color: #ccc;
}

/* ========== FOOTER ========== */
.site-footer {
  background: #111;
  color: #bbb;
  padding: 25px 0;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-links a {
  color: #bbb;
  margin-left: 15px;
  text-decoration: none;
}
.footer-links a:hover {
  color: #ff5a5f;
}

/* ========== SERVICES HORIZONTAL SCROLL ========== */
.services-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
}

/* Hide scrollbar */
.services-row::-webkit-scrollbar {
  display: none;
}
.services-row {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Each card in horizontal scroll */
.services-row .service-card {
  flex: 0 0 200px;  /* fixed width for horizontal scrolling */
  position: relative;
  text-align: center;
  background: rgba(255,255,255,0.9);
  padding: 10px;
  border-radius: 15px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

/* Hover effect */
.services-row .service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Title overlay at bottom of card */
.services-row .service-card h4 {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  text-align: center;
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 5px 0;
  border-radius: 0 0 12px 12px;
  font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .services-row .service-card {
    flex: 0 0 150px;
  }
}


.services-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
}

/* Hide scrollbar */
.services-row::-webkit-scrollbar {
  display: none;
}
.services-row {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Each card in horizontal scroll */
.services-row .service-card {
  flex: 0 0 200px;
  position: relative;
  text-align: center;
  background: rgba(255,255,255,0.9);
  padding: 10px;
  border-radius: 15px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.services-row .service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Title overlay at bottom of card */
.services-row .service-card h4 {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  text-align: center;
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 5px 0;
  border-radius: 0 0 12px 12px;
  font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .services-row .service-card {
    flex: 0 0 150px;
  }
}

/* ========== CLIENTS HORIZONTAL SCROLL ========== */
.clients-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
}

/* Hide scrollbar */
.clients-row::-webkit-scrollbar {
  display: none;
}
.clients-row {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Each client card */
.client-card {
  flex: 0 0 200px;  /* width of each card */
  position: relative;
  text-align: center;
  background: rgba(255,255,255,0.9);
  padding: 10px;
  border-radius: 15px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.client-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Name overlay */
.client-card h4 {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  text-align: center;
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 5px 0;
  border-radius: 0 0 12px 12px;
  font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .client-card {
    flex: 0 0 150px;
  }
}

/* ========== INDUSTRY HORIZONTAL SCROLL - Smaller Cards ========= */
/* Industry Grid - 2 rows, fixed width cards */
.industry-row {
  display: flex;
  flex-wrap: wrap;       /* allow multiple rows */
  gap: 8px;              /* spacing between cards */
  justify-content: center; /* center the grid */
  padding: 5px 0;
}

/* Each card */
.industry-card {
  flex: 0 0 60px;        /* fixed width */
  height: 60px;          /* fixed height */
  position: relative;
  text-align: center;
  background: rgba(255,255,255,0.9);
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.06);
  overflow: hidden;
  padding: 0;
  transition: transform 0.3s ease;
}

.industry-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.08);
}

/* Image fills card */
.industry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay title */
.industry-card h4 {
  position: absolute;
  bottom: 1px;
  left: 0;
  width: 100%;
  text-align: center;
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 1px 0;
  font-size: 0.45rem;
  border-radius: 0 0 6px 6px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .industry-card {
    flex: 0 0 40px;
    height: 40px;
  }

  .industry-card h4 {
    font-size: 0.35rem;
  }
}

/* ========== RESPONSIVE FIXES ========== */

/* Tablet (up to 768px) */
@media (max-width: 768px) {
  .header-grid {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 10px;
    padding: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .footer-grid {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* Mobile (up to 480px) */
@media (max-width: 480px) {
  body {
    font-size: 14px;
    line-height: 1.4;
  }

  .hero {
    height: 60vh;
  }

  .hero-inner h1 {
    font-size: 1.5rem;
  }

  .hero-inner p {
    font-size: 0.9rem;
  }

  .cta a {
    font-size: 14px;
    padding: 6px 12px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== MOBILE HEADER FIX ========== */
@media (max-width: 768px) {
  /* Topbar */
  .topbar .container {
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }

  /* Header Grid */
  .header-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  /* Brand logo + text */
  .brand {
    flex-direction: column;
    gap: 5px;
  }
  .brand-logo {
    margin: 0 auto;
  }

  /* Navigation Menu */
  .main-nav ul {
    flex-direction: column;
    gap: 10px;
    padding: 0;
    margin: 10px 0;
  }

  /* CTA button */
  .cta {
    margin-top: 10px;
    padding: 10px 20px;
  }
}

/* ========== EXTRA RESPONSIVE FIXES (Optimized) ========== */

/* Tablet screens (up to 1024px) */
@media (max-width: 1024px) {
  .hero {
    height: 70vh;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}

/* Mobile screens (up to 480px) */
@media (max-width: 480px) {
  .main-nav ul {
    flex-direction: column;
    gap: 12px;
  }

  .btn, .cta {
    width: 100%;
    text-align: center;
  }

  .hero-inner h1 {
    font-size: 1.3rem;
  }

  .hero-inner p {
    font-size: 0.85rem;
  }

  .services-row .service-card,
  .clients-row .client-card {
    flex: 0 0 120px;
  }
}

/* ========== FINAL TOPBAR + FOOTER FIXES ========== */

/* Topbar Responsive Fix */
@media (max-width: 768px) {
  .topbar .container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    padding: 6px 0;
  }

  .topbar .container > * {
    flex: unset;
    width: 100%;
  }

  .topbar {
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
  }
}

/* Ensure topbar not sticky */
.topbar {
  position: relative;
  z-index: 1000;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
}

/* Footer Responsive Fix */
@media (max-width: 768px) {
  .footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .footer-links {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .footer-links a {
    margin: 0;
  }
}