
/* Dynamic Hero Background */
.hero-bg {
    /* Multiple fallback approaches */
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('https://newcobanpelangi.com/assets/css/assets/images/hero.jpg'),
                url('../images/hero.jpg'),
                linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    background-size: cover, cover, cover, auto;
    background-position: center, center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
}

/* Alternative hero background dengan relative path */
.hero-bg-relative {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('../images/hero.jpg'),
                linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    background-size: cover, cover, auto;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}

/* Debug: Output the actual URL being generated */
/* Generated Dynamic URL: https://newcobanpelangi.com/assets/css/assets/images/hero.jpg */
/* Relative URL: ../images/hero.jpg */

/* Jika hero.jpg tidak ada, gunakan tentangcoban.jpg sebagai fallback */
.hero-bg-fallback {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('https://newcobanpelangi.com/assets/css/assets/images/tentangcoban.jpg'),
                linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    background-size: cover, cover, auto;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .hero-bg {
        background-attachment: scroll;
    }
    
    .gradient-text {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .logo-float {
        width: 3rem;
        height: 3rem;
        margin-right: 0.75rem;
    }
    
    /* Navigation mobile adjustments */
    nav .logo-float {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    nav .gradient-text {
        font-size: 1.5rem;
    }
    
    /* Reduce animation intensity on mobile */
    .glow-text {
        animation: text-glow-mobile 2s ease-in-out infinite alternate;
    }
    
    /* Lighter logo animation on mobile */
    nav .logo-float {
        animation: float-mobile 4s ease-in-out infinite;
    }
}

@keyframes float-mobile {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes text-glow-mobile {
    from {
        text-shadow: 
            0 0 3px rgba(255, 255, 255, 0.6),
            0 0 6px rgba(255, 255, 255, 0.4),
            0 0 9px rgba(255, 107, 107, 0.4);
    }
    to {
        text-shadow: 
            0 0 6px rgba(255, 255, 255, 0.8),
            0 0 12px rgba(255, 255, 255, 0.6),
            0 0 18px rgba(255, 165, 0, 0.6);
    }
}

/* Enhanced rainbow effect */
.gradient-text {
    position: relative;
}

.gradient-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 107, 107, 0.3),
        rgba(255, 165, 0, 0.3),
        rgba(255, 255, 0, 0.3),
        rgba(50, 205, 50, 0.3),
        rgba(0, 191, 255, 0.3),
        rgba(138, 43, 226, 0.3),
        rgba(255, 105, 180, 0.3)
    );
    background-size: 300% 300%;
    animation: rainbow-gradient 3s ease-in-out infinite;
    border-radius: 10px;
    filter: blur(20px);
    z-index: -1;
}

/* Additional dynamic styles untuk gambar lain */
.about-bg {
    background-image: url('https://newcobanpelangi.com/assets/css/assets/images/tentangcoban.jpg');
}

.gallery-placeholder {
    background-image: url('https://newcobanpelangi.com/assets/css/assets/images/placeholder.jpg');
}

/* Hero Title Effects - Gradasi dan Glow */
.gradient-text {
    background: linear-gradient(45deg, 
        #ff6b6b,  /* Red */
        #ffa500,  /* Orange */
        #ffff00,  /* Yellow */
        #32cd32,  /* Green */
        #00bfff,  /* Blue */
        #8a2be2,  /* Purple */
        #ff69b4   /* Pink */
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-gradient 3s ease-in-out infinite;
}

.glow-text {
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 0.8),
        0 0 10px rgba(255, 255, 255, 0.6),
        0 0 15px rgba(255, 255, 255, 0.4),
        0 0 20px rgba(255, 107, 107, 0.6),
        0 0 35px rgba(255, 107, 107, 0.4),
        0 0 40px rgba(255, 107, 107, 0.2);
    animation: text-glow 2s ease-in-out infinite alternate;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Animations */
@keyframes rainbow-gradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes text-glow {
    from {
        text-shadow: 
            0 0 5px rgba(255, 255, 255, 0.8),
            0 0 10px rgba(255, 255, 255, 0.6),
            0 0 15px rgba(255, 255, 255, 0.4),
            0 0 20px rgba(255, 107, 107, 0.6),
            0 0 35px rgba(255, 107, 107, 0.4),
            0 0 40px rgba(255, 107, 107, 0.2);
    }
    to {
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 1),
            0 0 20px rgba(255, 255, 255, 0.8),
            0 0 30px rgba(255, 255, 255, 0.6),
            0 0 40px rgba(255, 165, 0, 0.8),
            0 0 70px rgba(255, 165, 0, 0.6),
            0 0 80px rgba(255, 165, 0, 0.4);
    }
}

/* Logo Animation */
.logo-float {
    animation: float 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.logo-float:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)) !important;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Navigation Logo Specific */
nav .logo-float {
    animation: float 4s ease-in-out infinite;
}

nav .logo-float:hover {
    transform: scale(1.15) translateY(-2px);
}

/* Navigation Gradient Text */
nav .gradient-text {
    background: linear-gradient(45deg, 
        #2563eb,  /* Blue */
        #059669,  /* Green */
        #dc2626,  /* Red */
        #7c3aed   /* Purple */
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: nav-gradient 4s ease-in-out infinite;
}

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

/* Hidden Admin Menu Styles */
#admin-menu-desktop,
#admin-menu-mobile,
#admin-footer-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

#admin-menu-desktop.hidden,
#admin-menu-mobile.hidden,
#admin-footer-link.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Admin notification styles */
#admin-notification {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Security pulse effect for admin menu when visible */
@keyframes security-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
}

#admin-menu-desktop:not(.hidden),
#admin-menu-mobile:not(.hidden) {
    animation: security-pulse 2s infinite;
}

/* Easter egg - konami code style */
.admin-easter-egg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    animation: rainbow-gradient 2s ease infinite;
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    z-index: 9999;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}
