html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

body {
    background-color: #0B1120;
    color: #E2E8F0;
    position: relative;
}


/* Grid/dot background */

.bg-grid {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}


/* Glow effect */

.glow-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}



/* Autofill input styling */

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: white;
    -webkit-box-shadow: 0 0 0px 1000px #1F2937 inset;
    transition: background-color 5000s ease-in-out 0s;
}


/* Styles from variant4 for Form and Cookies */

.glass {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}


/* Mobile responsiveness fixes */

@media (max-width: 767px) {
    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    /* Ensure header doesn't overflow on mobile */
    header {
        max-width: 100vw;
    }
    header .container {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
    }
    /* Fix header flex layout on mobile */
    header .flex.justify-between.items-center {
        gap: 0.5rem;
    }
    /* Hide desktop navigation on mobile */
    header nav:not(#mobile-menu) {
        display: none !important;
    }
    /* Make sure mobile menu button is always visible and properly sized */
    #mobile-menu-btn {
        display: flex !important;
        flex-shrink: 0;
        min-width: 2.75rem;
        min-height: 2.75rem;
        padding: 0.5rem;
        align-items: center;
        justify-content: center;
    }
    /* Cookie banner mobile fixes */
    #cookie-banner {
        padding: 0.75rem !important;
        max-width: 100vw;
    }
    #cookie-banner .container {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    #cookie-banner .glass {
        padding: 1rem !important;
        max-width: 100%;
    }
    /* Ensure cookie banner text doesn't overflow */
    #cookie-banner h4 {
        font-size: 0.875rem;
        line-height: 1.25rem;
        word-wrap: break-word;
    }
    #cookie-banner p {
        font-size: 0.75rem;
        line-height: 1.125rem;
        word-wrap: break-word;
    }
    /* Cookie banner buttons mobile layout */
    #cookie-banner .flex.items-center.gap-3 {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    #cookie-banner button {
        font-size: 0.875rem;
        padding: 0.625rem 1rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    /* Ensure accept button doesn't overflow */
    #cookie-banner button[onclick="acceptCookies()"] {
        flex: 1 1 auto;
        min-width: fit-content;
    }
    /* Close button */
    #cookie-banner button[onclick="closeCookies()"] {
        flex: 0 0 auto;
    }
}