@import url('https://fonts.cdnfonts.com/css/ica-rubrik-black');
@import url('https://fonts.cdnfonts.com/css/poppins');

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #000;
    font-family: Poppins, Arial, sans-serif;
    font-size: 12px;
    color: #eee;
    overflow-x: hidden;
    scroll-behavior: smooth; 
}

#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* Use viewport width */
    height: 100vh; /* Use viewport height */
    object-fit: cover;
    z-index: -1; /* Send video to the background */
}


main {
    width: 100vw;
    height: 100vh;  /* Ensure main takes full width */
    margin: 0; /* Remove auto margins */
    padding-top: 50px; /* Adjust if needed */
    color: white; /* Ensures text contrasts with video background */
    position: relative; /* Keeps content stacked above the video */
    z-index: 1;
}

section {
    padding: 0;
    margin: 0;
    min-height: 100vh; /* Ensures each section takes up the full viewport height */
}

/* Scroll-based parallax effect */
body.scrolled .flicker-title {
    transform: translateX(2000px); /* Moves text far to the right */
    opacity: 0; /* Gradually makes the text disappear */
    transition: transform 3s ease-out, opacity 3s ease-out; /* Slow down the transition */
}

header{
    width: 1140px;
    max-width: 100%;
    margin: auto;
    height: 50px;
    display: flex;
    align-items: center;
    position: absolute;
    z-index: 100;
}
header a{
    color: #eee;
    margin-right: 40px;
}

.slider {
    width: 100%;
    height: var(--height);
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 10% 90%, transparent);
}

.slider .list {
    display: flex;
    width: 100%;
    min-width: calc(var(--width) * var(--quantity));
    position: relative;
}

.slider .list .item {
    width: var(--width);
    height: var(--height);
    position: absolute;
    left: 100%;
    animation: autoRun 10s linear infinite;
    transition: filter 0.5s;
    animation-delay: calc((10s / var(--quantity)) * (var(--position) - 1) - 10s) !important;
}

.slider .list .item img {
    width: 100%;
}

@keyframes autoRun {
    from {
        left: 100%;
    }
    to {
        left: calc(var(--width) * -1);
    }
}

.slider:hover .item {
    animation-play-state: paused !important;
    filter: grayscale(1);
}

.slider .item:hover {
    filter: grayscale(0);
}

.slider[reverse="true"] .item {
    animation: reversePlay 10s linear infinite;
}

@keyframes reversePlay {
    from {
        left: calc(var(--width) * -1);
    }
    to {
        left: 100%;
    }
}

/* Flickering Title */
.flicker-title {
    text-align: center;
    font-size: clamp(1.5rem, 5vw, 3rem); /* Responsive font size: min 1.5rem, max 3rem, scales with 5vw */
    margin-top: 30px;
    letter-spacing: 5px;
    font-weight: bold;
    position: relative;
    z-index: 2;
    animation: flickerColor 1.5s infinite; /* Adjust the duration of the flicker */
    transition: transform 3s ease-out, opacity 3s ease-out; /* Matches the scroll transition */
}


.flicker-title span {
    display: inline-block;
    animation: flicker 3s infinite;
    transition: opacity 0.3s; /* Ensures smoother opacity transitions */
}

@keyframes flicker {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0;
    }
}
@keyframes flickerColor {
    0%, 100% {
        color: white; /* Start and end with white */
    }
    50% {
        color: black; /* Change to black in the middle of the animation */
    }
}
.flicker-title span:nth-child(1) { animation-delay: 0.2s; }
.flicker-title span:nth-child(2) { animation-delay: 0.3s; }
.flicker-title span:nth-child(3) { animation-delay: 0.4s; }
.flicker-title span:nth-child(4) { animation-delay: 0.5s; }
.flicker-title span:nth-child(5) { animation-delay: 0.6s; }
.flicker-title span:nth-child(6) { animation-delay: 0.7s; }
.flicker-title span:nth-child(7) { animation-delay: 0.8s; }
.flicker-title span:nth-child(8) { animation-delay: 0.9s; }
.flicker-title span:nth-child(9) { animation-delay: 1.0s; }
.flicker-title span:nth-child(10) { animation-delay: 1.1s; }
.flicker-title span:nth-child(11) { animation-delay: 1.2s; }
.flicker-title span:nth-child(12) { animation-delay: 1.3s; }

@keyframes flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        opacity: 1;
    }
    20%, 24%, 55% {
        opacity: 0;
    }
}

.flicker-title {
    will-change: transform; /* Hint browser for optimized animation */
    transform: translateX(0); /* Default position */
}


.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Contact Modal Styles */
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000; /* Very high z-index to ensure it's on top */
    backdrop-filter: blur(5px);
    overflow: auto;
}

.contact-modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    margin: 50px auto;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.contact-card {
    position: relative;
    width: 100%;
}

.contact-card h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
    color: #f5dd06;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-info {
    margin-bottom: 25px;
}

.contact-info p {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 16px;
    color: #fff;
}

.contact-info strong {
    color: #f1683a;
    display: block;
    margin-bottom: 5px;
    font-size: 18px;
}

.contact-card .social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
}

.contact-card .social-icons a {
    color: white;
    font-size: 28px;
    transition: transform 0.3s, color 0.3s;
}

.contact-card .social-icons a:hover {
    transform: scale(1.2);
    color: #f5dd06;
}

.close-contact-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-contact-modal:hover {
    color: #f1683a;
    background: rgba(0,0,0,0.8);
}

.carousel {
    width: 100vw;
    height: 100vh;
    position: relative; /* Change from absolute to relative */
    overflow: hidden;
    z-index: 3;
}

.carousel .list {
    position: relative; /* Ensure the list is positioned correctly */
    width: 100%;
    height: 100%;
}


.carousel .list .item {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0 0 0 0;
}

.carousel .list .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel .list .item .content {
    position: absolute; /* Maintain absolute positioning */
    top: 20%; /* Adjust as needed */
   width: 100%; /* Use full width for responsiveness */
    max-width: 80%; /* Maintain a max width */
    left: 50%;
    margin: 20px auto;
    transform: translateX(-50%);
    padding-right: 30%;
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0 5px 10px #0004;
    display: flex;
    flex-direction: column; /* Align children in a column */
}

.carousel .list .item .author {
    font-weight: bold;
    letter-spacing: 10px;
    margin-bottom: 20px;
}

.carousel .list .item .title,
.carousel .list .item .topic {
    font-size: 4em;
    font-weight: bold;
    line-height: 1em;
   
}

.carousel .list .item .topic {
   margin-top: 30px; /* Space below the topic */
    color: #f1683a;
}

.carousel .list .item .des {
    margin-top: 190px; /* Remove top margin for consistent spacing */
    margin-bottom: 0px; /* Space below the description */
    line-height: 1.5; /* Line height for better readability */
    text-align: center; /* Center text for consistency */
     font-size: 1.3em;
}

.carousel .list .item .buttons {
    display: grid;
    grid-template-columns: repeat(2, 130px);
    grid-template-rows: 40px;
    gap: 5px;
    margin-top: 350px;
}

.carousel .list .item .buttons button {
    border: none;
    background-color: #eee;
    letter-spacing: 3px;
    font-family: Poppins;
    font-weight: 500;
}

.carousel .list .item .buttons button:nth-child(2) {
    background-color: transparent;
    border: 1px solid #fff;
    color: #eee;
}

.thumbnail {
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 50px; /* Space between items */
}

.thumbnail .item {
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
}

.thumbnail .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.thumbnail .item .content {
    color: #fff;
    position: relative; /* Keep absolute positioning */
    bottom: 40px; /* Space from the bottom */
    left: 10px; /* Space from the left */
    right: 10px; /* Space from the right */
    display: flex; /* Use flexbox for vertical stacking */
    flex-direction: column; /* Stack children vertically */
    justify-content: flex-start; /* Align items to the start */
}

.thumbnail .item .content .title {
 position: relative;
    font-weight: 500;
    /* Add space below the title */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8); /* Add this line */

}

.thumbnail .item .content .description {
    position: relative;
    font-weight: 350;
    /* Adjust line height for better readability */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8); /* Add this line */
}

.arrows {
    position: absolute;
    top: 80%;
    right: 52%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}

.arrows button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee4;
    border: none;
    color: #fff;
    font-family: monospace;
    font-weight: bold;
    transition: .5s;
}

.arrows button:hover {
    background-color: #fff;
    color: #000;
}

.carousel .time {
    position: absolute;
    z-index: 1000;
    width: 0%;
    height: 3px;
    background-color: #f1683a;
    left: 0;
    top: 0;
}

#bg-video, main, section, .carousel, .slider {
    overflow-x: hidden;
}

.parallax {
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}



.banner{
 background-image: url(images/model.png);
     width: 100vw;
    height: 100vh;
    text-align: center;
    overflow: hidden;
    position: absolute;
    object-fit: cover;
     z-index: 4;
}
.banner .slider2{
    position: absolute;
    width: 200px;
    height: 250px;
    top: 10%;
    left: calc(50% - 100px);
    transform-style: preserve-3d;
    transform: perspective(1000px);
    animation: autoRun 20s linear infinite;
    z-index: 2;
    margin-top: 60px;

}
@keyframes autoRun{
    from{
        transform: perspective(1000px) rotateX(-16deg) rotateY(0deg);
    }to{
        transform: perspective(1000px) rotateX(-16deg) rotateY(360deg);
    }
}

.banner .slider2 .item{
    position: absolute;
    inset: 0 0 0 0;
    transform: 
        rotateY(calc( (var(--position) - 1) * (360 / var(--quantity)) * 1deg))
        translateZ(550px);
}
.banner .slider2 .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.banner .content{

    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1400px, 100vw);
    height: max-content;
    padding-bottom: 100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}
.banner .content h1{
    font-family: 'ICA Rubrik';
    font-size: 16em;
    line-height: 1em;
    color: #25283B;
    position: relative;
}
.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 {
 
    width: 100vw; /* Use viewport width to fill the entire width of the screen */
    height: 100vh; /* Use viewport height to fill the entire height of the screen */
    position: fixed; /* Change to fixed to ensure it stays in place when scrolling */
    bottom: 0;
    left: -20;
    background-size: cover; /* Use cover to ensure the image fills the area */
    background-repeat: no-repeat; /* Prevent the image from repeating */
    background-position: center; /* Center the image */
    z-index: 1; /* Keep it behind other content if needed */
}



.bio-display {
    display: none;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10;
    justify-content: center;
    align-items: center;
}

.bio-content {
position: relative;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.close {

    cursor: pointer;
    font-weight: bold;
    color: red;
   position: relative;
    top: 10px;
    right: 20px;
}




@media screen and (max-width: 1024px) {
    .banner .slider2{
        width: 160px;
        height: 200px;
        left: calc(50% - 80px);
    }
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* Use viewport width */
    height: 100vh; /* Use viewport height */
    object-fit: cover;
    z-index: -1; /* Send video to the background */
}

     .stage {
        overflow: hidden;
        background: transparent;
    }
    .banner .slider2.item{
        transform: 
            rotateY(calc( (var(--position) - 1) * (360 / var(--quantity)) * 1deg))
            translateZ(300px);
    }
    .banner .content h1{
        text-align: center;
        width: 100%;
        text-shadow: 0 10px 20px #000;
        font-size: 7em;
    }
    .banner .content .author{
        color: #fff;
        padding: 20px;
        text-shadow: 0 10px 20px #000;
        z-index: 2;
        max-width: unset;
        width: 100%;
        text-align: center;
        padding: 0 30px;
    }
    
    
    
}

/* Media query for larger screens (desktop view) */
@media screen and (min-width: 1024px) {
    .banner .slider2 {
        width: 120px;  /* Reduce the width */
        height: 170px; /* Reduce the height */
        left: calc(50% - 60px); /* Recalculate center position */
    }
    .banner .slider2 .item {
        transform:
            rotateY(calc( (var(--position) - 1) * (360 / var(--quantity)) * 1deg))
            translateZ(400px); /* Adjust translateZ value for 3D effect */
    }

      .banner .content h1{
        text-align: center;
        width: 100%;
        text-shadow: 0 10px 20px #000;
        font-size: 7em;
    }

    #bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* Use viewport width */
    height: 100vh; /* Use viewport height */
    object-fit: cover;
    z-index: -1; /* Send video to the background */
}
    .banner .content .author{
        color: #fff;
        padding: 20px;
        text-shadow: 0 10px 20px #000;
        z-index: 2;
        max-width: unset;
        width: 100%;
        text-align: center;
        padding: 0 30px;
    }
}




@media screen and (max-width: 767px) {
    .banner .slider2{
        width: 100px;
        height: 150px;
        left: calc(50% - 50px);
    }


#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* Use viewport width */
    height: 100vh; /* Use viewport height */
    object-fit: cover;
    z-index: -1; /* Send video to the background */
}



 .stage {
        background-color: transparent !important; /* Ensure transparency in mobile view */
    }


    .banner .slider2 .item{
        transform: 
            rotateY(calc( (var(--position) - 1) * (360 / var(--quantity)) * 1deg))
            translateZ(180px);
    }
    .banner .content h1{
        font-size: 5em;
    }
}

/* Media query for smaller screens */
@media screen and (max-width: 767px) {
    .bio-content {
        padding: 20px; /* Adjust padding for smaller devices */
        max-width: 90%;
    }

    .bio-info {
        width: 90%;
        padding: 1px;
    }


#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* Use viewport width */
    height: 100vh; /* Use viewport height */
    object-fit: cover;
    z-index: -1; /* Send video to the background */
}




     .stage {
        overflow: hidden;
        background: transparent;
    }
}








/* Parallax effect fix for mobile */
@media screen and (max-width: 678px) {
    /* Reduce the translate distance for mobile */
    body.scrolled .flicker-title {
        transform: translateX(300px);
        opacity: 0;
    }
       .parallax {
        background-attachment: scroll; /* Switch off fixed background for mobile */
        background-size: cover;
        background-position: center;
    }
.bio-info {
        width: 90%;
        padding: 1px;
    }

    /* Adjust the background video for mobile */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* Use viewport width */
    height: 100vh; /* Use viewport height */
    object-fit: cover;
    z-index: -1; /* Send video to the background */
}

    /* Remove padding causing the gap in mobile view */
      /* Scale down content in the mobile view */
    

    /* Resizing main content on mobile to fit screen */
    main {
        width: 100vw; /* Ensure the content fits the screen */
        padding-top: 10px;
        height: 100vh;
    margin: 0;
    padding-top: 50px;
    color: maroon;
    position: relative;
    z-index: 1; /* Reduce padding */
    }

        .stage {
        background-color: transparent !important; /* Ensure transparency in mobile view */
    }

    /* Adjust sections to remove horizontal overflow */
    section {
        min-height: 100vh;
        width: 100vw; /* Ensure section fills the screen width */
    }

  body.scrolled .flicker-title {
        transform: translateX(300px); /* Reduced movement for mobile */
    }

    .carousel .list .item .content .title {
        font-size: 30px; /* Scale down for smaller screens */
    }
    /* Improve content layout for smaller screens */
    .carousel .list .item .content {
        padding-right: 0;
    }

    .carousel .list .item .content .title {
        font-size: 30px;
    }

    /* Tighten spacing in the mobile layout */
    .carousel .list .item {
        height: 100vh; /* Ensure full screen usage */
    }

}

@media (prefers-reduced-motion: no-preference) {
    body {
        scroll-behavior: smooth;
    }
}