/* Import Mona Sans font - primary font for the design */
@import url('https://fonts.googleapis.com/css2?family=Mona+Sans:wght@200;300;400;500;600;700;800&display=swap');
/* Import Space Grotesk as fallback */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Banner Container - Full width with constant height */
html,
body {
    width: 100vw;
    min-width: 100vw;
    height: 652px;
    max-height: 652px;
    /* width: 1310px; */
    /* overflow: hidden; */
}

body {
    font-family: 'Mona Sans', 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: white;
    /* overflow: hidden; */
    /* position: relative; */
    height: 652px;
    margin: 0;
    padding: 0;
}

/* Background Container */
.bg-white {
    background: white url('../assets/background.svg') no-repeat center top;
    background-size: contain;
    background-attachment: fixed;
    position: relative;
    width: fit-content;
    height: 710px;
    width: 100vw;
    display: flex;
    justify-content: center;

    /* overflow: hidden; */
}

.background-container {
    display: none;
    /* Hide all background gradient elements */
}

@keyframes float3 {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    33% {
        transform: translate(-45%, -55%) scale(1.1);
    }

    66% {
        transform: translate(-55%, -45%) scale(0.9);
    }
}

/* Main Content - Simplified Layout Container */
.main-content {
    width: 100vw;
    max-width: 1300px;
    height: 652px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 5%;

    @media (max-width: 1300px) {
        .main-content {
            max-width: 100vw;
        }
    }
}



.content-wrapper {
    padding-left: 0px;
    padding-right: 0px;
    padding-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    /* max-width: 1540px; */
    height: auto;
    position: relative;
}

.content-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
    width: 100%;
}

.brand-and-modules {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
    width: 100%;
}

.modules-container {
    display: flex;
}

/* Brand Section - Reference style */
.brand-section {
    display: flex;
    flex-direction: column;
    gap: 27px;
    align-items: flex-start;
    width: auto;
}

.logo-container {
    width: 294px;
    height: 55.47px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.logo-container svg {
    width: 100%;
    height: 100%;
}

.brand-and-modules {
    justify-content: center;
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;

}

.module-separator {
    display: none;
}

.tagline {
    font-family: 'Mona Sans', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 24px;
    color: #000000;
    margin: 0;
    width: auto;
    text-align: left;
}

/* Modules Container */
.modules-container {
    display: flex;
    gap: 32.752px;
    align-items: center;
    line-height: 0;
    width: 100%;
}

/* Responsive: modules-container grid for screens below 1000px */
@media (max-width: 1024px) {

    .bg-white {
    background: white url('../assets/background.svg') no-repeat center top;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    width: fit-content;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;

    /* overflow: hidden; */
}
    .brand-section {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .description-and-button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-bottom: 20px;
    }

    .bottom-part {
        flex-direction: column;
        align-items: center;
    }

    .gitex-image {
        width: 250px;
        height: 56px;
    }

    .meet-us-text,
    .description-text {
        text-align: center;
        width: 100%;
    }

    .button-container {
        margin-top: 20px;
        margin-bottom: 0;
        align-self: center;
    }

    .modules-container {
        display: grid;
        /* grid-template-columns: repeat(2, 1fr); */
        /* grid-template-rows: repeat(2, 1fr); */
        gap: 24px 64px;
        width: 100%;
        max-width: 560px;
        margin: 48px auto 0;
        justify-content: center;
        justify-items: start;
    }

    .module-item:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }

    .module-item:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }

    .module-item:nth-child(3) {
        grid-column: 1;
        grid-row: 2;
    }

    .module-item:nth-child(4) {
        grid-column: 2;
        grid-row: 2;
    }
}


/* Mobile view adjustments */
@media (max-width: 600px) {
    body {
        width: 100vw !important;
    }

    .bg-white {
        background: white url('../assets/mobile-background.svg') no-repeat center top;
        background-size: cover;
        background-attachment: fixed;
        position: relative;
        width: fit-content;
        height: 100vh;
        width: 100vw;
        display: flex;
        justify-content: center;

        /* overflow: hidden; */
    }

    .modules-container {
        /* display: grid; */
        /* grid-template-columns: 1fr 1fr;
            grid-template-rows: 1fr 1fr; */
        /* gap: 16px 20px;
            width: 100%;
            max-width: 360px;
            margin: 24px auto 0; */
        justify-content: center;
        /* justify-items: center;
            align-items: center;
            padding: 0 12px; */
    }

    .module-item:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }

    .module-item:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }

    .module-item:nth-child(3) {
        grid-column: 1;
        grid-row: 2;
    }

    .module-item:nth-child(4) {
        grid-column: 2;
        grid-row: 2;
    }

    .module-separator {
        display: none;
    }

    .brand-section {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .logo-container {
        width: 130px;
        height: 24px;
        margin: 0 auto;
    }

    .tagline {
        font-size: 15px;
        width: 100%;
        text-align: center;
    }

    .description-text {
        width: 100%;
        max-width: 320px;
        font-size: 15px;
        text-align: center;
        margin: 16px auto 0;
    }

    .button-container {
        width: 160px;
        padding: 10px 16px;
        margin: 20px auto 0;
    }

    .gitex-image {
        width: 180px;
        height: 32px;
        margin: 0 auto;
    }
}

.module-item {
    display: inline-grid;
    grid-template-columns: max-content;
    grid-template-rows: max-content;
    place-items: start;
    position: relative;
}

.module-icon-container {
    grid-area: 1 / 1;
    position: relative;
    z-index: 1;
}

.module-item:nth-child(1) .module-icon-container {
    width: 51.027px;
    height: 58.652px;
}

.module-item:nth-child(2) .module-icon-container {
    width: 49.336px;
    height: 58.706px;
}

.module-item:nth-child(3) .module-icon-container {
    width: 50.587px;
    height: 58.953px;
}

.module-item:nth-child(4) .module-icon-container {
    width: 49.432px;
    height: 58.593px;
}

.module-item:nth-child(4) .module-text {
    margin-left: calc(49.432px + 13px);
    /* Icon width + 13px gap as per design */
    margin-top: 11px;
}

.module-icon-container img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    pointer-events: none;
}

.module-text {
    grid-area: 1 / 1;
    display: inline-grid;
    grid-template-columns: max-content;
    grid-template-rows: max-content;
    line-height: 1;
    place-items: start;
    white-space: nowrap;
    margin-top: 11px;
    font-style: normal;
    text-align: left;
}

/* Module text positioning adjustments */
.module-item:nth-child(1) .module-text {
    margin-left: calc(51.027px + 13px);
    /* Icon width + 13px gap */
}

.module-item:nth-child(2) .module-text {
    margin-left: calc(49.336px + 13px);
    /* Icon width + 13px gap */
}

.module-item:nth-child(3) .module-text {
    margin-left: calc(50.587px + 13px);
    /* Icon width + 13px gap */
    margin-top: 12px;
}



.module-title {
    grid-area: 1 / 1;
    font-family: 'Mona Sans', sans-serif;
    font-weight: 600;
    /* SemiBold */
    font-size: 16px;
    color: #000000;
    margin: 0;
    line-height: normal;
}

.module-subtitle {
    grid-area: 1 / 1;
    font-family: 'Mona Sans', sans-serif;
    font-weight: 400;
    /* Regular */
    font-size: 14px;
    color: rgba(0, 0, 0, 0.72);
    margin: 0;
    margin-top: 21px;
    line-height: normal;
}

/* Module separators */
.module-separator {
    grid-area: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    /* Center with module content */
}

.module-item:nth-child(1) .module-separator {
    margin-left: 179px;
    margin-top: 30px;
    /* Center with module content */
}

.module-item:nth-child(2) .module-separator {
    margin-left: 145px;
    margin-top: 30px;
    /* Center with module content */
}

.module-item:nth-child(3) .module-separator {
    margin-left: 142px;
    margin-top: 30px;
    /* Center with module content */
}

/* Lens module has no separator */
.module-item:nth-child(4) .module-separator {
    display: none;
}

/* Lens module title has medium weight instead of semibold */
.module-item:nth-child(4) .module-title {
    font-weight: 500;
    /* Medium */
}

.module-separator svg {
    transform: rotate(90deg);
    width: 45.469px;
    height: auto;
}

.module-separator svg line {
    stroke: #D0D0D0;
    stroke-width: 1;
}

/* Description Text */
.description-text {
    font-family: 'Mona Sans', sans-serif;
    font-weight: 400;
    line-height: normal;
    font-size: 16px;
    color: black;
    width: 580px;
}

.description-text p {
    margin: 0;
}

.description-regular {
    font-family: 'Mona Sans', sans-serif;
    font-weight: 400;
}

@media (max-width: 1000px) {
    .module-separator {
        display: none;
    }
}

/* Show/hide bottom parts for mobile/desktop */
.mobile-bottom-part {
    display: none;
}

.bottom-part {
    display: flex;
}

@media (max-width: 600px) {
    .content-wrapper {
        padding-top: 75px;
    }

    .modules-container {
        margin-top: 20px;
    }

    .bottom-part {
        display: none !important;
    }

    .mobile-bottom-part {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
        min-height: 300px;
        margin-top: 40px;
    }
}

.description-bold {
    font-family: 'Mona Sans', sans-serif;
    font-weight: 600;
    color: black;
}

/* Button */
.button-container {
    background: black;
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 12px 20px;
    border-radius: 66px;
    width: 181px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 50px;
}

.button-container:hover {
    background: #333;
    transform: translateY(-1px);
}

.button-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 0;
    color: white;
    text-shadow: #ffffff 0px 0px 0.5px;
}

.button-text p {
    font-family: 'Mona Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    white-space: pre;
    line-height: 1.587;
    margin: 0;
}

.bottom-part {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

/* Meet us at GITEX section - Sidebar positioning like reference */
.meet-us-gitex-section {
    /* position: fixed; */
    /* right: 0px; */
    /* top: 373px; */
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: auto;
    height: auto;
    z-index: 10;
    margin-top: 10px;
}


/* Meet us at text - Always centered */
.meet-us-text {
    font-family: 'Mona Sans', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 24px;
    color: #000000;
    text-align: center;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* GITEX image - Reference style */

.gitex-image {
    width: 350px;
    height: 80px;
    flex-shrink: 0;
    /* Prevent shrinking */
}

.gitex-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
    pointer-events: none;
}