/* Custom styles for Kaptain and the Creator website */

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

/* Custom animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.5); }
    50% { box-shadow: 0 0 40px rgba(168, 85, 247, 0.8); }
}

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

/* Gradient text animation */
.gradient-text {
    background: linear-gradient(45deg, #a855f7, #ec4899, #a855f7);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hero section background animation */
.hero-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #c471f5 75%, #667eea 100%);
    background-size: 400% 400%;
    animation: gradient-animation 15s ease infinite;
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating animation for hero elements */
.floating {
    animation: float 6s ease-in-out infinite;
}

/* Glow effect for interactive elements */
.glow-on-hover:hover {
    animation: glow 2s ease-in-out infinite;
}

/* Fade in animation for sections */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #a855f7, #ec4899);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #9333ea, #db2777);
}

/* Mobile menu animations */
.mobile-menu-enter {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery hover effects */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(168, 85, 247, 0.3), rgba(236, 72, 153, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::before {
    opacity: 1;
}

/* Form input focus effects */
.form-input:focus {
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

/* Button hover effects */
.btn-gradient {
    position: relative;
    overflow: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-gradient:hover::before {
    left: 100%;
}

/* Navigation backdrop blur enhancement */
.nav-blur {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Section spacing */
.section-padding {
    padding: 5rem 0;
}

/* Responsive typography */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
        line-height: 1.2;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

/* ===== Mural Carousel ===== */
.mural-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    padding: 0;
}

.mural-row {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.mural-row::before,
.mural-row::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.mural-row::before {
    left: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 1), transparent);
}

.mural-row::after {
    right: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 1), transparent);
}

.mural-track {
    display: flex;
    gap: 8px;
    width: max-content;
    will-change: transform;
}

.mural-scroll-left .mural-track {
    animation: mural-slide-left 60s linear infinite;
}

.mural-scroll-right .mural-track {
    animation: mural-slide-right 60s linear infinite;
}

.mural-row:hover .mural-track {
    animation-play-state: paused;
}

@keyframes mural-slide-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes mural-slide-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.mural-img {
    height: 180px;
    width: auto;
    min-width: 140px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
    filter: brightness(0.85);
}

.mural-img:hover {
    transform: scale(1.08);
    filter: brightness(1);
    z-index: 3;
    position: relative;
}

.mural-img.mural-tall {
    width: 160px;
}

.mural-img.mural-wide {
    width: 280px;
}

@media (max-width: 768px) {
    .mural-img {
        height: 120px;
        min-width: 100px;
    }
    .mural-img.mural-tall {
        width: 110px;
    }
    .mural-img.mural-wide {
        width: 190px;
    }
    .mural-row::before,
    .mural-row::after {
        width: 40px;
    }
}

/* Loading animation */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(168, 85, 247, 0.3);
    border-top: 4px solid #a855f7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success message animation */
.success-message {
    animation: fadeInUp 0.5s ease;
}

/* Parallax effect for hero section */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
}
