.body {
    overflow: auto;
}

.section {
    width: 100%;
    background-color: #aaa;
    color: black;
    min-height: fit-content;
}

.sec1 {
    height: 90vh;
    color: #fff;
    display: flex;
    align-items: center;
    position: relative;
}

.mycontrast-filter {
    background-image: url("../images/Car in garage.jpeg");
    background-position: center center;
    height: 100%;
    width: 100%;
    transition: filter 5s;
    position: absolute;
}

.mycontrast-filter:hover {
    background-color: #fff;
    filter: contrast(110%);
}

.sec1 h2 {
    --padding_value: 50px;
    height: 100%;
    width: 400px;
    padding: 0 var(--padding_value);
    display: flex;
    align-items: center;
    position: relative;
    right: calc(400px + (var(--padding_value) * 2));
    animation: gliding_left_to_right 1.25s ease-in-out 0.75s forwards;
    backdrop-filter: blur(2px) brightness(0.5);
}

@keyframes gliding_left_to_right {
    to {
        right: 0;
    }
}

.sec2 {
    padding: 20px;
    background: linear-gradient(to bottom, #1a1f36, #0d0f1a);
}

.sec2 h1 {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 80px;
}

.sec2 .brand_logo_container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 0 20%;
    gap: 20px;
}

.sec2 .brand_logo_container .car_brand_box {
    background: #25293c;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.5s ease, box-shadow 0.5s ease, background-color 0.5s ease;
    height: 150px;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.sec2 .brand_logo_container .car_brand_box:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    filter: contrast(1.2);
    background-color: #35394c;
}

.sec2 .brand_logo_container .car_brand_box img {
    width: 100%;
    height: 100%;
}

.sec3 {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.bg-vid {
    height: 100%;
    object-fit: cover;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    transition: filter 15s, transform 5s;
}

.bg-vid:hover {
    filter: contrast(1.5);
    transform: scale(1.25);
}

.sec3content {
    --padding_value: 50px;
    background-color: #222c;
    height: 100%;
    width: 400px;
    padding: 0 var(--padding_value);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    top: 0;
    z-index: 10;
    color: white;
}

.sec3content h1 {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 50px;
    font-size: 60px;
}

.services-section {
    padding: 50px 20px;
    background: linear-gradient(to bottom, #1a1f36, #0d0f1a);
    color: white;
    text-align: center;
}

.services-section h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.services-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    background: #25293c;
    border-radius: 10px;
    text-align: center;
    height: 400px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.service-card img {
    width: 100%;
    border-radius: 10px 10px 0px 0px;
    height: 250px;
    margin-bottom: 15px;
    object-fit: cover;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.4;
    color: #ccc;
}

.cta-button {
    margin-top: 30px;
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.5s ease;
}

.cta-button:hover {
    background: #0056b3;
}

/* General Section Styling */
.gallery-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Slider Styling */
.slider {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradient Overlay */
.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
    z-index: 1;
}

/* Text Styling */
.slide-text {
    position: absolute;
    left: 10%;
    z-index: 2;
    color: white;
    max-width: 40%;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.slide-text h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.slide-text p {
    font-size: 1.2rem;
    line-height: 1.5;
}

/* Active Slide */
.slide.active {
    display: flex;
}


@media screen and (max-width: 1000px) {
    .sec1{
        height: 60vh;
    }
    
    .sec1 h2 {
        width: 100%;
        right: calc(100% + (var(--padding_value) * 2));
    }
    
    .sec2{
        padding: 20px 0;
    }

    .sec2 .brand_logo_container{
        padding: 20px;
    }

    .sec2 .brand_logo_container .car_brand_box{
        padding: 10px;
        height: 125px;
    }

    .sec3{
        min-height: 60vh
    }

    .sec3content {
        width: 100%;
        min-height: 60vh
    }
    
    .sec3content h1 {
        text-align: center;
        margin-top: 30px;
        margin-bottom: 50px;
        font-size: 60px;
    }
}