@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    --neon-blue: #38bdf8;
    --neon-electric: #0ea5e9;
    --dark-bg: #020617;
}

body {
    background-color: var(--dark-bg);
    color: #f8fafc;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Glassmorphism */
.glass {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(56, 189, 248, 0.1);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.2);
    transform: translateY(-5px);
}

/* Circuit Lines Background */
.circuit-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10 H90 V90 H10 Z M10 50 H30 M70 50 H90 M50 10 V30 M50 70 V90' stroke='%2338bdf8' stroke-width='0.5' fill='none'/%3E%3Ccircle cx='10' cy='10' r='1' fill='%2338bdf8'/%3E%3Ccircle cx='90' cy='10' r='1' fill='%2338bdf8'/%3E%3Ccircle cx='90' cy='90' r='1' fill='%2338bdf8'/%3E%3Ccircle cx='10' cy='90' r='1' fill='%2338bdf8'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* Glowing Elements */
.glow-text {
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5), 0 0 20px rgba(56, 189, 248, 0.3);
}

.glow-border {
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #020617;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #38bdf8;
}

/* Animated Grid */
.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, rgba(56, 189, 248, 0.05) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black, transparent 80%);
    animation: grid-flow 20s linear infinite;
}

@keyframes grid-flow {
    from { background-position: 0 0; }
    to { background-position: 50px 50px; }
}

/* GSAP Animation Helpers */
.reveal {
    opacity: 0;
    transform: translateY(30px);
}

/* Mobile Menu Fixes */
#mobile-menu {
    background-color: #020617 !important;
    width: 100vw;
    height: 100vh;
    left: 0;
    top: 0;
}
