/* Home page hero and navbar refinements */

/*
  ======================================================
  EASILY EDIT HERO BACKGROUND VIDEO CONFIGURATION HERE:
  ======================================================
  You can modify these variables to change the video scale, 
  width, and X/Y positioning offset on the screen.
*/
:root {
  --hero-video-width: 65vw;        /* Video width (takes up ~65% of viewport width) */
  --hero-video-max-width: 1150px;  /* Max width cap on extremely wide screens */
  --hero-video-scale: 1.0;         /* Video scale size (e.g. 1.0 is default, 1.1 is larger) */
  --hero-video-x: 69%;             /* Horizontal axis: 50% is center, 68% puts it perfectly on the right */
  --hero-video-y: 65%;             /* Vertical axis: 50% is center */
}

.navbar {
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
}

.navbar.scrolled {
  background: rgba(0, 21, 51, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

/* Scrolled logo & link contrast rules */
.navbar.scrolled .logo {
  color: var(--text-white) !important;
}

.navbar.scrolled .nav-links a {
  color: var(--text-gray) !important;
}

.nav-cta {
  padding: 0.55rem 1.5rem !important;
  margin-left: 1rem;
}

/* Hero Section Base */
.hero {
  min-height: 100vh;
  padding: 10rem 5% 6rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #e3e3e7; /* Light gray background */
}

/* Hide old dark-gradient circles */
.hero::before,
.hero::after {
  display: none;
}

/* Seamless Background Video */
.hero-video-bg {
  position: absolute;
  top: var(--hero-video-y);
  left: var(--hero-video-x);
  transform: translate(-50%, -50%) scale(var(--hero-video-scale));
  width: var(--hero-video-width);
  max-width: var(--hero-video-max-width);
  height: auto;
  border: none;
  z-index: 0;
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: 4rem;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  color: #fff;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: clamp(3rem, 5vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -1.8px;
  margin-bottom: 1.4rem;
  color: #001533; /* Deep navy color for contrast */
}

.hero-content .accent-text {
  background: linear-gradient(135deg, #003f88 0%, #00509d 100%); /* Vibrant blue gradient */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  max-width: 36rem;
  font-size: 1.08rem;
  line-height: 1.72;
  color: #334155; /* Slate gray color for contrast */
  margin-bottom: 2rem;
}

/* Premium light-glassmorphic quote card */
.hero-quote-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 35rem;
  padding: 1.15rem 1.25rem;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.65); /* Light glassmorphism */
  border: 1px solid rgba(0, 21, 51, 0.08); /* Subtle border */
  border-radius: 24px;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px rgba(0, 21, 51, 0.05); /* Soft shadow */
  position: relative;
  z-index: 2;
}

.quote-icon-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #003f88 0%, #00509d 100%); /* Deep blue gradient */
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.quote-text {
  color: #0f172a;
}

.quote-text strong {
  display: block;
  margin-bottom: 0.1rem;
  color: #001533;
}

.quote-text span {
  color: #475569;
  font-size: 0.96rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-btns .btn-blue {
  border: none;
}

.stats-section {
  margin-top: -2rem;
  position: relative;
  z-index: 5;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  :root {
    --hero-video-width: 95vw;
    --hero-video-x: 50%;
    --hero-video-y: 50%;
    --hero-video-scale: 1.0;
  }

  .hero-video-bg {
    opacity: 0.25; /* Subtle watermark on mobile so text is perfectly readable */
  }

  .hero {
    min-height: auto;
    padding-top: 8.75rem;
    padding-bottom: 5rem;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-quote-card {
    text-align: left;
  }

  .hero-btns {
    justify-content: center;
  }

  .stats-section {
    margin-top: 0;
    padding-top: 0;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.75rem 1rem;
  }

  .navbar.scrolled {
    padding: 0.75rem 1rem;
  }

  .nav-links {
    background: rgba(0, 21, 51, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  }

  .nav-cta {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }

  .hero {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 4rem;
  }

  .hero-content h1 {
    letter-spacing: -1px;
  }

  .hero-content p {
    max-width: 100%;
    font-size: 1rem;
  }

  .hero-quote-card {
    width: 100%;
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .hero {
    padding-top: 8rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-btns {
    width: 100%;
  }

  .hero-btns .btn {
    width: 100%;
  }

  .quote-icon-circle {
    width: 2.65rem;
    height: 2.65rem;
    font-size: 0.92rem;
  }
}
