body.no-scroll {
    overflow: hidden !important;
}

html, body {
    overflow-x: hidden;
}

/* Nav bar */

.menu-toggle,
.hamburger {
    display: none;
}

@media screen and (max-width: 768px) {
    .navbar {
        -webkit-overflow-scrolling: touch;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
      }

    .nav-container {
        margin: 0 24px;
        width: 100%;
    }

    .menu-toggle {
        display: none;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 10;
    }

    .hamburger-icon,
    .close-icon {
        width: 28px;
        height: 28px;
    }

    .close-icon {
        display: none;
    }

    .hamburger.active .hamburger-icon {
        display: none;
    }

    .hamburger.active .close-icon {
        display: block;
    }

    .nav-links-wrapper {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: transparent;
        padding: 24px;
        flex-direction: column;
        align-items: center;
        transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
        opacity: 0;
        transform: translateY(-20px);
    }

    .nav-links-wrapper.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
        background-color: #040102;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .navbar.active {
        background-color: #040102;
    }

    .logo img {
        width: 75px;
        height: 40px;
    }

    .cta-button {
        width: 100%;
    }

    /* Footer */
    
    .footer-right h4 {
        color: white; 
        text-align: left;
    }

    .footer {
        margin-top: 40px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 20px;
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%; 
        margin-bottom: 0px;
    }

    .footer-left {
        margin-bottom: 32px;
        width: 100%; 
    }

    .footer-right {
        width: 100%; 
    }

    .quick-links {
        width: 100%; 
    }

    .quick-links li {
        width: 100%; 
        text-align: left;
        font-size: 14px;
        color: #A1A1AA;
    }

    .quick-links li a {
        width: 100%; 
        color: #A1A1AA;
        text-decoration: none;
    }

    .footer-bottom {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: auto;
        gap: 8px;
    }

    .footer-links {
        margin-bottom: 10px;
        gap: 8px;
    }

    .footer-links p {
        font-family: 'Nunito Sans', sans-serif; 
        font-size: 14px; 
        line-height: 20px; 
        color: #A1A1AA; 
        width: fit-content;
    }

    .footer-links a {
        width: fit-content;
    }

    .footer-divider {
        width: 100%;
        height: 1px;
        background-color: #A1A1AA; 
        margin: 20px 0; 
    }

    .social-icons a {
        margin-left: 0px;
    }
}

/* Hero section */

@media screen and (max-width: 768px) {
    .hero {
        margin: 56px auto 0 auto;
    }
    
    .hero-title {
        font-size: 30px;
        line-height: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-cta {
        font-size: 14px;
        padding: 12px 20px;
    }
}

@media screen and (max-width: 768px) {
    .section-title {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .dashboard-image {
        content: url("../assets/images/mobile-dasboard.png");
    }
}

/* How it works section */

@media screen and (max-width: 1200px) {
    .nav-container,
    .how-it-works-cards {
        margin-left: 24px;
        margin-right: 24px;
    }
}

img {
    max-width: 100%;
    height: auto;
}

@media screen and (max-width: 768px) {
    .how-it-works-cards {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .card-title {
        font-size: 24px;
    }

    .card-text {
        font-size: 14px;
    }

    .works-overlay-blur {
        position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    }
}

/* Features section */

@media screen and (max-width: 768px) {
    .features-showcase {
        grid-template-columns: 1fr;
    }
}   

@media (max-width: 768px) {
    .features-title {
        font-size: 24px;
    }
    .section-subtitle {
        font-size: 14px;
    }
    .features-tabs h3 {
        font-size: 20px;
    }
    .features-tabs p {
        font-size: 14px;
    }
    
    .feature-preview {
        display: flex;
        align-items: center;
        justify-content: center;
        height: auto;
    }

    .feature-preview img {
        max-height: 100%;
        height: auto;
        width: auto;
    }
}

/* FAQ CTA */

@media screen and (max-width: 768px) {
    .faq-button span {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .footer-cta-button {
        font-size: 14px;
        padding: 12px 20px;
    }
}

/* Footer section */

@media (max-width: 768px) {
    .footer {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 20px;
    }
    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%; 
    }
    .footer-left {
        margin-bottom: 32px;
        width: 100%; 
    }
    .footer-right {
        width: 200px; 
    }
    .quick-links li {
        /* width: 100%;  */
        text-align: left;
        font-size: 14px;
        color: #A1A1AA;
    }
    .quick-links li a {
        width: 100%; 
        color: #A1A1AA;
        text-decoration: none;
    }
    .footer-bottom {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: auto;
    }
    .footer-links {
        margin-bottom: 10px;
    }
}

/* Blog section */

@media (max-width: 768px) {
    .blog-header {
        padding: 16px 20px;
        margin-top: 80px;
    }

    .blog-header h1 {
        font-size: 32px;
        line-height: 40px;
    }

    .blog-header p {
        font-size: 16px;
    }

    .blog-card {
        padding: 20px;
    }

    .blog-card h2 {
        font-size: 24px;
        line-height: 32px;
    }

    .blog-card p {
        font-size: 16px;
        line-height: 24px;
    }

    .blog-meta .date {
        font-size: 16px;
        line-height: 24px;
    }

    .blog-meta .read-more {
        font-size: 16px;
        line-height: 24px;
    }
}

@media (max-width: 480px) {
    .blog-header {
        padding: 32px 20px;
    }

    .blog-header h1 {
        font-size: 28px;
        line-height: 36px;
    }

    .blog-posts {
        margin: 40px auto;
    }

    .blog-card {
        padding: 16px;
    }

    .blog-card h2 {
        font-size: 24px;
        line-height: 32px;
    }

    .blog-card p {
        font-size: 16px;
        line-height: 24px;
    }

    .blog-meta .date {
        font-size: 16px;
        line-height: 24px;
    }

    .blog-meta .read-more {
        font-size: 16px;
        line-height: 24px;
    }
}

/* Blog post */

@media screen and (max-width: 768px) {
    .blog-content {
        margin: 96px auto 0px;
    }

    .blog-content h1 {
        font-size: 32px;
        line-height: 40px;
    }
    
    .post-intro {
        font-size: 18px;
        margin-bottom: 56px;
    }

    .post-section h2 {
        font-size: 24px;
    }

    .post-meta {
        color: #F5F5F4;
        box-shadow: 
            0 1px 4px rgba(255, 255, 255, 0.08),
            0 1px 0 rgba(255, 255, 255, 0.2);
        display: inline-block;
        padding: 8px 24px;
        border-radius: 100px;
        margin-bottom: 16px;
        font-size: 14px;
        font-family: 'Nunito Sans', sans-serif;
        /* Center the element */
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: fit-content;
    }
}

@media screen and (max-width: 480px) {
    .blog-content {
        margin: 112px auto 0px;
        padding: 0 15px;
    }

    .content-container {
        margin-bottom: 0px;
    }

    .blog-content h1 {
        font-size: 28px;
        line-height: 36px;
    }

    .post-intro {
        font-size: 16px;
        margin-bottom: 56px;
    }

    .post-section h2 {
        font-size: 22px;
    }

    .post-section p,
    .post-section li {
        font-size: 15px;
    }

    .post-meta {
        color: #F5F5F4;
        box-shadow: 
            0 1px 4px rgba(255, 255, 255, 0.08),
            0 1px 0 rgba(255, 255, 255, 0.2);
        display: inline-block;
        padding: 8px 24px;
        border-radius: 100px;
        margin-bottom: 16px;
        font-size: 14px;
        font-family: 'Nunito Sans', sans-serif;
        /* Center the element */
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: fit-content;
    }
}

@media screen and (max-width: 768px) {
    .post-navigation {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .nav-button {
        text-align: center;
    }
}

/* Early access */

@media screen and (max-width: 768px) {
    .early-access-container {
        flex-direction: column;
        max-width: 100%;
        padding: 8px 16px;
    }

    .email-input {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
    }

    .hero-cta {
        width: 100%;
    }

    .email-input:focus {
        border-color: #0062FF; 
        box-shadow: 0 0 0 1px #0062FF;
    }
    
}

