/* Custom styles for Tailwind CSS enhanced portfolio */
.text-align-justify {
    text-align: justify;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom gradient backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Animation for carousel */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

/* Notable font */
.notable-regular {
    font-family: "Notable", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* Accordion animation styles */
.accordion-content {
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, padding 0.5s ease-in-out;
}

.accordion-content.accordion-open {
    max-height: 1000px !important;
    opacity: 1 !important;
}

/* Modal animation styles */
.modal-overlay {
    transition: opacity 0.3s ease-in-out;
}

.modal-overlay.modal-show {
    animation: fadeIn 0.3s ease-in-out;
}

.modal-overlay.modal-hide {
    animation: fadeOut 0.3s ease-in-out;
}

.modal-content {
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.modal-overlay.modal-show .modal-content {
    animation: slideUp 0.4s ease-out;
}

.modal-overlay.modal-hide .modal-content {
    animation: slideDown 0.3s ease-in;
}

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

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

@keyframes slideUp {
    from {
        transform: translateY(50px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateY(30px) scale(0.98);
        opacity: 0;
    }
}

/* Carousel slides */
.poster-slide, .illustration-slide, .photography-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.poster-slide.active, .illustration-slide.active, .photography-slide.active {
    opacity: 1;
}

/* Smooth transition for zoomed image */
#zoomedImage {
    transition: opacity 0.2s ease-in-out;
}

/* Hamburger menu animations */
.hamburger-menu {
    cursor: pointer;
}

.hamburger-line {
    transform-origin: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active state - hamburger transforms to X */
.hamburger-active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hover effect for hamburger */
.hamburger-menu:hover .hamburger-line {
    background-color: #374151;
}

/* Mobile menu animation styles */
#mobile-menu {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease-in-out;
}

/* Menu link stagger animation */
#mobile-menu a {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease-in-out;
}