* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-style: normal;
}

body {
    /* Replace with your image path */
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    overflow-x: hidden;
    /* Prevents horizontal scrolling */
    flex-direction: column;
    min-height: 100vh;
    display: flex;
    position: relative;
}

html {
    width: 100%;
    height: 100%; /* Ensures that the body takes the full height of the viewport */
    max-width: 100%;
    overflow-x: hidden; /* Prevents horizontal scrolling */
    margin: 0;
    padding: 0;
    position: relative;
}

header img {
    width: 120px;
    z-index: 100000;
}

header {
    display: flex;
    justify-content: space-between; /* This will place space between the logo and the menu icon */
    align-items: center; /* Vertically align images in the center */
    position: relative;
    width: 100%; /* Ensures header takes full width of the screen */
    z-index: 1000; /* Ensure header stays on top */
    margin-top: -40px;
}

.gallery {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 130px;
    height: auto;
    margin-top: 10px;
}

.menuToggle {
    width: 110px;
    height: 130px;
    transform: translateX(-30px);
    cursor: grab;
}

.logo {
    width: 250px; /* Adjust the size of the logo */
    height: auto;
    margin-left: auto; /* Keep it aligned to the right */
}

/* Add the overlay background */
header .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Full viewport height */
    background: rgb(0, 0, 0); /* Adjust transparency as needed */
    opacity: 0;
    visibility: hidden;
    z-index: -1; /* Below navigation but above all other content */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* When header has the open class */
header.open .menu-overlay {
    opacity: 1;
    visibility: visible;
}

header .navigation {
    pointer-events: none; /* Disable interaction when hidden */
    opacity: 0;
    visibility: hidden;
    position: fixed;
    top: 20vh;
    right: 0;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 80px;
    list-style: none;
    z-index: 10000;
}

header.open .navigation {
    pointer-events: auto; /* Enable interaction when visible */
    opacity: 1;
    visibility: visible;
}

header.open .navigation img {
    transform: scale(1.2);
}

body.menu-open {
    overflow: hidden;
}

/* Disable scrolling */
.no-scroll {
    overflow: hidden;
    height: 100vh; /* Prevent scrolling by fixing the height */
}

.navigation li {
    position: relative;
    display: inline-block; /* Makes sure each item takes only as much space as the text/image */
    margin-right: 30px; /* Adds some spacing between items */
}

.navigation li a::before {
    content: '';
    position: absolute;
    left: -50px; /* Adjust this distance as needed */
    top: 50%;
    transform: translateY(-50%);
    width: 40px; /* Size of the dot */
    height: 40px;
    background-image: url('../images/circledotthing.png'); /* Path to your dot image */
    background-size: contain;
    background-repeat: no-repeat;
    display: none; /* Hidden by default */
    overflow: visible;
    cursor: grab;
}

.navigation li a:hover::before {
    display: block; /* Shows the dot on hover */
    cursor: grab;
}

.homename {
    margin-left: -1px;
}

.aboutname {
    width: 130px;
    margin-left: -4px;
    margin-top: -15px;
}

.galleryname {
    width: 150px;
    margin-top: 2px;
    margin-left: 2px;
    position: relative;
}

.contactname {
    width: 160px;    
    margin-top: -12px; /* Adjust this value to move it up or down */
    margin-left: -2px;
    position: relative;
}

.gallery-background {
    background-color: rgb(255, 255, 255);
    color: white;
    /* To change text color to white for better visibility on the black background */
}

.banner {
    width: 100%;
    height: 75vh;
    display: flex; /* Flexbox to center content */
    text-align: center;/* Center vertically */
    overflow: hidden;
    position: relative; /* Added for scroll indicator positioning */
}

.banner .slider {
    margin-top: 90px;
    margin-left: -80px;
    position: absolute;
    width: 280px;
    height: 230px;
    top: 10%;
    left: calc(50% - 70px);
    transform-style: preserve-3d;
    transform: perspective(1000px);
    animation: autoRun 60s linear infinite;
    animation-play-state: running;
}

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

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

.banner .slider .item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Scroll Indicator Styles */
.scroll-indicator {
    position: absolute;
    bottom: 70px;
    right: 30px;
    z-index: 100;
    animation: bounce 2s infinite ease-in-out;
}

.scroll-arrow {
    width: 120px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.scroll-arrow:hover {
    opacity: 1;
}

.credits-section {
    width: 100%;
    padding: 40px 20px;
    background-color: black;
    text-align: center;
}


.credits-header {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Center the entire credit list */
.credits-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px; /* Set a max width to control the width of the content */
}

.credit-item {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 5px 0;
    font-size: 18px;
    color: white;
    transition: color 0.3s ease;
}

.credit-item:hover {
    color: whitesmoke;
}

.job-title {
    font-weight: 500;
    flex: 1;
    text-align: left;
}

.credit-detail {
    font-weight: 700;
    text-align: right;
    flex: 1;
    transition: color 0.3s ease;
}

/* Ensure multiple names stack vertically but still align right */
.credit-detail span {
    display: block;
    font-weight: 700;
    text-align: right;
}

.credit-detail span:not(:last-child) {
    margin-bottom: 5px; /* Add spacing between stacked names */
}


@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@media (max-width: 1024px) {
    .banner {
        height: 86vh;
    }

    .banner .slider {
        margin-top: 300px;
    }

    /* Adjust scroll indicator for tablets */
    .scroll-indicator {
        bottom: 60px;
        right: 20px;
    }

    .scroll-arrow {
        width: 120px;
        height: auto;
    }
}

@media screen and (max-width: 1024px) and (max-height: 600px) {
    .banner {
        height: 75vh;
    }

    .banner .slider {
        width: 150px;
        height: 190px;
        margin-left: -50px;
        margin-top: 40px;
    }

    .scroll-indicator {
        bottom: 50px;
        right: 15px;
    }

    .scroll-arrow {
        width: 120px;
        height: auto;
    }
}

@media (width: 768px) and (height: 1024px) {
    .banner .slider {
        margin-top: 300px; /* adjust as needed */
        left: calc(50% - 10px);
    }
}

@media (max-width: 853px) {
    .banner .slider {
        width: 180px;
        height: 190px;
        margin-top: 200px;
    }
}

@media (max-width: 768px) {

    .navigation ul {
        flex-direction: column;
        gap: 1rem;
        display: none;
    }

    .header.open .navigation ul {
        display: flex;
    }

    .gallery {
        width: 180px; /* Adjust size for smaller screens */
    }

    .menuToggle {
        width: 70px;
        height: 90px;
    }

    .logo {
        width: 120px; /* Adjust size for smaller screens */
    }

    header {
        margin-top: 0px;
    }

    .center-container {
        height: calc(100vh - 210px); 
    }

    .banner {
        height: 88vh;
    }

    .banner .slider {
        width: 180px;
        height: 190px;
        margin-top: 200px;
    }

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

    /* Adjust scroll indicator for mobile */
    .scroll-indicator {
        bottom: 60px;
        right: 15px;
    }

    .scroll-arrow {
        width: 120px;
        height: auto;
    }
}

@media (max-width: 540px) {
    header {
        margin-top: 0px;
    }

    header.open .navigation {
        left: 10%;
        transform: scale(0.8);
    }

    .scroll-indicator {
        bottom: 120px;
        right: 15px;
    }

    .scroll-arrow {
        width: 120px;
        height: auto;
    }

    .banner .slider {
        width: 180px;
        height: 190px;
        margin-top: 100px;
    }
}

@media (max-width: 539px) {
    header {
        margin-top: 0px;
    }

    header.open .navigation {
        transform: scale(0.8);
    }

    .banner .slider {
        width: 180px;
        height: 190px;
        margin-top: 150px;
    }
}

@media (max-width: 375px) {
    header.open .navigation {
        transform: scale(0.6);
        left: 18%;
    }

    .gallery {
        width: 160px; /* Adjust size for smaller screens */
    }

    .menuToggle {
        width: 60px;
        height: 80px;
    }

    .logo {
        width: 110px; /* Adjust size for smaller screens */
    }

    .banner .slider {
        width: 180px;
        height: 190px;
        margin-top: 100px;
    }

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

    /* Adjust scroll indicator for small mobile */
    .scroll-indicator {
        bottom: 45px;
        right: 12px;
    }

    .scroll-arrow {
        width: 120px;
        height: auto;
    }
}

@media screen and (max-width: 375px) and (max-height: 667px) {
}

@media only screen and (max-width: 1024px) and (orientation: landscape) {
    .credits-section {
        margin-top: 80px; /* Move the credits section lower */
    }

    .banner {
        height: 80vh;
        margin-top: -80px;
    }

    .banner .slider {
        margin-top: 90px;
    }

    /* Adjust scroll indicator for landscape */
    .scroll-indicator {
        bottom: -10px;
        right: 15px;
    }

    .scroll-arrow {
        width: 120px;
        height: auto;
    }
}

@media only screen and (max-width: 932px) and (orientation: landscape) {
    .credits-section {
        margin-top: 80px; /* Move the credits section lower */
    }

    .banner {
        height: 60vh;
        margin-top: -80px;
    }

    .banner .slider {
        margin-top: 90px;
    }

    /* Adjust scroll indicator for landscape */
    .scroll-indicator {
        bottom: -10px;
        right: 15px;
    }

    .scroll-arrow {
        width: 120px;
        height: auto;
    }
}

@media only screen and (max-width: 740px) and (orientation: landscape) {
    .credits-section {
        margin-top: 80px; /* Move the credits section lower */
    }

    .banner {
        height: 80vh;
        margin-top: -80px;
    }

    .banner .slider {
        margin-top: 90px;
    }

    /* Adjust scroll indicator for landscape */
    .scroll-indicator {
        bottom: -10px;
        right: 15px;
    }

    .scroll-arrow {
        width: 120px;
        height: auto;
    }
}

.story-text {
    max-width: 800px;
    margin: 0 auto 60px auto;
    color: white;
    line-height: 1.8;
    text-align: left;
    padding: 0 20px;
}

.story-text p {
    margin-bottom: 20px;
    font-size: 16px;
}

.story-author {
    text-align: right;
    font-style: italic;
    margin-top: 30px;
    font-weight: 500;
}

@media only screen and (max-width: 1024px) and (orientation: landscape) {
    header.open .navigation {
        transform: scale(0.6);
        gap: 80px; /* Reduce spacing between items */
        left: 150px;
    }
    
    header.open .navigation img {
        transform: scale(2); /* Reset the 1.2 scale */
    }
}

@media only screen and (max-width: 932px) and (orientation: landscape) {
    header.open .navigation {
        transform: scale(0.6);
        gap: 40px; /* Reduce spacing between items */
        left: 150px;
    }
    
    header.open .navigation img {
        transform: scale(1.4); /* Reset the 1.2 scale */
    }
}

@media only screen and (max-width: 768px) and (orientation: landscape) {
    header.open .navigation {
        transform: scale(0.5);
        top: 5vh;
        gap: 30px;
    }
}

@media only screen and (max-width: 740px) and (orientation: landscape) {
    header.open .navigation {
        transform: scale(0.6);
        gap: 40px; /* Reduce spacing between items */
        left: 120px;
        top: 40px;
    }
    
    header.open .navigation img {
        transform: scale(1.4); /* Reset the 1.2 scale */
    }
}