/* Global variables for light/dark mode */
:root {
    --bg-color-light: #ffffff;
    --bg-color-dark: #121212;
    --text-color-light: #2c3e50;
    --text-color-dark: #f8e6c1; /* Gold */
    --primary-color-light: #4a90e2;
    --primary-color-dark: #e3b505; /* Gold */
    --dot-color-light: rgba(74, 144, 226, 0.4);
    --dot-color-dark: rgba(227, 181, 5, 0.5); /* Gold */
    --modal-bg-light: rgba(255, 255, 255, 0.9);
    --modal-bg-dark: rgba(18, 18, 18, 0.8);
    --gradient-light: radial-gradient(circle, rgba(74, 144, 226, 0.3), rgba(255, 255, 255, 0.7));
    --gradient-dark: radial-gradient(circle, rgba(227, 181, 5, 0.3), rgba(18, 18, 18, 0.8)); /* Gold center, black edges */
    --close-btn-hover-color-light: #357abd;
    --close-btn-hover-color-dark: #e3b505; /* Gold */
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color-light: var(--bg-color-dark);
        --text-color-light: var(--text-color-dark);
        --primary-color-light: var(--primary-color-dark);
        --dot-color-light: var(--dot-color-dark);
        --modal-bg-light: var(--modal-bg-dark);
        --gradient-light: var(--gradient-dark);
        --close-btn-hover-color-light: var(--close-btn-hover-color-dark);
    }
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    color: var(--text-color-light);
    background-color: var(--bg-color-light);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Background gradient with dynamic movement */
.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-light); /* Use gradient based on theme */
    filter: blur(60px);
    z-index: -2;
    animation: gradientMove 20s infinite;
}

/* Keyframes for the background gradient movement */
@keyframes gradientMove {
    0%, 100% {
        background-position: 50% 50%;
    }
    25% {
        background-position: 70% 30%;
    }
    50% {
        background-position: 80% 20%;
    }
    75% {
        background-position: 30% 70%;
    }
}

/* Floating dots */
.floating-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.floating-dots span {
    position: absolute;
    display: block;
    width: 15px;
    height: 15px;
    background: var(--dot-color-light);
    border-radius: 50%;
    opacity: 0;
    animation: float infinite ease-in-out, fadeInOut linear forwards;
}

/* Floating dots animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.2);
    }
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Content */
.content {
    text-align: center;
    z-index: 1;
}

.content h1 {
    font-size: 3rem;
    margin: 0;
    color: var(--primary-color-light);
}

.content p {
    font-size: 1.2rem;
    margin: 10px 0;
}

.content a {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1rem;
    color: var(--bg-color-light);
    background: var(--primary-color-light);
    text-decoration: none;
    border-radius: 25px;
    transition: background 0.3s;
    cursor: pointer;
}

.content a:hover {
    background: #357abd;
}

/* Modal */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 80%;
    max-width: 400px;
    padding: 20px;
    background: var(--modal-bg-light);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    text-align: center;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

.modal.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.modal h2 {
    margin: 0 0 10px;
    font-size: 1.5rem;
    color: var(--text-color-light);
}

.modal p {
    margin: 10px 0;
    font-size: 1rem;
    color: var(--text-color-light);
}

.modal .close-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background: var(--primary-color-light);
    color: var(--bg-color-light);
    text-decoration: none;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.modal .close-btn:hover {
    background: var(--close-btn-hover-color-light);
}

