/* ====================================
   Project Intro Slideshow - Netflix Style
   ==================================== */
@font-face {
    font-family: 'sans-plain';
    src: url('../font/The-Sans-Plain.otf');
}

@font-face {
    font-family: 'sans-bold';
    src: url('../font/TheSans-Bold.otf');
}
.btn-interest span, .btn-view-project span{
    font-family: 'sans-plain', sans-serif;
}
#project-intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 99999;
    color:#dbdacf;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#project-intro.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Slideshow Container */
.intro-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

/* Individual Slide - Smooth Cinematic Transitions */
.intro-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 3s ease-in-out,
                visibility 3s ease-in-out;
    overflow: hidden;
    background: #000;
    transform: translate3d(0, 0, 0) !important;
    backface-visibility: hidden;
    perspective: 1000px;
}

.intro-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    transform: translate3d(0, 0, 0) !important;
}

/* No parallax effect */
.intro-slide::after {
    display: none;
}

/* Slide Image with Netflix-Style Zoom Animation */
.slide-image {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 120%;
    min-height: 120%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%) scale(1.05);
    transform-origin: center center;
    object-fit: cover;
    object-position: center;
    will-change: transform;
    filter: brightness(0.75);
    z-index: 0;
}

/* Remove default animation from all slides */
.intro-slide .slide-image {
    animation: none;
}

/* Netflix-style zoom in effect - More Visible */
@keyframes netflixZoom {
    0% {
        transform: translate(-50%, -50%) scale(1.05);
        filter: brightness(0.75);
    }
    100% {
        transform: translate(-50%, -50%) scale(1.25);
        filter: brightness(1.05);
    }
}

/* When slide becomes active, apply the animation - Slower & Smoother */
.intro-slide.active .slide-image {
    animation: netflixZoom 20s linear forwards;
}

/* Gradient Overlay - Static */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.85) 100%
    );
    z-index: 1;
    transform: translate3d(0, 0, 0) !important;
    will-change: opacity;
    backface-visibility: hidden;
}
/* Project Info Overlay - Centered Design like Image - Static */
.slide-info {
    position: fixed;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%) translate3d(0, 0, 0) !important;
    z-index: 100;
    color: #dbdacf;
    text-align: center;
    max-width: 700px;
    width: 90%;
    opacity: 1;
    will-change: opacity;
    pointer-events: none;
    backface-visibility: hidden;
}

.slide-info * {
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.slide-info h2 {
    font-size: clamp(1.5rem, 6vw, 3rem)!important;
    /* font-weight: 800; */
    margin: 0 0 10px 0;
    letter-spacing: 3px;
    text-shadow: 2px 2px 30px rgba(0, 0, 0, 0.9);
    line-height: 1.1;
    opacity: 1;
    font-family: 'sans-bold', sans-serif;
    will-change: auto;
    transform: none;
}

.slide-info h2 .subtitle {
    display: block;
    font-size: clamp(1.1rem, 4.5vw, 1.5rem)!important;
    font-weight: 400;
    letter-spacing: 2px;
    margin-top: 10px;
    will-change: auto;
    transform: none;
}

.slide-info p {
    font-size: clamp(0.7rem, 2vw, 1.4rem);
    font-weight: 300;
    margin: 0px 0 20px 0;
    font-family: 'sans-plain', sans-serif;
    opacity: 0.95;
    text-shadow: 1px 1px 15px rgba(0, 0, 0, 0.9);
    line-height: 1.6;
    will-change: auto;
    transform: none;
}
.image-rasan{
    width: 60px;
}
/* Tagline Style - Static */
.slide-tagline {
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    font-weight: 400;
    margin: 20px 0 40px 0;
    opacity: 0.9;
    text-shadow: 1px 1px 15px rgba(0, 0, 0, 0.9);
    will-change: auto;
    transform: none;
}

/* Action Buttons Container - Centered - Static */
.slide-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    opacity: 1;
    flex-wrap: wrap;
    will-change: auto;
    transform: none;
}

/* Square Icon Buttons like Image */
.btn-interest,
.btn-view-project {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0;
    background: transparent;
    color: #fff;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    min-width: 140px;
}

.btn-interest:hover,
.btn-view-project:hover {
    transform: translateY(-5px);
}

.btn-interest:active,
.btn-view-project:active {
    transform: translateY(-2px);
}

/* Icon container with white background */
.btn-interest .image-rasan,
.btn-view-project .image-rasan {
    width: 80px;
    height: 80px;
    padding: 10px;
    background: #e5e0d6;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: contain;
}

.btn-interest:hover .image-rasan,
.btn-view-project:hover .image-rasan {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* Text without background */
.btn-interest span,
.btn-view-project span {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    background: transparent;
    padding: 0;
}

/* Logo Overlay - Top Right */
.intro-logo {
    position: fixed;
    top: 40px;
    right: 60px;
    z-index: 101;
    opacity: 1;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.intro-logo img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.6));
    transition: filter 0.3s ease;
}

.intro-logo img:hover {
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.8));
}

/* Bottom Logo - Company Branding */
.intro-bottom-logo {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translate3d(0, 0, 0);
    z-index: 101;
    opacity: 0.9;
    backface-visibility: hidden;
}

.intro-bottom-logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

.intro-bottom-text {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translate3d(0, 0, 0);
    z-index: 101;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-align: center;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
    max-width: 600px;
    padding: 0 20px;
    backface-visibility: hidden;
}

/* Progress Indicators - REMOVED (No longer needed with loop) */
.slide-progress {
    display: none !important;
}

.progress-dot {
    display: none !important;
}

.progress-fill {
    display: none !important;
}

@keyframes progressBar {
    from {
        width: 0%;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
    to {
        width: 100%;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }
}

/* Skip Button - REMOVED (No longer needed with loop) */
.skip-intro-btn {
    display: none !important;
}

/* Counter Display - REMOVED (No longer needed with loop) */
.slide-counter {
    display: none !important;
}
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#currentSlideNum {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    transition: all 0.3s ease;
    display: inline-block;
}

.slide-counter.update #currentSlideNum {
    animation: numberPulse 0.5s ease;
}

@keyframes numberPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
        color: rgba(255, 255, 255, 1);
    }
}

/* Enhanced Vignette Effect - Static */
.intro-slideshow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 30%,
        rgba(0, 0, 0, 0.3) 70%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
    pointer-events: none;
    opacity: 1;
}

/* Transition Effects */
.intro-slide.fade-in {
    animation: fadeInSlide 1.2s ease-in-out;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .slide-info {
        max-width: 600px;
        position: fixed;
        transform: translate(-50%, 50%) translate3d(0, 0, 0) !important;
    }

    .slide-info h2 {
        font-size: clamp(2rem, 5vw, 4rem);
    }

    .slide-actions {
        gap: 15px;
    }

    .btn-interest,
    .btn-view-project {
        min-width: 120px;
        min-height: 120px;
        padding: 20px;
    }

    .btn-interest i,
    .btn-view-project i {
        font-size: 2rem;
    }

    .intro-logo {
        top: 30px;
        right: 40px;
        position: fixed;
        z-index: 101;
    }

    .intro-logo img {
        height: 50px;
    }

    .intro-bottom-logo {
        position: fixed;
        z-index: 101;
    }
}

@media (max-width: 768px) {
    .slide-info {
        bottom: 45%;
        max-width: 90%;
        position: fixed;
        transform: translate(-50%, 50%) translate3d(0, 0, 0) !important;
    }

    .slide-info h2 {
        font-size: clamp(1.8rem, 4.5vw, 3rem);
        letter-spacing: 2px;
    }

    .slide-info h2 .subtitle {
        font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    }

    .slide-tagline {
        font-size: clamp(0.9rem, 2vw, 1.2rem);
        margin: 15px 0 30px 0;
    }

    .slide-actions {
        gap: 12px;
    }

    .btn-interest,
    .btn-view-project {
        min-width: 110px;
        min-height: 110px;
        padding: 0px;
    }

    .btn-interest i,
    .btn-view-project i {
        font-size: 1.8rem;
    }

    .btn-interest span,
    .btn-view-project span {
        font-size: 0.85rem;
    }

    .intro-logo {
        top: 25px;
        right: 30px;
        position: fixed;
        z-index: 101;
    }

    .intro-logo img {
        height: 45px;
    }

    .intro-bottom-logo {
        position: fixed;
        z-index: 101;
    }
}

@media (max-width: 480px) {
    .slide-info {
        bottom: 40%;
        position: fixed;
        transform: translate(-50%, 50%) translate3d(0, 0, 0) !important;
    }

    .slide-info h2 {
       font-size: clamp(2rem, 4vw, 2.5rem)!important;
        letter-spacing: 1px;
    }

    .slide-info h2 .subtitle {
        line-height: 0.8rem;
        font-size: clamp(1rem, 3vw, 1.8rem)!important;
    }

    .slide-tagline {
        font-size: clamp(0.85rem, 1.8vw, 1rem);
        margin: 10px 0 25px 0;
    }
    .slide-tagline-2 {
        font-size: clamp(1rem, 1.8vw, 1rem)!important;
        margin: 10px 0 25px 0;
    }

    .slide-actions {
        gap: 10px;
        flex-direction: row;
    }

    .btn-interest,
    .btn-view-project {
        min-width: 80px;
        min-height: 80px;
        padding: 0px;
    }

    .btn-interest i,
    .btn-view-project i {
        font-size: 1.6rem;
    }

    .btn-interest span,
    .btn-view-project span {
        font-size: 0.8rem;
    }

    .intro-logo {
        top: 20px;
        right: 20px;
        position: fixed;
        z-index: 101;
    }

    .intro-logo img {
        height: 35px;
    }

    .intro-bottom-logo {
        position: fixed;
        z-index: 101;
        bottom: 30px;
    }

    .intro-bottom-logo img {
        height: 50px;
    }
}

/* Final zoom out effect */
#project-intro.zoom-out {
    animation: finalZoomOut 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
}

@keyframes finalZoomOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}
