/* Reset default styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    background-color: #000;
    color: #fff;
    font-family: Arial, sans-serif;
}

/* Main Container */
.container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Centered Tesla Logo */
.logo {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    cursor: pointer;
    z-index: 10;
}

/* Main Details Styling (Left-Aligned for Desktop) */
.details {
    position: absolute;
    top: 15%;
    left: 5%;
    max-width: 40%;
    text-align: left;
    z-index: 2;
}

/* Text Styling */
h1 {
    font-size: 2.5rem;
}

.highlight {
    color: #bc1823;
}

.upgrade {
    font-size: 1.2rem;
    margin-top: 1rem;
}

.features {
    list-style: none;
    margin-top: 1rem;
}

.features li {
    font-size: 1.1rem;
    margin: 0.3rem 0;
}

.price {
    color: #bc1823;
    font-size: 3rem;
    margin-top: 1rem;
}

/* Centered and Responsive Video */
.car-video-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: auto;
    max-width: 1200px;
    max-height: 700px;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

.car-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Specifications Styling */
.specs {
    position: absolute;
    top: 80%;
    right: 5%;
    text-align: right;
    font-size: 1.8rem;
    opacity: 0;
    animation: slide-in 1.5s forwards;
}

/* Contact Button Styling */
.contact-btn {
    position: absolute;
    bottom: 5%;
    background-color: transparent;
    color: #bc1823;
    border: 2px solid #bc1823;
    padding: 0.7rem 2.5rem;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    animation: fade-in 2s forwards;
}

.contact-btn:hover {
    background-color: #bc1823;
    color: #fff;
    transform: scale(1.05);
}

/* Mobile Layout Styles */
@media (max-width: 768px) {
    /* Adjust container layout for mobile */
    .container {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    /* Center the Tesla logo at the top */
    .logo {
        position: relative;
        top: 20px;
        left: auto;
        transform: translateX(0);
        width: 80px;
    }

    /* Centered video for mobile */
    .car-video-container {
        position: relative;
        top: 0;
        width: 90%;
        max-width: 500px;
        height: auto;
        margin-top: 20px;
    }

    /* Center the main details section */
    .details {
        position: relative;
        top: 0;
        left: auto;
        max-width: 90%;
        text-align: center;
        margin-top: 20px;
    }

    /* Adjust text sizes for mobile */
    h1 {
        font-size: 1.8rem;
    }

    .features li {
        font-size: 1rem;
    }

    .price {
        font-size: 2rem;
    }

    /* Center the specifications section */
    .specs {
        position: relative;
        top: 0;
        right: auto;
        text-align: center;
        margin-top: 20px;
        font-size: 1.2rem;
    }

    /* Center the contact button */
    .contact-btn {
        position: relative;
        bottom: 20px;
        margin-top: 20px;
        font-size: 1rem;
        padding: 0.5rem 1.5rem;
    }
}

/* Animations */
@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slide-in {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fade-in 1.5s ease-in-out forwards;
}

.animate-slide-in {
    animation: slide-in 1.5s ease-in-out forwards;
}
