/* Custom Animations and Extensions */

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

@keyframes scale-in {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.animate-fade-in-up {
    animation: fade-in-up 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.animate-scale-in {
    animation: scale-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.animate-fade-in {
    animation: fade-in 0.5s ease forwards;
}

.animate-slide-down {
    animation: slide-down 0.4s ease forwards;
}

.animate-bounce-subtle {
    animation: bounce-subtle 3s ease-in-out infinite;
}

@keyframes bounce-subtle {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.05); }
}

/* Intersection Observer Helpers */
.section-animate {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.section-animate.animate-play {
    opacity: 1;
}

.animate-scale-in.animate-scale-in-play {
    animation: scale-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Ornament pseudo-elements */
.ornament::before,
.ornament::after {
    content: '✦';
    color: #D4AF37; /* gold */
    margin: 0 0.75rem;
    font-size: 0.75rem;
    vertical-align: middle;
}

/* Custom Utilities */
.bg-gradient-gold {
    background: linear-gradient(135deg, #D4AF37 0%, #F4E7A0 50%, #D4AF37 100%);
}

.text-gold-gradient {
    background: linear-gradient(135deg, #A67C00 0%, #D4AF37 50%, #A67C00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shadow-gold {
    box-shadow: 0 10px 30px -10px rgba(212, 175, 55, 0.3);
}

.border-gold-shimmer {
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.border-gold-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s ease;
}

.border-gold-shimmer:hover::after {
    left: 100%;
}

/* Lightbox Enhancements */
#lightbox-img {
    filter: drop-shadow(0 25px 50px rgba(212, 175, 55, 0.25));
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 5px;
    border: 2px solid #fdf9f2;
}

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

/* Responsive Overrides */
@media (max-width: 768px) {
    .ornament::before,
    .ornament::after {
        margin: 0 0.5rem;
    }
}
