/* ===================================
   9ISSATI PAGE STYLES
   =================================== */

:root {
    --color-9issati-primary: #c23c4a;
    --color-9issati-dark: #8b2632;
    --color-9issati-light: #fdf2f3;
}



/* Hero Section with 3D Carousel */
.hero-9issati {
    background-image: url('../assets/backGr9issati.png');
    background-size: cover;
    background-position: center;
    padding: var(--space-24) 0 var(--space-10);
    text-align: center;
    color: white;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.carousel-9issati {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1000px;
}

.carousel-3d-wrapper {
    position: relative;
    height: 550px;
    /* Increased from 400px */
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.carousel-3d-item {
    position: absolute;
    width: 650px;
    /* Increased from 500px */
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

/* Side Screens */
.carousel-3d-item.prev,
.carousel-3d-item.next {
    opacity: 0.6;
    pointer-events: auto;
    z-index: 5;
    filter: brightness(0.4);
}

.carousel-3d-item.prev {
    transform: translateX(-500px) translateZ(-250px) rotateY(15deg) scale(0.85);
    /* Adjusted translation and scale */
}

.carousel-3d-item.next {
    transform: translateX(500px) translateZ(-250px) rotateY(-15deg) scale(0.85);
    /* Adjusted translation and scale */
}

/* Central Active Laptop */
.carousel-3d-item.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
    transform: translateX(0) translateZ(0) rotateY(0) scale(1.2);
    /* Increased scale from 1.1 */
}

/* Only show laptop frame for active item */
.carousel-3d-item .laptop-container {
    display: none;
}

.carousel-3d-item.active .laptop-container {
    display: block;
}

/* Fallback simple image for side items */
.carousel-3d-item .fallback-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 4px solid rgba(255, 255, 255, 0.1);
}

.carousel-3d-item.active .fallback-img {
    display: none;
}

.laptop-container {
    background: #111;
    border-radius: 20px 20px 0 0;
    padding: 6px;
    position: relative;
    border: 6px solid #333;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
}

.laptop-container::after {
    content: '';
    position: absolute;
    bottom: -22px;
    left: -10%;
    width: 120%;
    height: 12px;
    background: #222;
    border-radius: 0 0 15px 15px;
}

.laptop-screen {
    width: 100%;
    aspect-ratio: 16/10;
    background: #000;
    overflow: hidden;
    position: relative;
    border-radius: 2px;
    padding: 4px;
}

.laptop-screen img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    left: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 20;
    padding: 0 20px;
}

.carousel-nav-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    color: var(--color-9issati-primary);
    transition: all 0.3s ease;
}

.carousel-nav-btn:hover {
    background: var(--color-9issati-primary);
    color: white;
    transform: scale(1.1);
}

/* Wrapper for unified background */
.nissati-content-wrapper {
    background-image: url('../assets/chapeauBG.png');
    background-size: 80% auto;
    background-position: center 80%;
    background-repeat: no-repeat;
    padding-bottom: 60px;
}

/* Page Intro Section */
.intro-9issati {
    padding: 60px 0;
    background: none;
}

.intro-9issati .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center horizontally in flex column */
    justify-content: center;
    text-align: center;
    width: 100%;
}

.logo-9issati {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 30px;
    max-width: 250px;
    height: auto;
}

.intro-9issati__subtitle {
    color: #888;
    text-transform: none;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
    text-align: center !important;
    width: 100%;
    display: block;
}

.intro-9issati__title {
    font-size: 2.8rem;
    color: #222;
    margin-bottom: 20px;
    font-weight: 800;
}

.intro-9issati__description {
    max-width: 750px;
    margin: 0 auto 50px;
    line-height: 1.6;
    color: #666;
    font-size: 1.15rem;
}

/* Features Grid */
.features-grid-9issati {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 60px 0;
    max-width: 1250px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .features-grid-9issati {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .features-grid-9issati {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.feature-card-9issati {
    background: #f8f8f8;
    border-radius: 30px;
    padding: 30px;
    border-left: 8px solid var(--color-9issati-primary);
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-card-9issati__title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 700;
}

.feature-card-9issati ul {
    list-style: none;
    padding: 0;
}

.feature-card-9issati li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #666;
    font-size: 0.95rem;
}

.feature-card-9issati li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-9issati-primary);
    font-weight: bold;
}

/* Mobile App Section */
.mobile-9issati {
    background-color: transparent;
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
}

.mobile-9issati__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.mobile-9issati__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-left: 180px;
    /* Pushed significantly to the right as requested */
}

.mobile-9issati__title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.1;
    margin-bottom: 25px;
    max-width: 450px;
}

.mobile-9issati__text {
    font-size: 1.4rem;
    color: #888;
    margin-bottom: 40px;
    max-width: 420px;
    line-height: 1.5;
}

.btn-9issati {
    background: linear-gradient(135deg, #388E88 0%, #2D726D 100%);
    color: #ffffff;
    padding: 18px 45px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(56, 142, 136, 0.2);
    border: none;
}

.btn-9issati:hover {
    background: linear-gradient(135deg, #2D726D 0%, #1F4D49 100%);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(56, 142, 136, 0.3);
}

.mascot-9issati {
    margin-top: 60px;
    max-width: 250px;
    height: auto;
    /* Adjusted margin to keep mascot in place while text moves right */
    margin-left: -140px;
    animation: floatMascot 3s ease-in-out infinite;
}

@keyframes floatMascot {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

.mobile-9issati__images {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center horizontally relative to each other */
    position: relative;
}

.mobile-mockup {
    max-width: 600px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.15));
    margin-bottom: 0;
    /* Removed to bring badges closer */
}

.store-badges-9issati {
    display: flex;
    gap: 30px;
    /* Increased gap for larger badges */
    justify-content: center;
    /* Centered under the mockup */
    margin-top: -20px;
    /* Reduced to bring closer to the phone, even overlapping slightly for a tighter look */
    /* More space below the phone */
}

.store-badge img {
    height: 110px;
    /* Even larger as requested */
    width: auto;
    display: block;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.12));
}

.store-badge:hover img {
    transform: translateY(-5px);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.2));
}



/* Footer override for 9issati */
.page-9issati .footer {
    background-color: var(--color-9issati-primary);
}

/* Responsive */
/* Responsive Updates */
@media (max-width: 1024px) {
    .header {
        position: fixed !important;
        top: 0 !important;
    }

    .hero-9issati {
        padding-top: var(--space-32);
        min-height: auto;
    }

    .carousel-3d-wrapper {
        height: 400px;
    }

    .carousel-3d-item {
        width: 500px;
    }

    .intro-9issati__title {
        font-size: 2.2rem;
    }

    .intro-9issati__description {
        font-size: 1.1rem;
        padding: 0 20px;
    }

    .feature-card-9issati__title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .carousel-3d-wrapper {
        height: 300px;
    }

    .carousel-3d-item {
        width: 100%;
        max-width: 450px;
    }

    .carousel-3d-item.prev,
    .carousel-3d-item.next {
        display: none;
    }

    .carousel-3d-item.active {
        transform: scale(1);
    }

    .features-grid-9issati {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }

    .feature-card-9issati {
        padding: 25px;
        border-radius: 20px;
    }

    .mobile-9issati__container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }

    .mobile-9issati__content {
        padding-left: 20px;
        padding-right: 20px;
        align-items: center;
    }

    .mobile-9issati__title {
        font-size: 2rem;
        max-width: 100%;
    }

    .mobile-9issati__text {
        font-size: 1.1rem;
        max-width: 100%;
    }

    .mascot-9issati {
        margin-left: 0;
        margin-top: 20px;
        max-width: 180px;
    }

    .store-badge img {
        height: 110px;
    }

    .store-badges-9issati {
        justify-content: center;
        margin-top: 20px;
        gap: 15px;
    }

    .nissati-content-wrapper {
        background-size: 150% auto;
        background-position: center bottom;
    }

    .laptop-container {
        border-width: 4px;
        padding: 6px;
    }
}

@media (max-width: 480px) {
    .intro-9issati__title {
        font-size: 1.8rem;
    }

    .carousel-3d-wrapper {
        height: 250px;
    }
}