/*
HERO SECTION
*/

#hero {
    position: relative;
    height: 100svh;
    width: 100%;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero::after {
    width: 100%;
    height: 100%;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5)
}


#hero video {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
}


#hero .caption {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 10px;
    width: 100%;
    max-width: 500px;
    transform: translate(-100%, -50%);
    z-index: 5;
    color: var(--color-white);
    box-sizing: border-box;
}

#hero .caption h1 {
    color: var(--color-white);
}

#hero .button-row {
    margin-top: 2em;
    padding: 10px 0;
}

#hero .button-row > a {
    min-width: 100px;
}

@media (max-width: 1200px) {
    #hero .caption {
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 768px) {
    #hero .caption {
        width: 80%;
    }
}


.scroll-down-arrow {
    background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iQ2hldnJvbl90aGluX2Rvd24iIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDIwIDIwIiBmaWxsPSJ3aGl0ZSIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHBhdGggZD0iTTE3LjQxOCw2LjEwOWMwLjI3Mi0wLjI2OCwwLjcwOS0wLjI2OCwwLjk3OSwwYzAuMjcsMC4yNjgsMC4yNzEsMC43MDEsMCwwLjk2OWwtNy45MDgsNy44M2MtMC4yNywwLjI2OC0wLjcwNywwLjI2OC0wLjk3OSwwbC03LjkwOC03LjgzYy0wLjI3LTAuMjY4LTAuMjctMC43MDEsMC0wLjk2OWMwLjI3MS0wLjI2OCwwLjcwOS0wLjI2OCwwLjk3OSwwTDEwLDEzLjI1TDE3LjQxOCw2LjEwOXoiLz48L3N2Zz4=);
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    height: 60px;
    width: 80px;
    margin: 0px 0 0 -40px;
    line-height: 60px;
    position: absolute;
    left: 50%;
    bottom: 0px;
    color: var(--color-white);
    text-align: center;
    z-index: 20;
    text-decoration: none;
    text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.4);
    animation: fade_move_down 2s ease-in-out infinite;
}


@keyframes fade_move_down {
    0% {
        transform: translate(0, -20px);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translate(0, 20px);
        opacity: 0;
    }
}


/*
PLATFORM SECTION
*/

#platform {
    margin: 125px auto 0;
}

#platform h2 {
    width: 80%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}



.feature-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    max-width: 940px;
    justify-content: center;
    margin: 2em auto;
    gap: 4.5em;
    padding: 3em 2em;
}

.feature-text {
    padding-top: 0.5em;
}

.card {
    display: flex;
    flex-direction: column;
}

.card .icon {
    margin: 0 auto 20px;
    width: 60px;
    height: 60px;
    padding-bottom: 10px;
    background-color: #0099dd18;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card .icon svg {
    fill: var(--color-primary);
    margin-top: 20%;
    width: 60%;
    height: 60%;
}


.card h5 {
    height: 3rem;
    text-align: center;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}


/* Media queries*/

@media (max-width: 992px) {
    #platform h2 {
        font-size: 2rem;
    }

    .feature-cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {

    .feature-cards {
        grid-template-columns: 1fr;
    }

    .card h5 {
        height: unset;
    }
}


/*
QUOTE SECTION
*/

#quote {
    padding: 75px;
    width: 100%;
    overflow: hidden;
}

#quote .blue {
    width: 150vw;
    background-color: #0099dd88;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-2deg);
    transform-origin: center;
    position: relative;
    left: -30vw; /* Adjusts position to keep the div centered after rotation */
}

#quote .text {
    max-width: 680px;
    font-size: 24px;
    text-align: center;
    color: var(--color-white);
    z-index: 1;
}

#quote .quote-autname {
    display: flex;
    position: absolute;
    max-width: 100%;
    padding-top: 100px;
    padding-left: 500px;
}

@media (max-width: 768px) {

    #quote .blue {
        left: -40vw; /* Adjusts position to keep the div centered after rotation */
    }

    #quote .text {
        font-size: 18px;
        width: 50%;
    }
}

/*
APPS SECTION
*/

#apps{
    margin-top: 60px;
    overflow-x: hidden;
  }
  
  #apps h2{
    text-align: center;
  }
  
  .app-grid {
    margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 125px 75px;
    width: 80%;
    max-width: 1000px;
    padding: 20px;
    grid-template-areas: 
        "portal-text portal-image"
        "zerowaste-image zerowaste-text"
        "markit-text markit-image";
  }
  
  .app-grid .grid-item {
    display: flex;
    justify-content: center;
    flex-direction: column;    
    color: var(--color-black);
  }
  
  #portal-text { grid-area: portal-text; }
  #portal-image { grid-area: portal-image; }
  #zerowaste-text { grid-area: zerowaste-text; }
  #zerowaste-image { grid-area: zerowaste-image; }
  #markit-text { grid-area: markit-text; }
  #markit-image { grid-area: markit-image; }
  
  .grid-item h1 {
    font-size: 30px;
    margin-bottom: 10px;
  }
  
  .grid-item p {
    line-height: 1.5;
  }
  
  .grid-item img {
    width: 100%;
    height: auto;
    max-width: 450px; /* Control the image size */
    display: flex;
    /* align-content: center; */
    justify-content: center;
  }
  
  .grid-item .readmore {
    margin-top: 25px;
  }
  
  @media (max-width: 992px) {
    .app-grid {
        grid-template-columns: 1fr; /* Switch to one column */
        grid-template-areas: 
            "portal-image"
            "portal-text"
            "zerowaste-image"
            "zerowaste-text"
            "markit-image"
            "markit-text";
          gap: 75px;
    }
  
    .app-grid .grid-item {
      align-items: center;
    }
  
    .app-grid .image {
      margin-top: 30px;
    }
  }
