:root {
    --bg-color: #E9EAE8;
    --primary-color: #A4BAA3; /* Sage Green */
    --primary-hover: #8F9E8E;
    --accent-color: #C5B05E; /* Gold */
    --text-color: #4A4A4A;
    --card-bg: #FFFFFF;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 50% 50%, #E9EAE8 0%, #D7D2AF 100%);
    color: var(--text-color);
    overflow-x: hidden; /* Prevent scrollbar from animations */
}

/* Firefly Animation */
.firefly {
    position: fixed;
    left: 50%;
    top: 50%;
    width: 0.6vw; /* Increased from 0.4vw */
    height: 0.6vw; /* Increased from 0.4vw */
    margin: -0.3vw 0 0 9.8vw;
    animation: ease 200s alternate infinite;
    pointer-events: none;
}

.firefly::before,
.firefly::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform-origin: -10vw;
}

.firefly::before {
    background: var(--accent-color); /* Gold glow */
    opacity: 0.6; /* Increased opacity */
    animation: drift ease alternate infinite;
}

.firefly::after {
    background: white;
    opacity: 0;
    box-shadow: 0 0 0vw 0vw var(--accent-color);
    animation: drift ease alternate infinite, flash ease infinite;
}

/* Randomize fireflies */
.firefly:nth-child(1) { animation-name: move1; }
.firefly:nth-child(1)::before { animation-duration: 18s; }
.firefly:nth-child(1)::after { animation-duration: 18s, 8000ms; animation-delay: 0ms, 1000ms; }

.firefly:nth-child(2) { animation-name: move2; }
.firefly:nth-child(2)::before { animation-duration: 12s; }
.firefly:nth-child(2)::after { animation-duration: 12s, 9000ms; animation-delay: 0ms, 2500ms; }

.firefly:nth-child(3) { animation-name: move3; }
.firefly:nth-child(3)::before { animation-duration: 15s; }
.firefly:nth-child(3)::after { animation-duration: 15s, 7500ms; animation-delay: 0ms, 5000ms; }

.firefly:nth-child(4) { animation-name: move4; }
.firefly:nth-child(4)::before { animation-duration: 19s; }
.firefly:nth-child(4)::after { animation-duration: 19s, 6000ms; animation-delay: 0ms, 1500ms; }

.firefly:nth-child(5) { animation-name: move5; }
.firefly:nth-child(5)::before { animation-duration: 14s; }
.firefly:nth-child(5)::after { animation-duration: 14s, 8500ms; animation-delay: 0ms, 3000ms; }

/* ... more randomization could be added, keeping it simple for now ... */

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

@keyframes flash {
    0%, 30%, 100% { opacity: 0; box-shadow: 0 0 0vw 0vw var(--accent-color); }
    5% { opacity: 1; box-shadow: 0 0 3vw 0.6vw var(--accent-color); } /* Increased glow spread */
}

/* Movement Keyframes (simplified for brevity but effective) */
@keyframes move1 { 0% { transform: translateX(10vw) translateY(-20vh) scale(0.5); } 100% { transform: translateX(-30vw) translateY(40vh) scale(1); } }
@keyframes move2 { 0% { transform: translateX(-20vw) translateY(30vh) scale(0.8); } 100% { transform: translateX(40vw) translateY(-10vh) scale(0.6); } }
@keyframes move3 { 0% { transform: translateX(30vw) translateY(-40vh) scale(0.3); } 100% { transform: translateX(-10vw) translateY(20vh) scale(0.7); } }
@keyframes move4 { 0% { transform: translateX(-40vw) translateY(10vh) scale(0.9); } 100% { transform: translateX(20vw) translateY(-30vh) scale(0.4); } }
@keyframes move5 { 0% { transform: translateX(20vw) translateY(50vh) scale(0.6); } 100% { transform: translateX(-50vw) translateY(-20vh) scale(0.8); } }


h1, h2, h3, h4, h5, h6, .modal-title {
    font-family: 'Playfair Display', serif;
    color: #2c3e50;
}

.text-primary {
    color: var(--primary-color) !important;
}

.card {
    border-radius: 1rem;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 10; /* Ensure card is above animations */
}

.card:hover {
    transform: translateY(-5px);
}

.form-control, .form-select {
    border-radius: 0.5rem;
    border: 1px solid #d1d1d1;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    background-color: #fdfdfd;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(164, 186, 163, 0.25);
}

.btn-primary {
    border-radius: 0.5rem;
    padding: 0.75rem;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(164, 186, 163, 0.4);
}

/* Gold accent for specific elements if needed */
.accent-text {
    color: var(--accent-color);
}

.modal-content {
    border-radius: 1rem;
    border: none;
}

.modal-header {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background-color: #f8f9fa;
    border-radius: 1rem 1rem 0 0;
}

.modal-header.bg-success {
    background-color: var(--primary-color) !important;
}

.modal-header.bg-danger {
    background-color: #dc3545 !important;
}

.btn-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-success:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Mobile optimizations */
@media (max-width: 576px) {
    .container {
        padding: 1rem;
    }
    
    .card {
        padding: 1.5rem !important;
    }
}

/* Footer Styling */
footer {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(0,0,0,0.05);
    z-index: 20; /* Above animations and card */
}

footer p {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
}
