@media(max-width:768px){

    h1 { font-size: 2.5rem; }
    .navbar { padding: 20px 5%; }
    .hero-btns { display: flex; flex-direction: column; gap: 15px; }
    .navbar{
        width: 100%;
    }
    .blob {
    position: absolute;
    width: 200px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
}
.blob-1 { 
    background: var(--primary); 
    top: -100px;
     /* left: -100px; */
 }
 .blob-2 {
     background: var(--secondary);
      bottom: -100px;
       
     }
    .main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}
#typewriter-container {
        font-size: 2.2rem; /* Much better for mobile screens */
        flex-direction: column; /* Stacks "Welcome to" on top of "Polio AI" */
        gap: 5px;
        min-height: 80px; /* Adjust based on your line height */
        margin-bottom: 15px;
    }

    .hero-sub {
        font-size: 1rem;
        padding: 0 10px; /* Prevents text from touching the edges */
    }

    .btn-primary-lg {
        width: 100%; /* Makes buttons full-width on mobile for easier clicking */
        padding: 15px 20px;
        font-size: 1rem;
    }
      .hero-btns {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }
    
    .btn-secondary-lg {
        width: 100%;
    }

    #state-signup {
        grid-template-columns: 1fr; /* Stack them back up on mobile */
    }
    
    .modal-card {
        padding: 20px;
        margin-top: 20px;
    }
    
    #modal-title { font-size: 1.5rem; }
    /* Custom Scrollbar for a "SaaS" look */
.modal-card::-webkit-scrollbar {
    width: 5px;
}
.modal-card::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 10px;
}
.sidebar { position: fixed; left: -100%; height: 100%; z-index: 1000; }
    .sidebar.active { left: 0; }
    .overlay.active { display: block; }

    .menu-toggle {
        display: flex !important; /* Hamburger appears */
        align-items: center;
        justify-content: center;
    }

    .close-btn {
        display: block !important; /* X button appears inside sidebar */
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        padding: 5px 10px;
    }

    .sidebar {
        position: fixed;
        left: -100%;
        z-index: 1001;
    }

    .sidebar.active {
        left: 0;
    }
      .top-bar {
        padding: 10px;
        gap: 10px;
    }

    .search-box {
        max-width: 180px; /* Forces search to be smaller on phones */
    }

    /* Hide the text "Mike" on mobile, just show the Avatar icon */
    #display-username {
        display: none;
    }

    .avatar {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    /* Fix the clustered cards */
    .content-wrapper {
        padding: 15px;
    }

    .stat-card {
        margin-bottom: 15px;
        padding: 20px;
    }

}
   
