/* General Settings */

header {
    color : var(--text-color-dark);
}

main {
    margin-top: 0;
    font-family: 'Roboto', sans-serif;
    color: var(--text-color-light);
    --smooth-color: var(--primary-color);/*#CEffED;*/
    --hero-svg-white : var(--primary-color);
    --accent-color: #00A19D;/*#F78F00 ;/*#71C15A; /*#F5BBBB;/*#F3B304;*/
    --accent-active: var(--primary-color); /*#F78F00; /*#875E00 ; /*#284221; /*#A74602;/*#59221D;*/
}

/* General Styles */
a {
    color: var(--accent-color);
}

a:hover {
    color: var(--accent-active);
}

h2 {
    font-family : "Orbitron", "Roboto", sans-serif;
    font-size : 3em;
    padding : 0 40px;
    margin : 1em auto;
}

section {
    text-align : center;
    position : relative;
    z-index : 10;
}
@media (max-width: 40em) {
    h2 {
    font-size : 2em;
    }
}





/* hero*/

.canvas-background, #particles-js .particles-js-canvas-el {
  background-color : var(--primary-color);
  display: block;

  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;

  height: 100vh;
  width: 100%;
  margin : 0;
  padding : -1em;

  /* animations */
  -webkit-transform: scale(1);
  transform: scale(1);
  opacity: 1;
  -webkit-animation: appear 1.4s 1;
  animation: appear 1.4s 1;
    animation-fill-mode: none;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}


.hero {
    font-family: 'SUSE', 'Roboto', sans-serif;

    display: flex;
    flex-direction: column;
    justify-content: center;/*flex-start;*/
    align-items: center;
    padding-top: var(--header-size);
    padding-right: 2%;
    padding-left: 2%;
    padding-bottom : 8em; /* for the cookie msg*/
    height: 100vh;
    text-align: center;
    background-color: transparent;
    overflow: hidden;
}

.hero-title {
    mix-blend-mode : exclusion;
    text-align: center;
    margin: 10px 10px;
    line-height: 1;
    color: var(--text-color-dark);
    text-shadow: 0px 0px 10px #000;
    letter-spacing: -.04em;
    max-width : 80%;

    display : flex;
    flex-direction : column;
    align-items : center;
}

.hero-title h1 {
    margin-top : 0;
    font-size: 6em;
    font-weight: 700;
}

.hero-title p {
    font-size: 2.1rem;
    max-width : 80%;
}

.hero a {
    display : block;
    padding: 1rem 2.7rem;

    text-decoration : none;
    font-size :3em;
    font-weight:700;
    color : var(--primary-color, white);

    background : var(--text-color-dark);
    mix-blend-mode : exclusion;

    transition : all 0.3s ease;

    border-radius : 15px;
    border : solid 5px #fff0;
}
.hero a:hover {
    border-color : #fff;

    background : rgba(var(--primary-color-rgb), 0.70);
    -webkit-backdrop-filter: invert(100%);
    backdrop-filter: invert(100%);

    color : var(--text-color-dark);
}

@media (max-width: 1200px) {

    .hero h1 {
        margin: 20px 0;
        max-width: 80%;
    }
    .hero-title {
        max-width : 100%;
    }

    .hero-title h1 {
        font-size: 6em;
    }

    .hero a {
        font-size :1.5em;
        padding: 1em 4em;

    }
}

@media (max-width: 40em) {
    .hero-title h1 {
        font-size: 5em;
    }

    .hero-title p {
        font-size: 2.1rem;
    }
}

@media (max-width: 35em) {
    .hero-title h1 {
        font-size: 3.5em;
    }

    .hero-title p {
        font-size: 2.1rem;
    }
}
@media (max-width: 25em) {
    .hero-title h1 {
        font-size: 3em;
    }

    .hero-title p {
        font-size: 1.5rem;
    }
}







/* sliders */
.sliders{
    background : var(--primary-color);

    padding: 1em 0 ;
    width : 100%;

    overflow: clip;
}
.slider {
    will-change: transform;
    text-rendering: optimizespeed;

    display: flex;
    flex-direction : row;
    justify-content: space-around;

    width : 200%;
    overflow : clip;

    padding : 7px 0;
    margin-bottom: 0;

    max-height : 10vh;
    list-style : none;
}
.slider-element {
}
.slider-element img {
    position : relative;
    max-width : 100%;
    max-height : 100%;
}

@media (max-width: 795px) {
    .sliders {
        display : none;
    }
}








/* know more */

.know-more {
    text-decoration : none;

    background : var(--smooth-color);
    color : var(--text-color-dark);

    font-size : 1.25em;
    margin-top : auto;

    width : 100%;
    border-radius : 5px;
    padding : 0.2em;
    text-align : center;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, all 0.3s ease;
    border : solid 5px #fff;

}
.know-more:hover {
    color : var(--primary-color);
    background-color : #fff;
    border : solid 5px var(--primary-color);
}

.service-card:hover .know-more {
    opacity: 1;
    visibility: visible;
}
.certification-card:hover .know-more {
    opacity: 1;
    visibility: visible;
}


/* services*/

/* services cards*/

.services-container{
    background : url("../../img/about/noise.594efbe591a1.png") repeat , linear-gradient(177deg, white 0%, white 25%, var(--accent-color) 80%, var(--primary-color) 120%);
    border-radius : 0 0 3em 3em ;

    padding : 5em 5%;
    display: flex;
    gap : 40px;

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(22.5%, 100fr));

    grid-auto-flow: dense;
}
@media (max-width: 968px) {
    .services-container{
        grid-template-columns: repeat(auto-fill, minmax(20rem, 100fr));

        padding : 5em 20px;
        gap : 20px;
    }
}
@media (min-width: 2800px) {
    .services-container{
        grid-template-columns: repeat(auto-fill, minmax(25rem, 100fr));
    }
}
@media (max-width: 34em) {
    .service-card .service-description{
        display : none;
    }
    .services-container{
        grid-template-columns: repeat(auto-fill, minmax(200px, 100fr));
    }
    .service-card .know-more {
        opacity: 1;
        visibility: visible;
    }
}

.service-card {
    --pad-width : 20px;
    --bor-width : 10px ;

    display: flex;
    flex-direction: column;
    align-items: center;
    padding: calc(var(--pad-width) + var(--bor-width));
    border : none;
    border-radius: 5px;


    background-color: var(--primary-color);
    color : var(--text-color-dark);
}
.service-card:hover {
    border : var(--bor-width) solid var(--smooth-color);
    padding: var(--pad-width);
    transition: padding 0.2s ease-out, border 0.2s ease-out, background 0.35s ease;

    background-color : #fffc;
    color : var(--text-color-light);
}

.service-image {
    max-width: 30%;
    max-height : 10em;
}
.service-title {
    font-size: 24px;
    font-weight: 500;
    color: inherit;
    margin-bottom: 10px;
}
.service-description {
    font-size: 16px;
    line-height: 1.6;
    color: inherit;
    text-align: justify;
}






/* partners grid */

.partners {
    background : url("../../img/home/kris-joubi-unregular.b3b30ebcdf4a.svg") no-repeat center bottom;
    padding-bottom : 3rem;
    margin-bottom : -2px;
    padding-top : 2em;

    max-width : 1700px;
    margin: 0 auto;
}
.partners-grid {

    padding : 5%;

    display : grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap : 2em;
    align-items:center;
}
.partners-grid a {
    width : 100%;
    height : 100%;
    display : flex;
    align-items : center;
    text-align: center;
    justify-content: center;

    background : rgba(255,255,255, 0.8);
    border-radius: 20px;
  }
.partners-grid img {
    max-width : 100%;
    height : 100%;
    padding : 1rem;
}
.partners-grid a:hover {
    background-color : #00A19D81; /* accent color with transparency added*/
    transform : scale(1.05);
    transition: all 0.45s ease;

}
@media (max-width: 60em) {
    .partners-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 510px) {
    .partners-grid {
        padding : 20px;
        display : grid;
        grid-template-columns: 1fr;
    }
}




/* certifications */
.certifications {
    background : url("../../img/home/super-light-noise.f39b0930a62e.png") var(--primary-color); /*url("../../img/services/light-noise.94af877bf6d1.png") repeat ,linear-gradient(150deg, var(--secondary-color) 0%, rgba(0,42,109,1) 60%, rgba(0,42,109,1) 90%, var(--primary-color) 100%);*/
    border-radius : 3em 3em 3em 3em;
    padding : 5rem 5%;
    text-align : center;
}
.certifications h2 {
    color : var(--text-color-dark);
}

.certifications-container{
    max-width : 1700px;
    padding : 2em 0;
    margin : 0 auto;

    display: flex;
    gap : 40px;

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(47%, 100fr));
    grid-auto-flow: dense;
}
@media (max-width: 968px) {
    .certifications-container{
        padding : 5em 20px;
        grid-template-columns: 100%;
        gap : 20px;
    }
}

.certification-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1em;

    border : none;
    border-radius: 20px;
    background-color: #fff;
}
.certification-card:hover {
    transform : scale(1.1);
    transition: all 0.3s ease, padding 0.2s ease-out, border 0.2s ease-out;
}

.certification-image {
    max-width: 150px;
    margin-bottom: 20px;
}
.certification-title {
    font-size: 24px;
    font-weight: 500;
    color: #333;
}
@media (max-width: 35em) {
    .certification-card .know-more{
        opacity : 1;
        visibility : visible;
    }
}




/* clients */
.clients {
    background: linear-gradient(38deg, rgba(255,99,99,1) 0%, rgba(255,193,7,1) 100%);
    background : url("../../img/home/kris-joubi-orange-hills.305eaa0f3f47.svg") no-repeat center bottom/cover #00A19D ;
    padding : calc(15vh + 6em) 40px;
    margin : -3em 0;
    text-align : center;
    z-index : 9;

}

.clients-grid {
    /*border : none 5px var(--accent-color);*/
    margin-top : 5vh;
    padding : 0 15%;

    display : grid;
    grid-template-columns: repeat(auto-fill, minmax(29%, 100fr));
    gap : 2em;
    align-items:center;
}
.clients-grid a {
    padding : 2em 0;
    text-align: center;
    align-content: center;
    height : 100%;
    width : 100%;
    border : solid 5px #0000;
    border-radius : 20px;
}
.clients-grid img {
    margin : auto;
    max-width : 100%;
    max-height : 100%;
}
.clients-grid a:hover {
    background-color : #fff8 ; var(--accent-color);
    transition: all 0.3s ease, border 0.3s ease;
    transform : scale(1.1);
    /border : solid 5px var(--primary-color);
}

@media (max-width: 80em) {
    .clients-grid {
        padding : 0 5%;
    }
}
@media (max-width: 40em) {
    .clients-grid {
        padding : 20px;
        display : grid;

        padding : 0 15%;
        grid-template-columns: repeat(auto-fill, minmax(55%, 100fr));
    }
    .clients-grid a {
        /border : solid 5px var(--primary-color);
        background-color : rgba(255,255,255, 0.8);

    }

}

footer {
    position:relative;
    z-index:20;
    border-radius : 3em 3em 0 0;
}