@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    --accent: #00e5ff;
    --bg: #030303;
    --surface: #0a0a0c;
    --border: rgba(255, 255, 255, 0.08);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: #ffffff;
    overflow-x: hidden;
}

.font-heading {
    font-family: 'Space Grotesk', sans-serif;
}

/* Tech-Noir Background */
.bg-dot-grid {
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 0);
    background-size: 32px 32px;
}

/* Glassmorphism Classes */
.glass {
    background: rgba(10, 10, 12, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
}

.glass-nav {
    background: rgba(10, 10, 12, 0.75);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Scroll Reveal System */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Global Status Ticker */
.status-bar {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 229, 255, 0.1);
    height: 32px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 8px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: rgba(255, 255, 255, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 101;
}

.status-bar .node-active {
    color: #00e5ff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-bar .node-pulse {
    width: 4px;
    height: 4px;
    background: #00e5ff;
    border-radius: 50%;
    box-shadow: 0 0 8px #00e5ff;
    animation: pingslow 2s infinite;
}

@keyframes pingslow {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Adjusted Nav for Status Bar */
nav {
    top: 32px !important;
}

/* Cybernetic Components */
.mission-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2rem;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.mission-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, rgba(0, 229, 255, 0.05), transparent 50%);
    pointer-events: none;
}

/* Antigravity Keyframe Suite for Storefront */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(0.5deg);
    }
}

@keyframes drift {

    0%,
    100% {
        transform: translateX(0px);
    }

    50% {
        transform: translateX(10px);
    }
}

.antigravity {
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 30px rgba(0, 229, 255, 0.1));
}

.antigravity-alt {
    animation: float 8s ease-in-out infinite 1.5s;
    filter: drop-shadow(0 20px 30px rgba(189, 0, 255, 0.1));
}

.floating-dots {
    animation: drift 10s ease-in-out infinite;
}

/* Glassmorphism Classes */
.glass {
    background: rgba(10, 10, 12, 0.65);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-cyan {
    background: rgba(0, 229, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 229, 255, 0.15);
}

/* Depth and Glows */
.card-glow {
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-glow:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.3);
    transform: translateY(-10px) scale(1.01);
}

/* Mainframe Special Styles */
.terminal-glow {
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.neon-border {
    position: relative;
}

.neon-border::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(45deg, var(--accent), transparent, #bd00ff);
    z-index: -1;
    border-radius: inherit;
    opacity: 0.3;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--accent), #bd00ff);
    border-radius: 10px;
}

/* Typography Enhancements */
.text-gradient {
    background: linear-gradient(to right, #00e5ff, #bd00ff);
    -webkit-background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}