@import url('styles.css');

h3 {
    font-weight: 400 !important;
}

/* -------------------------
    HOME SECTION (home)
------------------------- */
.home {
    display: flex;
    flex-direction: column;
    min-height: calc(80vh);
    background-color: var(--blue-spot4dis);
    position: relative;
}

body.high-contrast .home,
body.white-text-mode .home {
    background-color: #000 !important;
}

.home .title {
    margin-top: 1%;
    margin-left: 10%;
    max-width: 75%;
    color: var(--white);
    letter-spacing: 3px;
}

body.high-contrast .home .title,
body.white-text-mode .home .title {
    color: #FFF !important;
}

.home .images {
    display: flex;
    padding-top: 2%;
    position: relative;
    margin-top: auto;
    justify-content: flex-start;
    align-items: flex-end;
}

.home .image {
    margin-bottom: -5%;
    width: 55%;
    height: 30%;
    object-fit: cover;
    flex-shrink: 0;
}

.home .subimage {
    position: static;
    max-width: 15rem;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10%;
}

/* -------------------------
    SUBHOME SECTION (subhome)
------------------------- */
.subhome {
    display: flex;
    padding: 7% 0%;
    align-items: center;
    text-align: center;
}

body.high-contrast .subhome,
body.white-text-mode .subhome {
    background-color: #000 !important;
}

.subhome .title {
    color: var(--blue-spot4dis);
    margin: 0% 8%;
    margin-top: 3%;
    min-width: 200px;
    max-width: 100%;
}

body.high-contrast .subhome .title,
body.white-text-mode .subhome .title {
    color: #BDF24B !important;
}

.subhome .image {
    width: 40%;
    max-width: 650px;
    height: auto;
    object-fit: cover;
    flex-shrink: 0;
    flex-grow: 0;
    margin-right: 0%;
}

.ia {
    background-color: var(--blue-spot4dis);
}

.ia .title {
    color: var(--white);
    margin: -2% 8%;
}

/* -------------------------
    SPOT4DIS SECTION (spot4dis-sample)
------------------------- */
.spot4dis-sample {
    padding-top: 5%;
    display: flex;
    overflow: hidden;
    flex-direction: row-reverse;
    position: relative;
    padding-bottom: 10%;
}

body.high-contrast .spot4dis-sample,
body.white-text-mode .spot4dis-sample {
    background-color: #333 !important;
}

.spot4dis-sample .content {
    margin-right: 10%;
    max-width: 45%;
}

.spot4dis-sample h3 {
    color: var(--blue-spot4dis);
    width: 120%;
}

body.high-contrast .spot4dis-sample h3,
body.white-text-mode .spot4dis-sample h3 {
    color: #BDF24B !important;
}

.spot4dis-sample .paragraph-normal {
    margin-top: 2rem;
}

body.high-contrast .spot4dis-sample .paragraph-normal,
body.white-text-mode .spot4dis-sample .paragraph-normal {
    color: #FFF !important;
}

.spot4dis-sample .content .features {
    margin-top: 0;
    flex-direction: row;
    flex-wrap: wrap;
    width: 120%;
}

.spot4dis-sample .content .feature-item {
    padding-top: 1rem;
}

.spot4dis-sample .content .feature-item {
    padding-right: 4%;
}

.spot4dis-sample .content .feature-item img {
    margin-right: 0.3rem;
}

.spot4dis-sample .draw {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    position: absolute;

    /* Position the circles relative to the section */
    top: 0;
    right: 0;
    bottom: 0;
    right: 50%;
    justify-content: center;
    width: 50%;
    pointer-events: none;
}

.spot4dis-sample .draw img {
    position: absolute;
    z-index: 10;
    width: 200px;
    top: 25%;
}

/* Circles */
.spot4dis-sample .draw canvas {
    position: absolute;
}

.spot4dis-sample .draw #s4d-center-circle {
    width: 13rem;
    height: 13rem;
    top: 20%;
    right: 45%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.spot4dis-sample .draw #s4d-bottom-left-circle {
    width: 23rem;
    height: 23rem;
    bottom: 10%;
    left: -10rem;
    z-index: 1;
}

.spot4dis-sample .draw #s4d-bottom-cut-circle {
    width: 30rem;
    height: 30rem;
    bottom: -10rem;
    right: -10%;
    z-index: 0;
}

.spot4dis-sample .download-app-container {
    margin-left: 50%;
    transform: translate(-50%, 0%);
}


body.high-contrast .spot4dis-sample .download-app-container button,
body.white-text-mode .spot4dis-sample .download-app-container button {
    background-color: #BDF24B !important;
    color: #000 !important;
    border: 1px solid #BDF24B !important;
}


/* -------------------------
    IA BENEFITS SECTION (ia-benefits)
------------------------- */
.ia-benefits {
    background-color: var(--very-light-orange-spot4dis);
    display: flex;
    flex-direction: column;
    padding-top: 15%;
}

body.high-contrast .ia-benefits,
body.white-text-mode .ia-benefits {
    background-color: #333 !important;
}

body.high-contrast .ia-benefits,
body.white-text-mode .ia-benefits {
    background-color: #000 !important;
}

.ia-benefits h3 {
    padding: 0 8%;
    padding-left: 12%;
    color: #FF7733;
    font-weight: 700 !important;
}

.ia-benefits .features {
    padding-left: 12%;
    padding-bottom: 10%;
    margin-top: 0%;
    z-index: 1;
}

/* -------------------------
    VALENCIA SECTION (valencia)
------------------------- */
.valencia {
    display: flex;
    flex-direction: column;
    padding-top: 5%;
}

body.high-contrast .valencia,
body.white-text-mode .valencia {
    background-color: #000 !important;
}

.valencia .content {
    display: flex;
    flex-direction: row;
}

.valencia .content .title {
    padding-top: 5%;
    display: flex;
    flex-direction: column;
    padding-left: 10%;
    padding-right: 3%;
    width: 45%;
}

.valencia .content .title .paragraph-bold {
    color: var(--oranje-spot4dis);
}

.valencia .content .title h4 {
    padding-top: 3%;
    color: var(--blue-spot4dis);
}

body.high-contrast .valencia .content .title .paragraph-bold,
body.white-text-mode .valencia .content .title .paragraph-bold {
    color: #FFB793 !important;
}

.valencia .content .title h3 {
    padding: 25px 0px;
    font-size: 1.5rem;
}

body.high-contrast .valencia .content .title h3,
body.white-text-mode .valencia .content .title h3 {
    color: #BDF24B !important;
}

.valencia .content img {
    position: static;
    margin-left: auto;
    margin-top: auto;
    margin-right: 3%;
    margin-bottom: -8%;
    width: 60%;
    z-index: 1;
}

.valencia .features {
    background-color: var(--very-light-orange-aso);
    padding-left: 12%;
    padding-top: 5%;
    padding-bottom: 10%;
}

body.high-contrast .valencia .features,
body.white-text-mode .valencia .features {
    background-color: #333 !important;
}

/* -------------------------
    SPOT4DIS SERVICE SECTION (spot4dis-service)
------------------------- */
.spot4dis-service {
    display: flex;
    flex-direction: column;
    padding-top: 5%;
}

body.high-contrast .spot4dis-service,
body.white-text-mode .spot4dis-service {
    background-color: #000 !important;
}

.spot4dis-service .title {
    background-color: var(--blue-spot4dis);
    color: var(--very-light-orange-spot4dis);
    padding: 6% 10%;
    text-align: center;
}

body.high-contrast .spot4dis-service .title,
body.white-text-mode .spot4dis-service .title {
    background-color: #333 !important;
    color: #FFF !important;
    /* Adjusted for high contrast */
    border-bottom: 1px solid #BDF24B !important;
}

/* -------------------------
    PARK4DIS SECTION (park4dis-sample)
------------------------- */
.park4dis-sample {
    display: flex;
    position: relative;
    overflow: hidden;
    padding-bottom: 10%;
    padding-top: 5%;
}

body.high-contrast .park4dis-sample,
body.white-text-mode .park4dis-sample {
    background-color: #000 !important;
}

.park4dis-sample .content {
    margin-left: 10%;
    max-width: 45%;
}

.park4dis-sample h3 {
    color: var(--green-aso);
}

body.high-contrast .park4dis-sample h3,
body.white-text-mode .park4dis-sample h3 {
    color: #BDF24B !important;
}

.park4dis-sample .paragraph-normal {
    margin-top: 2rem;
}

body.high-contrast .park4dis-sample .paragraph-normal,
body.white-text-mode .park4dis-sample .paragraph-normal {
    color: #FFF !important;
}

.park4dis-sample .content .features {
    margin-top: 1rem;
}

.park4dis-sample .draw {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    position: absolute;

    /* Position the circles relative to the section */
    top: 0;
    right: 0;
    bottom: 0;
    left: 50%;
    justify-content: center;
    width: 50%;
    pointer-events: none;
}

.park4dis-sample .draw img {
    position: absolute;
    z-index: 10;
    width: 230px;
    top: 15%;
    margin-left: auto;
}

/* Circles */
.park4dis-sample .draw canvas {
    position: absolute;
}

.park4dis-sample .draw #p4d-center-circle {
    width: 13rem;
    height: 13rem;
    top: 10%;
    left: 55%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.park4dis-sample .draw #p4d-bottom-left-circle {
    width: 23rem;
    height: 23rem;
    bottom: 10%;
    right: -10rem;
    z-index: 1;
}

.park4dis-sample .draw #p4d-bottom-cut-circle {
    width: 30rem;
    height: 30rem;
    bottom: -10rem;
    left: -10%;
    z-index: 0;
}

.park4dis-sample .download-app-container {
    margin-left: -40%;
}

/* -------------------------
    WISE HUMAN CITY SECTION (wise-human-city)
------------------------- */
.wise-human-city {
    padding: 5%;
    text-align: center;
    color: white;
    background-color: var(--blue-spot4dis);
}

.wise-human-city h3 {
    padding-bottom: 2rem;
}

/* -------------------------
    AWARDS SECTION (awards)
------------------------- */
.awards-section {
    text-align: center;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

body.high-contrast .awards-section,
body.white-text-mode .awards-section {
    background-color: #000 !important;
    border-top: 1px solid #BDF24B !important;
}

.awards-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.award-slideshow {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.awards-track {
    display: flex;
    width: max-content;
    gap: 3rem;
    animation: infiniteSlide 40s linear infinite;
    will-change: transform;
}

.awards-track:hover {
    animation-play-state: paused;
}

.award-item {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    height: clamp(50px, 150vw, 480px);
    overflow: hidden;
}

.award-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

body.high-contrast .award-item img,
body.white-text-mode .award-item img {
    filter: grayscale(100%) brightness(150%) contrast(150%); /* Adjust for high contrast */
}

/* Infinite Slide Animation */
@keyframes infiniteSlide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Media query for small screens (480px and below) */
@media (max-width: 480px) {
    /* -------------------------
        AWARDS SECTION (awards)
    ------------------------- */
    .award-slideshow {
        mask: none;
        -webkit-mask: none;
    }

    .awards-track {
        gap: 1rem;
        padding: 0 1rem;
    }

    .award-item {
        flex: 0 0 auto;
        width: 60%;
        display: flex;
        justify-content: center;
        align-items: center;
        height: clamp(100px, 250vw, 250px);
        box-sizing: border-box;
        padding: 0;
    }

    .award-item img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }
}

/* Small devices (phones, 768px and down) */
@media (max-width: 768px) {

    /* -------------------------
        HOME SECTION (home)
    ------------------------- */
    .home {
        min-height: auto;
        margin-bottom: 0rem;
        align-items: center;
        gap: 20px;
        display: flex;
        flex-direction: column;
        padding: 20px;
    }

    .home .title {
        text-align: center;
        margin-left: 0;
    }

    .home .images {
        flex-direction: column;
        align-items: center;
    }

    .home .image {
        width: 60%;
        margin-bottom: 1rem;
        padding: 0;
        left: auto;
        right: auto;
    }

    .home .subimage {
        position: static;
        left: 0%;
        bottom: 1rem;
        margin-top: 1rem;
        right: 0%;
        width: 10rem;
    }

    /* -------------------------
        SUBHOME SECTION (subhome)
    ------------------------- */
    .subhome {
        align-items: center;
        flex-direction: column;
    }

    .subhome .title {
        position: static;
        text-align: center;
        margin-top: 8%;
    }

    /* -------------------------
        AWARDS SECTION (awards)
    ------------------------- */
    .award-slideshow {
        mask: none;
        -webkit-mask: none;
    }

    .awards-track {
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .award-item {
        flex: 0 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
        padding: 0;
        overflow: hidden;
    }

    .award-item img {
        height: 100%;
        width: auto;
        object-fit: contain;
        display: block;
    }
}

/* Mediums devices (desktops, 1080px and down) */
@media (max-width: 1080px) {

    /* -------------------------
        HOME SECTION (home)
    ------------------------- */
    .home {
        min-height: calc(70vh);
    }


    .home .subimage {
        max-width: 15rem;
    }

    /* -------------------------
        SPOT4DIS SECTION (spot4dis-sample)
    ------------------------- */
    .spot4dis-sample {
        flex-direction: column;
        padding-bottom: 15%;
        overflow: visible;
        /* Allow overflow for better mobile layout */
    }

    .spot4dis-sample .content {
        margin-left: 50%;
        transform: translate(-50%, 0%);
        max-width: 100%;
        width: 70%;
        text-align: center;
    }

    .spot4dis-sample .content h3 {
        text-align: center;
    }

    .spot4dis-sample .content .features {
        margin-top: 1rem;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .spot4dis-sample .content .feature-item {
        padding-left: 4%;
        padding-top: 2%;
        justify-content: flex-start;
    }

    .spot4dis-sample .draw {
        position: relative;
        width: 100%;
        left: 0;
        top: auto;
        justify-content: center;
        margin-top: 2rem;
        pointer-events: auto;
    }

    .spot4dis-sample .draw img {
        position: relative;
        width: 60%;
        top: auto;
        margin-left: 0;
        order: 1;
    }

    .spot4dis-sample .draw canvas {
        position: absolute;
    }

    .spot4dis-sample .draw #s4d-center-circle {
        position: absolute;
        width: 75%;
        top: 15%;
        left: 5%;
        transform: translate(-50%, -50%);
        z-index: -1;
    }

    .spot4dis-sample .draw #s4d-bottom-left-circle {
        z-index: -1;
        position: absolute;
        width: 60%;
        top: 100%;
        left: 90%;
        transform: translate(-50%, -50%);
    }

    .spot4dis-sample .draw #s4d-bottom-cut-circle {
        visibility: hidden;
        /* To not overlap the screen even with hidden */
        width: 10%;
    }

    /* -------------------------
        IA BENEFITS SECTION (ia-benefits)
    ------------------------- */
    .ia-benefits .content {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .ia-benefits .content .title {
        padding-left: auto;
        width: 90%;
        align-items: center;
        text-align: center;
    }

    .ia-benefits .content img {
        margin-right: auto;
        width: 70%;
        margin-top: 10%;
        margin-bottom: 0%;
    }

    .ia-benefits .features {
        padding: 10% 10%;
    }

    /* -------------------------
        TRANSFORM MUNITIPALITY SECTION (valencia)
    ------------------------- */
    .valencia .content {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .valencia .content .title {
        padding-left: auto;
        width: 90%;
        align-items: center;
        text-align: center;
    }

    .valencia .content img {
        margin-right: auto;
        width: 70%;
        margin-top: 10%;
        margin-bottom: 0%;
    }

    .valencia .features {
        padding: 10% 10%;
    }

    /* -------------------------
        SPOT4DIS SERVICE SECTION (spot4dis-service)
    ------------------------- */
    .spot4dis-service .content {
        display: flex;
        flex-direction: column;
    }

    .spot4dis-service .title {
        padding: 8%
    }

    .spot4dis-sample h3 {
        width: 100%;
    }

    /* -------------------------
        PARK4DIS SECTION (park4dis-sample)
    ------------------------- */
    .park4dis-sample {
        flex-direction: column;
        padding-bottom: 15%;
        overflow: visible;
    }

    .park4dis-sample .content {
        margin-left: 50%;
        transform: translate(-50%, 0%);
        max-width: 100%;
        width: 70%;
        text-align: center;
    }

    .park4dis-sample .content h3 {
        text-align: center;
    }

    .park4dis-sample .features {
        margin-top: 2rem;
    }

    .park4dis-sample .feature-item p {
        text-align: start;
    }

    .park4dis-sample .draw {
        position: relative;
        width: 100%;
        left: 0;
        top: auto;
        justify-content: center;
        margin-top: 2rem;
        pointer-events: auto;
    }

    .park4dis-sample .draw img {
        position: relative;
        width: 60%;
        top: auto;
        margin-left: 0;
        order: 1;
    }

    .park4dis-sample .draw canvas {
        position: absolute;
    }

    .park4dis-sample .draw #p4d-center-circle {
        position: absolute;
        width: 75%;
        top: 20%;
        left: 5%;
        transform: translate(-50%, -50%);
        z-index: -1;
    }

    .park4dis-sample .draw #p4d-bottom-left-circle {
        z-index: -1;
        position: absolute;
        width: 60%;
        top: 100%;
        left: 90%;
        transform: translate(-50%, -50%);
    }

    .park4dis-sample .draw #p4d-bottom-cut-circle {
        visibility: hidden;
        /* To not overlap the screen even with hidden */
        width: 10%;
    }

    .park4dis-sample .download-app-container {
        margin-left: auto;
    }

    /* -------------------------
        AWARDS SECTION (awards)
    ------------------------- */
    .awards-section h4 {
        padding: 5%;
    }

    .award-item {
        flex: 0 0 auto;
        width: auto;
        padding: 0.5rem;
    }
}

/* Very large devices (phones, 1200px and up) */
@media (min-width: 1200px) {
    /* -------------------------
        HOME SECTION (home)
    ------------------------- */
    .home .title {
        width: 60%;
    }
    /* -------------------------
        IA BENEFITS SECTION (ia-benefits)
    ------------------------- */
    .ia-benefits {
        padding-top: 8%;
    }
}