/* =========================================================
   DESKTOP LARGE SCREENS (>=1400px)
========================================================= */
@media (min-width: 1400px) {
    .wrapper {
        max-width: 1380px;
    }

    .login-form {
        max-width: 480px;
    }

    .register-form {
        max-width: 600px;
    }

    .result-card {
        max-width: 1100px;
    }
}

/* =========================================================
   LAPTOP / SMALL DESKTOP (1024px – 1399px)
========================================================= */
@media (max-width: 1399px) {
    .wrapper {
        width: calc(100% - 80px);
    }

    .register-form {
        max-width: 650px;
    }

    .infoWrap {
        max-width: 460px;
    }
}

/* =========================================================
   TABLETS (<=1150px)
========================================================= */
@media (max-width: 1150px) {
    /* Mobile Nav */
    .header-left .menu-toggle {
        display: block;
    }

    .mainNav {
        position: fixed;
        inset: 0;
        background: #ffffff;
        display: flex;
        flex-direction: column;
        transform: translateX(-100%);
        transition: transform 0.35s ease;
        z-index: 1500;
        width: 350px;
        gap:0;
        align-items: flex-start;
        padding: 15px;
    }

    .mainNav.show {
        transform: translateX(0);
    }

    .header-mobile {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 15px;
    }
    .header-mobile .menu-toggle{
        background: none;
        border: none;
        font-size: 22px;
        cursor: pointer;
        color: var(--primary);
    }
    .header-mobile .header-left .app-logo{
        color: var(--primary);
    }
    .header-mobile .header-left .app-logo i{
        color: var(--primary);
    }
    .header-mobile .header-left .app-logo .logo-subtitle{
        color: var(--primary);
    }
    .header-mobile .app-logo i,.header-mobile .app-logo {
        color: var(--primary);
    }
    .header-mobile .logo-title{
        font-size: 18px;
    }
    .header-mobile .logo-subtitle{
        color: var(--primary);
        font-size: 12px;
    }
    .main-nav {
        flex-direction: column;
        padding: 10px 0;
        overflow-y: auto;
        height: 100%;
        width: 100%;
        gap:0;
    }

    .main-nav a {
        padding: 16px 0px;
        border-bottom: 1px solid #f0f3f7;
        font-size: 15px;
        color: var(--text-dark);
        width: 100%;
    }

    .main-nav a::after {
        display: none;
    }

    
    
    .main-header.header-scrolled .main-nav a{
         color: var(--text-dark);
    }

    .main-nav a.active,.main-header.header-scrolled .main-nav a.active{
        color: var(--primary);
    } 
    .userInfo {
        display: block;
        width: 100%;
        border-top:1.5px dashed #ddd;
    }

    .user-dropdown-header{
        padding: 10px 0px;
    }

    .user-menu {
        display: none;
    }
    .homeContent{
        max-width: 650px;
    }
    .homeContent h1{
        font-size: 30px;
    }
    .header-login-btn{
       margin: 0;
       width: 100%;
       justify-content: center;
       padding: 12px 24px;
    }
}

/* =========================================================
   TABLETS (<=1024px)
========================================================= */
@media (max-width: 1024px) {

    /* Contact */
    .contactGrid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Body scroll */
    body {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }

    header {
        padding: 12px 25px;
    }


    .infoWrap {
        max-width: 100%;
        text-align: center;
    }

    .infoWrap h2 {
        text-align: center;
    }

    .login-form,
    .register-form {
        max-width: 520px;
        width: 100%;
    }

    footer {
        padding: 15px 20px;
    }
    .aboutGrid {
        gap: 30px;
    }
    .aboutGoals h3{
        margin-bottom: 18px;
    }
    .aboutList{
        gap:10px;
    }
    .aboutContent h2,.mndCenter h2,.contactInfo h2{
        font-size: 28px;
    }
    p{
        font-size: 15px;
    }
    .subHeader{
        padding: 130px 0 50px;
    }
    .subHeader .breadcumTitle{
            font-size: 22px;
    }
}

@media (max-width: 992px) {
     /* About */
    .aboutGrid {
        grid-template-columns: 1fr;
    }

    .aboutGoals h3{
        font-size: 18px;
    }

    .aboutContent{
        text-align: center;
    }
    .aboutGoals {
        text-align: left;
    }

   .home::after{
    opacity: .7;
   }
}

/* =========================================================
   MOBILE & TABLET (<=768px)
========================================================= */
@media (max-width: 768px) {

    /* MND */
    .mndCenter h2 {
        font-size: 1.4rem;
    }

    .mndCenter p {
        font-size: 0.95rem;
    }

    .mndHighlights {
        margin-top: 2.5rem;
    }

    

    /* Coming Soon */
    .coming-soon-card {
        padding: 30px 20px;
    }

    .coming-soon-card h1 {
        font-size: 26px;
    }

    .coming-soon-card p {
        font-size: 15px;
    }

    .coming-soon-card .icon {
        font-size: 40px;
    }

    .mainPage section {
        align-items: flex-start;
    }
    .main-header{
        padding: 15px;
    }
    .wrapper {
        width: calc(100% - 30px);
    }

    /* About */
    .about {
        padding: 70px 0;
    }

    .aboutContent h2 {
        font-size: 26px;
    }

    .aboutContent p {
        font-size: 15px;
    }

    .aboutGoals h3 {
        font-size: 20px;
    }

    /* Contact */
    .contact {
        padding: 70px 0;
    }

    .contactForm {
        padding: 30px 22px;
    }

    .contactInfo h2 {
        font-size: 26px;
    }

    /* Layout */
    header {
        gap: 10px;
        padding: 15px;
    }

    .app-logo {
        font-size: 20px;
    }

    .infoWrap h2 {
        font-size: 20px;
    }

    .infoWrap p {
        font-size: 14px;
    }

    h2 {
        font-size: 18px;
    }

    .form-group-list {
        flex-direction: column;
    }

    .voice-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .result-card-wrap {
        padding: 16px;
    }
    .logo-title{
        font-size: 18px;
    }
    .logo-subtitle{
        font-size: 12px;
    }
    .homeContent h1{
        font-size: 24px;
    }
    p{
        font-size: 14px;
    }
    #scrollToTopBtn {
        right: 16px;
        bottom: 16px;
    }
    #voiceModalTitle{
        font-size: 17px;
    }
}
@media (max-width: 767px) and (orientation: portrait) {
     .auth-modal.show {
        align-items: flex-end;
        justify-content: center;
    }

    /* Bottom sheet */
    .auth-modal-content {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        margin: 0;

        border-radius: 18px 18px 0 0;
        max-height: 92vh;

        transform: translateY(100%);
        animation: authSlideUp 0.45s ease forwards;
    }

    /* Scroll area */
    .auth-scroll {
        max-height: calc(100% - 20px);
        border-radius: 18px 18px 0 0;
    }

    /* Close button reposition */
    .auth-close {
        right: 14px;
        width: 32px;
        height: 32px;
        line-height: 32px;
        font-size: 30px;
        z-index: 5;
    }

    /* Login / Register width full */
    .login-form,
    .register-form {
        max-width: 100%;
    }

     .homeContent .wrap{
        flex-wrap: wrap;
    }
    .homeContent button, .homeContent a{
        width: 100%;
    }
}
/* =========================================================
   SMALL MOBILE (<=600px)
========================================================= */
@media (max-width: 600px) {

}

/* =========================================================
   VERY SMALL DEVICES (<=390px)
========================================================= */
@media (max-width: 390px) {
    .app-logo {
        font-size: 18px;
    }

    .login-form,
    .register-form {
        padding: 25px 15px;
    }

    .btn-submit {
        font-size: 14px;
    }

    .result-card h1 {
        font-size: 24px;
    }
   
}

/* =========================================================
   EXTRA SMALL (<=480px)
========================================================= */
@media (max-width: 480px) {
    .coming-soon-card h1 {
        font-size: 22px;
    }

    .coming-soon-card p {
        font-size: 14px;
    }
}


@keyframes authSlideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}