/* Base Styles and Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    position: relative;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    transition: background var(--transition-slow), color var(--transition-slow);
    overflow-x: hidden;
}

/* Decorative background gradient overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.18), transparent 55%),
        radial-gradient(circle at 80% 10%, rgba(56, 189, 248, 0.14), transparent 50%),
        radial-gradient(circle at 50% 85%, rgba(37, 99, 235, 0.15), transparent 45%);
    pointer-events: none;
    z-index: 0;
}

/* Light theme */
body.light {
    background: var(--bg-gradient-light);
    color: var(--text-primary-light);
}

body.light::before {
    background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.13), transparent 55%),
        radial-gradient(circle at 80% 10%, rgba(14, 165, 233, 0.14), transparent 50%),
        radial-gradient(circle at 50% 85%, rgba(56, 189, 248, 0.12), transparent 45%);
}

/* Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}