@font-face{
    font-family: 'Oswald';
    src: url('/static/fonts/Oswald-VariableFont_wght.ttf') format('truetype');
}

@font-face {
    font-family: 'Raleway';
    src: url('/static/fonts/Raleway-VariableFont_wght.ttf');
}

@font-face{
    font-family: 'Lato';
    src: url('/static/fonts/Lato-Regular.ttf')
}

@font-face {
    font-family: 'Poppins';
    src: url('/static/fonts/Poppins-Medium.ttf');
}

@font-face{
    font-family:'Nunito';
    src: url('/static/fonts/Nunito-VariableFont_wght.ttf');
    font-weight:bold;
}

.video {
    background-color: rgb(30,30,30);
    color: black;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease-out, opacity 0.3s ease;
    opacity: 1;
    z-index:3;
}

.video-container {
    position:fixed;
    align-self:center;
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index:0;
    opacity:1;
    white-space: nowrap;
    overflow:hidden;
}

.overlay-text{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color:rgb(240, 240, 240);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index:1;
    overflow:hidden;
    text-wrap:wrap;
    max-width: 700px;
    width:100%;
    padding:20px;
    text-align:center;
    font-family:'Oswald', sans-serif;
    font-weight:bolder;
}

.overlay-text h2{
    font-size:40px;
    margin:0;
    font-family:'Raleway', sans-serif;
}

.overlay-text h1{
    font-size:1.75rem;
    margin:0;
    font-family: 'Oswald', sans-serif;
    font-weight:bolder;
}

.overlay-text h3{
    font-size:150px;
}

@media (max-width:750px) and (min-width:451px) {
    .overlay-text{
        max-width:440px;
    }
    
    .overlay-text h1{
        font-size:1.4rem;
    }
    
    .overlay-text h3{
        font-size:90px;
    }
}

@media (max-width:450px) {
    .overlay-text{
        max-width:300px;
    }
    
    .overlay-text h1{
        font-size:1.2rem;
    }
    
    .overlay-text h3{
        font-size:60px;
    }
}

#services{
    position:relative;
    background-color:rgb(60, 60, 60);
    color:rgb(240, 240, 240);
    text-align:center;
    line-height:10vh;
    width:100vw;
    display:flex;
    flex-direction:column;
    transition: background-color 0.5s ease-in-out;
}

.service-selector-row{
    width:100vw;
    height:60rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.35s ease-in-out;
}

.service-selector-container-1{
    width:50%;
    height:100%;
    overflow: hidden;
    position:relative;
    left:0;
    display:block;
    transition: all 0.35s ease-in-out;
    border:1px rgb(240, 240, 240) solid;
    border-left:none;
}

.service-selector-container-2{
    width:50%;
    height:100%;
    overflow: hidden;
    position: relative;
    display:block;
    transition: all 0.35s ease-in-out;
    transform-origin: right center;
    right:0;
    border:1px rgb(240, 240, 240) solid;
    border-right:none;
}

.service-selector-image{
    width:100%; 
    height:100%; 
    object-fit: cover;
    filter:brightness(60%);
    transition: all 0.35s ease-in-out;
}

.service-overlay-text{
    position: absolute;
    top:50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color:rgb(240, 240, 240);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index:1;
    overflow:hidden;
    text-align:center;
    padding:30px;
    transition: all 0.35s ease-in-out;
    opacity:1;
    font-size:120px;
    font-family: 'Oswald', sans-serif;
    font-weight:bolder;
}

.service-selector-row:hover > *{
    width:5%;
}

.service-selector-row:hover > * .service-selector-image{
    filter:brightness(5%);
}

.service-selector-row:hover > * .service-overlay-text{
    opacity:0;
}

.service-selector-row:hover > * .service-button{
    opacity:0;
}

.service-selector-row:hover > *:hover{
    width:95%;
}

.service-selector-row:hover > *:hover .service-selector-image{
    filter:brightness(40%);
}

.service-selector-row:hover > *:hover .service-overlay-text{
    opacity:1;
    top:44%;
    font-size:150px;
}

.service-selector-row:hover > *:hover .service-button{
    top:55%;
    opacity:1;
}

.service-grid{
    margin-top:15px;
    margin-left:1vh;
    margin-right:1vh;
    margin-bottom:30px;
    display: grid;
    gap: 20px;
    row-gap:30px;
    grid-template-columns: repeat(auto-fit, 700px);
    justify-content: center;
    align-items: center;
}

.service-item{
    width: 700px;
    height:850px;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.service-text, .service-text-special {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: 0.4s ease-in-out;
    width:600px;
}

.service-text-special{
    width:550px;
}

.service-text p, .service-text-special p {
    font-size: 70px;
    line-height:70px;
    color:rgb(240, 240, 240);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Oswald', sans-serif;
    font-weight:bolder;
}

.service-item-image{
    display: block;
    transition: transform .4s, filter .4s;
    height:100%;
    width:100%;
    z-index: 1;
    filter:brightness(72%)
}

.service-button{
    position:absolute;
    top: 62%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    border: none;
    text-align: center;
    width: 180px;
    height: 40px;
    font-size: 25px;
    background-color: rgb(240, 240, 240);
    border-radius: 20px;
    opacity: 0;
    transition: all 0.35s ease-in-out;
    color: rgb(60, 60, 60);
    z-index: 4;
    font-family: 'Poppins', sans-serif;
    text-shadow: none;
}

.service-item:hover .service-item-image{
    transform: scale(1.2);
    transform-origin: 50% 50%;
    filter: brightness(35%);
}

.service-item:hover .service-text{
    transform: translate(-50%, -70%);
}

.service-item:hover .service-text-special{
    transform: translate(-50%, -70%);
}

.service-item:hover .service-button{
    top: 55%;
    opacity:1;
}

.service-button:hover{
    background-color:greenyellow;
}

.service-button-alt{
    position:absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    border: none;
    text-align: center;
    width: 180px;
    height: 40px;
    font-size: 25px;
    background-color: rgb(240, 240, 240);
    border-radius: 20px;
    opacity: 0;
    transition: all 0.35s ease-in-out;
    color: rgb(60, 60, 60);
    z-index: 4;
    font-family: 'Poppins', sans-serif;
    text-shadow: none;
}

.service-item:hover .service-button-alt{
    top: 58%;
    opacity:1;
}

.service-button-alt:hover{
    background-color:greenyellow;
}

#services a:hover{
    color:rgb(15,15,15);
}

#services h1{
    font-size:120px;
    margin-bottom:0;
    line-height: 110px;
    font-family:'Oswald', sans-serif;
    font-weight:bolder;
    margin-top:120px;
}

#services h2{
    font-size:35px; 
    line-height:35px;
    margin-top:15px; 
    margin-bottom:15px;
    font-family:'Raleway', sans-serif;
}

.service-selector-column {
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    display: none;
}

.service-selector-container-vertical {
    width: 100%;
    height: 25rem;
    overflow: hidden;
    position: relative;
    display: block;
    border-left: none;
    border-right: none;
    margin-bottom: 5px;
}

.service-selector-container-vertical .service-button {
    opacity: 1;
    top: 75%;
}

.service-selector-container-vertical .service-overlay-text {
    top: 50%;
}

@media (max-width:750px) and (min-width:551px){
    .service-grid{
        grid-template-columns: 1fr;
        margin: 15px auto;
    }
    
    .service-item{
        width:500px;
        height:600px;
    }
    
    .service-text{
        width:450px;
    }
    
    .service-text-special{
        width:425px;
    }
    
    .service-text p{
        font-size:50px;
        line-height:50px;
    }
    
    .service-text-special p {
        font-size:50px;
        line-height:50px;
    }
}

@media (max-width:550px){
    .service-grid{
        grid-template-columns: 1fr;
        margin: 15px auto;
        gap:15px
    }
    
    .service-item{
        width:320px;
        height:420px;
    }
    
    .service-text{
        width:275px;
    }
    
    .service-text-special{
        width:250px;
    }
    
    .service-text p {
        font-size:35px;
        line-height:35px;
    }
    
    .service-text-special p {
        font-size:35px;
        line-height:35px;
    }
    
        .service-button{
        width: 120px;
        height: 30px;
        font-size: 15px;
        border-radius: 20px;
    }
    
    .service-button-alt{
        width: 120px;
        height: 30px;
        font-size: 15px;
        border-radius: 20px;
    }
}

@media (max-width:1440px) and (min-width: 901px) {
    .service-overlay-text{
        font-size: 80px;
    }
}

@media (max-width:900px) and (min-width:651px) {
    .service-selector-row {
        display: none;
    }
    
    .service-selector-column {
        display: flex;
    }
    
    .service-overlay-text {
        font-size:90px;
    }
    
    .service-selector-container-vertical {
        height:35rem;
    }
    
    #services h1{
        font-size:90px;
        line-height:80px;
    }
    
    #services h2{
        font-size:25px;
        line-height:25px;
        margin-top: 15px;
    }
}

@media (max-width:650px){
    .service-selector-row {
        display: none;
    }
    
    .service-selector-column {
        display: flex;
    }
    
    .service-overlay-text {
        font-size:60px;
    }
    
    .service-selector-container-vertical {
        height:25rem;
    }
    
    #services h1{
        font-size:60px;
        line-height:60px;
    }
    
    #services h2{
        font-size:18px;
        line-height:18px;
        margin-top: 10px;
    }
}

#certification{
    width:100vw;
    background-color:rgb(240,240,240);
    color:rgb(30,30,30);
    position:relative;
    text-align:center;
    justify-items:center;
    overflow:hidden;
    padding-top:4rem;
    transition: background-color 0.5s ease-in-out;
}

.certification-header{
    margin:auto;
    width:auto;
    max-width:100vw;
    font-size:50px;
    font-family: 'Oswald', sans-serif;
    font-weight:bolder;
    line-height:100px;
}

.certification-body{
    margin:auto;
    width:auto;
    max-width:800px;
    padding: 0 50px;
    font-size:18px;
    font-family: 'Lato', sans-serif;
}

.logo-grid{
    max-width:500px;
    width:100%;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, 200px);
    justify-content: center;
    text-align:center;
    align-items: center;
    place-items:center;
    grid-template-rows:auto;
    padding-top:30px;
    padding-bottom:80px;
}

.logo-container{
    align-self:center;
    height:200px;
    width:200px;
}

@media (max-width:700px) and (min-width:501px) {
    .certification-header{
        font-size:35px;
        line-height:65px;
    }
    
    .certification-body{
        font-size:16px;
    }
    
    .logo-grid{
        grid-template-columns: repeat(2, 150px);
    }
    
    .logo-container{
        height:150px;
        width:150px;
    }
    
    #certification{
        padding-top:4rem;
    }
}

@media (max-width:500px) {
    .certification-header{
        font-size:25px;
        line-height:50px;
    }
    
    .certification-body{
        font-size:14px;
        padding:0 25px;
    }
    
    .logo-grid{
        grid-template-columns: repeat(2, 120px);
    }
    
    .logo-container{
        height:120px;
        width:120px;
    }
    
    #certification{
        padding-top:3rem;
        padding-bottom:1rem;
    }
}


#socials{
    background-color: rgb(60, 60, 60);
    height:30rem;
    width:100vw;
    color:white;
    display:flex;
    flex-direction:column;
    justify-content: center;
    text-align:center;
    z-index:5;
    overflow:hidden;
    transition: background-color 0.5s ease-in-out;
    margin-top:-5rem;
}

.socials-button{
    margin: auto;
    margin-top:8vh;
    height:100px;
    width: 300px;
    background-color: rgb(30, 30, 30);
    color:rgb(240, 240, 240);
    padding: 0px;
    margin-bottom:13vh;
    transform: rotateZ(-4deg);
    font-size: 20px;
    font-family:Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    transition: 0.45s ease-in-out;
    border:none;
}

.socials-button:hover{
    background-color: rgb(15,15,15);
    color:greenyellow;
}

.scrolling-text{
    position: relative;
    font-size: 6rem;
    white-space: nowrap;
    transform: translateX(-100%);
    color: white;
    font-family: 'Raleway', sans-serif;
    font-weight: bolder;
}

.socmed-button{
    border-radius:100px;
    margin-left: 2px;
    margin-right:2px;
    height:100px;
    width:100px;
    object-fit: cover;
    background-color:rgb(240,240,240);
}

@media (max-width: 750px) {
    .scrolling-text {
        font-size:4rem;
    }
    
    #socials{
        height:25rem;
    }
    
    .socmed-button{
        height:70px;
        width:70px;
        transform:translateY(10px);
    }
}
