@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Primary Brand Colors */
    --color-primary: #2563EB;
    /* Bright Blue */
    --color-primary-dark: #1E40AF;
    /* Deep Blue */
    --color-secondary: #64748B;
    /* Slate Grey */
    --color-accent: #10B981;
    /* Emerald */

    /* Neutral / Glass Base */
    --glass-bg-white: rgba(255, 255, 255, 0.65);
    --glass-bg-white-hover: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);

    /* Text Colors */
    --text-main: #1E293B;
    /* Dark Slate */
    --text-muted: #475569;
    /* Muted Slate */
    --text-light: #F8FAFC;
    /* Off White */

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2563EB 0%, #0EA5E9 100%);
    --gradient-bg-mesh: radial-gradient(at 0% 0%, hsla(210, 100%, 93%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(220, 100%, 96%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(200, 100%, 92%, 1) 0, transparent 50%);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: #F8FAFC;
    background-image: var(--gradient-bg-mesh);
    background-attachment: fixed;
    background-size: cover;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

/* Glassmorphism Utilities */

/* The main "White Glass" card style */
.glass-card,
.card-premium {
    background: var(--glass-bg-white);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
    transition: all 0.3s ease;
}

.glass-card:hover,
.card-premium:hover {
    background: var(--glass-bg-white-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
}

/* Darker Glass for strong accents/headers if needed */
.glass-panel-dark {
    background: rgba(15, 23, 42, 0.6);
    /* Slate 900 */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: white;
}

/* Input Fields with Glass effect */
.input-glass-light {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(203, 213, 225, 0.6);
    backdrop-filter: blur(4px);
    color: var(--text-main);
    transition: all 0.2s;
}

.input-glass-light:focus {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Buttons */
.btn-glass-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.btn-glass-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    filter: brightness(110%);
}

.btn-glass-secondary {
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.btn-glass-secondary:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Base Utility Classes (Legacy Support with New Theme) */
.color-primary {
    color: var(--color-primary);
}

.bg-primary {
    background-color: var(--color-primary);
}

.text-accent {
    color: var(--color-accent);
}

.bg-accent {
    background-color: var(--color-accent);
}

.text-gradient,
.text-gradient-blue {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animation utilities */
.mesh-bg-anim {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #f0f4f8;
}

.mesh-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: drift 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: #BFDBFE;
    /* Blue 200 */
    animation-duration: 25s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: #E2E8F0;
    /* Slate 200 */
    animation-duration: 28s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: #DBEAFE;
    /* Blue 100 */
    opacity: 0.4;
    animation-duration: 32s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(100px, 50px) rotate(20deg);
    }
}

/* Pulse Animation (Legacy) */
.orb-pulse {
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Animation: Fade In Up */
.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: #94A3B8;
    border-radius: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}