:root {
      --primary: #4f46e5;
      --secondary-color: #10b981;
      --text-light: #ffffff;
      --dark-bg: #0b0b0f;
      --dark-text: #e5e7eb;
      --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary-color));
    }

    body {
      color: #111827;
      transition: background-color .3s ease, color .3s ease;
    }

    body.dark {
      background: var(--dark-bg);
      color: var(--dark-text);
    }

    a { text-decoration: none !important; color: inherit; transition: color .2s ease; }
    a:hover { color: #c7d2fe; }
    ul, li { list-style: none !important; margin: 0; padding: 0; }

    @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
    .menu-open { animation: slideDown .35s ease forwards; }

    /* header { background: var(--gradient-primary); } */

    /* Overlay base (kept in DOM but hidden) */
  #mobileSearchOverlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.6);
    z-index: 9999;

    /* hidden by default without using display:none */
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
  }

  /* Active = visible */
  #mobileSearchOverlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Form animation (scale + fade) */
  #mobileSearchOverlay .search-card {
    width: 90%;
    max-width: 420px;
    transform: translateY(-6px) scale(.98);
    opacity: 0;
    transition: transform .28s cubic-bezier(.2,.9,.3,1), opacity .28s ease;
  }
  #mobileSearchOverlay.active .search-card {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  /* Close button */
  .search-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 38px;
    height: 38px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
  }
  .search-close-btn:hover { transform: scale(1.05); }
    /* CTA Button */
    .cta-button { background: linear-gradient(to right, var(--primary), var(--secondary-color)); color: var(--text-light); transition: transform .3s, opacity .2s; }
    .cta-button:hover { transform: scale(1.05); opacity: 0.9; }

    #mobileMenu a {
      display: block;
      margin-bottom: 1.5rem;
    }


