@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

:root {
    --color-text: #fff;
    --color-primary: #4b4f53;
    --color-primary-hover: #80858c;
    --color-secondary: #909994;
    --color-secondary-hover: #bcc3bf;
    --color-tertiary: #33363b;
    --color-tertiary-hover: #6B6C80;
    --color-dark: #2D2F34;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

body {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
    font-family: 'Kanit', sans-serif;
    color: azure;
    background-color: black;
}

h1,
h2 {
    letter-spacing: 2px;
}

/* Style the header */
header {
    background-color: rgba(0, 0, 0, 0.881);
    display: flex;
    min-height: 60px;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    flex-wrap: wrap;
    z-index: 1;
}

header > a {
    color: #f0ffff;
    margin-left: 30px;
    text-decoration: none;
    font-size: 22px;
    border: 1px solid #f0ffff;
    padding: 4px 7px;
    margin-bottom: 4px;
    overflow: hidden;
}

nav {
    height: 100%;
    overflow: hidden;
    width: auto;
    
}

nav ul {
    display: flex;
}

nav li {
    list-style-type: none;
}
nav li:hover {
    border-bottom: 3px solid hsl(240, 97%, 59%);
    box-sizing: content-box;
}

nav li:hover .nav-link {
    color: hsl(240, 97%, 59%);
}

li a {
    text-decoration: none;
    margin: 0 10px;
    font-size: 1.5vw;
    color: #f0ffff;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Hero section */
.hero-image {
    background-image: url('../images/hero-image-1.jpg');
    height: 600px;
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    display: flex;
    align-items: flex-end;
    background-attachment: fixed;
}

.hero-div {
    max-width: 257px;
    background-image: linear-gradient(to bottom, rgb(10, 10, 121), rgba(7, 7, 204, 0.758),  rgb(10, 10, 121), rgba(7, 7, 204, 0.758)) ;
    opacity: .8;
    margin: 80px;
    color: #f0ffff;
    text-align: center;
    border-radius: 20px;
    padding: 8px;
}

.hero-div h1 {
    margin: 5px 0;
    border-bottom: 1px solid #f0ffff;
}

.hero-div p {
    font-size: 22.5px;
}

/* About section */
.about-section {
    background-color: #000000;
    height: auto;
    color: #f0ffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 0;
}

.about-section h1 {
    margin: 0 0 65px 0;
    padding: 0 10px;
    font-size: 3em;
    text-align: center;
}

.about-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
}

.about-image {
    width: 50%;
}

.about-image img {
    border-radius: 20px;
    width: 100%;
}

.about-text {
    width: 40%;
    margin-left: 40px;
    text-align: center;
}
.about-text p {
    font-size: 20px;
    margin-top: 20px;
}


/* The Circuit section */
.circuit-background {
    background-image: url('../images/racetrack.webp');
    height: 700px;
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    background-attachment: fixed;
}

.circuit-container {
    width: 70%;
    background-color: rgba(0, 0, 0, 0.555);
    color: #f0ffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 0 50px 0;
}

.circuit-text {
    width: 40%;
    text-align: center;
    margin-right: 60px;
}

.call-us-now{
    font-size: 1.5rem;
    text-decoration: none;
    color: #000000;
}

.call-us-btn{
    background-color: #438effc1;
    border: 2px solid var(--color-secondary);
    border-radius: 10px;
    box-shadow: 0rem 0rem 2px var(--color-secondary);
    color: var(--color-tertiary);
    cursor: pointer;
    font-size: 1rem;
    margin: 10px;
    padding: 10px;
    text-align: center;
    transition: all 0.3s;
    width: 160px;
}

.call-us-btn:hover {
    background: var(--color-secondary);
    border: 2px solid #438fff;
    opacity: .8;
}

.circuit-img {
    background-image: url('../images/trackwhite.png');
    opacity: .7;
    height: 200px;
    width: 50%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.circuit-text h1 {
    font-size: 2.1em;
    margin-bottom: 20px;
}

/* Experiences section */
.exp-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Contact section */
.contact-img {
    background-image: url("../images/workshop.jpg");
    width: 100%;
    height: 800px;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    background-attachment: fixed;
}

/* Footer */
footer {
    background-color: #000000;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-div {
    width: 100%;
    padding: 30px;
    padding-bottom: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding-bottom: 30px;
}

.footer-contact {
    width: 33%;
}
.footer-contact h4 {
    margin: 5px 0;
}

.contact-title {
    font-size: 22px;
    font-weight: 500;
    margin: 5px 0;
}

/* Footer social media links */
.footer-social {
    width: 33%;
    height: auto;
}

.footer-social a img{
    width: 70%;
    margin-left: 15%;
}

.footer-links {
    width: 33%;
    text-align: center;
    margin-right: -50px;
}

.footer-links ul,
.footer-links li {
    list-style: none;
}

.footer-links li a{
    font-weight: 300;
}

/* Partners section */
.footer-partners {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-partners p {
    text-align: center;
    font-weight: 500;
    font-size: 36px;
    border-bottom: 1px solid #f0ffff;
    margin: 30px 0;
}

.contact-footer-text {
    text-decoration: none;

}
.logo-container {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
}

.logo-container img {
    filter: grayscale(100%);
    margin: 20px 10px 0 10px;
}

.logo-container img:hover {
    filter: grayscale(0%);
}

#bugatti-logo {
    width: 150px;
    height: auto;
}

#ferrari-logo {
    height: 110px;
    width: auto;
}

#mclaren-logo {
    height: 80px;
    width: auto;
}

/* Footer map iframe to stop overflow */
.footer-map {
    margin-top: 40px;
    padding: 40px;
}
.footer-map iframe {
    width: 80%;
    margin-left: 10%;
}

.footer-map h3 {
    margin-top: 30px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 140%;
}

.footer-map p {
    margin-top: 10px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 80%;
}

small a {
    text-decoration: none;
    color: #f0ffff;
}

/* Thank you page */

#background {
    background-image: url('../images/confirm-desktop.jpg');
    width: 100%;
    height: 800px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: start;
}

#container {
    background-color: transparent;
    width: 500px;
    padding-bottom: 20px;
    margin: 0 0 5% 12%;
    border-radius: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 8px 8px 20px 1px hsl(356deg 41% 95% / 50%);
}

#container h1 {
    font-size: 30px;
    letter-spacing: 2px;
    color: #02dcfe;
}

#container p {
    font-size: 25px;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.go-back {
    text-decoration: none;
    color: #f0ffff;
    background-color: #3621b0;
    font-weight: 600;
    font-size: 16px;
    padding: 10px;
    border-radius: 15px;
    transition: 0.3s;
}

.go-back:hover {
    background-color: #6791ec;
    display: inline-block;
    transform: scale(1.1);
}

/* 404 Page */
.container-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container-404 h1 {
    font-size: 8rem;
    margin: 10px;
}

.container-404 h2 {
    font-size: 3rem;
    text-align: center;
}

.container-404 a {
    color: #f0ffff;
    text-decoration: none;
    font-size: 1.5rem;
    background-color: #b0212b;
    padding: 5px 10px;
    border-radius: 15px;
    transition: 0.3s;
}

.container-404 a:hover {
    background-color: #f13f4a;
    color: #f0ffff;
    transform: scale(1.1);
}

.container-404 img {
    display: block;
    width: 315px;
    margin-top: 50px;
}




html {
    scroll-behavior: smooth;
}

*,
*::after,
*::before {
    box-sizing: border-box;
}

body {
    margin: 0;
}

img {
    display: block;
    max-width: 100%;
}

.scroll-up-link {
    animation: bounce 2s ease-in-out infinite;
    background: var(--color-secondary);
    border-radius: 0.5rem;
    bottom: 3rem;
    color: var(--color-tertiary);
    font-size: 1.25rem;
    height: 2rem;
    position: fixed;
    right: 3rem;
    text-align: center;
    transition: opacity 0.6s ease-in-out, 
                background 0.3s ease-in-out,
                color 0.3s ease-in-out;
    opacity: 0;
    width: 2rem;
    z-index: 5;
}

.scroll-up-link:hover {
    background: var(--color-secondary-hover);
    color: var(--color-tertiary-hover);
}

.show-link {
    opacity: 1;
}

.service--page {
    padding-top: 40px;
}

.service-holder--page {
    display: flex;
    flex-direction: row;
    height: auto;
    margin-bottom: 40px;
}

.service-img--page {
    width: 50%;
    margin-top: 3%;
    border-radius: 50px;
}

.service-par--page {
    width: 50%;
    padding: 3%;
}

.service-footer--page {
    border-top: 3px solid gray;
}

.service-header--page {
    color: #2b52ff;
}

.service-list--page li {
    list-style: circle;
}

.service-list--page li a{
    display: block;
    font-size: 90%;
    font-weight: 100;
}

@keyframes bounce {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.5);
    }

    100% {
        transform: scale(1);
    }
}

label {
    display: block;
}

input, textarea {
    background: lightgrey;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea {
    border: 2px solid var(--color-secondary);
    border-radius: 7px;
    padding: 0.5rem 0.7rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
textarea:focus {
    border-color: var(--color-text);
    outline: 0;
    transition: all 0.3s;
}

textarea {
    resize: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

@media screen and (max-width: 540px) {
    .scroll-up-link {
        border-radius: 0.25rem;
        bottom: 5rem;
        font-size: 0.625rem;
        height: 1rem; 
        right: 1.2rem;    
        width: 1rem;
    }

    
}

/* Typography */

.strong {
    font-weight: 600;
}

@media screen and (max-width: 500px) {
    body {
        font-size: 15px;
    }
}

@media screen and (max-width: 428px) {
    h3 {
        font-size: 18px;
    }
}

@media screen and (max-width: 324px) {
    h1 {
        font-size: 20px;
    }

    h3 {
        font-size: 15px;
    }
    
    body {
        font-size: 12px;
    }
}

@media screen and (min-width: 768px) {
    body {
        font-size: 18px;
    }

}

@media screen and (min-width: 1200px) {
    body {
        font-size: 24px;
    }
}

/* Blocks */

.block {
    padding: 3rem 0;
}

.block__header {
    text-align: center;
    background-color: #ffffffb0;
    line-height: 40px;
    padding: .5rem;
    border-radius: 20px;
    color: #4b4f53;
    width: 60%;
    margin-left: 20% ;
}

.block--dark {
    background-color: var(--color-dark);
    color: var(--color-text);
}

.block--grey {
    background-color: var(--color-tertiary);
    color: var(--color-text);
}

@media screen and (max-width: 768px) {
    .block {
        padding: 2rem 1.5rem;
    }

}

@media screen and (max-width: 540px) {
    .block {
        padding: 1rem;
    }
}

@media screen and (max-width: 300px) {
    .block {
        padding: 1rem 0.5rem;
    }
}

@media screen and (min-width: 1024px) and (max-height: 600px) {
    .navbar {
        padding: 0;
    }
}

/* Grids */

.grid {
    display: grid;
}

@media screen and (min-width: 768px) {
    .block .grid--1x2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
}

@media screen and (min-width: 1024px) {
    .block .grid--1x2-alt {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Cards */

.card {
    padding: 1.5rem;
    background: var(--color-primary);
    border-radius: 20px;
    color: var(--color-text);
}

.card__header {
    text-align: center;
    padding-bottom: 2rem;
}

@media screen and (max-width: 768px) {
    .card__header {
        padding-bottom: 1rem;
    }
    .block__header {
        padding-bottom: 1rem;
        width: 100%;
        margin-left: 0 ;
    }
}

@media screen and (max-width: 500px) {
    .card {
        padding: 1rem;
    }
}

/* Buttons */

.btn {
    background: var(--color-secondary);
    border-radius: 10px;
    border: 0;
    box-shadow: 0rem 0rem 2px var(--color-secondary);
    color: var(--color-tertiary);
    cursor: pointer;
    font-size: 1rem;
    margin: 10px;
    padding: 10px;
    text-align: center;
    transition: all 0.3s;
    width: 160px;
}

.btn:hover {
    background: var(--color-secondary-hover);
    color: var(--color-tertiary-hover);
}

.btn:focus {
    background: var(--color-secondary);
    color: var(--color-tertiary-hover);
}

.btn-container {
    display: flex;
    justify-content: center;
    grid-column-start: 1;
    grid-column-end: 3;
}

@media screen and (max-width: 767px) {
    .btn {
        width: 100px;
    }
}

@media screen and (max-width: 479px) {
    .btn {
        margin: 5px;
        width: 80px;
    }
}

@media screen and (max-width: 428px) {
    .btn {
        font-size: 0.8rem;
    }
}

/* Navbar */

.logo {
    height: 80px;
    width: auto;
}

@media screen and (max-width: 768px) {
    .logo {
        height: 50px;
        width: auto;
    }
}

@media screen and (max-width: 428px) {
    .logo {
        height: 40px;
        width: auto;
    }
}

/* Hero block */

.hero__container {
    overflow: hidden;
    height: 90vh;
    width: 100%;
    background-image: url(../images/mainpic.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__text {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
}

.hero__title {
    font-size: 400%;
}

@media screen and (max-width: 1024px) {
    .hero__container {
        background-image: url(../images/mainpic-medium.webp);
    }
}

@media screen and (max-width: 428px) {
    .hero__container {
        background-image: url(../images/mainpic-small.webp);
    }
}

@media screen and (max-width: 376px) {
    .hero__title {
        font-size: 300%;
    }
}

@media screen and (max-width: 324px) {
    .hero__container {
        background-image: url(../images/mainpic-xsmall.webp);
    }
}

/* Carousel block */

.carousel__container {
    padding: 60px;
}

.carousel {
    background: var(--color-tertiary);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    height: 70vh;
    margin: 0 auto;
    max-width: 1200px;
    position: relative;
}

.carousel::before,
.carousel::after {
    content: '';
    position: absolute;
    inset: -0.25rem;
    background: conic-gradient(
        from var(--gradient-angle),
        var(--color-secondary-hover),
        var(--color-dark),
        var(--color-secondary-hover)
    );
    border-radius: inherit;
    animation: rotation 4s linear infinite;
}

@keyframes rotation {
    0%  { --gradient-angle: 0deg; }
    100% { --gradient-angle: 360deg; }
}

.carousel::after {
    filter: blur(2.5rem);
}

.carousel__header {
    color: white;
    position: absolute;
    bottom: 110px;
    z-index: 2;
}

.slide__title {
    opacity: 0;
    position: absolute;
    width: max-content;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.566);
    border-radius: 10px;
    padding: 10px;
}

.slide__title[data-active] {
    opacity: 1;
}

.carousel > ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: 0.3s opacity ease-in-out;
    transition-delay: 0.3s;
}

.slide[data-active] {
    opacity: 1;
    z-index: 1;
    transition-delay: 0ms;
}

.slide > img {
    border-radius: 20px;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel__button {
    position: absolute;
    background: none;
    border: none;
    transform: translateY(-50%);
    top: 50%;
    z-index: 2;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    padding: 0 2rem 1rem 2rem;
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s, color 0.3s;
}

.carousel__button:hover,
.carousel__button:focus {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
}

.carousel__button:focus {
    outline: 1px solid black;
}

.carousel__button.prev {
    left: 1rem;
}

.carousel__button.next {
    right: 1rem;
}

.carousel__tabs {
    align-items: center;
    border-radius: 10px;
    bottom: 0%;
    display: flex;
    height: 50px;
    padding: 0 20px;
    position: absolute;
    z-index: 2;
}

.carousel__tab {
    display: inline-block;
    width: 35px;
    height: 15px;
    border: 1px solid var(--color-secondary);
    margin: 0 10px;
    border-radius: 5px;
    background: var(--color-primary);
    position: relative;
    transition: 0.3s all ease-in-out;
}

.carousel__tab:hover {
    background-color: var(--color-primary-hover);
}

.carousel__tab::after,
.carousel__tab::before {
    --scale: 0;
    color: var(--color-text);
    content: attr(data-tooltip);
    font-size: 15px;
    padding: 8px;
    position: absolute;
    border-radius: 3px;
    bottom: 20px;
    left: 50%;
    width: max-content;
    background: var(--color-dark);
    text-align: center;
    transform: translateX(-50%) scale(var(--scale));
    transition: 0.3s transform;
    transform-origin: bottom center;
}

.carousel__tab:hover::before {
    --scale: 1;
}

.carousel__tab[data-active] {
    background: var(--color-text);
}

.callout-btns {
    margin-top: 1rem;
}

         /*  Services  */
        
.main-services a{
    text-decoration: none;
    display: block;
    color: #f0ffff;
}

.main-services a:hover{
    color: #004aebe4;
}

.service-img {
    background-image: url('../images/services.jpg');
    width: 100%;
    height: 650px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: .5;
}

.service-img h1 {
    font-size: 52px;
    color: #2D2F34;
    text-shadow: 0 0 2px #0e2aa6;
    text-align: center;
}

.block,
.block--grey {
    padding: 24px;
}

.list_of_services{
    display: block;
    list-style: none;
}

.list_of_services li a{
    font-size: 100%; 
}


.block--grey {
    background-color: #80858c;
}


.services__container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-content: center;
}

.service-item-block {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.service-content-block{
    width: 60%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-image-block {
    width: 40%;
    height: auto;
    filter: grayscale(100%);

}

.fffxxx:hover .service-image-block {
    filter: grayscale(0%);
}

.service-image-block img {
    padding: 40px;
    border-radius: 50px;
}

.service-breakdown h2 {
    text-align: center;
}



@media screen and (max-width: 1024px) {
    .carousel__container {
        padding: 48px;
    }

    .carousel__button {
        font-size: 3rem;
        padding: 0 1.5rem 0.75rem 1.5rem;
    }

    .carousel__button.prev {
        left: 0.75rem;
    }

    .carousel__button.next {
        right: 0.75rem;
    }

    .carousel__tab {
        width: 30px;
        height: 10px;
        margin: 0 10px;
    }
}

@media screen and (max-width: 768px) {
    .carousel__container {
        padding: 36px;
    }

    .carousel {
        height: 60vh;
    }

    .slide__title {
        top: -10%;
    }

    .carousel__button {
        font-size: 2.4rem;
        padding: 0 1.2rem 0.6rem 1.2rem;
    }

    .carousel__button.prev {
        left: 0.6rem;
    }

    .carousel__button.next {
        right: 0.6rem;
    }

    .carousel__tabs {
        height: 25px;
    }

    .carousel__tab {
        width: 20px;
        height: 10px;
    }

    .callout-btns {
        margin-top: 2.5rem;
    }
}

@media screen and (max-width: 480px) {
    .carousel__tab {
        margin: 0 5px;
    }
}

@media screen and (max-width: 428px) {
    .carousel__container {
        padding: 28px;
    }

    .carousel {
        height: 50vh;
    }

    .carousel__button {
        font-size: 2rem;
        padding: 0 1rem 0.5rem 1rem;
    }

    .carousel__button.prev {
        left: 0.5rem;
    }

    .carousel__button.next {
        right: 0.5rem;
    }

    .callout-btns {
        margin-top: 2rem;
    }
}

@media screen and (max-width: 376px) {
    .carousel {
        height: 40vh;
    }

    .carousel__button {
        font-size: 1.5rem;
    }

    .carousel__tabs {
        height: 25px;
    }
    
    .carousel__tab {
        width: 10px;
        height: 10px;
    }

    .carousel__tab::after,
    .carousel__tab::before {
        font-size: 12px;
    }
}

@media screen and (max-width: 324px) {
    .carousel__tabs {
        padding: 0 10px;
    }

    .carousel__button {
        font-size: 1.25rem;
        padding: 0 0.8rem 0.4rem 0.8rem;
    }

    .carousel__button.prev {
        left: 0.4rem;
    }

    .carousel__button.next {
        right: 0.4rem;
    }
}

.testimonials {
    color: var(--color-text);
    height: 250px;
    width: 100%;
    position: relative;
    background: var(--color-primary);
    border-radius: 20px;
    box-shadow: 0 0 2px 1px var(--color-secondary);
}

.testimonial__text {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 2.5rem 3.5rem;
    position: absolute;
    height: 100%;
    inset: 0;
    opacity: 0;
    text-align: center;
    transition: 0.3s opacity ease-in-out;
}

.testimonial__text[data-active] {
    opacity: 1;
}

.testimonials__button {
    position: absolute;
    background: none;
    border: none;
    color: var(--color-secondary);
    cursor: pointer;
    font-size: 3.5rem;
    top: 50%;
    transform: translateY(-50%);
    transition: 0.3s all ease-in-out;
    z-index: 2;
}

.testimonials__button:hover,
.testimonials__button:focus {
    color: var(--color-secondary-hover);
}

.testimonials__button:focus {
    outline: 1px solid black;
}

.testimonials__button.prev {
    left: 0.5rem;
    padding: 0;
}

.testimonials__button.next {
    right: 0.5rem;
    padding: 0;
}

.testimonial__tabs {
    align-items: center;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    bottom: 1%;
    left: 50%;
    display: flex;
    height: 30px;
    padding: 0 20px;
    position: absolute;
    transform: translateX(-50%);
    z-index: 2;
}

.testimonial__tab {
    cursor: pointer;
    display: inline-block;
    width: 30px;
    height: 10px;
    border: 1px solid var(--color-tertiary);
    margin: 0 10px;
    border-radius: 5px;
    background: var(--color-secondary);
    position: relative;
    transition: 0.3s all ease-in-out;
}

.testimonial__tab:hover,
.testimonial__tab:hover {
    background: var(--color-secondary-hover);
}

.testimonial__tab[data-active] {
    background: var(--color-text);
}

@media screen and (max-width: 768px) {
    .testimonial__text {
        padding-top: 1.5rem;
    }

    .testimonials__button {
        font-size: 2rem;
        top: 93%;
    }

    .testimonials__button.prev {
        left: 25%;
    }

    .testimonials__button.next {
        right: 25%;
    }
}

@media screen and (max-width: 550px) {
    .testimonials {
        height: 250px;
    }

    .testimonial__text {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }

    .testimonials__button.prev {
        left: 20%;
    }

    .testimonials__button.next {
        right: 20%;
    }
}

@media screen and (max-width: 440px) {
    .testimonials {
        height: 320px;
    }

    .testimonial__text {
        padding-top: 1rem;   
    }

    .testimonials__button {
        top: 94%;
    }

    .testimonials__button.prev {
        left: 15%;
    }

    .testimonials__button.next {
        right: 15%;
    }

    .testimonial__tab {
        width: 10px;
    }
}

@media screen and (max-width: 376px) {
    .testimonial__text {
        font-size: 13px;
    }

    .testimonials__button.prev {
        left: 10%;
    }

    .testimonials__button.next {
        right: 10%;
    }
}

@keyframes spin {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

/* FAQ page */

.faq__image {
    background: url(../images/faq.png);
    background-position: top left;
    background-repeat: no-repeat;
    background-size: contain;
    width: 25%;
    margin-top: 30px;
}

.faq-content {
    display: flex;
    flex-direction: row;
    font-family: Arial, Helvetica, sans-serif;
}

.faq-content section {
    width: 70%;
}

.faq__header {
    color: #efefef;
    text-align: center;
    line-height: 40px;
    padding: 1.5rem;
    padding-bottom: 2rem;
    border-radius: 20px;
    width: 60%;
    margin-left: 20% ;
}

.center-align {
    width: 90vw;
    margin: 0 auto;
    max-width: 1170px;
}

.question {
    background: var(--color-primary);
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
    color: var(--color-text);
    padding: 1.5rem 1.5rem 0 1.5rem;
    margin-bottom: 2rem;
}

.question__btn {
    font-size: 1.5rem;
    background: transparent;
    border-color: transparent;
    cursor: pointer;
    color: var(--color-secondary);
    transition: all 0.3s linear;
}

.question__btn:hover {
    transform: rotate(90deg);
    color: var(--color-text);
}

.question__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    padding-bottom: 1.5rem;
}

.question__content p {
    margin-bottom: 0;
    letter-spacing: 0.1rem;
}

.minus-icon {
    display: none;
}

.show-text .minus-icon {
    display: inline;
}

.show-text .plus-icon {
    display: none;
}

.answer__text {
    padding: 1rem 0 1.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.answer__text p {
    margin-bottom: 0;
    overflow: hidden;
}

.answer__text {
    display: none;
}

.show-text .answer__text {
    display: block;
}


/* Contact page */

.contact-card {
    margin-bottom: 3rem;
}

.contact-card__details {
    margin-bottom: 0;
}

.contact-card__information p > a, .contact-card__details span > a {
    color: #9ac3ff;
}

.contact-card__information p > a:hover, .contact-card__details span > a:hover {
    color: #71aaff;
}

.contact-card__information p > a:focus, .contact-card__details span > a:focus {
    color: #438fff;
}

.contact-card__image {
    align-items: center;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.card__header {
    margin-bottom: 0;
}

.fees-card > ul {
    list-style-type: disc;
}

@media screen and (min-width: 1024px) {
    .contact-card__information {
        justify-content: center;
        padding: 1rem;
    }

    .contact-card__image {
        height: 100%;
    }

    .fees-card > ul {
        padding: 0 3rem;
    }
    
}

/* Enquiries form */

.contact-form__container {
    color: var(--color-text);
    background-color: var(--color-primary);
    border-radius: 20px;
    padding: 1.5rem;
}

.contact-form__content {
    line-height: 1.5;
    padding: 2rem;
}

.contact-form__group {
    margin-bottom: 1rem;
}

.contact__input-field {
    width: 40%;
}

.contact-form__textarea {
    height: 30vh;
    width: 100%;
}

@media screen and (max-width: 1024px) {
    .contact__input-field {
        width: 50%;
    }
    .service-item-block {
        flex-direction: column;
    }
    .service-content-block{
        width: 100%;
        height: auto;
        text-align: center;
    }
    
    .service-image-block {
        width: 100%;    
    }
    #background {
        background-size: cover;
        background-position: top;
        height: 500px;
    }
    #container {
        margin: 0 0 5% -3%;
        transform: scale(.7);
    }
}

@media screen and (max-width: 767px) {
    .contact__input-field {
        width: 60%;
    }
    
}

@media screen and (max-width: 500px) {
    .contact-form__container {
        padding: 1rem;
    }

    .contact-form__content {
        padding: 1rem;
    }

    .contact-form__group {
       margin-bottom: 0.5rem;
    }
}

@media screen and (max-width: 480px) {
    .contact__input-field {
        width: 100%;
    }
    .service-img {
        background-size: cover;
        height: 250px;
    }
    .service-img h1 {
        font-size: 2rem;
    }
    .service-content-block{
        width: 100%;
        height: auto;
        text-align: center;
    }
    
    .service-image-block {
        width: 100%;    
    }
    .service-image-block img {
        padding: 10px;
        border-radius: 20px;
    }
    
}

/* For screens with width less than 870px */
@media (max-width: 870px) {

    /* Hero Section */
    .hero-image {
        background-size: 110%;
        height: 400px;
        background-position: top 60px left 0;
        align-items: flex-end;
        display: flex;
    }
   
        
    .service-holder--page {
        flex-direction: column;
        margin-bottom: 20px;
    }
    
    .service-img--page {
        width: 100%;
        margin-top: 3%;
        border-radius: 50px;
    }
    
    .service-par--page {
        width: 100%;
        padding: 3%;
    }

    .hero-div {
        margin: 0 0 0 10px;
        width: 40%;
    }

    .hero-div p {
        font-size: 16px;
        margin: 0;
    }

    .hero-div h2 {
        font-size: 16px;
        margin: 0;
        letter-spacing: normal;
    }

    /* About Section */
    .about-section {
        padding-top: 10px;
    }

    .about-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .about-section h1 {
        font-size: 30px;
        padding: 5px 20px;
        margin: 10px 0;
    }

    .about-image {
        width: 100%;
        height: auto;
        margin-bottom: 15px;
    }

    .about-image img {
        display: block;
        width: 100%;
    }

    .about-text {
        width: 90%;
        margin: 0;
    }

    .about-text h2 {
        font-size: 20px;
    }

    /* Circuit */
    .circuit-container {
        flex-direction: column;
        justify-content: center;
        padding-bottom: 30px;
        width: 90%;
    }

    .circuit-text {
        width: 90%;
        margin: 0;
    }

    .circuit-img {
        width: 80%;
        margin-top: 20px;
    }

    .circuit-text h2 {
        font-size: 4vw;
    }

    /* Contact */
    .contact-img {
        background-position: center;
    }

    /* Footer */
    .footer-contact {
        padding-left: 10px;
    }

    .footer-map iframe {
        width: 100%;
        margin-left: 0;
        padding: 10px;
    }

    .footer-map {
        padding-right: 10px;
    }

    .faq__image {
        background-position: center;
        background-size: contain;
        width: 50%;
        height: 200px;
        margin: 0 auto;
        margin-top: 30px;
    }
    
    .faq-content {
        flex-direction: column;
    }
    
    .faq-content section {
        width: 100%;
        padding: 0;
    }

}

/* For screens with width less than 740px */
@media (max-width: 740px) {

    /* Header */
    header {
        flex-direction: column;
        justify-content: center;
    }

    header>a {
        margin: 0;
    }

    nav {
        width: 100%;
    }

    ul {
        display: flex;
        justify-content: space-around;
    }

    nav li a {
        font-size: 17px;
        letter-spacing: 1px;
        font-weight: 600;
    }

    nav ul {
        padding: 0;
    }
    .hero-div {
        margin: 0 auto;
        width: 70%;
        padding: 10px;
        padding-top: 10px;
        padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 10px;
    }

.block,
.block--grey {
    padding: 5px;
}

.contact-card {
    margin-bottom: 1rem;
}

    .hero-div p {
        font-size: 15px;
    }

    .hero-div h2 {
        font-size: 15px;
        letter-spacing: normal;
    }
    /* Footer */
    .footer-div {
        padding: 10px;
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
    }
    .footer-contact {
        width: 100%;
        height: auto;
        text-align: center;        
        margin: 20px;
        padding-left: 0;
        order: 1;
    }
    .footer-social {
        width: 70%;
        padding-top: 20px;
        order: 3;
    }
    .footer-links {
        width: 100%;
        text-align: center;
        margin-right: 0;
    }
    .footer-links ul{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-content: center;
        padding-left: 0;
    }

    .footer-links ul h3{
        font-size: 19px;
    }

    .footer-links ul li a{
        font-size: 16px;
    }

    #background {
        background-size: contain;
        background-position: top;
        height: 400px;
    }
    #container {
        margin: 0 auto;
    }

}

/* For screens with width less than 600px */
@media (max-width: 600px) {

    /* Hero Section */
    .hero-image {
        height: 320px;
    }

    /* Contact Section */
    .form-div {
        width: 90%;
        margin-left: 13px;
        overflow: hidden;
        padding: 37px 5px 10px 5px;
    }
    
}

/* For screen with width under 420px */
@media (max-width: 420px) {

    /* Navigation Bar */
    nav li a {
        font-size: 13px;
        margin: 5px;
    }

    /* About Section */
    .about-section h1 {
        font-size: 22px;
    }


}

@property --gradient-angle {
    syntax: "<angle>";
    initial-value: 90deg;
    inherits: false;
}
