html {
    --primary-color: #ff79c6;
    --secondary-color: #bd93f9;
    --accent-color: #50fa7b;
    --background-color: #0f0f19;
    --card-color: rgb(34, 34, 54);
    --text-color: #e9e9ef;
}

html.light {
    --primary-color: #e9a0d9;
    --secondary-color: #f8c8dc;
    --accent-color: #cc82df;
    --background-color: #fdfdfd;
    --card-color: #ffffff;
    --text-color: #dbb5ec;
}

.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1200;
    background: var(--primary-color);
    color: var(--background-color);
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease, color 0.3s ease;
}

.theme-toggle:hover {
    background: var(--accent-color);
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", sans-serif;
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.site-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 2rem 1rem;
    text-align: center;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.site-header h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.8rem);
    color: #fff;
}

.site-header p {
    margin-top: 0.5rem;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--accent-color);
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--card-color);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    border-bottom: 1px solid #2e2e40;
}

.navbar a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.navbar a:hover {
    color: var(--primary-color);
}

.main-content {
    max-width: 90%;
    margin: 2rem auto;
    padding: clamp(1rem, 2vw, 2rem);
    background: var(--card-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.card {
    background: var(--card-color);
    border: 1px solid #2e2e40;
    border-radius: 8px;
    padding: 1.2rem;
    margin: 1rem 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.card h2 {
    color: var(--primary-color);
    margin-top: 0;
}

.card p {
    color: var(--text-color);
}

.site-footer {
    background: var(--card-color);
    padding: 1.5rem;
    text-align: center;
    margin-top: 3rem;
    border-top: 1px solid #2e2e40;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.25);
}

.site-footer p {
    margin: 0.5rem 0;
    color: #9a9ab0;
    font-size: 0.9rem;
}

.site-footer a {
    color: var(--accent-color);
    text-decoration: none;
    margin: 0 0.5rem;
}

.site-footer a:hover {
    text-decoration: underline;
}

#scrollTopBtn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1100;
    background: var(--accent-color);
    color: var(--background-color);
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    transition: background 0.3s ease, transform 0.2s ease;
    animation: pulseGlow 2.5s infinite;
}

#scrollTopBtn:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

#scrollTopBtn:active {
    transform: translateY(0);
}

.glow-pulse {
    animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 5px rgba(255, 121, 198, 0.6),
            0 0 10px rgba(255, 121, 198, 0.4);
    }

    50% {
        box-shadow: 0 0 12px rgba(255, 121, 198, 0.8),
            0 0 20px rgba(255, 121, 198, 0.6);
    }

    100% {
        box-shadow: 0 0 5px rgba(255, 121, 198, 0.6),
            0 0 10px rgba(255, 121, 198, 0.4);
    }
}

@media (min-width: 1200px) {
    .main-content {
        max-width: 70%;
    }
}

@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        gap: 0.75rem;
    }

    .card {
        padding: 1rem;
    }
}