/* ============================================
   HERO.CSS - FINAL POLISHED VERSION
   (Big Header + 3-Line Text + Silver Video Border)
   ============================================ */

/* ----------------------------------------------
   1. VISIBILITY SAFEGUARDS
   ---------------------------------------------- */
.hero-animated .hero-text-block,
.hero-animated .hero-media,
.hero-text-block,
.hero-media,
.headline-line,
.pixel-text {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  animation: none !important;
}

/* ----------------------------------------------
   2. MODERN "ISLAND" HEADER (Bolder & Bigger)
   ---------------------------------------------- */
.site-header {
  position: fixed;
  top: 24px;
  /* Slightly more space from top */
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 !important;
  pointer-events: none;
}

.main-nav {
  pointer-events: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;

  /* Sizing */
  max-width: 1280px;
  /* Wider container */
  width: 92%;
  margin: 0 auto;

  /* Glass Styles */
  background: rgba(255, 255, 255, 0.9);
  /* More opaque for contrast */
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);

  /* Borders & Shadows */
  border: 1px solid rgba(255, 255, 255, 1);
  box-shadow: 0 12px 40px -10px rgba(0, 0, 0, 0.06);

  padding: 14px 32px;
  /* Bigger padding for a substantial look */
  border-radius: 100px;
  transition: all 0.3s ease;
}

.main-nav:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.1);
}

.logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  /* INCREASED SIZE */
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
  /* Darker black */
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 100px;
  letter-spacing: -0.01em;
  /* Modern tight tracking */
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: #000;
  background-color: rgba(0, 0, 0, 0.04);
}

.site-header .button-secondary {
  /* BIGGER BUTTON */
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.site-header .button-secondary:hover {
  transform: scale(1.05);
  background: #333;
}


/* ----------------------------------------------
   3. HERO SECTION CONTAINER
   ---------------------------------------------- */
.hero-section {
  position: relative;
  width: 100%;
  padding-top: 0px;
  /* Adjusted for larger header */
  padding-bottom: 300px;
  background-image:
    radial-gradient(circle at 15% 100%, rgba(106, 170, 234, 0.968), transparent 25%),
    radial-gradient(circle at 85% 100%, rgba(131, 198, 75, 0.95), transparent 25%),
    url('img/group-10.png');
  overflow: hidden;
}

.hero-section .container {
  max-width: 100% !important;
  margin: 0 auto;
  padding: 0 20px;
  width: 100% !important;
}


/* ----------------------------------------------
   4. LAYOUT: CENTERED STACK
   ---------------------------------------------- */
.hero-top-layout {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  width: 100%;
  margin-bottom: 40px;
}


/* ----------------------------------------------
   5. TEXT BLOCK & HOVER EFFECTS (Spotlight)
   ---------------------------------------------- */
.hero-text-block {
  text-align: center !important;
  width: 100%;
  max-width: 100%;
  z-index: 2;
  transition: all 0.4s ease;
  padding: 0 10px;
}

.headline-line {
  font-family: 'Poppins', sans-serif;

  /* 3-LINE SIZE FIX */
  font-size: clamp(40px, 6.7vw, 120px) !important;

  font-weight: 500;
  line-height: 1.05 !important;
  letter-spacing: -0.03em !important;
  color: #0d0d0d;
  margin: 0 auto;
  white-space: normal;

  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.4s ease,
    filter 0.4s ease !important;
  transform-origin: center center;
  will-change: transform, opacity, filter;
  cursor: default;
}

/* -- Hover Effect -- */
.hero-text-block:hover .headline-line {
  opacity: 0.3 !important;
  filter: blur(4px) !important;
  transform: scale(0.98) !important;
}

.hero-text-block .headline-line:hover {
  opacity: 1 !important;
  filter: blur(0px) !important;
  transform: scale(1.05) !important;
  z-index: 10;
}

.headline-line:nth-child(2) {
  color: #b0b0b0;
}

.text-gradient {
  background: linear-gradient(90deg, #AFEF7C 0%, #007EFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}


/* ----------------------------------------------
   6. VIDEO BLOCK (Silver Border + Edge Button)
   ---------------------------------------------- */
.hero-media {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero-video-frame {
  position: relative;
  width: 100%;
  max-width: 650px;
  aspect-ratio: 16/9;

  /* SILVER BORDER */
  border: 10px solid #f0f0f0;
  border-radius: 30px;
  background: #f0f0f0;

  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.1);
  overflow: visible !important;
}

.hero-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

/* PLAY BUTTON - ON THE BORDER */
.hero-video-play {
  position: absolute;
  bottom: -30px;
  right: -30px;

  width: 90px;
  height: 90px;
  background: #ffffff;
  border-radius: 50%;
  border: 4px solid #ffffff;

  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
  z-index: 20;
}

.hero-video-play:hover {
  transform: scale(1.1);
}

.hero-video-play-icon {
  width: 0;
  height: 0;
  border-left: 20px solid #007EFF;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 6px;
}


/* ----------------------------------------------
   7. BOTTOM CONTENT & CHAT WIDGET
   ---------------------------------------------- */
.hero-bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: #a0a0a0;
  margin: 0;
}

.button-primary {
  display: inline-block;
  background-color: #007eff;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 15px 38px;
  border-radius: 1000px;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(0, 126, 255, 0.25);
  border: none;
}

.chat-widget-section {
  position: absolute !important;
  top: -150px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 934px !important;
  max-width: 90% !important;
  z-index: 3 !important;
}

.dark-section {
  padding-top: 200px !important;
  background-color: #000000 !important;
}


/* ----------------------------------------------
   8. RESPONSIVE
   ---------------------------------------------- */
@media (max-width: 992px) {

  .nav-links,
  .site-header .button-secondary {
    display: none;
  }

  .hamburger-menu {
    display: flex;
  }

  .main-nav {
    width: 94%;
    padding: 12px 20px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 0px;
    padding-bottom: 250px;
  }

  .headline-line {
    font-size: clamp(32px, 9vw, 55px) !important;
    line-height: 1.15 !important;
  }

  .hero-video-frame {
    border-width: 6px;
    border-radius: 20px;
  }

  .hero-video-play {
    width: 60px;
    height: 60px;
    bottom: -20px;
    right: -10px;
  }

  .hero-video-play-icon {
    border-left-width: 14px;
    border-top-width: 9px;
    border-bottom-width: 9px;
    margin-left: 3px;
  }
}


/* ============================================
   MOBILE MENU FIX (Paste at the bottom of hero.css)
   ============================================ */

/* 1. Force Menu Layer to be Topmost */
.mobile-menu {
  position: fixed !important;
  top: 0 !important;
  right: -100%;
  /* Default hidden state */
  z-index: 2147483647 !important;
  /* Maximum possible Z-Index */
  pointer-events: auto !important;
  /* Enable clicking */
  overflow-y: auto !important;
}

/* 2. Show Menu when Active (overrides any other hiders) */
.mobile-menu.active {
  right: 0 !important;
}

/* 3. Force all items inside menu to be clickable */
.mobile-menu * {
  pointer-events: auto !important;
  z-index: 2147483647 !important;
}

/* 4. Ensure Hamburger Button is clickable */
.hamburger-menu {
  position: relative;
  z-index: 2147483647 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* 5. Fix Dropdown Toggle Clicks */
.mobile-dropdown-toggle {
  display: flex !important;
  width: 100% !important;
  cursor: pointer !important;
}

/* 6. Stop the Header from blocking clicks */
@media (max-width: 992px) {
  .site-header {
    z-index: 1000 !important;
    /* Lower than mobile menu */
  }

  /* Ensure Hero doesn't clip the menu */
  .hero-section {
    overflow: visible !important;
    z-index: 1 !important;
  }
}