/* fonts */
@font-face{
  font-family: "Poppins";
  src: url("./fonts/Poppins-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Poppins";
  src: url("./fonts/Poppins-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Poppins";
  src: url("./fonts/Poppins-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* 1. Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --white: #fff;
    --muted: rgba(255,255,255,0.85);
    --muted2: rgba(255,255,255,0.75);
    --line: rgba(255,255,255,0.60);
    --shadow: 0 14px 40px rgba(0,0,0,0.28);
    --radius: 18px;
}

html, body {
    min-height: 100vh;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    overflow-y: auto; /* Enable scroll */
}

body {
    background-image: url('images/desktop-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Keeps BG static while scrolling */
    display: flex;
    flex-direction: column;
}

/* 2. Container */
.page-container {
    display: flex;
    flex: 1;
    margin: 1.8% 3.5% 0 3.5%;
    gap: 30px;
    align-items: flex-start; /* Prevents containers from stretching unnecessarily */
}

/* 3. Section 1 (60% Width) */
.section-one {
    flex: 0 0 60%;
    display: flex;
    flex-direction: column;
    /* max-height: 100vh; */ /* Prevents Section 1 from becoming too long */
    max-width: 60%;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1vh;
    height: auto;
    width: 100%;
    margin: 0 auto;
}

.dot-segment {
    border-bottom: 4px dotted var(--white);
     /* Controls the spacing */
}

/* Typography - Optimized to prevent overflow */
.main-title {
    margin: 0px 0 2.5% 0;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 0.95;
    font-size: 7vw;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 
                 0 6px 6px rgba(0, 0, 0, 0.2);
}

.desc-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-weight: 700;
    /* Scales from 30px up to 50px */
    font-size: 3vw;
    line-height: 1;
}

.main-desc-desk {
    display: block;
}
.main-desc-mobile {
    display: none;
}

/* Inline Link Images */


.desc-container img {
    height: auto;
    width: auto;
    transition: transform 0.3s;
    max-height: 6vh;
}

/* Vendor Grid - Compact */
.vendor-label {
    font-size: 1.25vw;
    margin-bottom: 15px;
    color: var(--white);
    font-weight: 600;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 80%;
}

.icon-box {
    background: #fff;
    /* Strict height limit to prevent 1964px images from expanding the section */
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #eee;
    overflow: hidden; /* Ensures no overflow if images misbehave */
}

.icon-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
    border-color: rgba(0, 0, 0, 0.20);
}

.icon-box img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.icon-grid a:nth-child(1) {
    border-radius: 20px 0 0 0;
}

.icon-grid a:nth-child(3) {
    border-radius: 0 20px 0 0;
}

.icon-grid a:nth-child(4) {
    border-radius: 0 0 0 20px;
}

.icon-grid a:nth-child(6) {
    border-radius: 0 0 20px 0;
}

/* 4. Section 2 (40% Width) */
.section-two {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 5vh;
    height: fit-content;
    max-width: 40%;
}

.feature-img {
    width: 100%;
    height: auto;
     /* Limits image height to stay on screen */
    object-fit: contain;
}

/* 5. Footer */
.page-footer {
    padding: 5px 0;
    background-color: rgb(217, 179, 253);
    color: #1a012e;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25vw;
    width: 100%;
    position: fixed;
    bottom: 0;
}

/* 6. Mobile & Tablet Adaptations */
@media (max-width: 1024px) {
    body {
        background-image: url('images/mobile-bg.png');
        display: block;
        margin: 0 auto;
    }
    .page-container {
        flex-direction: column-reverse;
        margin: 3% 5% 0 5%;
        gap: 0;
    }

    .section-one, .section-two {
        flex: none;
        width: 100%;
        max-height: 50vh;
        flex-direction: row;
        max-width: 100%;
    }

    .section-two {
        width: 85%;
        margin: 0 auto;
        max-height: 40vh;
        padding: 0 3%;
        height: auto;
        margin-bottom: 0;
    }

    .icon-grid {
        grid-template-columns: repeat(2, 1fr);
        width: 65%;
        margin: 0 auto;
        gap: 0.45vh;
    }

    .icon-box { 
        border-radius: 0;
        height: auto;
     }

     .icon-grid a:nth-child(1) {
        border-radius: 8px 0 0 0;
     }

     .icon-grid a:nth-child(2) {
        border-radius: 0 8px 0 0;
     }

     .icon-grid a:nth-child(3), .icon-grid a:nth-child(4) {
        border-radius: 0
     }

     .icon-grid a:nth-child(5) {
        border-radius: 0 0 0 8px;
     }

     .icon-grid a:nth-child(6) {
        border-radius: 0 0 8px 0;
     }

    .main-title {
        font-size: 10vw;
        text-align: center;
        margin: 2% 0 2% 0;
    }

    .desc-container {
        font-size: 4vw;
        text-align: center;
        max-width: 70%;
        margin: 0 auto;
        gap: 1vh;
    }

    .inline-links {
        justify-content: center;
        max-height: 3vh;
        gap: 10px;
    }
    .desc-container img {
        max-height: 3vh;
    }

    .dot-segment {
        border-bottom: 2px dotted var(--white);
        width: 70%;
        margin: 0 auto;
    }

    .content-segment.segment-3 {
        margin-top: 2vh;
    }

    .vendor-label {
        font-size: 2.5vw;
        margin-bottom: 0.5vh;
        text-align: center;
        width: 100%;
    }
    .main-desc-desk {
        display: none;
    }
    .main-desc-mobile {
        display: block;
    }
    .page-footer {
        padding: 2.30%;
        font-size: 2.5vw;
    }
}
