* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    margin: 0;
    background-color: black;
    scrollbar-color: yellow  #B2022F;
    font-family: "Poppins", sans-serif;
}
body::-webkit-scrollbar-thumb {
    border-radius: 10%;
}
.curtain {
    position: absolute;
    width: 100vw;
    height: 100vh;
    background: url('https://cdn.ferrari.com/cms/network/media/img/resize/662cc0bb2130a100213ccaa9-ferrari-12cilindri-interior-steering-wheel-desk?') no-repeat center center;
    background-size: cover;
    z-index: 10;
}
.start-button {
    position: absolute;
    top: 71%;
    left: 34%;
    transform: translate(-50%, -50%);
    z-index: 20;
    border: none;
    padding: 3px;
    cursor: pointer;
    box-shadow: 0 0 65px rgba(255, 0, 0, 0.5);
    transition: transform 0.2s;
    height: 6vh;
    width: 20vh;
}

@media (max-width: 600px) {
    .start-button {
        padding: 15px;
        font-size: 1em;
    }
}
.full-screen-logo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black; /* Optional background color */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's above other content */
    transition: opacity 3s ease; /* Fade transition */
}
.full-screen-logo img {
    max-width: 80%; /* Adjust logo size as needed */
    max-height: 80%;
    opacity: 1; /* Start with full opacity */
    transition: opacity 3s ease; /* Fade transition */
}
html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    background-color: black;
}
.nav-bar {
    width: 99vw;
    height: 10vh;
    display: flex;
    align-items: center;
    background-color: black;
    position: fixed;
    z-index: 2;
}
.ferrari-logo {
    margin-left: 25px;
    width: 50px;
    height: 50px;
}
.nav-bar ul {
    display: flex;
    color: whitesmoke;
    list-style-type: none;
    z-index: 10;
}
.nav-bar a {
    text-decoration: none;
    color: whitesmoke;
}
.nav-bar a:hover {
    color: #B2022F;
}
.nav-bar ul li {
    margin-left: 50px;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
}
.nav-bar p{
    color: whitesmoke;
    margin-left: 50px;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    position: fixed;
    right: 25px;
    font-size: 16px;
}
.main-one {
    width: 100%;
    height: 100vh;
    position: relative;
    top: 10vh;
    overflow: hidden;
}
.swiper-slide-main{
    width: 100%;
    height: 100%;
    background-color: black;
}
.main-img{
    height: 100%;
    width: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}
.main-vid {
    height: 100%;
    object-fit: cover;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}
.main-content {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    text-align: center;
    color: whitesmoke;
    display: flex;
    flex-direction: column;
}
.main-content .main-title,
.main-content .main-quote,
.main-content .main-discover {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
}
.main-content .main-title {
    font-size: 20px;
    letter-spacing: 10px;
}
.main-content .main-quote {
    font-size: 25px;
    text-transform: uppercase;
    letter-spacing: 10px;
}
.main-content .main-discover {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 10px;
}
.main-content .main-discover-link {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: whitesmoke;
    margin-top: 10px;
}
.main-content .main-discover-link:hover {
    color: #B2022F;
}
.main-content .right-arrow {
    width: 20px;
    height: 20px;
    fill: whitesmoke;
}
.main-content .main-discover-link:hover .right-arrow {
    fill: #B2022F;
}
.main-two, .main-three, .main-four, .main-five {
    height: auto;
    position: relative;
    top: 10vh;
    margin-bottom: 8vh;
}
.main-four,.main-five{
    height: auto;
}
.swiper-container {
    width: 100%;
    height: 100%;
}
.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: whitesmoke;
    background: whitesmoke;
}
.swiper-slide-one, .swiper-slide-two, .swiper-slide-three,
.swiper-slide-four, .swiper-slide-five, .swiper-slide-six{
    width: 100%;
    height: 100%;
    display: flex;
    background-color: black;
}
.swiper-slide-one{
    display: flex;
    flex-direction: column;
}
.swiper-slide-one-up{
    height: 50%;
    width: 100%;
    display: flex;
}
.swiper-slide-one-up-left, .swiper-slide-one-up-right{
    width: 50%;
    height: 100%;
}
.swiper-slide-one-down{
    height: 50%;
    width: 100%;
}
.swiper-slide-one img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.more-width{
    width: 60%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.more-width img{
    width: 80%;
    height: 60%;
    object-fit: cover;
}
.less-width{
    width: 40%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #B2022F;
}
.less-width p{
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
    letter-spacing: 5px;
    width: 80%;
    color: whitesmoke;
}
.swiper-pagination {
    color: whitesmoke;
}
.swiper-pagination-bullet {
    background-color: black !important;
}
.swiper-slide-sports{
    width: 100%;
    height: 100%;
    display: flex;
    background-color: black;
}
.swiper-slide-sports-left, .swiper-slide-sports-right{
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.swiper-slide-sports-left-up, .swiper-slide-sports-left-down, 
.swiper-slide-sports-right-up, .swiper-slide-sports-right-down{
    width: 100%;
    height: 50%;
}
.swiper-slide-sports img{
    width: 100%; 
    height: 100%;
}
.main-six {
    background-color: black;
    display: flex;
    height: 90vh;
    width: 100vw;
    position: relative;
    top: 10vh;
    align-items: center;
    justify-content: center;
}
.left{
    width: 65vw;
    height: 90vh;
}
.right{
    width: 25vw;
    height: 90vh;
    color: #B2022F;
}

.engine-details {
    display: none;
    width: 25vw;
    height: 90vh;
    color: #B2022F;
}
model-viewer{
    width:100%;
    height:600px;
    background-color:black;
    }

.left:hover + .car-details .right {
    display: none;
}
.left:hover + .car-details .engine-details {
    display: block;
}
.discover{
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    text-align: center;
    color: whitesmoke;
    display: flex;
    flex-direction: column;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 10px;
}
.discover .main-discover-link{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: whitesmoke;
    margin-top: 20px;
}
.discover .main-discover-link:hover {
    color: #B2022F;
}

.discover .right-arrow {
    width: 20px;
    height: 20px;
    fill: black;
}
.discover .main-discover-link:hover .right-arrow {
    fill: #B2022F;
}
.image-zoom {
    transition: transform 0.3s ease;
}
.image-zoom:hover {
    transform: scale(1.1);
}
.swiper-slide-collection {
    width: 100%;
    height: 100%;
    background-color: black;
    display: flex;
}
.swiper-slide-collection-one-left, .swiper-slide-collection-two-right {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.swiper-slide-collection-one-left-up, .swiper-slide-collection-one-left-down,
.swiper-slide-collection-two-right-up, .swiper-slide-collection-two-right-down {
    width: 100%;
    height: 50%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.price-img {
    display: flex;
    flex-direction: column;
    width: 42.5%;
    height: 95%;
    position: relative;
}
.price-img img {
    width: 100%;
    height: 100%;
}
.price-img p {
    width: 100%;
    height: 7.5%;
}
.collec-name {
    padding: 1px;
    color: whitesmoke;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
}
.collec-price {
    padding: 1px;
    color: whitesmoke;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
}
.swiper-slide-collection-one-right, .swiper-slide-collection-two-left {
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.swiper-slide-collection-one-right img, .swiper-slide-collection-two-left img {
    width: 80%;
    height: 95%;
}
.img-container {
    position: relative;
    width: 100%;
    height: 85%;
}
.img-container .hover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.img-container:hover .hover-img {
    opacity: 1;
}

.img-container .original-img {
    transition: opacity 0.3s ease;
}
.img-container:hover .original-img {
    opacity: 0;
}
.main-five {
    background-color: #000; /* Black background */
    color: whitesmoke; /* whitesmoke text */
    padding: 20px;
    font-family: "Poppins", sans-serif;
    height: auto;
}

.swiper-container {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide-collection {
    background-color: #000;
    color: whitesmoke;
    display: flex;
    justify-content: space-between;
    width: 100%;
}
.swiper-slide-collection-four {
    background-color: black;
    display: flex;
    justify-content: space-between;
    width: 100%;
}
.swiper-slide-collection-one-left,
.swiper-slide-collection-two-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 50%;
}

.car-info {
    margin: 20px 0;
    transition: transform 0.3s, color 0.3s; /* Add smooth transition for hover effect */
}

.car-info:hover {
    transform: scale(1.05); /* Slightly increase size on hover */
    color: #f00; /* Change text color to #B2022F on hover */
}

.car-img {
    height: 50vh;
    width: 65vh;
    border-radius: 10px;
    margin-bottom: 10px;
    
}
.car-img:hover{
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5); /* #B2022F shadow */
}

.car-name {
    font-size: 24px;
    color: #f00; /* Ferrari #B2022F */
    margin: 10px 0;
}

.car-description {
    font-size: 16px;
    color: whitesmoke;
    margin-bottom: 10px;
}

.car-price {
    font-size: 20px;
    font-weight: bold;
    color: #f00; /* Ferrari #B2022F */
}

.banner-img {
    width: 100%;
    border-radius: 10px;
    
}
.banner-img:hover{
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5); /* #B2022F shadow */
}

.swiper-pagination {
    color: whitesmoke;
}

/* Add a hover effect to the car-info text */
.car-info h3:hover,
.car-info p:hover {
    color: #f00; /* Change to Ferrari #B2022F on hover */
}
.main-4-half {
    width: 100%;
    height: 210vh;
    margin-top: 10vh;
    margin-bottom: 10vh;
    display: flex;
    justify-content: left;
    flex-direction: column;
    
}

.main-4-halfimg-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.main-4-halfimg {
    width: 100%; /* Each image takes half the viewport width */
    height: auto; /* Maintain aspect ratio */
}

.main-4-half:hover .main-4-halfimg-container {
    transform: translateX(-50vw); /* Move the container left by half the viewport width on hover */
}
.text-under-img {
    padding: 10px;
    margin-left: 20px;
    margin-top: 10px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background for better readability */
    border-radius: 5px;
}

.text-under-img h3 {
    margin: 0;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    color: white
    
}
.final-main {
    margin-top: 10vh;
    font-family: "Poppins", sans-serif;
    background-color: #000;
    color: #fff;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    width: 80%;
    max-width: 1200px;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    margin: 20px;
}

.footer-section h4 {
    color: #ff0000; /* Ferrari red */
    margin-bottom: 20px;
    font-family: 'Geologica', sans-serif;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #ff0000; /* Ferrari red */
}

.footer-section form {
    display: flex;
    flex-direction: column;
}

.footer-section input[type="email"] {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ff0000; /* Ferrari red */
    border-radius: 5px;
    background-color: #000;
    color: #fff;
}

.footer-section button {
    padding: 10px;
    background-color: #ff0000; /* Ferrari red */
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.footer-section button:hover {
    background-color: #cc0000; /* Darker red */
}

.social-media {
    text-align: center;
}

.social-icons a {
    margin: 0 10px;
    display: inline-block;
}

.social-icons img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s;
}

.social-icons img:hover {
    transform: scale(1.1);
}
.for-font h4{
    font-family: "Poppins", sans-serif;
}