/* Hero Grid Background */
.hero-grid {
    background-image: 
      linear-gradient(to right, rgba(0, 174, 239, 0.4) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(0, 174, 239, 0.4) 1px, transparent 1px),
      linear-gradient(135deg, transparent 40%, rgba(0, 174, 239, 0.1) 50%, transparent 60%);
    background-size: 80px 80px, 80px 80px, 400% 400%;
    mask-image: radial-gradient(circle at 50% 50%, black 20%, transparent 90%);
    animation: grid-shimmer 15s linear infinite;
}

/* Intake Grid Background */
.intake-grid {
    background-image: 
      linear-gradient(to right, rgba(0, 174, 239, 0.4) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(0, 174, 239, 0.4) 1px, transparent 1px),
      linear-gradient(135deg, transparent 40%, rgba(0, 174, 239, 0.1) 50%, transparent 60%);
    background-size: 80px 80px, 80px 80px, 400% 400%;
    mask-image: radial-gradient(circle at 50% 50%, black 20%, transparent 95%);
    animation: grid-shimmer 15s linear infinite;
}

/* Border Glow Effect */
.border-glow:hover {
    border-color: #00AEEF;
    box-shadow: 0 0 20px rgba(0, 174, 239, 0.2);
}

/* Corner Accents */
.corner-accent {
    position: absolute;
    width: 8px;
    height: 8px;
    border-color: #00AEEF;
}

/* Keyframes */
@keyframes hero-breathe {
    0%, 100% { opacity: 1; filter: brightness(1); }
    50% { opacity: 0.4; filter: brightness(1.2); }
}

.animate-hero-breathe {
    animation: hero-breathe 12s ease-in-out infinite;
}

#neuron-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

@keyframes grid-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

@keyframes grid-shimmer {
    0% { background-position: 0 0, 0 0, 0 0; }
    100% { background-position: 0 0, 0 0, 400% 400%; }
}

.animate-grid-pulse {
    animation: grid-pulse 10s ease-in-out infinite;
}

@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.animate-scan {
    animation: scan 6s linear infinite;
}

@keyframes signal-status {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.signal-status-pulse {
    animation: signal-status 3s ease-in-out infinite;
}

@keyframes identification-active {
    0% { opacity: 0.6; text-shadow: 0 0 0px rgba(198, 167, 94, 0); }
    5% { opacity: 1; text-shadow: 0 0 8px rgba(198, 167, 94, 0.6); }
    10% { opacity: 0.6; text-shadow: 0 0 0px rgba(198, 167, 94, 0); }
    100% { opacity: 0.6; text-shadow: 0 0 0px rgba(198, 167, 94, 0); }
}

.animate-identification {
    animation: identification-active 5s infinite;
}

@keyframes live-pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(2); opacity: 0; }
}

.live-pulse {
    animation: live-pulse 2s infinite;
}

.live-pulse-cyan {
    animation: live-pulse 2s infinite 0.5s;
}

/* Animation Classes for Hero */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes blurIn {
    from { opacity: 0; filter: blur(10px); transform: scale(1.05); }
    to { opacity: 1; filter: blur(0px); transform: scale(1); }
}

.animate-init {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.5s;
}

.animate-title {
    animation: blurIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

.animate-subtitle {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.8s;
}

.animate-terminal {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.2s;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A0A0A;
}
::-webkit-scrollbar-thumb {
    background: #2A2F36;
}
::-webkit-scrollbar-thumb:hover {
    background: #00AEEF;
}
