
:root {
    --background-color: #1a1a1a;
    --text-color: #ffffff;
    --primary-color: #4CAF50;
    --secondary-color: #FFC107;
    --font-family: 'Roboto', sans-serif;
}

:root.light-theme {
    --background-color: #ffffff;
    --text-color: #1a1a1a;
    --primary-color: #2196F3;
    --secondary-color: #FF9800;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-family);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

:root.light-theme body {
    background-image: linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
}

main {
    text-align: center;
}

h1 {
    font-size: 3rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.theme-toggle {
    background-color: var(--secondary-color);
    color: var(--background-color);
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 10px var(--secondary-color);
}

/* Contact Form Styles */
#contact-form-section {
    margin-top: 50px;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 100%;
}

#contact-form-section h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-shadow: 0 0 8px var(--primary-color);
}

#contact-form label {
    display: block;
    text-align: left;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 1.1rem;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
    width: calc(100% - 20px);
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

#contact-form input[type="text"]:focus,
#contact-form input[type="email"]:focus,
#contact-form textarea:focus {
    border-color: var(--secondary-color);
    background-color: rgba(255, 255, 255, 0.15);
    outline: none;
}

#contact-form textarea {
    resize: vertical;
}

#contact-form button[type="submit"] {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 0 15px var(--primary-color);
    transition: all 0.3s ease;
    width: 100%;
}

#contact-form button[type="submit"]:hover {
    background-color: #45a049;
    box-shadow: 0 0 25px var(--primary-color);
}

/* Light theme adjustments for form */
:root.light-theme #contact-form-section {
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

:root.light-theme #contact-form-section h2 {
    color: var(--primary-color);
    text-shadow: none;
}

:root.light-theme #contact-form input[type="text"],
:root.light-theme #contact-form input[type="email"],
:root.light-theme #contact-form textarea {
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--primary-color);
    color: var(--text-color);
}

:root.light-theme #contact-form input[type="text"]:focus,
:root.light-theme #contact-form input[type="email"]:focus,
:root.light-theme #contact-form textarea:focus {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Disqus Thread Styles */
#disqus_thread {
    max-width: 800px;
    width: 90%;
    margin: 50px auto;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

:root.light-theme #disqus_thread {
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

/* Adjust Disqus text color for theme */
#disqus_thread #dsq-content {
    color: var(--text-color);
}

