/**
 * Galaxy 2.0 Design System - Al-Jawhara Platform 💎
 * Unprecedented Creative Upgrade
 * =============================================
 */

:root {
    /* Galaxy Colors */
    --gx-deep: #030014;
    --gx-nebula-blue: #00d4ff;
    --gx-nebula-purple: #a855f7;
    --gx-nebula-pink: #ec4899;
    --gx-accent: #6366f1;
    --gx-gold: #fbbf24;

    /* Glass Elements */
    --gx-glass: rgba(255, 255, 255, 0.03);
    --gx-glass-border: rgba(255, 255, 255, 0.08);
    --gx-blur: blur(20px);

    /* Shadows */
    --gx-glow: 0 0 40px rgba(99, 102, 241, 0.2);
    --gx-glow-hover: 0 0 60px rgba(99, 102, 241, 0.4);
}

/* 🌌 Cosmic Background */
body.galaxy-2-0 {
    background: var(--gx-deep);
    color: #f1f5f9;
    overflow-x: hidden;
    font-family: 'Outfit', 'Cairo', sans-serif;
    position: relative;
}

.galaxy-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden !important;
    background: radial-gradient(circle at 20% 30%, rgba(168, 85, 247, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 212, 255, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

.galaxy-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    mix-blend-mode: overlay;
}

/* ✨ Floating Orbs - contained to prevent horizontal overflow */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
    /* Prevent orbs from expanding the document */
    contain: layout;
}

.orb-primary {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.orb-secondary {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation-delay: -5s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(30px, -50px);
    }

    66% {
        transform: translate(-20px, 40px);
    }
}

/* 💎 Premium Galaxy Card */
.galaxy-card {
    background: var(--gx-glass);
    backdrop-filter: var(--gx-blur);
    border: 1px solid var(--gx-glass-border);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.galaxy-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 40%, transparent 60%, rgba(255, 255, 255, 0.05));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: destination-out;
}

.galaxy-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--gx-glow-hover);
}

/* 🏷️ Crystal Badge */
.crystal-badge {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gx-nebula-blue);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* 🎯 Neon Button */
.btn-galaxy {
    background: linear-gradient(135deg, var(--gx-nebula-blue), var(--gx-nebula-purple));
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 16px;
    color: white;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-galaxy:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

.btn-galaxy::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: spin 3s linear infinite;
    pointer-events: none;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}