/* =================================
   DESKTOP STYLES (Your Original CSS)
   ================================= */
* {
    font-family: "DM Mono", monospace;
    font-weight: 300;
    color: white;
}

html {
    background-color: #090911;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
}

.material-symbols-rounded {
    font-variation-settings: 'wght' 300;
}

.navigation {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 15px 0px;
    position: fixed;
    z-index: 999;
    background-color: rgba(9, 9, 17, 0.001);
    /* Initial state */
    backdrop-filter: blur(0px);
    /* Initial state */
    /* NO TRANSITIONS HERE - JS will handle desktop animations for padding, logo width, background-color, backdrop-filter */
}

.highlight {
    color: #ffffff !important;
    /* Example text color on highlight */
}

.navigation .desktop-nav {
    display: flex;
    flex-direction: row;
    gap: 100px;
    justify-content: center;
    align-items: center;
}

.navigation .item {
    font-size: 20px;
    width: 100px;
    text-align: center;
    text-wrap: nowrap;
}

.navigation .logo {
    width: 75px;
    cursor: pointer;
    transition: scale 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.navigation .logo:hover {
    scale: 1.1;
}

/* Hide mobile elements on desktop */
.mobile-nav-header,
.mobile-nav-overlay {
    display: none;
}

.landing {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.landing .glow {
    width: 100%;
    height: 60%;
    align-self: center;
    opacity: 0.15;
    filter: blur(60px);
    position: absolute;
}

.landing .grid {
    width: 100%;
    height: 100%;
    align-self: center;
    position: absolute;
    object-fit: cover;
}

.landing .bigtext {
    font-size: 35vw;
    font-family: 'Gloock', monospace;
    align-self: center;
    opacity: 0.14;
    mix-blend-mode: overlay;
}

.landing .face {
    height: 752.57px;
    align-self: center;
    position: absolute;
    mix-blend-mode: color-dodge;
    opacity: 1;
}

.landing .maintext {
    font-size: 170px;
    align-self: center;
    position: absolute;
    text-align: center;
    line-height: 90%;
    font-family: 'Gloock', monospace;
}

.landing .pointertext {
    font-size: 20px;
    position: absolute;
    align-self: end;
    text-align: center;
    padding-bottom: 25px;
    animation: pointer-text-animation 4s infinite;
}

@keyframes pointer-text-animation {
    0% {
        transform: translateY(0px);
    }

    65% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.bento {
    display: flex;
    width: 100vw;
    justify-content: center;
    height: fit-content;
    padding-top: 100px;
    position: relative;
}

.bento .glow {
    position: absolute;
    opacity: 0.10;
    filter: blur(7vw);
    width: 80vw;
    margin-top: -100px;
    z-index: -1;
}

.bento .loop {
    position: absolute;
    width: 100vw;
    mix-blend-mode: overlay;
    margin-top: -400px;
    z-index: -1;
}

.bento .star1 {
    position: absolute;
    margin-top: -169px;
    margin-left: 529px;
}

.bento .star2 {
    position: absolute;
    margin-top: -169px;
    margin-left: -163px;
}

.bento .bentoleft,
.bento .bentoright {
    min-width: 100px;
}

.bento>*>.bento-item:not(:first-child) {
    border-top: none !important;
}

.bento .bento-item {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    overflow: hidden;
}

.bento .bentoright .bento-item {
    border-left: none;
}

.bento .bento-item .caption {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bento .bento-item .caption .detail {
    display: flex;
    opacity: 0.4;
    gap: 10px;
    align-items: center;
}

.bento .bento-item .caption .text {
    font-size: 26px;
    width: 610px;
    font-weight: 500;
}

.bento .bento-item .caption .secondary {
    opacity: 0.5;
    font-weight: 500;
}

.bento .bento-item .communicationexample {
    display: flex;
    flex-direction: row;
    gap: 29px;
    margin-bottom: -40px;
}

.bento .bento-item .communicationexample .chat {
    border: 0.82px solid rgba(255, 255, 255, 0.17);
    padding: 24.36px;
    width: fit-content;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 24.36px;
    border-radius: 16px;
}

.bento .bento-item .communicationexample .chat .message {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.bento .bento-item .communicationexample .chat .message .profile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 1);
    mix-blend-mode: overlay;
}

.bento .bento-item .communicationexample .chat .message .content {
    width: 255px;
}

.bento .bento-item .communicationexample .chat .message .content .name {
    opacity: 0.5;
}

.bento .bento-item .communicationexample .form {
    border-radius: 16px;
    border: 0.82px solid rgba(255, 255, 255, 0.17);
    padding: 8.23px;
    width: fit-content;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 8.23px;
    margin-top: 120px;
}

.bento .bento-item .communicationexample .form .row {
    display: flex;
    flex-direction: row;
    gap: 8.23px;
}

.bento .bento-item .communicationexample .form .item {
    min-width: 100px;
    width: 100%;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 1);
    background-color: rgba(255, 255, 255, 0.18);
    mix-blend-mode: overlay;
}

.bento .bento-item .communicationexample .form .tall.item {
    height: 150px;
}

.bento .bento-item .editorwindowsexample {
    width: 691px;
    margin-left: -40px;
    margin-right: -40px;
    margin-bottom: -40px;
    overflow: hidden;
}

.bento .bento-item .workflowexample {
    margin-left: -40px;
    margin-top: -40px;
    margin-right: -40px;
    margin-bottom: -40px;
}

/* Main section container */
.portfolio {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 150px 20px 100px 20px;
    box-sizing: border-box;
}

.portfolio .maintext {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 2.5rem;
    text-align: center;
}

.portfolio .bigtext {
    font-size: 55px;
    font-family: 'Gloock', monospace;
}

.portfolio .bigtext span {
    font-size: inherit;
    font-family: inherit;
    text-shadow: 0 0 45px rgba(255, 255, 255, 0.4);
}

.portfolio .smalltext {
    font-size: 17px;
    opacity: 0.5;
}

/* This is the container for the 3 featured cards */
.portfolio .portfolio-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 3rem;
}

/* Big "View More" button below the cards */
.portfolio .viewmore {
    padding: 12px 30px;
    background-color: white;
    color: #090911;
    font-weight: 500;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio .viewmore:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.1);
}

/* --- New, Unified Card Styles --- */

.portfolio-item {
    display: flex;
    flex-direction: column;
    background-color: #1a1a22;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    width: 100%;
    max-width: 360px;
    min-width: 300px;
    flex-shrink: 0;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.portfolio-item__image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.portfolio-item__details {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    padding: 12px;
    flex-grow: 1;
    gap: 12px;
    margin-top: -150px;
    padding-top: 100px;
}

.portfolio-item__details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: var(--card-gradient, linear-gradient(to bottom, transparent, #1a1a22 50%));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    mask-image: linear-gradient(to top, black 65%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, black 65%, transparent 100%);
}

.portfolio-item__title {
    font-size: 28px;
    font-family: 'Gloock', monospace;
    color: white;
    text-shadow: 0 1px 15px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.portfolio-item__content {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    line-clamp: 3;
    -webkit-line-clamp: 3;
}

.portfolio-item__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    order: 1;
}

.portfolio-item__tags .tag {
    padding: 5px 12px;
    background-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 400;
    border-radius: 30px;
    white-space: nowrap;
}

.portfolio-item__button {
    margin-top: auto;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    align-self: center;
    width: 100%;
    transition: all 0.2s ease;
    background-color: rgba(255, 255, 255, 0.9);
    color: #090911;
    order: 2;
}

.portfolio-item__button:hover {
    background-color: white;
    transform: scale(1.05);
}

.portfolio-item__button.is-light-bg {
    background-color: rgba(9, 9, 17, 0.9);
    color: #ffffff;
}

.portfolio-item__button.is-light-bg:hover {
    background-color: #090911;
}

.testimonials {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100vw;
    height: 100%;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.testimonials .glow {
    position: absolute;
    width: 100vw;
    height: 100%;
    margin-top: -200px;
    z-index: 1;
}

.testimonials .scribble {
    position: absolute;
    width: 100vw;
    margin-top: -400px;
    mix-blend-mode: overlay;
    z-index: 100;
}

.testimonials .maintext {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.testimonials .bigtext {
    font-size: 55px;
    font-family: 'Gloock', monospace;
}

.testimonials .smalltext {
    font-size: 17px;
    opacity: 0.5;
}

.testimonials .carousel {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100vw;
    z-index: 100;
    padding: 30px 20px 40px 20px;
}

.testimonials .carousel:not(.row1) {
    margin-top: -50px;
}

.testimonials .testimonial {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 500px;
    height: 350px;
    border: 0.82px solid rgba(255, 255, 255, 0.17);
    padding: 40px;
    overflow: hidden;
    overflow-y: scroll;
    transition: border 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: rgba(9, 9, 17, 0.5);
    /* Add a slight background for better layering */
    border-radius: 20px;
}

.testimonials .carousel .testimonial:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.063);
}

.testimonials .testimonial .profile {
    display: flex;
    flex-direction: row;
    gap: 25px;
    align-items: center;
}

.testimonials .testimonial .profile .profileimage {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #D9D9D9;
}

.testimonials .testimonial .profile .name {
    font-size: 20px;
    font-weight: 100;
}

.testimonials .testimonial .content {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.4);
}

.testimonials .testimonial .content span {
    color: white;
}

/* Hide Testimonial Modal on Desktop */
.testimonial-modal {
    display: none;
}

.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100vw;
    padding: 150px 0px 150px 0px;
    gap: 20px;
}

.contact .arrow1 {
    position: absolute;
    left: 0;
    margin-top: -100px;
    z-index: 100;
    width: 700px;
}

.contact .arrow2 {
    position: absolute;
    right: 0;
    margin-top: -600px;
    z-index: 100;
    width: 700px;
}

.contact .maintext {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: margin-top 0.5s cubic-bezier(0.16, 1, 0.3, 1), margin-bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact .bigtext {
    font-size: 55px;
    font-family: 'Gloock', monospace;
}

.contact .smalltext {
    font-size: 17px;
    opacity: 0.5;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 500px;
    overflow: visible;
    z-index: 9999;
    transition: filter 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact form .row {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
}

.contact form input,
.contact form textarea,
.contact form button {
    background: #ffffff09;
    border: 1px solid rgba(255, 255, 255, 0.052);
    color: white;
    outline: none;
    border-radius: 10px;
    padding: 10px;
    width: 100%;
    min-height: 44px;
}

.contact form .glow {
    opacity: 0;
    z-index: 1000;
    width: 500px;
    height: 44px;
    pointer-events: none;
    margin-bottom: -64px;
    transition: filter 3s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact form:has(button:hover) .glow {
    opacity: 0.6;
    filter: blur(200px);
    pointer-events: none;
}

.contact form button {
    background-color: #ffffff1a;
    color: white;
    transition: background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact form button:hover {
    background-color: white;
    color: #090911;
}

.contact form.submitted {
    transform: scale(0.75);
    filter: blur(5px);
    opacity: 0.5;
}

.contact:has(form.submitted) .maintext {
    margin-top: 100px;
    margin-bottom: -175px;
}

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

    /* --- MOBILE NAVIGATION --- */
    .navigation {
        /* JS directly sets background and backdrop-filter, so padding/logo width transitions here */
        transition: padding 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .navigation .desktop-nav {
        display: none;
        /* Ensure desktop nav is hidden on mobile */
    }

    .navigation .mobile-nav-header {
        display: flex;
        /* Ensure mobile nav header is visible */
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0 20px;
    }

    .navigation .logo {
        width: 60px;
        transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .hamburger-menu span,
    .close-menu span {
        font-size: 36px;
        cursor: pointer;
        color: white;
        /* Explicitly ensure icons are white */
    }

    /* ===== REVERTED TO ORIGINAL, SIMPLE MOBILE SCROLLED STATE ===== */
    .navigation.scrolled {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .navigation.scrolled .logo {
        width: 50px;
        /* Make logo smaller */
    }

    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(9, 9, 17, 0.7);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 1000;
        display: flex;
        /* Controlled by JS opacity/visibility */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-nav-overlay.open {
        opacity: 1;
        visibility: visible;
    }

    .close-menu {
        position: absolute;
        top: 30px;
        right: 30px;
        cursor: pointer;
    }

    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .mobile-nav-links .item {
        font-size: 24px;
        font-weight: 400;
        text-decoration: none;
        color: white;
        /* Explicitly ensure links are white */
        /* Add simple touch feedback */
        -webkit-tap-highlight-color: transparent;
        /* Remove default tap highlight on mobile */
        transition: opacity 0.2s ease;
    }

    .mobile-nav-links .item:active {
        opacity: 0.7;
        /* Dim on tap for feedback */
    }

    /* Prevent interaction with desktop nav elements on mobile */
    .navigation .desktop-nav .item,
    .navigation .desktop-nav .logo {
        pointer-events: none;
    }

    /* --- LANDING SECTION ADJUSTMENTS --- */
    .landing .maintext {
        font-size: 18vw;
        line-height: 1;
    }

    .landing .face {
        height: 80vw;
        max-height: 500px;
    }

    .landing .pointertext {
        font-size: 16px;
        padding-bottom: 40px;
        width: 70vw;
    }

    /* --- BENTO GRID: SINGLE COLUMN --- */
    .bento {
        flex-direction: column;
        padding: 50px 20px 0 20px;
        width: 100vw;
        overflow: hidden;
    }

    .bento .glow {
        height: 80%;
        width: 100vw;
    }

    .bento .loop {
        margin-left: -50vw;
        min-width: 200vw !important;
        margin-top: 200px;
    }

    .bento .bentoright .bento-item {
        border-left: 1px solid rgba(255, 255, 255, 0.2);
    }

    .bento>*>.bento-item:not(:first-child) {
        border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    }

    .bento .bento-item {
        padding: 30px;
    }

    .bento .bento-item .caption .detail {
        font-size: 13px;
        margin-bottom: -10px;
    }

    .bento .bento-item .caption .material-symbols-rounded {
        font-size: 16px;
    }

    .bento .bento-item .caption .text {
        width: auto;
        font-size: 17px;
    }

    .bento .star1,
    .bento .star2 {
        display: none;
    }

    .bento .bento-item .communicationexample {
        flex-direction: column;
        align-items: center;
        margin-bottom: 0;
    }

    .bento .bento-item .communicationexample .form {
        margin-top: 20px;
    }

    .bento .bento-item .editorwindowsexample,
    .bento .bento-item .workflowexample {
        margin: -30px;
    }

    /* --- PORTFOLIO SECTION ADJUSTMENTS --- */
    .portfolio .portfolio-items {
        flex-direction: column;
        align-items: center;
        width: auto;
        /* Allow items to define width */
        padding: 20px;
    }

    .portfolio .portfolio-item {
        width: 90vw;
        /* Adjust width for mobile */
        max-width: 500px;
        /* Keep consistent max-width */
        max-height: 400px;
        /* Set a max-height to prevent overly tall items */
        overflow-y: hidden;
        /* Prevent inner scroll initially */
        border: 1px solid rgba(255, 255, 255, 0.1);
        /* Subtle border for consistency */
    }

    .portfolio .portfolio-item .caption {
        padding: 10px 15px;
        /* Adjust padding for mobile */
    }

    .portfolio .portfolio-item .title {
        font-size: 28px;
        /* Adjust font size for mobile */
    }

    .portfolio .portfolio-item .caption .content {
        line-clamp: 4;
        /* Allow more lines if needed */
        -webkit-line-clamp: 4;
    }

    .portfolio .bigtext {
        font-size: 30px;
        text-align: center;
        padding: 0 20px;
    }

    .portfolio .smalltext {
        font-size: 14px;
        text-align: center;
    }


    /* --- TESTIMONIALS & MODAL --- */
    .testimonials {
        padding-top: 50px;
    }

    .testimonials .glow {
        height: 100%;
        width: 100vw;
        margin-top: 0;
    }

    .testimonials .scribble {
        margin-top: -200px;
        /* Example adjustment for mobile */
    }

    .testimonials .bigtext {
        font-size: 30px;
        text-align: center;
        padding: 0 20px;
    }

    .testimonials .smalltext {
        font-size: 14px;
        width: 80vw;
        text-align: center;
    }

    .testimonials .carousel {
        padding-top: 20px;
        display: flex;
        gap: 10px;
    }

    .testimonials .testimonial {
        min-width: 80vw;
        height: auto;
        max-height: 200px;
        padding: 30px;
        cursor: pointer;
    }

    .testimonials .testimonial .profile {
        gap: 15px;
    }

    .testimonials .testimonial .profile .name {
        font-size: 16px;
    }

    .testimonials .testimonial .profile .profileimage {
        width: 40px;
        height: 40px;
    }

    .testimonials .testimonial .content {
        font-size: 14px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        line-clamp: 4;
        -webkit-box-orient: vertical;
    }

    .testimonials .carousel:hover .carousel-inner {
        animation-play-state: running;
        /* Keep animation running on hover for touch devices */
    }

    /* Testimonial Modal Styles */
    .testimonial-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(9, 9, 17, 0.5);
        z-index: 1100;
        display: none;
        /* Controlled by JS and .open class */
        justify-content: center;
        align-items: center;
        padding: 20px;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .testimonial-modal.open {
        display: flex;
        opacity: 1;
    }

    .testimonial-popup {
        display: flex;
        flex-direction: column;
        gap: 20px;
        border: 1px solid rgba(255, 255, 255, 0.5);
        background-color: #10101886;
        padding: 30px;
        border-radius: 16px;
        width: 100%;
        max-width: 500px;
        max-height: 80vh;
        overflow-y: auto;
        backdrop-filter: blur(5px);
    }

    .testimonial-popup .profile {
        display: flex;
        flex-direction: row;
        gap: 25px;
        align-items: center;
    }

    .testimonial-popup .profileimage {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        background-color: #D9D9D9;
    }

    .testimonial-popup .name {
        font-size: 20px;
        font-weight: 100;
    }

    .testimonial-popup .content {
        font-size: 18px;
        color: rgba(255, 255, 255, 0.6);
    }

    .testimonial-popup .content span {
        color: white;
    }

    /* --- CONTACT FORM ADJUSTMENTS --- */
    .contact {
        padding: 50px 20px 100px 20px;
        /* Adjust padding for mobile */
    }

    .contact .arrow1,
    .contact .arrow2 {
        width: 50vw;
        /* Make arrows smaller on mobile */
        max-width: 350px;
        /* Limit their size */
        opacity: 0.5;
        /* Reduce opacity to make them less intrusive */
    }

    .contact .arrow1 {
        margin-top: -50px;
    }

    .contact .arrow2 {
        margin-top: -300px;
        /* Adjust as needed */
    }

    .contact .bigtext {
        font-size: 30px;
        text-align: center;
        padding: 0 20px;
    }

    .contact .smalltext {
        font-size: 14px;
        text-align: center;
        width: 80vw;
    }

    .contact form {
        width: 100%;
        max-width: 500px;
        /* Keep max-width */
        padding: 0 20px;
        /* Add horizontal padding to form */
    }

    .contact form .row {
        flex-direction: column;
        /* Stack inputs vertically */
        gap: 15px;
        /* Adjust gap */
    }

    .contact form .glow {
        width: 100%;
        /* Adjust glow width to match button */
    }
}