/* styles.css */
/* Base styles */
.font-playfair {
    font-family: 'Playfair Display', serif;
}

/* Theme colors */
.bg-vintage-light {
    background-color: #F7F2E7;
}

.bg-vintage-lighter {
    background-color: #FAF7F1;
}

.bg-vintage-dark {
    background-color: #8B6E4F;
}

.bg-vintage-darker {
    background-color: #6D5436;
}

.text-vintage-dark {
    color: #8B6E4F;
}

.text-vintage-darker {
    color: #6D5436;
}

/* Updated Card Stack Styling with Enhanced Carousel */
.app-cards-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    background: transparent;
    padding: 20px 0;
}

.card-stack {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(139, 110, 79, 0.2);
    background: #FAF7F1;
    height: 600px;
}

.app-card {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    height: 100%;
}

.app-card.card-active {
    opacity: 1;
    z-index: 3;
    transform: translateX(0) rotate(0deg) scale(1);
}

.app-card.card-next {
    opacity: 0;
    transform: translateX(40px) rotate(1deg) scale(0.95);
    z-index: 2;
}

.app-card.card-last {
    opacity: 0;
    transform: translateX(-40px) rotate(-1deg) scale(0.95);
    z-index: 1;
}

.app-card img {
    height: 450px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    background-color: #fff;
    padding: 10px;
    transition: transform 0.3s ease;
}

.app-card img:hover {
    transform: scale(1.02);
}

.app-card .slide-info {
    text-align: center;
    padding: 15px;
    background: #8B6E4F;
    color: white;
    border-radius: 10px;
    width: 90%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.app-card .slide-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.app-card .slide-info p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Navigation Styling */
.card-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin-top: 15px;
}

.nav-arrow {
    background: #8B6E4F;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background: #6D5436;
    transform: scale(1.05);
}

.nav-arrow svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
}

.card-indicator-container {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.card-indicator {
    font-family: 'Playfair Display', serif;
    color: #8B6E4F;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
}

.card-indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #D8D0C3;
    margin: 0 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-indicator-dot.active {
    background: #8B6E4F;
    transform: scale(1.2);
}

#mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 250px;
    background-color: #F7F2E7;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 100;
}
  
#mobile-menu.active {
    transform: translateX(0);
}

/* Tablets and Small Laptops */
@media screen and (min-width: 768px) and (max-width: 1366px) {
    .app-cards-container {
        max-width: 450px;
    }

    .card-stack {
        height: 580px;
    }

    .app-card img {
        height: 420px;
    }
}

/* Large Screens */
@media screen and (min-width: 1367px) and (max-width: 1919px) {
    .app-cards-container {
        max-width: 500px;
    }

    .card-stack {
        height: 620px;
    }

    .app-card img {
        height: 450px;
    }
}

/* Extra Large Screens (1920px and above) */
@media screen and (min-width: 1920px) {
    .app-cards-container {
        max-width: 550px;
    }

    .card-stack {
        height: 700px;
    }

    .app-card img {
        height: 500px;
    }
}

/* Mobile Fixes for Carousel */

/* Mobile View Improvements - Add these to your styles.css */
@media screen and (max-width: 480px) {
    /* Fix card stack height and positioning */
    .card-stack {
        height: 480px;
        margin-bottom: 20px;
    }
    
    /* Make sure images fit properly in mobile view */
    .app-card img {
        height: auto;
        max-height: 300px;
        width: 100%;
        object-fit: contain;
        margin-bottom: 10px;
    }
    
    /* Adjust slide info for better mobile visibility */
    .app-card .slide-info {
        width: 100%;
        padding: 8px;
        max-width: 260px;
    }
    
    /* Fix navigation controls positioning */
    .card-navigation {
        position: relative;
        padding: 0 10px;
        margin-top: 0;
    }
    
    /* Adjust container sizing */
    .app-cards-container {
        max-width: 100%;
        padding: 0;
    }

    /* Make sure the text fits properly */
    .app-card .slide-info h3 {
        font-size: 0.95rem;
    }
    
    .app-card .slide-info p {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    
    /* Ensure the indicator dots are visible and properly sized */
    .card-indicator-dot {
        width: 8px;
        height: 8px;
        margin: 0 2px;
    }
    
    /* Adjust navigation arrows for better mobile interaction */
    .nav-arrow {
        width: 32px;
        height: 32px;
    }
    
    .nav-arrow svg {
        width: 16px;
        height: 16px;
    }
}

/* Fix for extra small screens */
@media screen and (max-width: 360px) {
    .card-stack {
        height: 420px;
    }
    
    .app-card img {
        max-height: 250px;
    }
    
    .app-card .slide-info {
        max-width: 240px;
    }
}

/* Fix the yellow card issue by better integrating it */
.slide-info {
    background: #8B6E4F !important; /* Use your vintage-dark color */
    border: none !important;
    margin-top: 10px;
}

/* Remove any external cards that might be causing the yellow box */
.card-content-wrapper {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Ensure card transition works properly */
.app-card.card-active {
    display: flex !important;
}

/* Fix z-index issues that might be causing layering problems */
.card-stack {
    z-index: 1;
}

.app-card {
    z-index: auto;
}

.app-card.card-active {
    z-index: 3;
}

/* Extra Small Mobile Devices */
@media screen and (max-width: 360px) {
    .app-cards-container {
        max-width: 260px;
        padding: 0;
    }
    
    .card-stack {
        height: 400px;
        margin-bottom: 15px;
    }
    
    .app-card img {
        height: auto;
        max-height: 250px;
        width: 100%;
    }
    
    .app-card .slide-info {
        max-width: 240px;
        padding: 8px;
    }
    
    .app-card .slide-info h3 {
        font-size: 0.9rem;
    }
    
    .app-card .slide-info p {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    .card-navigation {
        padding: 0 5px;
    }
    
    .nav-arrow {
        width: 28px;
        height: 28px;
    }
    
    .nav-arrow svg {
        width: 14px;
        height: 14px;
    }
    
    .card-indicator-dot {
        width: 6px;
        height: 6px;
        margin: 0 2px;
    }
}

/* Fix for the white space on the right */
.card-stack {
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    border-radius: 20px !important;
    -webkit-mask-image: -webkit-radial-gradient(white, black); /* Fix for Safari overflow */
}

/* Ensure all content stays within bounds */
.app-card {
    contain: strict !important;
    overflow: hidden !important;
    width: 100% !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    transform-origin: center center !important;
    padding: 15px 15px 15px 15px !important;
}

/* Fix background */
html, body {
    overflow-x: hidden !important;
}

