/* ==========================================================================
   BXDForge - Home Page Stylesheet (index.css)
   ========================================================================== */

/* Resets & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  color: #1f2937;
  background: #effbfb;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 7%;
  background: transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(2, 6, 23, 0.85);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar a {
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #38bdf8;
}

.navbar a.active {
  color: #00d4ff !important;
  font-weight: 600;
}

#menu-toggle,
.menu-icon {
  display: none;
}

/* ==========================================================================
   Hero Section with Fullscreen Video Background
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 7% 80px;
  overflow: hidden;
  color: #effbfb;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(2, 6, 23, 0.92) 0%,
    rgba(15, 23, 42, 0.65) 55%,
    rgba(15, 23, 42, 0.25) 100%
  );
  z-index: -1;
}

.hero-content {
  max-width: 1000px;
  animation: fadeUp 1s ease both;
}

.hero-title3 {
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-size: clamp(32px, 5.2vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 22px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title3 span {
  display: inline-block;
  color: #ff7b00;
  font-weight: 800;
}

.hero-text {
  max-width: 860px;
  font-size: 18px;
  color: #dbeafe;
  line-height: 1.8;
  font-weight: 400;
}

/* ==========================================================================
   Layout Containers & Common Content Sections
   ========================================================================== */
.page-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.bxd-about-section,
.bxd-services-section,
.bxd-benefits-section {
  background: #effbfb;
  padding: 80px 7%;
}

/* Section Header & Typography */
.what-we-do-section h2,
.bxd-benefits-section h2 {
  font-size: clamp(28px, 3.8vw, 38px);
  font-weight: 800;
  color: #081046;
  text-transform: uppercase;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.section-description {
  max-width: 950px;
  text-align: justify;
  line-height: 1.75;
  color: #475569;
  font-size: 16.5px;
}

/* Section Highlight / Essence Callout */
.section-highlight {
  margin-top: 50px;
}

.essence {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 5px;
  color: #0284c7;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-highlight h3 {
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.15;
  color: #071d63;
  font-weight: 800;
}

.section-highlight h3 span {
  font-weight: 800;
  color: #071d63;
}

/* ==========================================================================
   Services Slider Section (Continuous Carousel)
   ========================================================================== */
.bxd-services-section {
  padding-top: 20px;
  padding-bottom: 60px;
}

.bxd-slider-wrapper {
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
}

.bxd-slider-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: scrollSlider 25s linear infinite;
}

.bxd-slider-track:hover {
  animation-play-state: paused;
}

.bxd-card {
  width: 260px;
  min-height: 270px;
  flex: 0 0 260px;
  background: #ffffff;
  padding: 34px 26px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.bxd-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.12);
  border-color: #cbd5e1;
}

.card-image_small {
  width: 58px;
  height: 58px;
  object-fit: contain;
  margin-bottom: 18px;
}

.bxd-card h3 {
  color: #081046;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.bxd-card p {
  color: #64748b;
  font-size: 14.5px;
  line-height: 1.65;
}

/* ==========================================================================
   Who Benefits Section (Card Grid)
   ========================================================================== */
.bxd-benefits-text {
  max-width: 950px;
  font-size: 16px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 45px;
}

.bxd-benefit-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.benefit-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.12);
  border-color: #cbd5e1;
}

.card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.benefit-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin: 22px 22px 12px;
  text-align: left;
}

.benefit-card p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 22px 24px;
  text-align: justify;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  padding: 30px 7%;
  text-align: center;
  background: #020817;
  color: #94a3b8;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollSlider {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .hero-title3 {
    font-size: 38px;
  }
  .section-highlight h3 {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .menu-icon {
    display: block;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
  }

  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 7%;
    background: rgba(2, 6, 23, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar a {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  #menu-toggle:checked ~ .navbar {
    display: flex;
  }

  .hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hero-title3 {
    font-size: 30px;
  }

  .hero-text {
    font-size: 16px;
  }

  .bxd-about-section,
  .bxd-services-section,
  .bxd-benefits-section {
    padding: 50px 5%;
  }

  .section-highlight h3 {
    font-size: 28px;
  }

  .bxd-benefit-cards {
    grid-template-columns: 1fr;
  }
}
