/* ----------------------------
   1) GLOBAL RESETS & BASE STYLES
---------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background-color: #121212; /* Dark background */
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #f2f2f2;
  scroll-behavior: smooth;
}

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

/* ----------------------------
   2) HEADER / NAVIGATION
---------------------------- */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 999;
  background-color: rgba(18,18,18,0.9);
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
}
.logo {
  font-weight: 600;
  font-size: 1.5rem;
  color: #fff;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.nav-toggle span {
  width: 25px;
  height: 3px;
  background-color: #f2f2f2;
  margin: 4px 0;
  transition: 0.4s;
}
.nav-menu {
  display: flex;
  list-style: none;
}
.nav-menu li {
  margin-left: 1rem;
}
.nav-link {
  color: #f2f2f2;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
  font-weight: 600;
}
.nav-link:hover,
.nav-link.active {
  color: #4a90e2;
}

/* ----------------------------
   3) HERO SECTIONS
---------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}
#background-video {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100vh;
  padding: 0 1rem;
}
.hero-content h1 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}
.btn-primary {
  background-color: #4a90e2;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.btn-primary:hover {
  background-color: #357ab8;
  transform: scale(1.05);
}

/* Inner Hero for sub-pages (e.g. services, howitworks, contact) */
.inner-hero {
  width: 100%;
  position: relative;
  text-align: center;
  margin-top: 60px; /* leaves space for fixed nav */
}
.inner-hero-content {
  color: #f2f2f2;
  margin: 0 auto;
}

/* ----------------------------
   4) INTRO / SERVICES / SECTIONS
---------------------------- */
.intro-section,
.services-section,
.contact-section,
.how-it-works,
.page-section,
.parallax-section {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
}

.intro-section h2,
.services-section h2,
.how-it-works h2,
.page-section h2,
.parallax-content h2,
.contact-section h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.inner-hero h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* CTA container */
.section-cta {
  margin-top: 2rem;
}

/* Paragraph text inside these sections */
.intro-section p,
.services-section p,
.page-section p,
.contact-section p {
  color: #ccc;
  line-height: 1.6;
}

/* Intro layout */
.intro-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}
.intro-text {
  flex: 1 1 500px;
  min-width: 300px;
}
.intro-image {
  flex: 1 1 500px;
  min-width: 300px;
  text-align: center;
}
.intro-image img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 0 auto;
}
.service-card {
  background-color: #1e1e1e;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.8);
}
.service-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 8px;
}
.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 500;
}
.service-card p {
  color: #ccc;
  line-height: 1.6;
}

/* Additional .page-grid for sub-pages if needed */
.page-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}
.page-grid-image,
.page-grid-text {
  flex: 1 1 50%;
}
.page-grid-text ul {
  list-style: disc;
  margin-left: 1.5rem;
  line-height: 1.6;
  margin-top: 1rem;
}
.service-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* ----------------------------
   5) BOTTOM BANNER (SHORT, FULL-WIDTH, DIMMED)
---------------------------- */
.short-banner-section {
  background: url("images/parallax-bg.png") center/cover no-repeat;
  position: relative;
  height: 40vh;
  width: 100%;
  margin-top: 2rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.short-banner-section::before {
  content: "";
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  /* Stronger overlay to highlight text */
  background-color: rgba(0,0,0,0.7);
}
.short-banner-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 1rem;
}
.short-banner-content h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.short-banner-content p {
  color: #ccc;
  line-height: 1.5;
}

/* ----------------------------
   6) CONTACT SECTION
---------------------------- */
.contact-section {
  text-align: center;
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.contact-section h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.contact-form {
  max-width: 600px;
  margin: 2rem auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  background-color: #1e1e1e;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #777;
}
.contact-form button {
  cursor: pointer;
  margin-top: 1rem;
  background-color: #4a90e2;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  transition: background-color 0.3s, transform 0.3s;
}
.contact-form button:hover {
  background-color: #357ab8;
  transform: scale(1.05);
}

/* ----------------------------
   7) FOOTER
---------------------------- */
.footer {
  text-align: center;
  padding: 1rem;
  background-color: #1e1e1e;
  color: #bbb;
}
.footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* ----------------------------
   8) FADE-IN ON SCROLL
---------------------------- */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* ----------------------------
   9) RESPONSIVE DESIGN
---------------------------- */

/* Mobile Navigation (max-width: 768px) */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .nav-menu {
    position: absolute;
    top: 60px;
    right: 0;
    background-color: #1e1e1e;
    flex-direction: column;
    width: 200px;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
  }
  .nav-menu.open {
    height: 165px;
  }
  .nav-menu li {
    margin: 0;
  }
  .nav-link {
    font-size: 1.6rem; /* bigger text on mobile */
    font-weight: 700;  /* extra bold on mobile */
    padding: 1rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }

  /* .page-grid becomes stacked on mobile */
  .page-grid {
    flex-direction: column;
  }
  .page-grid-image,
  .page-grid-text {
    flex: 1 1 100%;
  }
}

/* Tablet adjustments (max-width: 992px) */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .intro-section {
    margin: 1rem auto;
    padding: 1rem;
  }
  .intro-section h2,
  .services-section h2,
  .how-it-works h2,
  .contact-section h2,
  .page-section h2 {
    font-size: 1.75rem;
  }
  .step-content h3 {
    font-size: 1.1rem;
  }
}

/* ----------------------------
   10) HOME PAGE "HOW IT WORKS": LARGE NUMBERS
---------------------------- */
.how-steps-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1.5rem;
}
.home-how-step-box {
  background-color: #1e1e1e;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
  transition: transform 0.3s;
}
.home-how-step-box:hover {
  transform: translateY(-5px);
}
.home-how-step-row {
  display: flex;
  gap: 1rem;
}
.large-step-number {
  font-size: 3rem;         /* Larger font size */
  font-weight: 600;        /* Bold / sleek */
  color: #4a90e2;          /* Same light blue as buttons */
  font-family: "Poppins", sans-serif; /* Ensure consistent modern font */
  text-align: center;      /* Center the number within its space */
  line-height: 1;          /* So the number isn’t “egg shaped” or offset */
  display: inline-block;   /* So we can control text alignment easily */
  min-width: 40px;         /* Guarantee some horizontal space */
}

/* Force alignment for the row if needed */
.home-how-step-row {
  display: flex;
  gap: 1rem;
  align-items: center;
}
/* ----------------------------
   11) IMAGE COMPARISON SLIDER
---------------------------- */
.img-comp-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  touch-action: none; /* let drags occur on mobile */
}
.img-comp-inner {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}
.img-comp-img {
  display: block;
  width: 100%;
  height: auto;
}
.img-comp-overlay {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
}
.img-comp-overlay img {
  width: 100%;
  height: auto;
  display: block;
}
.img-comp-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #fff;
  z-index: 9;
  transform: translateX(-50%);
}
.img-comp-slider {
  position: absolute;
  top: 100%; /* below the image */
  margin-top: 10px;
  z-index: 10;
  cursor: ew-resize;
  width: 40px;
  height: 40px;
  background-color: #4a90e2;
  border: 2px solid #4a90e2;
  border-radius: 50%;
  transform: translateX(-50%);
}
