:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    /* Lighter/Brighter Pastels - Dark Mode (Even lighter opacity) */
    --primary-glow: radial-gradient(circle, rgba(190, 144, 212, 0.12), rgba(133, 193, 233, 0.12), rgba(118, 215, 196, 0.12), rgba(130, 224, 170, 0.12), rgba(247, 220, 111, 0.12), rgba(240, 178, 122, 0.12), rgba(241, 148, 138, 0.12));
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-hover: rgba(255, 255, 255, 0.1);
    --window-bg: rgba(20, 20, 20, 0.85);
    --window-header-bg: rgba(255, 255, 255, 0.05);
    --text-secondary: rgba(255, 255, 255, 0.9);
    --glow-blend: screen;
    --btn-bg: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] {
    --bg-color: #e0e5ec;
    --text-color: #1a1a1a;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-hover: rgba(255, 255, 255, 0.8);
    --window-bg: rgba(255, 255, 255, 0.9);
    --window-header-bg: rgba(0, 0, 0, 0.05);
    --text-secondary: rgba(0, 0, 0, 0.8);
    --glow-blend: multiply;
    /* More Visible Pastels - Light Mode (Opacity 0.3) */
    --primary-glow: radial-gradient(circle, rgba(155, 89, 182, 0.3), rgba(52, 152, 219, 0.3), rgba(26, 188, 156, 0.3), rgba(46, 204, 113, 0.3), rgba(241, 196, 15, 0.3), rgba(230, 126, 34, 0.3), rgba(231, 76, 60, 0.3));
    --btn-bg: rgba(0, 0, 0, 0.05);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* justify-content: center; Removed to allow sticky footer behavior */
    align-items: center;
}

/* Mouse Glow Effect */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 900px;
    height: 900px;
    background: var(--primary-glow);
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    /* Start centered on 0,0 usually handled by JS centering */
    /* Correction for the JS translate logic to center the glow on the cursor */
    margin-top: -450px;
    margin-left: -450px;
    mix-blend-mode: var(--glow-blend);
    opacity: 0.8;
}

/* Container */
.container-custom {
    z-index: 1;
    text-align: center;
    width: 90%;
    max-width: 800px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Button System */
.btn-group-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 2rem;
}

.btn-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Center content */
    padding: 15px 30px;
    background: var(--btn-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 200px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 2px;
    /* Soft Pastel Rainbow Gradient */
    background: linear-gradient(45deg, #e74c3c, #e67e22, #f1c40f, #2ecc71, #1abc9c, #3498db, #9b59b6, #e74c3c);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    background-size: 400% 400%;
    animation: rainbow 20s ease infinite;
    z-index: -1;
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: var(--glass-bg);
}

.btn-custom:hover::before {
    opacity: 1;
}

.btn-custom img {
    margin-right: 15px;
    width: 50px;
    /* Larger icon/image */
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    /* Rounded sides (circle) */
}

/* Main buttons specifics */
.btn-main {
    flex: 1;
    min-width: 250px;
    /* Optional: Make them standout more */
    /* background: rgba(255, 255, 255, 0.08); Removed hardcoded bg */
}

/* Minor button specifics */
.btn-minor-wrapper {
    display: flex;
    justify-content: center;
}

.btn-minor {
    font-size: 0.95rem;
    padding: 12px 25px;
    opacity: 0.8;
    min-width: 150px;
}

.btn-minor:hover {
    opacity: 1;
}

/* Content Typography */
h1 {
    margin-bottom: 3rem;
    font-weight: 200;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 2.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .btn-group-main {
        flex-direction: column;
        align-items: center;
    }

    .btn-main {
        width: 80%;
        /* Reduce width on mobile to not touch edges */
        max-width: 350px;
        /* Cap the maximum width */
    }
}

/* Window Overlay/Modal */
.window-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dim background */
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.window-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.window-container {
    width: 600px;
    max-width: 90%;
    background: var(--window-bg);
    /* Darker glass */
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.window-overlay.hidden .window-container {
    transform: scale(0.9);
}

/* Window Header */
.window-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--window-header-bg);
    /* Slightly lighter header */
    border-bottom: 1px solid var(--glass-border);
}

.window-title {
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 1.1rem;
}

.window-title img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.window-close-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.window-close-btn:hover {
    opacity: 1;
    color: #ff5f5f;
}

/* Window Body */
.window-body {
    padding: 25px;
    line-height: 1.6;
    font-size: 1rem;
    color: var(--text-secondary);
}

.window-body p {
    margin-bottom: 1rem;
}

.window-body ul {
    margin-left: 20px;
    margin-bottom: 1rem;
}

/* Discord Button */
.discord-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #5865F2;
    /* Discord Blurple */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.discord-btn:hover {
    background-color: #4752C4;
    /* Darker Blurple */
    transform: scale(1.05);
}

/* Theme Toggle Button */
.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: var(--glass-hover);
    transform: rotate(15deg);
    box-shadow: 0 0 10px var(--glass-border);
}

/* Hide/Show Icons */
[data-theme="light"] .sun-icon {
    display: block !important;
}

[data-theme="light"] .moon-icon {
    display: none !important;
}

/* Site Footer */
.site-footer {
    width: 100%;
    padding: 1rem 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    /* Subtle background */
    backdrop-filter: blur(5px);
    margin-top: auto;
}

/* Footer Social Links */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    /* Ensure successful wrap on very small screens */
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease;
    padding: 0.5rem;
    /* Touch target size */
}

.footer-link:hover,
.footer-link:focus {
    color: var(--text-color);
    transform: translateY(-2px);
}