/* Custom Styles for myBizzMate */

/* Animation Classes */
.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.feature-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.animate-slide-in {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease-out;
}

/* App Carousel Styles */
.app-carousel {
    position: relative;
    height: 600px;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateZ(-300px) scale(0.6);
    opacity: 0.4;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    max-width: 450px;
}

.carousel-item.active {
    transform: translateX(-50%) translateZ(0) scale(1.1);
    opacity: 1;
    z-index: 10;
}

.carousel-item.prev {
    transform: translateX(-85%) translateZ(-150px) scale(0.75);
    opacity: 0.6;
    z-index: 5;
}

.carousel-item.next {
    transform: translateX(-15%) translateZ(-150px) scale(0.75);
    opacity: 0.6;
    z-index: 5;
}

.image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-container:hover {
    transform: scale(1.08) translateY(-15px);
    box-shadow: 0 40px 80px -12px rgba(0, 0, 0, 0.4);
}

.app-screenshot {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-container:hover .app-screenshot {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.9), rgba(16, 185, 129, 0.9));
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.overlay h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.overlay p {
    font-size: 0.85rem;
    line-height: 1.4;
}

.image-container:hover .overlay {
    transform: translateY(0);
}

.carousel-dots {
    position: relative;
    z-index: 20;
}

.dot {
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s ease;
}

.dot.active {
    background: #059669 !important;
    transform: scale(1.2);
}

.dot:hover {
    transform: scale(1.1);
}

/* Image Modal Styles */
#imageModal {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#imageModal.show {
    display: flex !important;
    animation: modalFadeIn 0.3s ease-out;
}

#imageModal .bg-white {
    animation: modalSlideIn 0.3s ease-out;
}

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

@keyframes modalSlideIn {
    from {
        transform: scale(0.8) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Make carousel images clickable */
.image-container {
    cursor: pointer;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .app-carousel {
        height: 500px;
    }
    
    .carousel-item {
        max-width: 320px;
    }
    
    .carousel-item.prev {
        transform: translateX(-75%) translateZ(-100px) scale(0.65);
    }
    
    .carousel-item.next {
        transform: translateX(-25%) translateZ(-100px) scale(0.65);
    }
    
    .carousel-item.active {
        transform: translateX(-50%) translateZ(0) scale(1.05);
    }
    
    .overlay {
        padding: 1rem;
    }
    
    .overlay h3 {
        font-size: 1rem;
    }
    
    .overlay p {
        font-size: 0.8rem;
    }
}

/* Custom Button Hover Effects */
.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.3);
}

/* Card Hover Effects */
.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Loading Animation */
.loaded {
    opacity: 1;
    transition: opacity 0.5s ease-in;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #059669;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Focus States for Accessibility */
button:focus,
a:focus {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .mobile-menu,
    .mobile-menu-button,
    button {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
