/* Custom premium styles for Amin Business Center */

:root {
    --gold-primary: #f59e0b;
    --premium-bg: #0f172a;
}

html {
    overflow-x: hidden;
    scroll-padding-top: 6rem;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}

/* Glassmorphism utility */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Nav backdrop change on scroll */
nav#main-nav.scrolled {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

nav#main-nav.scrolled>div {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(255, 255, 255, 0.05);
}

/* Section transitions */
section {
    position: relative;
}

/* Carousel specific styles */
#carousel-track {
    will-change: transform;
    display: flex;
    align-items: stretch;
    /* Ensure all cards have the same height as the tallest one */
}

.carousel-item {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    flex-shrink: 0;
    height: auto;
    /* Allow items to grow with content */
    display: flex;
}

.carousel-item>div {
    flex: 1;
    /* Make the card take the full height of the carousel-item */
    display: flex;
    flex-direction: column;
}

#prev-btn,
#next-btn {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#prev-btn:hover:not(:disabled),
#next-btn:hover:not(:disabled) {
    background-color: #0f172a;
    color: #fbbf24;
    transform: scale(1.1);
}

#prev-btn:disabled,
#next-btn:disabled {
    opacity: 0.15;
    cursor: not-allowed;
    filter: grayscale(1);
    transform: scale(0.95);
}

/* Hide scrollbar for the container on mobile */

#carousel-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#carousel-container::-webkit-scrollbar {
    display: none;
}

/* Modal and Slideshow Styles */
#slideshow-modal.flex,
#form-modal.flex {
    display: flex !important;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#slideshow-img {
    animation: zoomFade 0.5s ease-out;
}

@keyframes zoomFade {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.open-slideshow:hover {
    color: var(--gold-primary);
}

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

.interest-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.3);
}