@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #9d4edd;
    --primary-glow: rgba(157, 78, 221, 0.4);
    --bg-dark: #050505;
    --glass-bg: rgba(10, 10, 10, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
}

body {
    background-color: var(--bg-dark);
    color: #e0e0e0;
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    margin: 0;
}

/* Ambient Background Glow */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 50%, rgba(76, 29, 149, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    z-index: -2;
    pointer-events: none;
}

/* Moon Animation */
@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.moon-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50vw;
    height: 50vw;
    max-width: 600px;
    max-height: 600px;
    background: url('moon.png') no-repeat center center;
    background-size: contain;
    opacity: 0.2;
    /* Adjusted opacity for subtle look */
    z-index: -1;
    pointer-events: none;
    animation: rotate 120s linear infinite;
    filter: drop-shadow(0 0 60px rgba(157, 78, 221, 0.3));
}

/* Glassmorphism Cards */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass:hover {
    border-color: rgba(157, 78, 221, 0.3);
    box-shadow: 0 12px 40px rgba(157, 78, 221, 0.15);
}

/* Inputs */
.input-glass {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    transition: all 0.3s ease;
    outline: none;
}

.input-glass:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(157, 78, 221, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #7b2cbf 0%, #9d4edd 100%);
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(157, 78, 221, 0.4);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(1px);
}

/* Gradients */
.text-gradient {
    background: linear-gradient(to right, #fff, #e0aaff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Utilities */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}