/*===========================================*/
/*	LOGO SPLASH ANIMATION
/*===========================================*/

#logo-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

#logo-splash .splash-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1f2229;
    opacity: 1;
    transition: opacity 0.6s ease;
}

#logo-splash.animate .splash-bg {
    opacity: 0;
}

#logo-splash .splash-logo {
    position: absolute;
    width: 250px;
    height: auto;
    transform: translate(0, 0) scale(1);
    transition: all 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
    z-index: 10;
}

#logo-splash.animate .splash-logo {
    /* Move to top-left header position */
    transform: translate(calc(-50vw + 30px + 60px), calc(-50vh + 30px + 25px)) scale(0.35);
}

#logo-splash.done {
    display: none;
}

/* Hide the header logo initially, show after splash */
.logo-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo-image.show {
    opacity: 1;
}

/*===========================================*/
/*	INTRO SLIDER STYLES
/*===========================================*/

/* Slider Navigation Numbers - Right Bottom */
.intro-slider-nav {
    position: fixed;
    right: 40px;
    bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 100;
}

.intro-slider-nav .nav-line {
    width: 50px;
    height: 2px;
    background-color: #1f2229;
    display: block;
    transition: background-color 0.4s ease;
}

.intro-slider-nav .nav-number {
    font-size: 18px;
    font-weight: 400;
    color: rgba(31, 34, 41, 0.4);
    cursor: pointer;
    transition: all 0.4s ease;
    font-family: 'Montserrat', sans-serif;
}

.intro-slider-nav .nav-number.active {
    font-size: 42px;
    font-weight: 700;
    color: #1f2229;
}

.intro-slider-nav .nav-number:hover:not(.active) {
    color: rgba(31, 34, 41, 0.7);
}

/* Light Theme (for dark backgrounds) */
.intro-slider-nav.theme-light .nav-line {
    background-color: #ffffff;
}

.intro-slider-nav.theme-light .nav-number {
    color: rgba(255, 255, 255, 0.4);
}

.intro-slider-nav.theme-light .nav-number.active {
    color: #ffffff;
}

.intro-slider-nav.theme-light .nav-number:hover:not(.active) {
    color: rgba(255, 255, 255, 0.7);
}

/* Slider Wrapper */
.intro-slider-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Individual Slides */
.intro-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.intro-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

/* Background Slide Transitions */
.slide-bg {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.slide-bg.active {
    opacity: 1;
    visibility: visible;
}

/* Dark overlay/shadow on background images */
.slide-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
}

/* Animation for slide content */
.intro-slide .intro-text {
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.6s ease 0.2s, opacity 0.6s ease 0.2s;
}

.intro-slide.active .intro-text {
    transform: translateY(0);
    opacity: 1;
}

/*===========================================*/
/*	DESKTOP LAYOUT 
/*===========================================*/


/*@media (min-width: 1200px) {
	

}
@media (min-width: 992px) and (max-width: 1199px) {
	
}

@media (min-width: 992px) {
		
}*/

/*===========================================*/
/*	MOBILE & TABLET COMMON
/*===========================================*/
/*@media (min-width: 200px) and (max-width: 991px) {
	
}*/


/*===========================================*/
/*	TABLET
/*===========================================*/
/*@media (min-width: 768px) and (max-width: 991px) {

}*/


/*===========================================*/
/*	MOBILE
/*===========================================*/
@media (min-width: 200px) and (max-width: 991px) {
    .intro-slider-nav {
        right: 20px;
        bottom: 20px;
        gap: 12px;
    }
    
    .intro-slider-nav .nav-line {
        width: 40px;
        height: 3px;
    }
    
    .intro-slider-nav .nav-number {
        font-size: 18px;
    }
    
    .intro-slider-nav .nav-number.active {
        font-size: 32px;
    }
}

@media (min-width: 200px) and (max-width: 767px) {
    .intro-slider-nav {
        right: 15px;
        bottom: 15px;
        gap: 10px;
    }
    
    .intro-slider-nav .nav-line {
        width: 35px;
        height: 3px;
    }
    
    .intro-slider-nav .nav-number {
        font-size: 18px;
    }
    
    .intro-slider-nav .nav-number.active {
        font-size: 30px;
    }

    /* Hide all sections on mobile by default (only when not active) */
    .page-section-wrp .page-section:not(.active-page) {
        display: none !important;
    }
    
    /* Show active section - works with or without page-section-active for transition */
    .page-section-wrp .page-section.active-page {
        display: flex !important;
        position: relative !important; /* Override responsive CSS */
    }
    
    /* Full screen styling when page-section-active is on body */
    .page-section-active .page-section-wrp .page-section.active-page {
        width: 100% !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 10 !important;
        min-height: 100vh !important;
        height: 100vh !important;
        max-height: 100vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        transform: translateX(0%) !important;
        opacity: 1 !important;
        visibility: visible !important;
        -webkit-overflow-scrolling: touch !important; /* Smooth scrolling on iOS */
        padding-top: 80px !important; /* Space for navbar */
        box-sizing: border-box !important;
    }
    
    /* Add top margin to content containers to account for navbar - different for each section */
    /* For sections that have close button before container, target the container after close button */
    
    /* About section */
    .page-section-active #about.active-page .close-section + .container-fluid,
    .page-section-active #about.active-page .close-section + .inner-wrapper {
        margin-top: 300px !important;
        padding-top: 0 !important;
        position: relative !important;
        overflow: visible !important;
        min-height: auto !important;
    }
    
    /* Services section */
    .page-section-active #services.active-page .close-section + .container-fluid,
    .page-section-active #services.active-page .close-section + .inner-wrapper {
        margin-top: 750px !important;
        padding-top: 0 !important;
        position: relative !important;
        overflow: visible !important;
        min-height: auto !important;
    }
    
    /* Projects section */
    .page-section-active #projects.active-page .close-section + .container-fluid,
    .page-section-active #projects.active-page .close-section + .inner-wrapper {
        margin-top: 750px !important;
        padding-top: 0 !important;
        position: relative !important;
        overflow: visible !important;
        min-height: auto !important;
    }
    
    /* Gallery section */
    .page-section-active #gallery.active-page .close-section + .container-fluid,
    .page-section-active #gallery.active-page .close-section + .inner-wrapper {
        margin-top: 1150px !important;
        padding-top: 0 !important;
        position: relative !important;
        overflow: visible !important;
        min-height: auto !important;
    }
    
    /* Testimonials section */
    .page-section-active #testimonials.active-page .close-section + .container-fluid,
    .page-section-active #testimonials.active-page .close-section + .inner-wrapper {
        margin-top: 100px !important;
        padding-top: 0 !important;
        position: relative !important;
        overflow: visible !important;
        min-height: auto !important;
    }
    
    /* Partenaires section */
    .page-section-active #partenaires.active-page .close-section + .container-fluid,
    .page-section-active #partenaires.active-page .close-section + .inner-wrapper {
        margin-top: -200px !important;
        padding-top: 0 !important;
        position: relative !important;
        overflow: visible !important;
        min-height: auto !important;
    }
    
    /* Contact section */
    .page-section-active #contact.active-page .close-section + .container-fluid,
    .page-section-active #contact.active-page .close-section + .inner-wrapper {
        margin-top: 100px !important;
        padding-top: 0 !important;
        position: relative !important;
        overflow: visible !important;
        min-height: auto !important;
    }
    
    /* For sections without close button, add margin to first container - with section-specific values */
    .page-section-active #about.active-page > .container-fluid:first-child,
    .page-section-active #about.active-page > .inner-wrapper:first-child {
        margin-top: 20px !important;
        padding-top: 0 !important;
        position: relative !important;
        overflow: visible !important;
        min-height: auto !important;
    }
    
    .page-section-active #services.active-page > .container-fluid:first-child,
    .page-section-active #services.active-page > .inner-wrapper:first-child {
        margin-top: 100px !important;
        padding-top: 0 !important;
        position: relative !important;
        overflow: visible !important;
        min-height: auto !important;
    }
    
    .page-section-active #projects.active-page > .container-fluid:first-child,
    .page-section-active #projects.active-page > .inner-wrapper:first-child {
        margin-top: 90px !important;
        padding-top: 0 !important;
        position: relative !important;
        overflow: visible !important;
        min-height: auto !important;
    }
    
    .page-section-active #gallery.active-page > .container-fluid:first-child,
    .page-section-active #gallery.active-page > .inner-wrapper:first-child {
        margin-top: 110px !important;
        padding-top: 0 !important;
        position: relative !important;
        overflow: visible !important;
        min-height: auto !important;
    }
    
    .page-section-active #testimonials.active-page > .container-fluid:first-child,
    .page-section-active #testimonials.active-page > .inner-wrapper:first-child {
        margin-top: 85px !important;
        padding-top: 0 !important;
        position: relative !important;
        overflow: visible !important;
        min-height: auto !important;
    }
    
    .page-section-active #partenaires.active-page > .container-fluid:first-child,
    .page-section-active #partenaires.active-page > .inner-wrapper:first-child {
        margin-top: -200px !important;
        padding-top: 0 !important;
        position: relative !important;
        overflow: visible !important;
        min-height: auto !important;
    }
    
    .page-section-active #contact.active-page > .container-fluid:first-child,
    .page-section-active #contact.active-page > .inner-wrapper:first-child {
        margin-top: 105px !important;
        padding-top: 0 !important;
        position: relative !important;
        overflow: visible !important;
        min-height: auto !important;
    }
    
    /* General rule for all container-fluid and inner-wrapper in active sections */
    .page-section-active .page-section.active-page .container-fluid,
    .page-section-active .page-section.active-page .inner-wrapper {
        position: relative !important;
        overflow: visible !important;
        min-height: auto !important;
    }
    
    /* Ensure sections can scroll from the very top - remove any top spacing from first elements */
    /* But don't override margin-top for containers that need navbar space */
    .page-section-active .page-section.active-page > *:first-child:not(.container-fluid):not(.inner-wrapper) {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Ensure rows inside sections don't have top margins that push content down */
    .page-section-active .page-section.active-page .row {
        margin-top: 0 !important;
    }
    
    /* Ensure first row in container starts immediately after navbar padding */
    .page-section-active .page-section.active-page .container-fluid > .row:first-child,
    .page-section-active .page-section.active-page .inner-wrapper > .row:first-child {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Ensure close button doesn't interfere with scrolling */
    .page-section-active .page-section.active-page .close-section {
        position: fixed !important;
        top: 15px !important;
        right: 15px !important;
        z-index: 9999 !important;
    }
    
    /* Make sure section content starts visible */
    .page-section-active .page-section.active-page .container-fluid > .row:first-child,
    .page-section-active .page-section.active-page .inner-wrapper > *:first-child {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Ensure section inner content is visible and scrollable */
    .page-section-active .page-section.active-page .container-fluid,
    .page-section-active .page-section.active-page .inner-wrapper {
        min-height: auto !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    /* Ensure rows and columns inside section are visible */
    .page-section-active .page-section.active-page .row,
    .page-section-active .page-section.active-page [class*="col-"] {
        position: relative !important;
        overflow: visible !important;
    }
    
    /* Ensure navbar is visible above section */
    .page-section-active .common-section {
        z-index: 1000 !important;
    }

    /* Make page-section-wrp full width when active on mobile */
    .page-section-active .page-section-wrp {
        width: 100% !important;
        transform: translateX(0%) !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 9 !important;
    }

    /* Hide main section when a section is open on mobile */
    .page-section-active .main-section {
        display: none !important;
    }

    /* Show close button in top right on mobile */
    .page-section .close-section {
        display: flex !important;
        position: fixed !important;
        top: 15px !important;
        right: 15px !important;
        z-index: 9999 !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        border-radius: 50% !important;
        background-color: rgba(0, 0, 0, 0.7) !important;
        color: #fff !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    }

    .page-section .close-section i {
        font-size: 24px !important;
        color: #fff !important;
    }

    .page-section .close-section:hover {
        background-color: rgba(0, 0, 0, 0.9) !important;
    }
}

/*@media (min-width: 200px) and (max-width: 767px) {
	
}
@media (min-width: 600px) and (max-width: 767px) {
}
@media (min-width: 480px) and (max-width: 599px) {

}
@media (min-width: 200px) and (max-width: 479px) {

}*/

/*===========================================*/
/*	HIDE ACCUEIL WHEN SECTION IS ACTIVE
/*===========================================*/

/* Hide the "Accueil" navigation item by default, show it when a section is being viewed */
.navigation-ul .navigation-li:first-child {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Show "Accueil" when a section is active */
.page-section-active .navigation-ul .navigation-li:first-child {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/*===========================================*/
/*	BACKDROP OVERLAY FOR SECTIONS
/*===========================================*/

.page-section-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 8;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
}

/* Show backdrop when section is active */
.page-section-active .page-section-backdrop {
    opacity: 1;
    visibility: visible;
}

/*===========================================*/
/*	GALLERY IMAGES - SAME SIZE
/*===========================================*/

/* Make all gallery images the same size */
.portfolio-col figure.hover-box {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
}

.portfolio-col figure.hover-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-col figure.hover-box .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*===========================================*/
/*	PROJECT IMAGES - SAME STYLE AS GALLERY
/*===========================================*/

/* Make project images display like gallery images */
.info-obj.img-t .img {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 25%;
    overflow: hidden;
    border-radius: 6px;
}

.info-obj.img-t .img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

/*===========================================*/
/*	HIDE MAIN SCROLLBAR
/*===========================================*/

/* Hide main scrollbar but keep scrolling functionality */
html {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Keep scrollbars visible for other elements (sections, modals, etc.) */
.page-section,
.page-section-wrp,
.portfolio-widget,
.carousel-widget,
.owl-carousel {
    scrollbar-width: thin; /* Firefox - show thin scrollbar */
    -ms-overflow-style: auto; /* IE and Edge - show scrollbar */
}

.page-section::-webkit-scrollbar,
.page-section-wrp::-webkit-scrollbar,
.portfolio-widget::-webkit-scrollbar,
.carousel-widget::-webkit-scrollbar,
.owl-carousel::-webkit-scrollbar {
    display: block; /* Chrome, Safari, Opera - show scrollbar */
    width: 8px;
}

.page-section::-webkit-scrollbar-thumb,
.page-section-wrp::-webkit-scrollbar-thumb,
.portfolio-widget::-webkit-scrollbar-thumb,
.carousel-widget::-webkit-scrollbar-thumb,
.owl-carousel::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

/*===========================================*/
/*	TESTIMONIAL IMAGES - SMALL AND CIRCULAR
/*===========================================*/

/* Make testimonial images smaller and circular */
.testimonial-box .img {
    width: 120px !important;
    height: 120px !important;
    min-width: 120px !important;
    min-height: 120px !important;
    max-width: 120px !important;
    max-height: 120px !important;
    margin: 0 auto;
    border-radius: 50% !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    aspect-ratio: 1 / 1 !important;
}

.testimonial-box .img img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: contain;
    border-radius: 50% !important;
    padding: 15px;
    background: #fff;
    aspect-ratio: 1 / 1 !important;
    display: block;
}

/*===========================================*/
/*	STAGE CARDS DESIGN ENHANCEMENTS
/*===========================================*/

/* Hover effect for stage cards */
#project-3x3 .info-obj[style*="border-top"] {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#project-3x3 .info-obj[style*="border-top"]:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
}

/* Ensure proper spacing for stage cards */
#project-3x3 .padding-l-70 {
    padding-left: 70px;
}

@media (max-width: 767px) {
    #project-3x3 .padding-l-70 {
        padding-left: 0;
    }
    
    #project-3x3 .flex-tl.margin-b-25 {
        margin-bottom: 20px;
    }
}

/* Border utility */
.border-top-1 {
    border-top-width: 1px;
    border-top-style: solid;
}

/* Radius 12 utility */
.radius-12 {
    border-radius: 12px;
}