/* =========================================
   AIAI Global Styles (Refactored)
   ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #050505;
    color: #f5f5f7;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

/* =========================================
   Animations & Keyframes
   ========================================= */

@keyframes blob {

    0%,
    100% {
        transform: translate(0px, 0px) scale(1) rotate(0deg);
    }

    33% {
        transform: translate(50px, -80px) scale(1.15) rotate(120deg);
    }

    66% {
        transform: translate(-40px, 60px) scale(0.9) rotate(240deg);
    }
}

@keyframes blob-2 {

    0%,
    100% {
        transform: translate(0px, 0px) scale(1) rotate(0deg);
    }

    50% {
        transform: translate(-60px, 100px) scale(1.2) rotate(180deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes neural {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes grid {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes slide-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shine-move {
    0% {
        transform: translateX(-100%) skewX(-20deg);
    }

    50% {
        transform: translateX(100%) skewX(-20deg);
    }

    100% {
        transform: translateX(100%) skewX(-20deg);
    }
}

@keyframes float-ring {

    0%,
    100% {
        transform: scale(1) translateY(0);
    }

    50% {
        transform: scale(1.05) translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

@keyframes gradient-animate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

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

    to {
        transform: rotate(360deg);
    }
}

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

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse-orbit {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(14, 165, 233, 0.4), 0 0 40px rgba(139, 92, 246, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(14, 165, 233, 0.6), 0 0 80px rgba(139, 92, 246, 0.4);
    }
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes lift-icon {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0);
    }
}

/* =========================================
   Background Elements
   ========================================= */

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 225, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 225, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    animation: grid 20s linear infinite;
}

.neural-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0, 225, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(14, 165, 233, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: neural 25s ease-in-out infinite;
}

.bg-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #00e1ff;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 8s ease-in-out infinite;
    box-shadow: 0 0 6px #00e1ff;
}

/* =========================================
   Utilities & Effects
   ========================================= */

.spotlight-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.spotlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
            rgba(0, 225, 255, 0.3),
            rgba(139, 92, 246, 0.2),
            transparent 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.spotlight-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y),
            rgba(0, 225, 255, 0.1),
            transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.spotlight-card:hover {
    border-color: rgba(0, 225, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 225, 255, 0.1);
}

.spotlight-card:hover::before,
.spotlight-card:hover::after {
    opacity: 1;
}

.text-gradient-hero {
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 50%, #a5a5a5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    background-size: 200% 100%;
}

.text-gradient-brand {
    background: linear-gradient(135deg, #00e1ff 0%, #0ea5e9 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-accent {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 50%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-panel {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glow-blue {
    box-shadow: 0 0 20px rgba(0, 225, 255, 0.3), 0 0 40px rgba(0, 225, 255, 0.1);
}

.glow-purple {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3), 0 0 40px rgba(139, 92, 246, 0.1);
}

.border-gradient {
    position: relative;
    background: rgba(10, 10, 10, 0.8);
    border-radius: inherit;
}

.border-gradient::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #00e1ff, #8b5cf6, #0ea5e9);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0.5;
    animation: shimmer 3s linear infinite;
}

.fade-in {
    animation: fade-in 0.8s ease-out;
}

.slide-up {
    animation: slide-up 1s ease-out;
}

.navbar-scrolled {
    background: rgba(5, 5, 5, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 225, 255, 0.1);
}

/* =========================================
   Navigation Styles
   ========================================= */

.nav-item {
    padding: 2rem 1.25rem;
    font-size: 0.875rem;
    /* text-sm */
    font-weight: 700;
    /* font-bold */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    /* tracking-wide + custom */
    color: #d1d5db;
    /* text-gray-300 */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.15s ease-in-out;
    position: relative;
    height: 100%;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    background: none;
    border: none;
}

.nav-item:hover {
    color: #ffffff;
}

.nav-item-link {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #d1d5db;
    transition: color 0.15s ease-in-out;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
}

.nav-item-link:hover {
    color: #ffffff;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #0a0a0a;
    /* Fallback */
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid #0ea5e9;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    /* shadow-2xl */
    border-bottom-left-radius: 0.75rem;
    /* rounded-b-xl */
    border-bottom-right-radius: 0.75rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-in-out;
    transform: translateY(0.5rem);
    z-index: 50;
    overflow: hidden;
    min-width: 250px;
}

.group:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #9ca3af;
    /* text-gray-400 */
    text-decoration: none;
    transition: all 0.15s ease-in-out;
    border-left: 2px solid transparent;
}

.dropdown-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: #0ea5e9;
    /* brand-500 approx */
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00e1ff, #8b5cf6);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0ea5e9, #7c3aed);
}


/* =========================================
   Banner / Hero Network (Static Radial)
   ========================================= */

.hero-network {
    position: relative;
    width: 600px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Center Node */
.network-core {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #a855f7, #6366f1);
    box-shadow: 0 0 60px rgba(168, 85, 247, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 10;
    position: relative;
    animation: pulse-core 4s ease-in-out infinite;
}

.network-core span {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.network-core small {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* Surrounding Nodes */
.network-node {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 0 15px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
    z-index: 5;
    animation: float 6s ease-in-out infinite;
}

.network-node:hover {
    transform: scale(1.1) !important;
    z-index: 20;
    cursor: pointer;
}

.network-node i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

/* Node Hover Details */
.network-node .detail {
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 200px;
    padding: 12px;
    font-size: 12px;
    line-height: 1.4;
    background: #111;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    text-align: left;
}

.network-node:hover .detail {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Node Colors */
.node-purple {
    background: linear-gradient(135deg, #d946ef, #c026d3);
    box-shadow: 0 0 30px rgba(217, 70, 239, 0.3);
}

.node-orange {
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.3);
}

.node-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

/* Connector Lines */
.connector-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.connector-line {
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 1.5;
    stroke-dasharray: 10 10;
    animation: flow 30s linear infinite;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-core {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 60px rgba(168, 85, 247, 0.4);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 0 80px rgba(168, 85, 247, 0.6);
    }
}

@keyframes flow {
    from {
        stroke-dashoffset: 200;
    }

    to {
        stroke-dashoffset: 0;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-network {
        transform: scale(0.7);
    }
}

@media (max-width: 640px) {
    .hero-network {
        transform: scale(0.5);
        margin-top: -50px;
    }
}

@media (max-width: 900px) {
    .orbit {
        transform: scale(0.7);
    }

    .network-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .icon-circle {
        width: 3rem;
        height: 3rem;
    }

    .icon-label {
        font-size: 0.65rem;
    }
}

/* End of Banner Styles */

.orbit-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    left: 50%;
    top: 50%;
    transform-origin: 0 0;
    animation: orbit 12s linear infinite;
    animation-delay: calc(var(--angle) / 360deg * 12s * -1);
}

.icon-circle {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3), 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 40px rgba(14, 165, 233, 0.2);
    animation: pulse-orbit 2s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    position: relative;
}

.icon-circle::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.icon-circle:hover {
    transform: scale(1.25);
    box-shadow: 0 0 50px currentColor, 0 12px 40px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.15), 0 0 80px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.icon-circle:hover::before {
    opacity: 1;
}

.hover-lift {
    position: relative;
}

.hover-lift:hover {
    animation: lift-icon 0.6s ease forwards;
}

.icon-label {
    position: absolute;
    white-space: nowrap;
    top: 100%;
    margin-top: 0.5rem;
    animation: fade-in 1.2s ease-out forwards;
    opacity: 0;
}

.orbit-icon:hover .icon-label {
    animation: none;
    opacity: 1;
}

.animate-shimmer {
    animation: shimmer 3s infinite;
}

.animate-glow-center {
    animation: glow-pulse 3s ease-in-out infinite;
}

.animate-gradient-shift {
    animation: gradient-shift 8s ease-in-out infinite;
}

.animation-delay-100 {
    animation-delay: 0.1s;
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-300 {
    animation-delay: 0.3s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}

.aiai-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aiai-logo-core {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* FIXED */
}

.aiai-logo-glow {
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, #00e1ff, #8b5cf6, #0ea5e9);
    border-radius: 12px;
    opacity: 0.6;
    filter: blur(8px);
    animation: pulse-glow 3s ease-in-out infinite;
}

.aiai-logo-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    border: 1.5px solid rgba(0, 225, 255, 0.4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* FIXED */
    overflow: hidden;
}

.aiai-logo-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(45deg, transparent 30%, rgba(0, 225, 255, 0.1) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(139, 92, 246, 0.1) 50%, transparent 70%);
    background-size: 8px 8px;
    animation: shimmer 4s linear infinite;
}

.aiai-logo-icon {
    position: relative;
    z-index: 1;
    width: 20px;
    height: 20px;
    border: 2px solid #00e1ff;
    border-radius: 4px;
    transform: rotate(45deg);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.aiai-logo-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #00e1ff;
    border-radius: 2px;
    box-shadow: 0 0 12px #00e1ff;
}

.aiai-logo:hover .aiai-logo-icon {
    transform: rotate(135deg) scale(1.1);
}

.aiai-logo:hover .aiai-logo-glow {
    opacity: 1;
    animation: pulse-glow 1s ease-in-out infinite;
}