@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,600;1,600&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Verdana, sans-serif;
    margin: 0;
    background-color: #f4f4f4;
}

.slideshow-container {
    width: 100%;
    position: relative;
    background-color: #e0e0e0;
    text-align: center;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

.slideshow-container .mySlides {
    height: auto;
}

.slideshow-container .mySlides img {
    vertical-align: middle;
    width: 100%;
    max-width: 2000px;
    height: auto;
    object-fit: contain;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.3);
    font-weight: bold;
    font-size: 18px;
    transition: 0.5s ease;
    user-select: none;
}

.prev {
    left: 10px;
    padding: 10px 18px;
    border-radius: 50%;
}

.next {
    right: 10px;
    padding: 10px 18px;
    border-radius: 50%;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slideshow-dot {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    box-shadow: 0 0px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.active,
.dot:hover {
    background-color: #717171;
    transform: scale(1.15);
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }
}


.slogan-banner {
    background: url(../img/banner1.jfif);
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    background-color: #ddd;
    height: 150px;
    width: 100%;
    margin: auto;
    padding: 0 120px;
    display: flex;
    justify-content: flex-start;
    /* Horizontally center */
    align-items: center;
    /* Vertically center */
}

.slogan-banner p {
    font-size: 45px;
    font-weight: bold;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    margin: auto;
}


.prod-section {
    display: flex;
    flex-direction: column;
    margin: auto;
    padding: 80px 0;
    background-color: #cfcfcf;
    color: #444;
}

.prod-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Default for 3 columns */
    width: 90%;
    max-width: 2000px;
    margin: auto;
    align-items: flex-end;
}

.prod-col a {
    display: block;
    height: 100%;
    width: 100%;
}

.prod-col {
    background-color: #e5e5f7;
    background-color: #eee;
    height: 350px;
    border: 2px solid #ccc;
    padding: 30px 25px;
    background-origin: content-box;
    /* Image respects padding */
}

/* Make r0-1 and r2-1 span two columns */
.r0-1 {
    grid-column: span 3;
    background-color: #fff;
}

.r2-1 {
    grid-column: span 2;
}

.prod-header {
    display: none;
}

/* First row styling */
.prod-row .r0-1 {
    height: 550px;
    position: relative;
    background-image: url(../img/index/product-upper-section/prod-slideshow1.jpg);
    /* Default image */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px 0 100px;
    background-origin: content-box;
    /* Image respects padding */
}

.r0-1-btn {
    display: flex;
    flex-direction: row;
    gap: 10px;
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    cursor: pointer;
}

.prod-prev,
.prod-next {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.3);
    font-weight: bold;
    font-size: 20px;
    border: none;
    border-radius: 50%;
    transition: all 0.5s ease;
}

.prod-prev {
    padding: 2px 14px 4px 10px;
}

.prod-next {
    padding: 2px 10px 4px 14px;
}

.prod-prev:hover,
.prod-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prod-link {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(120deg, #65a0ff 0%, #77d4ff 100%);
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.prod-link:hover {
    background: linear-gradient(120deg, #4b77be 0%, #4690b1 100%);
}


/* product title and description col */
.prod-row .r1-2 {
    color: #fff;
    background: linear-gradient(120deg, #65a0ff 0%, #77d4ff 100%);

    padding: 80px 30px 20px;
}

.r1-2 .prod-title {
    font-size: 35px;
    font-weight: bold;
}

.r1-2 .prod-desc {
    font-size: 20px;
}


.has-content {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
}

.prod-row .r1-1 {
    background-image: url(../img/index/product-downer-section/prod-img1.png);
}

.prod-row .r1-3 {
    background-image: url(../img/index/product-downer-section/prod-img2.png);
}

/* Third row styling */
.prod-row .r2-1 {
    background-image: url(../img/index/product-downer-section/prod-img3.png);
}

.prod-row .r2-2 {
    background-image: url(../img/index/product-downer-section/prod-img4.png);
}


.prod-row .prod-col:hover {
    background-color: #fff;
}


.company-overview-section {
    background-color: #e0e0e0;
    height: 900px;
    width: 100%;
    position: relative;
}

.company-overview-section::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    filter: brightness(60%);
    background-image: url('../img/index/GOTT_1.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.company-overview-message {
    height: fit-content;
    width: 1000px;
    background-color: #cacccca4;
    color: #333;
    backdrop-filter: blur(10px);
    padding: 70px;
    border-radius: 50px;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.company-overview-message h2 {
    font-size: 55px;
}

.company-overview-message p {
    font-size: 23px;
    text-align: justify;
    line-height: 28px;
}


.coorporate-company {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    text-align: center;
    padding-right: 20px;
    /* Optional padding for spacing */
    margin: 130px auto;
    width: fit-content;
    max-width: 2000px;
}

.coorporate-company h1 {
    font-size: 60px;
    font-weight: bold;
    color: #b0b0b0;
}

.coorporate-company-row {
    display: flex;
    flex-wrap: wrap;
    gap: 80px;
    justify-content: center;
    width: auto;
    margin-top: 20px;
}

.company-logo {
    display: block;
    width: 200px;
    height: 150px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
}

.logo1 {
    background-image: url('../img/index/partners/UTM.png');
}

.logo2 {
    background-image: url('../img/index/partners/UTHM.png');
}

.logo3 {
    background-image: url('../img/index/partners/UMT.png');
}

.logo4 {
    background-image: url('../img/index/partners/UNIMAP.jfif');
}

.logo5 {
    background-image: url('../img/index/partners/intel1.png');
}

.logo6 {
    background-image: url('../img/index/partners/88 CAPTAINS.png');
}

.logo7 {
    background-image: url('../img/index/partners/KK.png');
}

.logo8 {
    background-image: url('../img/index/partners/UM.png');
}


@media (max-width: 480px) {

    /* Slideshow section */
    .slideshow-container .prev,
    .slideshow-container .next {
        font-size: 5px;
    }

    .slideshow-container .prev {
        left: 10px;
        padding: 5px 7px;
        border-radius: 50%;
    }

    .slideshow-container .next {
        right: 10px;
        padding: 5px 7px;
        border-radius: 50%;
    }

    .slideshow-dot {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    .slideshow-dot .dot {
        height: 5px;
        width: 5px;
        margin: 0;
    }


    /* Slogan section */
    .slogan-banner {
        padding: 13px 0;
        height: auto;
    }

    .slogan-banner p {
        font-size: 13px;
        text-align: center;
        margin: 10px 0;
    }


    /* About Us section */
    .company-overview-section {
        background-color: #e0e0e0;
        height: 250px;
        width: 100%;
        position: relative;
    }

    .company-overview-section::before {
        content: '';
        position: absolute;
        height: 100%;
        width: 100%;
        filter: brightness(60%);
        background-image: url('../img/index/company-photo.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .company-overview-message {
        height: auto;
        width: 75%;
        background-color: #cacccca4;
        color: #333;
        backdrop-filter: blur(2px);
        padding: 15px;
        border-radius: 20px;
        text-align: center;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 1;
    }

    .company-overview-message h2 {
        font-size: 13px;
    }

    .company-overview-message p {
        width: 100%;
        text-align: justify;
        font-size: 7px;
        line-height: 10px;
        margin-top: 5px;
    }


    /* logo section */
    .coorporate-company {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        text-align: center;
        padding-right: 0;
        margin: 30px 50px;
        width: fit-content;
        max-width: 2000px;
    }

    .coorporate-company h1 {
        font-size: 25px;
        font-weight: bold;
        color: #b0b0b0;
        margin-bottom: 10px;
    }

    .coorporate-company-row {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
        width: auto;
        margin: 0;
    }

    .company-logo {
        display: block;
        width: 100px;
        height: 60px;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 10px;
    }


    /* product section */
    .prod-section {
        display: flex;
        flex-direction: column;
        margin: auto;
        padding: 20px 0;
        background-color: #cfcfcf;
        color: #444;
    }

    .prod-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        /* Default for 3 columns */
        width: 90%;
        max-width: 2000px;
        margin: auto;
        align-items: flex-end;
    }

    .prod-col a {
        display: block;
        height: 100%;
        width: 100%;
    }

    .prod-col {
        background-color: #eee;
        height: 200px;
        width: 100%;
        border: 2px solid #ccc;
        padding: 15px;
        background-origin: content-box;
        /* Image respects padding */
    }

    .prod-row:not(:has(.prod-slideshow)) {
        display: flex;
        flex-direction: column;
    }

    .prod-row .r0-1 {
        padding: 0;
        height: 260px;
        background-color: #fff;
        position: relative;
        padding: 20px 0 45px;
        background-origin: content-box;
        /* Image respects padding */
    }

    .prod-header {
        display: block;
        font-size: 18px;
        color: #969696;
        font-weight: bold;
        margin: 10px 20px 5px;
    }

    .r0-1-btn {
        top: 87%;
        gap: 5px;
    }

    .prod-prev,
    .prod-next {
        font-size: 10px;
    }

    .prod-prev {
        padding: 2px 8px 3px 6px;
    }

    .prod-next {
        padding: 2px 6px 3px 8px;
    }

    .prod-link {
        text-wrap: nowrap;
        display: inline-block;
        padding: 5px 10px;
        font-size: 10px;
        font-weight: bold;
        text-align: center;
        text-decoration: none;
        border-radius: 25px;
        border: none;
        cursor: pointer;
        transition: background-color 0.3s ease, transform 0.3s ease;
    }

    /* product title and description col */
    .prod-row .r1-2 {
        display: none;
        background-color: #fff;
        padding: 10px;
        height: auto;
    }

    .r1-2 .prod-title {
        font-size: 20px;
        font-weight: bold;
    }

    .r1-2 .prod-desc {
        font-size: 12px;
        height: 65px;
    }
}