@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800&display=swap");

* {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.nav-container {
    position: fixed;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-right: 30px;
    padding-left: 20px;
    height: 80px;
    color: #fff;
    z-index: 1000;
}

.nav-container ul {
    display: flex;
    list-style: none;
    gap: 20px;
    font-size: 15px;
}

.nav-container ul li {
    cursor: pointer;
    transition: 0.5s;
    padding: 3px 10px;
    border-radius: 5px;
}

.nav-container ul li:hover,
.nav-container .icons i:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.logo {
    width: 120px;
    height: 30px;
    cursor: pointer;
    filter: brightness(0) invert(1);
}

.nav-container .icons {
    display: flex;
    font-size: 25px;
    gap: 10px;
    cursor: pointer;
}

.nav-container .icons i {
    border-radius: 50%;
    padding: 3px;
    transition: 0.5s;
}

.pages{
    display: flex;
    justify-content: center;
    list-style-type: none;
    text-align: center;
    flex-direction: column;
}

.pages li{
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    justify-content: space-between;
    padding-top: 150px;
    padding-bottom: 10px;
    color: #fff;
    scroll-snap-align: start;
    overflow: hidden;
}

.pages li video,
.pages li img{
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.pages-info h1{
    letter-spacing: 1px;
    font-size: 40px;
}

.page-info h1,
.page-info h3{
    font-weight: 500;
}

.page-info.model-x{
    color: #333;
}

.page-info.model-x p{
    font-size: 12px;
}

.page-footer .buttons{
    margin-bottom: 25px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.page-footer .buttons button{
    font-size: 13px;
    padding: 7px 80px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.page-footer .buttons button:first-child{
    background-color: rgba(34, 34, 34, 0.8);
    color: #fff;
}

.page-footer .buttons button:last-child{
    background-color: rgba(255, 255, 255, 0.75);
}
.page-footer .buttons.inverted button:first-child{
    background-color: rgba(255, 255, 255, 0.75);
    color: #333;
}

.page-footer .buttons.inverted button:last-child{
    background-color: rgba(34, 34, 34, 0.8);
    color: #fff;
}

.page-footer p,
.page-footer a{
    font-size: 12px;
    color: #fff;
}

.page-footer .buttons.demo-drive button{
    background-color: transparent;
    color: #fff;
    border: 3px solid #fff;
}

#model-y-info,
#model-y-footer {
    opacity: 0;
    transform: translateY(50px);
    transition: 3s;
}

/* Mega menu base styling */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    padding: 10px 15px;
    display: block;
}

.nav-links a:hover {
    border-radius: 5px;
}

.mega-menu h3
{
    color: black;
}

/* Mega menu styling */
.mega-menu {
    display: none;
    position: absolute;
    left: 10%;
    top: 80%;
    transform: translateX(-50%); /* Center the dropdown */
    background-color: #fff;
    padding: 50px 50px;
    width: 50vw; /* Adjust width as needed */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
    box-sizing: border-box; /* Ensure padding and borders are included in the width/height */
}



/* Show mega menu on hover */
.nav-links li.dropdown:hover .mega-menu {
    display: flex;
}

/* Clear floats */
.mega-menu:after {
    content: '';
    display: block;
    clear: both;
}

a img {
    width: 300px; /* Adjust the width as needed */
    height: 100px; /* Adjust the height as needed */
    object-fit: cover; /* Ensures the image fits within the specified dimensions */
    display: block; /* Ensures the image and text are stacked vertically */
    margin: 0 auto; /* Center the image horizontally */
}

a span {
    display: block; /* Ensure the text is on a new line */
    text-align: center; /* Center the text below the image */
    margin-top: 5px; /* Add some space between the image and the text */
    font-weight: bold; /* Optional: make the text bold */
}


.image-text-link {
    display: flex;
    align-items: center; /* Vertically centers the text with the image */
    gap: 10px; /* Space between the image and text */
    text-decoration: none; /* Optional: remove underline from the link */
    padding-right: 100px;
}

.image-text-link img {
    width: 135px; /* Adjust size as needed */
    height: auto; /* Maintain aspect ratio */
}

.image-text-link span {
    font-size: 16px; /* Adjust text size as needed */
    color: #444; /* Optional: text color */
}

.divider-container {
    display: flex;
    align-items: center; /* Center text vertically with the divider */
    margin: 20px 0; /* Add spacing around the container */
    position: relative; /* For positioning the divider line */
}

/* Style for the text next to the divider */
.divider-text {
    color: black;
    display: flex;
    flex-direction: column; /* Stack text lines vertically */
    align-items: center; /* Center text horizontally */
    z-index: 1; /* Ensure text is above the divider */
    padding: 10px;
}

.divider-text span {
    font-weight: lighter; /* Optional: make the text bold */
    display: block;
    margin: 0 0 5px; /* Space between text lines */
    font-size: 16px; /* Adjust text size as needed */
    text-align: center; /* Center text horizontally */
}

.divider-text-title
{
    font-weight: bold;
    font-size: 110px;
    padding-bottom: 20px;

}
