@import url('https://fonts.cdnfonts.com/css/ica-rubrik-black');
@import url('https://fonts.cdnfonts.com/css/poppins');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #D2D2D2;
    background-image:
        repeating-linear-gradient(
            to right, transparent 0 100px,
            #25283b22 100px 101px
        ),
        repeating-linear-gradient(
            to bottom, transparent 0 100px,
            #25283b22 100px 101px
        );
}

body::before {
    position: absolute;
    width: min(1400px, 90vw);
    top: 10%;
    left: 50%;
    height: 90%;
    transform: translateX(-50%);
    content: '';
    background-image: url('https://res.cloudinary.com/dpuqctqfl/image/upload/v1752333862/bg_sdp9bk.png');
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: top center;
    pointer-events: none;
}

.banner {
    width: 100%;
    height: 100vh;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.banner .slider {
    position: absolute;
    width: 150px;
    height: 200px;
    top: 10%;
    left: calc(50% - 75px);
    transform-style: preserve-3d;
    transform: perspective(1000px);
    animation: autoRun 30s linear infinite;
    z-index: 2;
    transition: transform 0.5s ease;
}

/* Paused animation */
.paused {
    animation-play-state: paused !important;
}

.banner .slider .item {
    position: absolute;
    inset: 0 0 0 0;
    transform: rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)) translateZ(450px);
    transition: transform 0.5s ease, filter 0.5s ease;
}

.banner .slider .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.5s ease, transform 0.5s ease;
}

.banner .slider:hover .item img {
    filter: grayscale(100%);
}

.banner .slider .item:hover img {
    filter: grayscale(0%);
    transform: scale(0.9);
}

@keyframes autoRun {
    from {
        transform: perspective(1000px) rotateX(-16deg) rotateY(0deg);
    }
    to {
        transform: perspective(1000px) rotateX(-16deg) rotateY(360deg);
    }
}

.banner .content {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1400px, 100vw);
    height: max-content;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1;
}

.banner .content h1 {
    font-family: 'ICA Rubrik';
    font-size: 16em;
    line-height: 1em;
    color: #25283B;
    position: relative;
    text-align: center;
}

.banner .content h1::after {
    position: absolute;
    inset: 0 0 0 0;
    content: attr(data-content);
    z-index: 2;
    -webkit-text-stroke: 2px #d2d2d2;
    color: transparent;
}

.banner .content .author {
    font-family: Poppins;
    text-align: right;
    max-width: 200px;
}

.banner .content h2 {
    font-size: 3em;
}

.banner .content .model {
    background-image: url('https://res.cloudinary.com/dpuqctqfl/image/upload/v1752333865/depressed_pepcab.png');
    width: 100%;
    height: 75vh;
    position: absolute;
    bottom: 0;
    left: 0;
    background-size: auto 130%;
    background-repeat: no-repeat;
    background-position: top center;
    z-index: 1;
}

@media screen and (max-width: 1023px) {
    .banner .slider {
        width: 120px;
        height: 160px;
        left: calc(50% - 60px);
    }

    .banner .slider .item {
        transform: rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)) translateZ(350px);
    }

    .banner .content h1 {
        font-size: 7em;
    }

    .banner .content .model {
        background-size: auto 150%;
    }
}

@media screen and (max-width: 767px) {
    .banner .slider {
        width: 100px;
        height: 130px;
        left: calc(50% - 50px);
    }

    .banner .slider .item {
        transform: rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)) translateZ(250px);
    }

    .banner .content h1 {
        font-size: 5em;
    }

    .banner .content .model {
        background-size: auto 180%;
    }
}

/* New CSS for menu */
.menu-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.menu-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
}

.menu-button img {
    display: block; /* Ensure the image is a block element */
    width: 40px; /* Adjust size as needed */
    height: auto; /* Maintain aspect ratio */
}

/* Dropdown Menu Container */
.dropdown-menu {
    display: none; /* Hide the dropdown menu by default */
    position: absolute; /* Position dropdown menu */
    top: 100%; /* Position it below the button */
    left: 0;
    background: linear-gradient(to top, #6EACDA, #0E2954); /* Updated vertical gradient background */
    border: 1px solid #ddd; /* Border of dropdown */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Shadow for dropdown */
    border-radius: 8px; /* Rounded corners */
    padding: 10px 0; /* Padding inside the dropdown */
    width: 200px; /* Set a fixed width */
    z-index: 1000; /* Ensure dropdown is on top */
    color: white; /* White text color */
}

/* Close Button */
.close-button {
    background: none; /* Remove default button background */
    border: none; /* Remove default button border */
    font-size: 24px; /* Font size for the close button */
    color: white; /* White color for the close button */
    cursor: pointer; /* Change cursor to pointer for button */
    position: absolute; /* Position close button */
    top: 10px;
    right: 10px;
}

/* Dropdown Menu Items */
.dropdown-menu ul {
    list-style: none; /* Remove bullet points */
    padding: 0;
    margin: 0;
}

.dropdown-menu li {
    padding: 10px 20px; /* Padding for each menu item */
    border-bottom: 1px solid #ddd; /* Separation line between menu items */
}

.dropdown-menu li:last-child {
    border-bottom: none; /* Remove border for the last item */
}

.dropdown-menu li a {
    text-decoration: none; /* Remove underline from links */
    color: black; /* Black text color */
    display: block; /* Ensure the link takes up the full width */
    font-family: 'Arial', sans-serif; /* Font for menu items */
    font-size: 16px; /* Font size for menu items */
    transition: color 0.3s; /* Smooth transition for text color */
}

.dropdown-menu li a:hover {
    color: gainsboro; /* Dark grey text color on hover */
    background-color: transparent; /* No background color on hover */
}

/* Optional: Add smooth animation for dropdown menu */
.dropdown-menu.show {
    display: block;
    animation: fadeIn 0.3s; /* Fade in animation */
}

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



.dropdown-menu.active {
    display: block;
}

.dropdown-menu .close-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
}



/* Description modal */
.description-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.description-overlay.active {
    display: flex;
}

.description-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;
}

.description-content p {
    font-size: 16px;
    color:#333;
}