body,
html {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    color: #333;
}

a {
    color: #fff;
    text-decoration: none;
}

section {
    scroll-margin-top: 100px;
}

.navbar {
    position: fixed;
    background: transparent;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0.8;
    padding: 10px;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    list-style: none;
    height: 100px;
    width: 100%;
    z-index: 3;
}

header nav {
    padding: 0;
    margin: 0;
    background-color: transparent;
}

header .logo {
    width: 100px;
    height: 100%;
}

header .logo img {
    width: 110%;
    height: 100%;
}

header nav .nav-links {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    gap: 20px;
}

.background {
    background-image: url('/files/bg.webp');
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 95vh;
    color: white;
    position: relative;
    transition: all 0.5s ease-in-out;
    overflow: hidden;
}

.background .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(68, 68, 68, 0.7);
    z-index: 1;
}

.content {
    position: absolute;
    top: 25%;
    z-index: 2;
}

.content .logo {
    width: 100%;
    margin-bottom: 40px;
}

.content .logo img {
    width: 200px;
    height: 100%;
}

.content h1 {
    font-size: 60px;
    font-weight: 600;
}

.content p {
    font-size: 25px;
    font-weight: 300;
}

.brands {
    background: none;
    position: relative;
    top: -50%;
    transform: translateY(0);
    display: flex;
    flex-direction: row;
    z-index: 2;
    visibility: hidden;
    opacity: 0;
}

.brands .brand {
    background: white;
    padding: 30px;
    width: 160px;
    height: 100px;
    position: relative;
    -moz-box-shadow: 2px 2px 7px 0 rgba(0, 0, 0, .1);
    box-shadow: 2px 2px 7px 0 rgba(0, 0, 0, .1);
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    object-fit: cover;
    overflow: hidden;
    margin: 20px;
}

.brands .brand img {
    display: block;
    height: 100%;
}

#about .car {
    width: 500px;
}

#about .dot {
    width: 50px;
    filter: drop-shadow(0 0.2rem 0.25rem rgba(0, 0, 0, 0.2));
    animation: dotshadow 2s ease-in-out infinite;
}

#about p {
    font-weight: 600;
}

#contact {
    color: #000000;
    position: relative;
    overflow: hidden;
    margin: 80px 0 50px 0;
    height: 500px;
    border-radius: 20px;
}

#contact .contact-col-1 {
    background-image: url('/files/contactbg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    height: 500px;
}

#contact .contact-col-2 {
    margin: 0;
    padding: 0;
}

#contact .contact-details h1 {
    margin-bottom: 40px;
}

#contact img {
    display: inline-block;
    animation: notepadanimate 2s ease-in-out infinite;
    position: relative;
}

#contact .contact-details {
    background-color: #670D2F;
    height: 100%;
    padding: 40px 50px;
    color: #ffffff;
}

#contact .contact-box {
    background-color: #A53860;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    padding: 20px 30px;
    width: auto;
    margin: 20px 0;
}

#contact .contact-box a {
    font-weight: 600;
    font-size: 22px;
    line-height: 1.5;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

#contact .contact-box svg {
    margin-right: 10px;
    width: 22px;
    height: 22px;
    flex-shrink: 0; 
}

.siteby {
    text-align: center;
    font-weight: 500;
    margin-bottom: 20px;
}

.siteby img {
    width: 80px;
    margin-left: 10px;
}

@media screen and (min-width: 768px) and (max-width: 1366px) {
    #contact .contact-box {
        background-color: #A53860;
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        padding: 15px 20px;
        width: auto;
        margin: 20px 0;
    }

    #contact .contact-details h1 {
        margin-bottom: 40px;
    }
}

@media screen and (max-width: 768px) {

    header .logo {
        width: 70px;
        height: 100%;
        margin-bottom: 10px;
    }

    header nav .nav-links {
        font-size: 15px;
    }

    .background {
        height: 90vh;
        background-position: center;
    }

    .content .logo {
        margin-bottom: 50px;
    }

    .content .logo img {
        width: 150px;
    }

    .content h1 {
        font-size: 30px;
    }

    .content p {
        font-size: 15px;
    }

    .brands .brand {
        width: 100%;
        height: 60px;
        padding: 10px;
        margin: 20px 0;
    }

    #about {
        margin-bottom: 50px;
    }

    #about .car {
        width: 250px;
        margin-bottom: 20px;
    }

    #contact {
        height: auto;
    }

    #contact .row {
        flex-direction: column;
    }

    #contact .contact-details h1 {
        margin-bottom: 30px;
    }

    #contact .contact-col-1 {
        height: 200px;
        background-size: cover;
        background-position: center;
    }

    #contact .contact-details {
        padding: 30px 30px 10px 30px;
    }

    #contact .contact-box a {
        font-weight: 600;
        font-size: 15px;
        line-height: 1.5;
        vertical-align: middle;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
    }

    #contact .contact-box svg {
        width: 16px;
        height: 16px;
    }
}

@keyframes dotshadow {
    0% {
        filter: drop-shadow(0 0.2rem 0.25rem rgba(0, 0, 0, 0.2));
    }

    50% {
        filter: drop-shadow(0px 0px 22px #000000);
    }

    100% {
        filter: drop-shadow(0 0.2rem 0.25rem rgba(0, 0, 0, 0.2));
    }
}

@keyframes notepadanimate {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(30px);
    }
}