body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: black;
    color: white;
    scroll-behavior: smooth;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 20px 50px;
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
    z-index: 1000;
}

.logo {
    font-size: 2.2em;
    font-weight: bold;
    color: #FFD700;
    letter-spacing: 3px;
    text-shadow: 0px 0px 20px rgba(255, 215, 0, 0.8);
    text-transform: uppercase;
}

nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;  /* Aligns items to the right */
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0px;  /* Adjust spacing between items */
    margin: 0;
    padding: 0;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;  /* Removes underline */
    font-weight: bold;
    font-size: 1.2em;
    padding: 10px 20px;
    transition: color 0.3s ease-in-out;
    display: inline-block;
}

nav ul li a:hover {
    color: #FFD700;
    text-shadow: 0px 0px 15px rgba(255, 215, 0, 0.8);
}

nav ul li:last-child {
    margin-right: 50px; 
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    
    nav {
        width: 100%;
        justify-content: center;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul li {
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        width: 100%;
    }
}

.hero {
    background: url('C:\Users\shahs\Downloads\CUBICLES TASK 4\Supra Mk4.jpeg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 3em;
    font-weight: bold;
    text-shadow: 5px 5px 20px rgba(255, 215, 0, 0.9);
    animation: fadeIn 1.5s ease-in-out;
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh; /* Full screen height */
    overflow: hidden;
    align-items: center;
}

.hero video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures full coverage without distortion */
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

section {
    padding: 80px 50px;
    text-align: center;
}

.featured-cars {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

.car {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0px 4px 15px rgba(255, 215, 0, 0.3);
    transition: transform 0.3s ease-in-out;
}

.car img {
    width: 100%;
    height: auto; 
    border-radius: 10px;
}

.car h3 {
    margin-top: 10px;
    font-size: 1.2em;
    color: #fff;
}

.car:hover {
    transform: scale(1.05);
}

.car-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

.car-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0px 4px 15px rgba(255, 215, 0, 0.3);
    transition: transform 0.3s ease-in-out;
}

.car-item img {
    width: 100%;
    height:300px ; 
    border-radius: 10px;
}

.car-item h3 {
    margin-top: 10px;
    font-size: 1.2em;
    color: #fff;
}

.car-item:hover {
    transform: scale(1.05);
}

#contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 600px;
    height: 355px;
    margin: auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0px 4px 15px rgba(255, 215, 0, 0.5);
    transition: transform 0.3s ease-in-out;
}

form:hover {
    transform: scale(1.05);
}

input, textarea {
    padding: 12px;
    font-size: 1em;
    border: 2px solid #FFD700;
    border-radius: 5px;
    background: #222;
    color: white;
    transition: border-color 0.3s ease-in-out;
}

input:focus, textarea:focus {
    border-color: #FFA500;
    box-shadow: 0px 0px 10px rgba(255, 165, 0, 0.8);
    outline: none;
}

button {
    background: linear-gradient(90deg, #FFD700, #FFA500);
    color: black;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    transition: background 0.3s ease-in-out, transform 0.2s;
}

button:hover {
    background: white;
    color: black;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    .hero {
        font-size: 2em;
    }
    .car-gallery, .featured-cars {
        flex-direction: column;
        align-items: center;
    }
    nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

#about {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(255, 215, 0, 0.3);
}

#about h2 {
    font-size: 2.5em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.about-section {
    margin-bottom: 30px;
}

.about-section h3 {
    font-size: 1.8em;
    color: #FFA500;
    margin-bottom: 10px;
    text-transform: uppercase;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 5px;
}

.about-section p {
    font-size: 1.2em;
    color: #ddd;
    line-height: 1.8;
    text-align: justify;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

form {
    flex: 1;
    max-width: 50%;
}

iframe {
    flex: 1;
    max-width: 50%;
    border-radius: 10px;
}

.services-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    text-align: center;
}

.service {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(255, 215, 0, 0.5);
    transition: transform 0.3s ease-in-out;
}

.service:hover {
    transform: scale(1.05);
}

.price {
    font-size: 1.2em;
    font-weight: bold;
    color: gold;
    margin-top: 5px;
}


