/* Global Styles */
:root {
    --primary-green: #0B4619;
    --primary-gold: #D4AF37;
    --primary-brown: #4A3219;
    --text-color: #333;
    --transition-speed: 0.3s;
}

body {
    margin: 0;
    font-family: 'Cinzel', serif;
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

p {
    font-family: 'Lato', sans-serif;
}

/* Logo Styles */
.vs-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(255,255,255,0));
    border-radius: 50%;
    width: 200px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.vs-logo {
    width: 150px;
    height: 150px;
    background: url('/static/images/vs-logo.png') center/contain no-repeat;
    position: relative;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    margin: 0 auto;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-bottom: 60px;
}

.hero-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(20, 20, 20, 0.95) 0%,
        rgba(74, 50, 25, 0.8) 40%,
        rgba(212, 175, 55, 0.6) 80%,
        rgba(255, 255, 255, 0.4) 100%
    );
    z-index: 1;
}

/* Parallax Section */
.parallax-section {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 60px 0;
}

/* Initiative Section */
.initiative {
    background: linear-gradient(135deg, #fff, #faf6e9);
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.initiative-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.initiative-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.vs-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(255,255,255,0));
    border-radius: 50%;
    width: 160px;
    position: relative;
}

.vs-logo {
    width: 150px;
    height: 150px;
    background: url('/static/images/vs-logo.png') center/contain no-repeat;
    position: relative;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.initiative h2 {
    color: var(--primary-brown);
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.initiative-content p {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.initiative-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(250px, 1fr));
    gap: 30px;
    margin: 0 auto 40px;
    width: 100%;
    max-width: 800px; /* Control maximum width for better centering */
}

.highlight-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center; /* Center content inside boxes */
}

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

.highlight-item i {
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 15px;
}

.highlight-item h3 {
    margin: 15px 0;
    color: var(--primary-brown);
}

.initiative-document-btn {
    display: inline-block;
    margin: 20px auto 0;
    padding: 20px 35px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-brown));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.initiative-document-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    color: white;
    text-decoration: none;
}

.initiative-document-btn i {
    margin-right: 12px;
}

/* Contact Section */
.contact {
    background: url('https://images.unsplash.com/photo-1557264351-1de591f88634') center/cover fixed;
    position: relative;
    color: #333;
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    clear: both;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
}

.contact-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 20px 60px;
    text-align: center;
}

.contact-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
}

.contact h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-green);
}

.contact form {
    max-width: 600px;
    margin: 0 auto 30px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
    width: 100%;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    margin-top: 8px;
}

.form-group label {
    display: block;
    text-align: left;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Button Styles */
.button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(45deg, var(--primary-green), var(--primary-gold));
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    min-width: 250px;
    text-align: center;
}

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

.button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3),
                0 0 20px rgba(212, 175, 55, 0.2);
    text-decoration: none;
    color: white;
}

.button:hover:before {
    left: 100%;
}

.glow-button {
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: linear-gradient(45deg, var(--primary-green), var(--primary-gold));
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.glow-button:after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 60%);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
    z-index: -1;
}

.glow-button:hover {
    background-position: right center;
}

.glow-button:hover:after {
    transform: scale(1);
    opacity: 1;
}

.download-btn {
    background: linear-gradient(45deg, var(--primary-brown), var(--primary-gold));
    background-size: 200% 200%;
}

.download-btn:hover {
    background-position: right center;
}

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

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 2rem;
}

.hero-buttons .button {
    min-width: 250px;
    text-align: center;
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 0 20px;
    }

    .hero-buttons .button {
        width: 100%;
        max-width: 250px;
        font-size: 1rem;
        padding: 12px 24px;
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-gold);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-family: 'Cinzel', serif;
    width: 100%;
    text-align: center;
}

.hero-title .accent {
    color: white;
    display: block;
    font-size: 5rem;
    margin-top: 0.5rem;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    color: white;
    font-family: 'Lato', sans-serif;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    width: 100%;
    text-align: center;
}

.download-btn {
    background: linear-gradient(45deg, var(--primary-brown), var(--primary-gold));
}

.download-btn i {
    margin-right: 8px;
}

.modal-content {
    background: linear-gradient(135deg, #fff, #faf6e9);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.mc-field-group {
    margin-bottom: 25px;
}

.mc-field-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-green);
    font-family: 'Cinzel', serif;
}

.mc-field-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.mc-field-group input:focus {
    border-color: var(--primary-gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.required {
    color: #d23;
    margin-left: 4px;
}

#mc-embedded-subscribe {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    font-size: 1.1rem;
}

.download-link {
    display: none;
}

/* Chatbot Styles */
.chatbot-container {
    max-width: 900px;
    width: 90%;
    margin: 2rem auto 3rem;
    position: relative;
    z-index: 2;
}

.chatbot-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.chatbot-header {
    text-align: center;
    margin-bottom: 20px;
}

.chatbot-header h3 {
    color: var(--primary-gold);
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-family: 'Cinzel', serif;
}

.chatbot-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0;
    font-family: 'Lato', sans-serif;
}

.chatbot-interface {
    display: flex;
    flex-direction: column;
    max-height: 800px;
    gap: 15px;
}

.chat-messages-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 15px;
    max-height: 700px;
}

.chat-messages {
    padding: 25px;
    max-height: 1000px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    flex: 1;
}



.chat-message {
    margin-bottom: 20px;
    padding: 20px 25px;
    border-radius: 15px;
    font-family: 'Lato', sans-serif;
    line-height: 1.7;
    max-width: 90%;
    word-wrap: break-word;
    white-space: normal;
    font-size: 1rem;
}

.chat-message.user {
    background: var(--primary-gold);
    color: var(--primary-brown);
    margin-left: auto;
    margin-right: 0;
    text-align: right;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.chat-message.bot {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-color);
    margin-left: 0;
    margin-right: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    line-height: 1.6;
}

.chat-message.bot strong {
    color: var(--primary-green);
    font-weight: 600;
}

.chat-message.bot br {
    line-height: 1.8;
}

.chat-message.user::before {
    content: "You: ";
    font-weight: bold;
}

.chat-message.bot::before {
    content: "🏠 HOA Assistant: ";
    font-weight: bold;
    color: var(--primary-green);
}

.chat-input-container {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    padding: 20px;
    flex-shrink: 0;
    order: -1;
}

#chatInput {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    outline: none;
    transition: all var(--transition-speed) ease;
    min-height: 60px;
    resize: vertical;
    backdrop-filter: blur(5px);
}

#chatInput::placeholder {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

#chatInput:focus {
    border-color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.4);
}

#sendChatBtn {
    background: linear-gradient(45deg, var(--primary-gold), #f4d03f);
    color: var(--primary-brown);
    border: none;
    border-radius: 25px;
    padding: 15px 25px;
    font-family: 'Lato', sans-serif;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#sendChatBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

#sendChatBtn:active {
    transform: translateY(0);
}

#sendChatBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.chat-loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(74, 50, 25, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-brown);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Typing indicator animation */
.typing-indicator {
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    padding: 10px 0;
    opacity: 0.8;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
}

/* Chat message animations */
.chat-message {
    animation: slideInFromTop 0.3s ease-out;
}

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

/* Custom scrollbar for chat messages */
.chat-messages-content::-webkit-scrollbar {
    width: 6px;
}

.chat-messages-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.chat-messages-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.chat-messages-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .hero-inner,
    .initiative-inner,
    .contact-inner {
        padding: 40px 20px;
    }

    .initiative-content,
    .contact form {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .initiative-inner {
        padding: 40px 20px;
    }

    .vs-logo-container {
        width: 160px;
        margin-bottom: 30px;
    }

    .vs-logo {
        width: 120px;
        height: 120px;
    }

    .initiative h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .initiative-content p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .initiative-highlights {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 90%; /* Slightly narrower on mobile */
    }

    .highlight-item {
        padding: 20px;
    }

    .initiative-document-btn {
        padding: 15px 25px;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }
    .hero-inner {
        padding: 0 20px;
    }

    .contact-inner {
        padding: 40px 20px;
    }

    .contact form {
        padding: 20px;
        margin: 0 auto 20px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .contact {
        padding: 40px 0;
    }
}

@media (min-width: 769px) {
    html {
        scroll-behavior: smooth;
    }
}

.hero-content,
.modal-content,
.initiative-highlights,
.contact form {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}


@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 0 20px;
    }

    .hero-buttons .button {
        width: 100%;
        max-width: 250px;
        font-size: 1rem;
        padding: 12px 24px;
    }
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 10px;
    }

    .hero-title .accent {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        padding: 0 20px;
        line-height: 1.4;
        margin-bottom: 20px;
    }
    
    .chatbot-container {
        width: 98%;
        max-width: none;
        margin: 1rem auto 2rem;
    }
    
    .chatbot-box {
        padding: 20px;
        margin: 0;
        border-radius: 20px;
    }
    
    .chatbot-header h3 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    
    .chatbot-header p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .chatbot-interface {
        max-height: 600px;
        gap: 15px;
    }
    
    .chat-messages {
        max-height: 400px;
        min-height: 300px;
        padding: 15px;
        border-radius: 15px;
    }
    
    .chat-messages-content {
        max-height: 380px;
    }
    
    .chat-input-container {
        padding: 20px;
        gap: 12px;
        align-items: stretch;
    }
    
    .chat-message {
        max-width: 100%;
        padding: 15px 18px;
        font-size: 1rem;
        margin-bottom: 15px;
        border-radius: 15px;
        line-height: 1.5;
    }
    
    .chat-message.bot::before {
        content: "🏠 ";
        font-size: 1.1rem;
    }
    
    #chatInput {
        min-height: 50px;
        padding: 15px 18px;
        font-size: 1rem;
        border-radius: 15px;
    }
    
    #sendChatBtn {
        padding: 15px 20px;
        font-size: 0.9rem;
        min-width: 80px;
        border-radius: 15px;
    }
}

/* Extra small mobile devices (iPhone SE, small phones) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-title .accent {
        font-size: 2.8rem;
    }
    
    .chatbot-container {
        margin: 0.5rem auto 1rem;
        width: 99%;
    }
    
    .chatbot-box {
        padding: 15px;
        border-radius: 18px;
    }
    
    .chatbot-header h3 {
        font-size: 1.2rem;
    }
    
    .chatbot-header p {
        font-size: 0.85rem;
    }
    
    .chatbot-interface {
        max-height: 550px;
        gap: 12px;
    }
    
    .chat-messages {
        max-height: 350px;
        min-height: 250px;
        padding: 12px;
    }
    
    .chat-input-container {
        padding: 12px;
    }
    
    .chat-message {
        padding: 10px 12px;
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    
    #chatInput {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    #sendChatBtn {
        padding: 8px 12px;
        font-size: 0.75rem;
        min-width: 50px;
    }
    
    .chat-input-container {
        gap: 6px;
        margin-top: 6px;
        padding-top: 6px;
    }
    
    .hero-section {
        min-height: 100vh;
        padding: 0 10px;
    }
    
    .hero-content {
        padding: 20px 10px;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #fff, #faf6e9);
    margin: 10% auto;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 1px solid rgba(212,175,55,0.2);
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--primary-green);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-green), var(--primary-gold));
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phoenix-loader {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
}

.vs-logo::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0) 70%);
    animation: haloGlow 2s infinite alternate;
}

.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-fallback img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catholic-symbol {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D4AF37'%3E%3Cpath d='M12 2l2 4h4l-3 3 1 4-4-2-4 2 1-4-3-3h4z'/%3E%3C/path%3E%3C/svg%3E") center/contain no-repeat;
}

.particle {
    position: absolute;
    bottom: -20px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.6), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.particle:nth-child(1) {
    left: 20%;
    width: 120px;
    height: 120px;
    animation: particleRise 8s infinite ease-out;
}

.particle:nth-child(2) {
    left: 40%;
    width: 100px;
    height: 100px;
    animation: particleRise 10s infinite ease-out 1s;
}

.particle:nth-child(3) {
    left: 60%;
    width: 140px;
    height: 140px;
    animation: particleRise 9s infinite ease-out 2s;
}

.particle:nth-child(4) {
    left: 80%;
    width: 110px;
    height: 110px;
    animation: particleRise 11s infinite ease-out 0.5s;
}

.particle:nth-child(5) {
    left: 30%;
    width: 130px;
    height: 130px;
    animation: particleRise 12s infinite ease-out 1.5s;
}

.particle:nth-child(6) {
    left: 70%;
    width: 115px;
    height: 115px;
    animation: particleRise 10s infinite ease-out 2.5s;
}

@keyframes particleRise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    20% {
        opacity: 0.6;
    }
    80% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-800px) scale(1.5);
        opacity: 0;
    }
}

.particles-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

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

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

@keyframes haloGlow {
    from {
        opacity: 0.4;
        transform: scale(1);
    }
    to {
        opacity: 0.8;
        transform: scale(1.1);
    }
}


/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    border-radius: 15px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--primary-gold);
    border-radius: 50%;
    border-top: 4px solid var(--primary-green);
    animation: spin 1s linear infinite;
}

/* Alert Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    animation: fadeIn 0.5s ease-in-out;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

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