/* 
   ==========================================================================
   DESIGN SYSTEM: PRISM FLOW (v1.0)
   ==========================================================================
   A high-end, vibrant, and glassmorphic aesthetic for the next-gen digital elite.
*/

:root {
    /* Cosmic Depths & Surfaces */
    --bg-main: #030305;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    
    /* The Prism (Primary & Secondary) */
    --primary: #00f2ff; /* Electric Cyan */
    --secondary: #7000ff; /* Neon Purple */
    --accent: #ff007a; /* Cyber Pink */
    
    /* Typography Tokens */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Effects */
    --glass-blur: blur(24px);
    --border-glass: rgba(255, 255, 255, 0.08);
    --transition-base: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* --- Global Base Overrides --- */
body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Scaling */
.font-outfit { font-family: 'Outfit', sans-serif; }
.font-inter { font-family: 'Inter', sans-serif; }

.text-prism {
    background: linear-gradient(135deg, var(--primary) 0%, #fff 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Core Prism Components --- */

/* The Glass Panel */
.prism-glass {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    border-radius: 4px;
    transition: var(--transition-base);
}

.prism-glass:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

/* Interactive Background Mesh */
.mesh-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 242, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(112, 0, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 0, 122, 0.03) 0%, transparent 60%);
    filter: blur(80px);
}

/* Buttons (Prism Style) */
.btn-prism {
    position: relative;
    padding: 14px 36px;
    background: white;
    color: black;
    font-weight: 800;
    border-radius: 4px;
    transition: var(--transition-base);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-prism:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.3);
}

.btn-prism-outline {
    padding: 14px 36px;
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 700;
    border-radius: 4px;
    transition: var(--transition-base);
}

.btn-prism-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: white;
}

/* Navigation Overrides */
.prism-nav {
    background: rgba(3, 3, 5, 0.7) !important;
    backdrop-filter: var(--glass-blur) !important;
    border-bottom: 1px solid var(--border-glass) !important;
}

/* Animated Border */
.prism-border-wrap {
    position: relative;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.2), rgba(112, 0, 255, 0.2));
    border-radius: 4px;
    overflow: hidden;
}

.prism-border-wrap::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, var(--primary), transparent, transparent);
    animation: rotate 6s linear infinite;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.prism-border-wrap:hover::before {
    opacity: 1;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}
