@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
    --color-primary: #581c87; /* Mystical deep purple */
    --color-primary-dark: #3b0764; 
    --color-secondary: #fbbf24; /* Glowing gold */
    --color-secondary-hover: #f59e0b;
    --color-background: #0f0518; /* Very dark background */
    --color-text: #e5e7eb;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    overflow-x: hidden;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

/* Glassmorphism Components */
.glass-panel {
    background: rgba(88, 28, 135, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-card {
    background: linear-gradient(145deg, rgba(88, 28, 135, 0.2) 0%, rgba(59, 7, 100, 0.3) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 85, 247, 0.15);
    transition: all 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 10px 40px -10px rgba(251, 191, 36, 0.4);
}

/* Gold Glowing Elements */
.glow-gold {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
    transition: box-shadow 0.3s ease;
}

.glow-gold:hover {
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.8);
}

.text-gradient-gold {
    background: linear-gradient(to right, #fef08a, #fbbf24, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom CTA Button */
.btn-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #111827;
    transition: all 0.3s ease;
    z-index: 1;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, #fef08a 0%, #fbbf24 100%);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-cta:hover::before {
    width: 100%;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(251, 191, 36, 0.6);
}

/* Image Lightbox Modal */
.modal {
    background-color: rgba(15, 5, 24, 0.95);
    backdrop-filter: blur(10px);
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.visible .modal-content {
    transform: scale(1);
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Float Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Glowing Pulse Animation */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(251, 191, 36, 0); }
    100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

.pulse-glow {
    animation: pulseGlow 2s infinite;
}

/* Gallery Masonry Support */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 1.5rem;
    grid-auto-flow: dense;
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 0.75rem;
    position: relative;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.gallery-item img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 5, 24, 0.8) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    color: white;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover .gallery-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
