/* =========================================================
   HERO.CSS
   Xpress Vending – Professional Hero Section
   ========================================================= */

/* =========================================================
   HERO SECTION LAYOUT
   ========================================================= */

   .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;
  }
  
  /* default visible background */
  .hero-bg.bg1 { opacity: 1; }
  .hero-bg.bg2 { opacity: 0; }
  
  /* Overlay */
  .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(46, 58, 70, 0.65);
    z-index: 1;
  }
  
  /* =========================================================
     HERO CONTENT
     ========================================================= */
  
  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
  
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(6px);
    padding: 125px 25px;
    border-radius: 15px;
    transition: background 0.3s ease;
  }
  
  .hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    margin-bottom: var(--space-2);
    padding-top: 50px;
  }
  
  .hero p {
    font-size: var(--font-size-lg);
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
    line-height: 1.6;
    margin-bottom: 20px;
  }
  
  /* =========================================================
     HERO BUTTON
     ========================================================= */
  
  .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;
  }
  
  .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;
  }
  
  /* =========================================================
     HERO BRAND (LOGO CONTAINER)
     ========================================================= */
  
  .hero-brand {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
  
    display: flex;
    align-items: center;
    gap: 12px;
  
    cursor: pointer;
    text-decoration: none;
    pointer-events: auto;
  
    transition: left 0.6s cubic-bezier(.4,0,.2,1);
  }
  
  /* Logo base styling */
  .hero-brand img {
    max-height: 100px;
    width: auto;
  
    transform: scale(1);
    transition:
      transform 0.6s cubic-bezier(.4,0,.2,1),
      opacity 0.6s cubic-bezier(.4,0,.2,1);
  }
  
  /* Smooth hover scale — BOTH images */
  .hero-brand:hover img {
    transform: scale(1.03);
  }
  
  /* =========================================================
     X LOGO ANIMATION
     ========================================================= */
  
  /* hidden initial state */
  .hero-xlogo {
    opacity: 0;
    transform: translateX(20px) scale(1);
  }
  
  /* reveal animation */
  .hero-brand.show-x .hero-xlogo {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  
  /* maintain translate during hover */
  .hero-brand.show-x:hover .hero-xlogo {
    transform: translateX(0) scale(1.03);
  }
  
  /* =========================================================
     SCROLL STATE (LOGO MOVES TO NAVBAR)
     ========================================================= */
  
  .hero-brand.is-scrolled {
    position: fixed;
    top: 15px;
    left: 1%;
    transform: translateY(0);
  }
  
  .hero-brand.is-scrolled img {
    max-height: 40px;
  }
  
  /* =========================================================
     HERO LOGO GLOW (ONLY CENTERED STATE)
     ========================================================= */
  
  .hero-brand::before {
    content: "";
    position: absolute;
    inset: -20px -30px;
    background: rgba(255,255,255,0.75);
    filter: blur(25px);
    border-radius: 50px;
    z-index: -1;
    opacity: 1;
    transition: opacity 0.5s ease;
  }
  
  .hero-brand.is-scrolled::before {
    opacity: 0;
  }
  
  /* =========================================================
     MOBILE OPTIMIZATIONS
     ========================================================= */
  
  @media (max-width: 768px) {
  
    .hero-brand {
      gap: 8px;
    }
  
    .hero-brand img {
      max-height: 60px;
    }
  
    .hero h1 .hide-mobile {
      display: none;
    }
  
    .hero-content {
      padding: 90px 18px;
    }
  
    .hero h1 {
      font-size: 2rem;
    }
  }