/* =========================================================
   PAGE-INDEX-HERO.CSS
   Hero Section Styling
   Xpress Vending – Professional Implementation
   ========================================================= */

/* =========================================================
   HERO SECTION
   ========================================================= */
   .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-align: center;
    overflow: hidden;

  }
  
  /* Background Layers */
  .hero-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
    will-change: opacity;
    box-shadow: 0 -50px 100px rgba(255, 255, 255, 0.99) inset;
  }
  
  /* First image visible by default (SEO + no-JS fallback safe) */
  .hero-bg.bg1 {
    opacity: 1;
  }
  
  .hero-bg.bg2 {
    opacity: 0;
  }
  
  /* Overlay stays above background */
  .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(46, 58, 70, 0.65);
    z-index: 1;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
  }
  
  .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(46, 58, 70, 0.65);
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
  }
  
  .hero h1 {
    font-size: 2.8rem;
    margin-bottom: var(--space-2);
    font-weight: 700;
  }
  
  .hero p {
    font-size: var(--font-size-lg);
  }
  
  
  /* =========================================================
     HERO LOGO IMAGE ANIMATION
     ========================================================= */
  
  .hero-brand {
    position: absolute; /* relative to hero */
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1100;
  
    display: flex;
    align-items: center;
    gap: 12px;
  
    pointer-events: auto;
    cursor: pointer;
    text-decoration: none;
    
    transition: left 0.6s cubic-bezier(.4,0,.2,1);
  }
  .hero-brand:hover img {
    transform: scale(1.03);
  }
  
  /* Logo sizing */
  .hero-brand img {
    max-height: 100px;
    width: auto;
    transition: all 0.6s cubic-bezier(.4,0,.2,1);
  }
  
  /* X logo starts hidden */
  .hero-xlogo {
    opacity: 0;
    transform: translateX(20px);
  }
  
  /* Animate X logo in */
  .hero-brand.show-x .hero-xlogo {
    opacity: 1;
    transform: translateX(0);
  }
  
  /* Scroll behavior (move to navbar) */
  .hero-brand.is-scrolled {
    position: fixed; /* now detach from hero */
    top: 15px;
    left: 1%;
    transform: translateY(0);
  }
  
  .hero-brand.is-scrolled img {
    max-height: 40px;
  }
  
  .hero {
    position: relative;
  }
  
  /* =========================================================
     HERO LOGO CENTER GLOW (Visible only before scroll)
     ========================================================= */
  
  .hero-brand::before {
    content: "";
    position: absolute;
    inset: -20px -30px; /* padding around logos */
    background: rgba(255, 255, 255, 0.75);
    filter: blur(25px);
    border-radius: 50px;
    z-index: -1;
  
    opacity: 1;
    transition: opacity 0.5s ease;
  }
  
  /* Remove glow once scrolled into navbar */
  .hero-brand.is-scrolled::before {
    opacity: 0;
  }
  
  /* =========================================================
     HERO LOGO ADJUSTMENT FOR MOBILE
     ========================================================= */
  
  @media (max-width: 768px) {
    .hero-brand img {
      max-height: 60px; /* smaller than desktop 100px */
    }
  
    /* Optional: reduce gap between logos for smaller screens */
    .hero-brand {
      gap: 8px;
    }
  }
  
  /* =========================================================
     HERO TEXT & BUTTON VISIBILITY IMPROVEMENTS
     ========================================================= */
  
  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
  
    /* Soft semi-transparent white background for readability */
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(6px);
    padding: 125px 25px;
    border-radius: 15px;
    transition: background 0.3s ease;
  }
  
  /* Headline improvements */
  .hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    margin-bottom: var(--space-2);
    padding-top: 100px;
  }
  
  /* Paragraph improvements */
  .hero-content p {
    font-size: var(--font-size-lg);
    color: #ffffff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
    margin-bottom: 20px;
  }
  
  /* Button improvements */
  .hero-content .btn-primary {
    background: var(--color-primary-cyan);
    color: #fff;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    transition: all 0.3s ease;
  }
  
  /* Button hover */
  .hero-content .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
    background: var(--color-secondary-accent);
    text-decoration: underline;
    transition: text-decoration var(--transition-fast);
  }
  
  /* Hide "Vending" in hero H1 on mobile */
  @media (max-width: 768px) {
    .hero h1 .hide-mobile {
      display: none;
    }
  }
  


