/* style.css */
:root {
    --brand-primary: #06b6d4; 
    --brand-secondary: #8b5cf6;
    --bg-dark: #02040a;
}

/* FORCE DARK BACKGROUND - Fixes the white screen issue */
body {
    background-color: var(--bg-dark) !important; 
    color: #e5e5e5;
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

/* ANIMATED BACKGROUND GRID */
.cyber-grid {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 80%);
    position: fixed;
    inset: 0;
    z-index: -20;
}

/* GLASS CARD & SPOTLIGHT EFFECT */
.glass-card {
    background: rgba(13, 18, 30, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: "";
    position: absolute;
    top: var(--y, 0);
    left: var(--x, 0);
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 0;
}

.glass-card:hover::before { opacity: 1; }
.glass-card:hover { border-color: rgba(6, 182, 212, 0.3); }

/* TEXT GRADIENT */
.text-gradient {
    background: linear-gradient(135deg, #22d3ee 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* BUTTON GLOW */
.btn-glow {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.btn-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}
.btn-glow:hover::after { left: 100%; }
.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

/* SCROLLBAR */
textarea::-webkit-scrollbar { width: 6px; }
textarea::-webkit-scrollbar-track { background: transparent; }
textarea::-webkit-scrollbar-thumb { background: #1f2937; border-radius: 10px; }
textarea::-webkit-scrollbar-thumb:hover { background: var(--brand-primary); }

/* LOADER ANIMATION */
.loader-ring {
    display: inline-block;
    width: 24px;
    height: 24px;
}
.loader-ring:after {
    content: " ";
    display: block;
    width: 20px;
    height: 20px;
    margin: 2px;
    border-radius: 50%;
    border: 2px solid #fff;
    border-color: #fff transparent #fff transparent;
    animation: loader-spin 1.2s linear infinite;
}
@keyframes loader-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

textarea:focus { outline: none; }
