
/* ==============================
   ADITYAVA GROUP - HOMEPAGE
============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    overflow: hidden;
}

/* NAVIGATION */

.navbar {
    height: 72px;
    width: 100%;
    padding: 0 7%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #ffffff;
    position: relative;
    z-index: 10;
}

.brand {
    font-size: 24px;
    font-weight: 800;
    color: #092D5B;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 38px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #092D5B;
    font-size: 16px;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #269B26;
}

/* MAIN HOMEPAGE */

.homepage {
    width: 100%;
    height: calc(100svh - 72px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
}

/* HERO SECTION */

.hero-stage {
    height: 59%;
    width: 100%;
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;

    flex-shrink: 0;
}

/* CENTER GROUP LOGO */

.group-section {
    width: 48%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
    z-index: 3;
}

.group-logo {
    width: 100%;
    max-width: 590px;
    max-height: 94%;
    object-fit: contain;
}

/* SIDE IMAGES */

.side-image {
    position: absolute;
    top: 3%;
    width: 32%;
    height: 94%;
    z-index: 1;
    overflow: hidden;
}

.side-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* LEFT SOLAR IMAGE */

.solar-image {
    left: 0;

    border-radius: 0 65% 65% 0 / 0 50% 50% 0;
    border-right: 5px solid #70bd45;
}

.solar-image::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        transparent 45%,
        rgba(255,255,255,0.85) 100%
    );
}

/* RIGHT CCTV IMAGE */

.technology-image {
    right: 0;

    border-radius: 65% 0 0 65% / 50% 0 0 50%;
    border-left: 5px solid #16a8e0;
}

.technology-image::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        270deg,
        transparent 45%,
        rgba(255,255,255,0.85) 100%
    );
}

/* COMPANIES SECTION */

.companies-section {
    height: 41%;
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    padding: 5px 5% 12px;
}

/* HEADING */

.section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;

    margin-bottom: 8px;
}

.section-heading h1 {
    color: #092D5B;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: 3px;
    white-space: nowrap;
}

.section-heading span {
    width: 140px;
    height: 2px;
    background: #269B26;
}

/* COMPANY LOGOS */

.company-logos {
    width: 100%;
    max-width: 850px;
    flex: 1;
    min-height: 0;

    display: grid;
    grid-template-columns: 1fr 2px 1fr;

    align-items: center;
    justify-items: center;
    gap: 35px;
}

.company-item {
    width: 100%;
    height: 100%;
    min-height: 0;

    display: flex;
    justify-content: center;
    align-items: center;
}

.company-item img {
    width: 100%;
    height: 100%;
    max-width: 340px;
    max-height: 205px;

    object-fit: contain;
}

.company-divider {
    height: 75%;
    width: 2px;
    background: #269B26;
}


/* ======================================
   ADITYAVA - MOBILE ONE SCREEN REDESIGN
====================================== */

@media (max-width: 768px) {

    html, body {
        width: 100%;
        height: 100%;
        overflow: hidden !important;
    }

    body {
        height: 100dvh;
    }

    /* HEADER */

    .navbar {
        height: 65px;
        min-height: 65px;
        padding: 5px 8px;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 7px;
    }

    .brand {
        font-size: 17px;
    }

    .nav-links {
        gap: 14px;
        flex-wrap: nowrap;
    }

    .nav-links a {
        font-size: 11px;
        white-space: nowrap;
    }

    /* HOMEPAGE */

    .homepage {
        height: calc(100dvh - 65px);
        min-height: 0;
        overflow: hidden;

        display: flex;
        flex-direction: column;
    }

    /* HERO: LOGO + TWO PHOTOS */

    .hero-stage {
        height: 47%;
        flex: 0 0 47%;
        min-height: 0;
        padding: 5px 12px;

        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: minmax(0, 1fr) 85px;
        gap: 5px 10px;

        overflow: hidden;
    }

    .group-section {
        grid-column: 1 / 3;
        grid-row: 1;

        width: 100%;
        height: 100%;
        min-height: 0;
        z-index: 2;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    .group-logo {
        width: 90%;
        height: 100%;
        max-width: 350px;
        max-height: 100%;
        object-fit: contain;
        mix-blend-mode: multiply;
    }

    /* SOLAR PHOTO */

    .solar-image {
        position: relative;
        grid-column: 1;
        grid-row: 2;

        left: auto;
        right: auto;
        top: auto;

        width: 100%;
        height: 100%;
        border: 0;
        border-radius: 14px;
        overflow: hidden;
    }

    .solar-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    /* CCTV PHOTO */

    .technology-image {
        position: relative;
        grid-column: 2;
        grid-row: 2;

        left: auto;
        right: auto;
        top: auto;

        width: 100%;
        height: 100%;
        border: 0;
        border-radius: 14px;
        overflow: hidden;
    }

    .technology-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .solar-image::after,
    .technology-image::after {
        content: none;
    }

    /* COMPANIES */

    .companies-section {
        height: 53%;
        flex: 0 0 53%;
        min-height: 0;

        width: 100%;
        padding: 5px 10px 10px;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;

        overflow: hidden;
    }

    .section-heading {
        flex: 0 0 auto;
        margin: 5px 0 8px;
        gap: 10px;
    }

    .section-heading h1 {
        font-size: 17px;
        letter-spacing: 1px;
        white-space: nowrap;
    }

    .section-heading span {
        width: 25px;
        height: 2px;
    }

    /* COMPANY LOGOS */

    .company-logos {
        flex: 1;
        min-height: 0;
        width: 100%;
        max-width: 460px;

        display: grid;
        grid-template-columns: 1fr 2px 1fr;
        align-items: center;
        justify-items: center;
        gap: 7px;

        overflow: hidden;
    }

    .company-item {
        width: 100%;
        height: 100%;
        min-height: 0;

        display: flex;
        justify-content: center;
        align-items: center;
    }

    .company-item img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 170px;
        object-fit: contain;
    }

    .company-divider {
        width: 2px;
        height: 65%;
        background: #269B26;
    }
}

/* VERY SMALL PHONES */

@media (max-width: 340px) {

    .brand {
        font-size: 16px;
    }

    .nav-links {
        gap: 11px;
    }

    .nav-links a {
        font-size: 10px;
    }

    .hero-stage {
        grid-template-rows: minmax(0, 1fr) 75px;
    }

    .section-heading h1 {
        font-size: 15px;
    }
}

/* ====================================
   MOBILE LAYOUT - VISUAL ADJUSTMENT
==================================== */

@media (max-width: 768px) {

    /* HERO AREA */

    .hero-stage {
        height: 45%;
        flex: 0 0 45%;

        grid-template-columns: 1fr 1fr;
        grid-template-rows: minmax(0, 1fr) 118px;

        gap: 5px 8px;
        padding: 4px 8px;
    }

    /* GROUP LOGO BIGGER */

    .group-section {
        width: 100%;
        height: 100%;
    }

    .group-logo {
        width: 95%;
        max-width: 400px;
        max-height: 96%;
        object-fit: contain;
        transform: scale(1.12);
    }

    /* SOLAR AND CCTV PHOTOS */

    .solar-image,
    .technology-image {
        height: 100%;
        width: 100%;
        border-radius: 14px;
    }

    .solar-image img,
    .technology-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .solar-image img {
        object-position: center;
    }

    .technology-image img {
        object-position: 70% center;
    }

    /* COMPANIES AREA */

    .companies-section {
        height: 55%;
        flex: 0 0 55%;
        padding: 5px 8px;
    }

    .section-heading {
        margin: 5px 0 8px;
    }

    .section-heading h1 {
        font-size: 18px;
    }

    /* COMPANY LOGOS - MOVE UP AND ENLARGE */

    .company-logos {
        flex: 0 0 195px;
        height: 195px;
        width: 100%;
        max-width: 460px;

        display: grid;
        grid-template-columns: 1fr 2px 1fr;
        grid-template-rows: 195px;

        align-items: center;
        gap: 8px;
        margin-top: 5px;
    }

    .company-item {
        height: 175px;
        width: 100%;
    }

    .company-item img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 175px;
        object-fit: contain;
    }

    .company-divider {
        height: 145px;
    }

}

/* SMALL PHONES */

@media (max-width: 340px) {

    .hero-stage {
        grid-template-rows: minmax(0, 1fr) 105px;
    }

    .company-logos {
        flex-basis: 180px;
        height: 180px;
        grid-template-rows: 180px;
    }

    .company-item {
        height: 160px;
    }

    .company-item img {
        max-height: 160px;
    }
}

/* FINAL COMPANY SECTION ALIGNMENT - MOBILE */

@media (max-width: 768px) {

    .companies-section {
        padding-top: 5px;
        padding-bottom: 8px;
    }

    .section-heading {
        margin: 5px 0 8px;
    }

    .company-logos {
        flex: 1 1 auto;
        min-height: 0;
        height: auto;
        margin-top: 0;
        padding: 0;

        align-items: center;
        justify-items: center;
    }

    .company-item {
        height: 100%;
        min-height: 0;

        display: flex;
        justify-content: center;
        align-items: center;

        padding: 0;
    }

    .company-item img {
        width: 100%;
        height: auto;
        max-height: 125px;
        object-fit: contain;
    }

    .company-divider {
        height: 55%;
        align-self: center;
    }
}

/* MOBILE - COMPANY SECTION GAP FIX */

@media (max-width: 768px) {

    .companies-section {
        height: 55%;
        flex: 0 0 55%;
        padding: 5px 10px;
        justify-content: flex-start;
    }

    .section-heading {
        margin: 5px 0 8px;
        flex-shrink: 0;
    }

    /* STACK LOGOS VERTICALLY */

    .company-logos {
        display: flex;
        flex-direction: column;

        width: 100%;
        max-width: 280px;
        flex: 1;
        min-height: 0;

        justify-content: space-evenly;
        align-items: center;
        gap: 2px;
        margin: 0;
        padding: 0;
    }

    .company-item {
        width: 100%;
        flex: 1;
        min-height: 0;
        height: auto;

        display: flex;
        justify-content: center;
        align-items: center;
    }

    .company-item img {
        width: 90%;
        height: 100%;
        max-width: 260px;
        max-height: 145px;

        object-fit: contain;
    }

    /* HORIZONTAL DIVIDER */

    .company-divider {
        width: 55%;
        height: 2px;
        flex-shrink: 0;
        background: #269B26;
    }
}

