/* Fonts */
/* Audiowide */
@font-face {
    font-family: 'Audiowide';
    src: url('/assets/fonts/Audiowide/Audiowide-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dela Gothic One';
    src: url('/assets/fonts/Dela_Gothic_One/DelaGothicOne-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Basic CSS setup */
:root {
    /* Color palette */
    --background: #020C0E; /* Based on the shadows and tires*/
    --blue-black: #172026; /* Based on the shadow at the bottom of the image */  
    --sport-red:  #9F1329; /* based on the car color */
    --font-color: #eaf7ff; /* Hight contras from the background*/
}

/* Reset some default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Set up base font and background */
html, body {
    background: var(--background);
    font-family: 'Audiowide';
    color: var(--font-color);
    overflow-x: hidden;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Container class for layout */
.container {
    margin: 0 auto;
}

/* Estimates button */

.estimates-button {
    background-color: var(--sport-red);
    color: var(--font-color);
    font-family: 'Audiowide';
    text-shadow: 2px 3px 2px var(--background);
    text-decoration: none;
    padding: 0px 20px;
    font-size: 32px ;
    border: 5px outset silver;
    border-radius: 40px;
    z-index: 3;
}

.estimates-button:hover {
    color: var(--font-color);
    text-shadow: none;
    font-size: 34px;
}
/* End of the estimates button */

/* Header */
header {
    background: var(--background);
    letter-spacing: 2px;
    position: fixed;
    display: flex;
    height: 80px;
    width: 100%;
    z-index: 1024;
}

header .nav-link {
    margin: 0 25px;
}

header p {
    display: flex;
    font-size: 30px;
}

/* logo */
.logo {
    display: flex;
    padding-right: clamp(10%, 10vw + 10%, 50%);

}

.logo span{
    color: var(--font-color);
}

.logo img{
    position: static;
    width: 100px;
    height: 100px;
}

.logo a {
    text-decoration: none;
}
/* end of logo */

/* navigation bar */
nav a.nav-link {
    color: var(--font-color);
    font-size: 25px;
}

nav a.nav-link:hover {
    color: var(--sport-red);
    font-weight: bold;
}

.navbar-toggler span {
    font-size: 24px;
    
}

nav button {
    position: absolute;
    left: 260px;
    top: 15px;
}

span img {
    width: 60px;
    height: auto;
}
/* End of the navigation bar */
/* End of header */

main{
    padding-top: 80px;
}

/* Hero */
#home {
    display: flex;
    height: 95vh;
}

.hero {
    position: relative;
    background: var(--background);
    font-family: 'Dela Gothic One';
    text-align: center;
    color: var(--font-color);
    z-index: 0;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 100px;
    text-shadow: 2px 5px 2px black;
}

.hero h2 {
    font-size: 50px;
    text-shadow: 2px 5px 2px black;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.hero h2.reveal {
    opacity: 1;
    transform: translateY(0);
}

.hero .estimates-button {
    position: absolute;
    bottom: 50px;
    right: 50px;
}
/* end of hero */

/* About */
#about {
    background: linear-gradient(var(--blue-black), var(--background));
    color: var(--font-color);
    height: fit-content;
    padding-bottom: 40px;
    z-index: 2;
}

.worker-img {
    margin: 0 50px 0;
    width: 90%;
    border-radius: 50px;
    border: 6px outset silver;
}

#about h2 {
    text-align: center;
    padding-top: 130px;
    font-size: 60px;
}

#about h3 {
    text-align: center;
    font-size: 30px;
}


.gallery {
    padding-right: 50px;
}

.gallery img {
    height: 300px;
    width: 100%;
    margin-bottom: 25px;
    border-radius: 30px;
    border: 6px outset silver;
}

#about p {
    margin: 20px 30px 0 60px;
    font-size: 20px;
}
/* End of about */

/* Services */
#services  {
    font-family: 'Dela Gothic One';
    text-align: center;
    background: linear-gradient(var(--blue-black), var(--background));
    height: fit-content;
    padding-bottom: 80px;
    z-index: 1;
}

#services h2 {
    font-size: 80px;
} 

#services h3 {
    color: var(--font-color);
    text-align: center;
    padding: 80px 15%;
    font-size: 40px;
    z-index: 3;
}

.services-box {
    background-color: var(--blue-black);
    width: 350px;
    height: 125px;
    border-radius: 20px;
    margin: 3%;
    border: 4px outset silver;
}

.services-box:hover {
    background: #061a53;
    width: 355px;
    height: 130px;
    border-radius: 20px;
    margin: 3%;
    border-width: 1px ;
}

.services-box p {
    font-size: 25px;
    margin: 0;
}

.services-box img {
    align-items:baseline;
    width: auto;
    height: 75%;
    padding-bottom: 8px;
    object-fit: cover;
}

#services .estimates-button  {
    padding: 10px 30px;
}
/* End of Services */

/* Contact  */
#contact {
    background: linear-gradient(var(--blue-black), var(--background));
    font-family: 'Dela Gothic One';
    text-align: center;
    height: fit-content;
}

#contact h2 {
    color: var(--font-color);
    letter-spacing: 2px;
    font-size: 32px;
    padding: 60px;
}

#contact p {
    text-align: center;
}

form {  
    color: var(--font-color);
    font-size: 25px;
    font-weight: bold;
    letter-spacing: 2px;
    gap: 16px;
    padding-bottom: 20px;
}

input, textarea {
    background-color: var(--background);
    color: var(--font-color);
    font-family: 'Gill Sans',  sans-serif;
    width: 450px;
    padding: 5px;
    border-radius: 20px;
    font-size: 20px;
}

textarea {
    height: 150px;
    border: 1px ridge silver;
    border-radius: 40px;
}

#contact button {
    background-color: var(--sport-red);
    color: var(--font-color);
    letter-spacing: 2px;
    font-weight: 500;
    text-shadow: 2px 3px 2px black;
    border: 5px outset silver;
    border-radius: 40px;
    padding: 10px;    
    cursor: pointer;
    width: 200px;
}

#contact button:hover {
    text-shadow: 2px 3px 2px transparent;
    font-weight: 700;
    font-size: 27px;
    border-width: 3px;
}

#contact img {
    width: 100%;
}
/* Social Icons */

.social-icons {
    padding-bottom: 100px;
    display: flex;
    justify-content: center;
    gap: 50px;
}

.social-icons img {
    width: 32px;
    height: 32px;
}
/* End of contact */

/* Footer styling */
footer {
    background: var(--blue-black);
    color: var(--font-color);
    text-align: center;
    align-items: center;
    padding: 16px;
}

@media (max-width: 768px) {
    header {
        position: relative;
        height: 25px;
    }
    
    header p {
        font-size: 15px;
    }

    .logo img {
        width: 120px;
        height: auto;
    }

    nav a.nav-link {
        color: var(--font-color);
        text-shadow: 1px 1px 1px var(--sport-red);
        font-weight: bolder;
        position: relative;
        left: 230px;
        font-size: 18px;
    }

    #home {
        display: flex;
        height: 48vh;
    }

    .hero-video {
        padding-top: 150px;
        height: 48vh;
    }

    .hero h1{
        padding-top: 150px;
        font-size: 25px;
    }

    .hero h2{
        font-size: 15px;
    }

    .hero .estimates-button {
        border: 3px outset silver;
        padding: 0px 10px;
        font-size: 20px;
        position: absolute;
        right: 5px;
        bottom: 0;
    }

    #about h2 {
        font-size: 40px;
    }

    #about h3 {
        font-size: 25px ;
    }

    .worker-img {
        margin: 20px 5%;
    }

    #about p {
        letter-spacing: 1px;
        font-size: 18px;
        margin: 20px 25px;
    }

    .gallery {
        padding: 0 20px;
    }

    .gallery img {
        height: 240px;
        width: 100%;
        margin-bottom: 25px;
    }

    #services h2 {
        font-size: 35px;
    }

    #services h3 {
        padding: 40px 20px;
        font-size: 20px;
    }

    #services .estimates-button {
        font-size: 25px;
        padding: 5px 15px;
        border-width: 3px;
    }

    #contact h2 { 
        font-size: 60px;
        padding:60px 0;
    }

    .services-box {
        margin: 5%;
        border: 2px outset silver;
    }

    #contact h2 {
        font-size: 20px;
        margin-bottom: 50px;
        letter-spacing: 2px;
    }

    input, textarea {
        background-color: var(--background);
        border: 2px ridge silver;
        width: 100%;
        padding: 5px;
        font-size: 20px;
    }

    #contact img {
        width: 80%;
        height: auto;
        padding-bottom: 40px;
    }

    #contact button {
        padding: 5px;
        border-width: 4px;
    }

    .social-icons {
        padding-bottom: 0;
    }

    .social-icons img {
        width: 30px !important;
        height: 20px;
    }

    footer {
        font-size: 14px;
    }
}
