*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    transition: all 0.5s;
}

:root{
    /* Font Sizes */
    --largest-font: 112px;
    --larger-font: 70px;
    --large-font: 34px;
    --text-large-font: 20px;
    --text-font: 16px;

    /* Font Colours */
    --text-color: #fff;
    --hover-color: #fff;
    --dark-color: #eec10b;
    --bg-color: #000;
    --bg-color-header: rgba(0, 0, 0, 0.6);
    --header-change-color: #2a2a2a; 
}
@font-face {
    font-family: 'FC Fastest Bold';
    src: url('fonts/FC-Fast/FC Fastest Bold ver 1.01.ttf') format('truetype'),
         url('fontsm/FC-Fast/FC Fastest Bold ver 1.01.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}





/* ----------------------------------------------------------------------------------------------------- */



/* PRELOADER STYLING */

/* Controls the initial preloader styling */
.preloader{
    width: 100%;
    height: 100%;
    position: fixed;
    background: var(--bg-color);
    justify-content: center;
    align-items: center;
    display: flex;
    z-index: 100000000000000000000000000000;
}

/* Controls the actual loading icon */
.loader{
    position: relative;
    width: 10em;
    height: 10em;
    border-radius: 50%;
    background: transparent;
    border-top: 2.2px solid var(--dark-color);
    border-left: 2.2px solid var(--dark-color);
    border-bottom: none;
    border-right: none;
    animation: spin 0.5s linear infinite;
}

/* Controls the actual keyframes animation for the spinning icon */
@keyframes spin {
    0%{
        transform: rotate(0deg);
    }
    100%{
        transform: rotate(360deg);
    }
    
}

/* PRELOADER STYLING */



/* ----------------------------------------------------------------------------------------------------- */



/* SCROLL TOP BUTTON STYLING */

/* Controls the scrolltop button position and styling */
#scrollTop{
    width: 20px;
    height: 20px;
    position: fixed;
    transform: translate(90vw,90vh);
    cursor: pointer;
    z-index: 10000;
    transition: all 0.5s;
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
}

/* Controls the arrow icon on the scrolltop button styling */
#scrollTop i{
    background: var(--dark-color);
    font-size: 1.5em;
    padding: 8px;
    border-radius: 50%;
    color: var(--bg-color);
    transition: all 0.5s;
}

/* Controls the hover effect on the scrolltop button */
#scrollTop i:hover{
    background-color: var(--hover-color);
}

/* SCROLL TOP BUTTON STYLING */








/* ----------------------------------------------------------------------------------------------------- */











/* MAIN HEADER STYLING*/

/* Controls the home div properties*/
#backgroundvideo {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.home{
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-color-header);
    overflow: hidden;
}

/* Controls navbar properties */
nav{
    display: flex;
    position: fixed;
    justify-content: right;
    align-items: center;
    width: 100%;
    height: 90px;
    padding-right: 120px;
    z-index: 10;
}

/* Controls the nav logo positon*/
.nav-logo{
    position: absolute;
    left: 0px;
    top: 0;
    justify-content: center;
    align-items: center;
    text-align: center;
    display: flex;
    flex-direction: row;
}

/* Spaces the nav logo icon apart*/
.nav-logo i{
    font-size: 1.5em;
    margin: 1em;
    color: var(--dark-color);
}

/* Controls the "Deluks Detailing" line on the navbar */
.nav-logo h2{
    font-family: "FC Fastest Bold";
    font-size: 20px;
    padding: 0px;
    margin: 20px;
    top: 0;
    cursor: pointer;
    left: 40px;
    color: var(--dark-color);
    position: absolute;

}

/* Controls the transition time for the navbar items */
.nav-menu{
    transition: all 0.5s;
}

/* Controls the navbar list items position*/
.nav-menu ul{
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
    transition: all 0.5s;
}

/* Controls the text of the navbar items */
.nav-menu ul li{
    margin: 1em 1.5em;
    font-size: var(--text-large-font);
    font-family: "Poppins";
    font-weight: 600;
    color: var(--dark-color);
    transition: all 0.5s;
}

/* Controls the text color and underlining of navbar items */
.nav-menu ul li a{
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.5s;
}

/* Controls the navbar hover colour */
.nav-menu ul li a:hover{
    color: var(--hover-color);
}

/* Controls the line image which prevents the navbar from collapsing when display size is changed */
#banner{
    display: none;
    transition: all 0.5s;
}

/* Controls the nav close div which is the navbar on mobile devices */
.nav-close{
    display: none;
    visibility: hidden;
    transition: all 0.5s;
}

/* Controls the light mode toggle on the navabr 
 #sun{
    position: absolute;
    color: #ffffff;
    top: 10;
    right: 50px;
    display: inline-flex;
    margin: 1em;
    visibility: hidden;
    opacity: 0;
    cursor: pointer;
    transition: all 0.5s;
}

Controls the dark mode toggle on the navbar 
#moon{
    position: absolute;
    top: 10;
    right: 50px;
    display: inline-flex;
    margin: 1em;
    visibility: visible;
    opacity: 1;
    cursor: pointer;
    transition: all 0.5s;
} 
*/


/* Controls the navbar toggle button on mobile devices */
.nav-toggle{
    display: none;
    visibility: hidden;
    transition: all 0.5s;
}

nav i{
    font-size: 1.5em;
}

/* Controls the parameters around when a collapsible navbar is used aimed for mobile devices or tablets */
@media screen and (max-width: 990px){
    nav{
        justify-content: center;
        padding-right: 0;
        width: 100%;
        height: 90px;
        transition: all 0.5s;
    }

    .nav-menu{
        width: 100%;
        justify-content: center;
        align-items: center;
        display: none;
        background: var(--bg-color);
        box-shadow: 0 2px 10px var(--header-change-color),
        0 8px 20px var(--header-change-color);
        z-index: 1000;
    }

    .nav-menu ul {
        display: flex;
        flex-direction: column;
        transition: all 0.5s;
    }

    .nav-menu ul li{
        justify-content: center;
        align-items: center;
        transition: all 0.5s;
    }

    .nav-menu ul li:nth-child(1){
        padding-top: 40px;
    }

    .nav-menu ul li a{
        justify-content: center;
        align-items: center;
        text-align: center;
        transition: all 0.5s;
    }

    .nav-menu ul li a.pages{
        margin: 0;
    }

    .nav-close{
        display: block;
        visibility: visible;
        position: absolute;
        font-size: 1.5em;
        top: 18px;
        right: 32px;
        cursor: pointer;
        transition: all 0.5s;
        color: #fff;
    }

    /* #sun{
       margin-top: 10px;
    }

    #moon{
        margin-top: 10px;
    } */


    .nav-toggle{
        display: inline-flex;
        visibility: visible;
        cursor: pointer;
        position: absolute;
        top: 0;
        right: 20px;
        margin: 1.5em;
        transition: all 0.5s;
        color: #fff;
    }
}
/* Mobile Navbar Styling Ended */

/* Controls the header styling whihc includes the book now button and initial landing image */
.header{
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

/* controls the content within the header which is the text and button */
.header .content{
    display: flex;
    flex-direction: column;
    text-align: left;
    padding-left: 20px;
    transform: translate(-5px,-40px);
}

/* Controls the title of the website "Deluks Detailing" */
h2{
    color: var(--dark-color);
    font-family: 'FC Fastest Bold';
    font-size: var(--larger-font);
    padding: 100px 5px 5px 5px;
    font-weight: 600;
    position: relative;
    text-align: center;
}

/* Controls the title of the website "Deluks Detailing" */
#title{
    color: var(--dark-color);
    font-family: 'FC Fastest Bold';
    font-size: var(--larger-font);
    text-align: left;
    padding: 0;
    margin: 0;
}

/* Controls the information text below the splash screen textt */
p{
    font-family: 'Poppins';
    font-size: var(--text-large-font);
    color: var(--text-color);
    margin: 0.2em;
    text-align: center;
    position: relative;
}

.header p{
    text-align: left;
}

/* Controls the book now button */
.home button{
    width: 142px;
    border-radius: 25px;
    border-width: 1px;
    border-color: var(--dark-color);
    background: #ffffff;
    padding: 10px 15px;
    margin: 20px 0 10px 5px;
    font-family: 'Poppins';
    font-size: var(--text-font);
    cursor: pointer;
    display: flex;
    flex-direction: row;
    transform: all 0.5s ease-in-out;
    z-index: 2;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Controls the arrow icon on the book now button */
.home button i{
    padding-left: 4px;
}

/* Controls the hover effect on the book now button */
.home button:hover{
    background: var(--dark-color);
    color: #ffffff;
    box-shadow: 0 8px 20px 0 rgba(63, 63, 63, 0.859);
}

.change-header{
    background: var(--bg-color);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px var(--header-change-color),
    0 8px 20px var(--header-change-color);
}
/* MAIN HEADER STYLING*/









/* ----------------------------------------------------------------------------------------------------- */










/* ABOUT SECTION STYLING */

/* Controls the about section div */
.about{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    background: var(--bg-color);
}

/* Controls the "About" title */
.about h2{
    margin: 0.4em;
}

/* Controls the content class div within the about section */
.about .content{
    justify-content: center;
    align-items: center;
    display: flex;
    margin-left: 200px;
    margin-right: 200px;
    flex-direction: row;
}

/* Controls the body text underneath the content class */
.about .content p{
    text-align: left;
    display: flex;
    flex-direction: column;
}

.about .content p span{
    font-weight: 600;
}

.about img{
    width: 15em;
    margin: 1.3em 2em;
}
/* ABOUT SECTION STYLING */







/* ----------------------------------------------------------------------------------------------------- */










/* SERVICES SECTION STYLING */

/* Controls the services section div */
.services{
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--bg-color);
}

/* Controls the information about the services section */
.services p{
    padding: 10px;
}

div .swiper{
    margin-right: 0;
    margin-left: 0;
}

/* Controls the swiper JS inits */
.swiper{
    width: 750px;
    height: 385px;
    margin: 10px;
    justify-content: center;
    align-items: center;
    display: flex;
}

/* Controls the actual swiper JS slides sizes and parameters */
.swiper .swiper-slide{
    position: relative;
    border-radius: 10px;
    background: #000;
    box-shadow: 4px 4px 10px var(--header-change-color);
}

/* Controls the swiper JS slides customisation */
.swiper-slide::before{
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    clip-path: circle(65% at 50% 0%);
    background: radial-gradient(50% 100%, #eec10b, #eec10b);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    z-index: 66;
    transition: all 0.5s;
}

/* Controls the hover effect on the slides */
.swiper-slide:hover::before{
    clip-path: circle(68% at 50% 0%);
}


/* Controls the text inside the black section of the swiper slides */
.swiper-slide .desc{
    font-family: 'Poppins';
    font-size: 1em;
    color: #fff;
    transform: translateY(125px);
    z-index: 90;
}

/* Controls the text inside the yellow section of the swiper slides */
.swiper-slide .info{
    color: #000;
    position: relative;
    font-size: 1.2em;
    z-index: 100;
}

/* Controls the text inside the yellow section of the swiper slides for "Foam Wash" */
.swiper-slide .one{
    transform: translateY(-246px);    
}

/* Controls the text inside the yellow section of the swiper slides for "Polishing" */
.swiper-slide .two{
    transform: translateY(-270px);
}

/* Controls the text inside the yellow section of the swiper slides for "Clay Bar" */
.swiper-slide .three{
    transform: translateY(-246px);
}

/* Controls the text inside the yellow section of the swiper slides for "Paint Correction" */
.swiper-slide .four{
    transform: translateY(-270px);
}

/* Controls the bullets that signify swiper js slides */
.swiper-pagination .swiper-pagination-bullet{
    background: var(--hover-color);
    opacity: 0.4;
}

/* Controls the active bullets that signify swiper js slides */
.swiper-pagination .swiper-pagination-bullet-active{
    background: var(--text-color);
    opacity: 1;
}

/* SERVICES SECTION STYLING */






/* ----------------------------------------------------------------------------------------------------- */










/* FOOTER SECTION STYLING */

/* Controls the initial footer class styling */
.footer{
    width: 100%;
    background: var(--dark-color);
    position: relative;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
}

/* Controls the actual text inside the footer */
.footer .links{
    display: grid;
    grid-template-columns: repeat(2,max-content);
    gap: 50px;
    margin: 30px;
    z-index: 9;
    
}

/* Controls the headings on the footer */
.footer .links h2{
    text-align: left;
    color: #ffffff;
    font-size: var(--text-large-font);
    margin: 0;
    padding: 0;
    left: 0;
}

/* Controls the list style in the footer */
.footer .links ul{
    list-style: none;
}

/* Controls the content within both headers in the footer */
.footer .links ul li a{
    text-decoration: none;
    font-family: 'Poppins';
    color: var(--bg-color);
    transition: all 0.5s;
}

/* Controls the hover style on the footer content */
.links ul li a:hover{
    color: var(--hover-color);
}

/* Controls the copyright statement in the footer */
.footer p{
    font-size: var(--text-font);
    color: var(--bg-color);
    margin-bottom: 40px;
    z-index: 5;
}


/* FOOTER SECTION STYLING */








/* ----------------------------------------------------------------------------------------------------- */










/* ANIMATION STYLING */

/* Slide in Top Animations*/
[data-inViewport='slideTop']{
    transition: 1.5s cubic-bezier(0.4, 1, 0.22, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4em);
    transition-delay: 0.2s;
}

/* Controls when the object is within the viewport */
[data-inViewport='slideTop'].is-inViewport{
    opacity: 1;
    visibility: visible;
    transform: translateY(0em);
}

/* Slide in Left Animations*/
[data-inViewport='slideLeft']{
    transition: 1.5s cubic-bezier(0.4, 1, 0.22, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-4em);
    transition-delay: 0.2s;
}

/* Controls when the object is within the viewport */
[data-inViewport='slideLeft'].is-inViewport{
    opacity: 1;
    visibility: visible;
    transform: translateX(0em);
}

/* Slide in Right Animations*/
[data-inViewport='slideRight']{
    transition: 1.5s cubic-bezier(0.4, 1, 0.22, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(4em);
    transition-delay: 0.2s;
}

/* Controls when the object is within the viewport */
[data-inViewport='slideRight'].is-inViewport{
    opacity: 1;
    visibility: visible;
    transform: translateX(0em);
}

/* ANIMATION STYLING */




/* ----------------------------------------------------------------------------------------------------- */



/* BREAKPOINTS & SCREEN ADAPTATION STYLING */

/* Each @media screen controls the styling for certain divs at the specified px width */
@media screen and (max-width: 1024px){
    .about .content{
        margin-left: 80px;
        margin-right: 80px;
    }
}

@media screen and (max-width: 945px){
    .content{
        scale: 0.83;
    }
    .services p{
        scale: 0.83;
    }
    .about .content{
        margin-left: 1px;
        margin-right: 1px;
    }
}

@media screen and (max-width: 880px){
    .header{
        display: flex;
        flex-direction: column;
        padding-top: 120px;
    }
    .swiper{
        scale: 0.9;
    }
    .swiper .swiper-slide{
        width: 200px;
    }
}

@media screen and (max-width: 755px){
    .swiper{
        scale: 0.8;
    }
}

@media screen and (max-width: 643px){
    .swiper{
        scale: 0.7;
    }
}

@media screen and (max-width: 555px){
    .content h2{
        scale: 0.9;
    }
    .about h2{
        scale: 0.9;
    }
    .services .serv{
        scale: 0.9;
    }
    .product-section{
        scale: 0.95;
    }
    #scrollTop{
        scale: 0.85;
        transform: translate(105vw, 105vh);
    }
    .about .content{
        display: flex;
        flex-direction: column !important;
    }
    .about .first{
        display: flex;
        flex-direction: column-reverse !important;
    }
    .about img[src="assets/about2.jpg"]{
        margin: 2em 1.3em;
    }
    .footer .links{
        gap: 30px;
        scale: 0.95;
    }
    .swiper{
        scale: 0.9;
        width: 600px;
    }
    .swiper-slide .desc{
        transform: translateY(135px);
    }

}

@media screen and (max-width: 539px){
    .swiper{
        width: 550px;
    }
}

@media screen and (max-width: 494px){
    .swiper{
        scale: 0.85;
    }
}

@media screen and (max-width: 466px){
    .swiper{
        scale: 0.80;
    }
}

@media screen and (max-width: 460px){
    .content h2{
        scale: 0.8;
    }
    .about h2{
        scale: 0.8;
    }
    .services .serv{
        scale: 0.8;
    }
    #scrollTop{
        scale: 0.75;
        transform: translate(115vw, 120vh);
    }
    .footer .links{
        gap: 20px;
    }

}

@media screen and (max-width: 440px){
    .swiper{
        scale: 0.9;
        width: 300px;
    }
}

@media screen and (max-width: 404px){
    .content h2{
        scale: 0.75;
    }
    .about h2{
        scale: 0.75;
    }
    .services .serv{
        scale: 0.75;
    }
    .footer .links ul{
        scale: 0.83;
    }
    .footer .links{
        gap: 10px;
    }
}

@media screen and (max-width: 350px){
    .content{
        scale: 0.75;
    }
    .services p{
        scale: 0.75;
    }
    .about h2{
        scale: 0.6;
    }
    .services .serv{
        scale: 0.6;
    }
}

@media screen and (max-width: 335px){
    .footer .links{
        scale: 0.85;
    }
}

@media screen and (max-width: 320px){
    .content{
        scale: 0.6;
    }
    .services p{
        scale: 0.6;
    }
}

@media screen and (max-width: 305px){
    .footer .links{
        scale: 0.8;
    }
}


@media screen and (max-width: 285px){
    .footer .links{
        scale: 0.75;
    }
}



/* BREAKPOINTS & SCREEN ADAPTATION STYLING */


