@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --background: 204 20% 98%;
    --foreground: 210 40% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 210 40% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 210 40% 3.9%;
    --primary: 206 91% 55%;
    --primary-foreground: 0 0% 98%;
    --secondary: 210 40% 96.1%;
    --secondary-foreground: 210 40% 9.8%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 210 40% 46.1%;
    --accent: 45 91% 55%;
    --accent-foreground: 210 40% 9.8%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 210 40% 90%;
    --input: 210 40% 90%;
    --ring: 206 91% 55%;
    --radius: 0.5rem;
}

.dark {
    --background: 210 40% 3.9%;
    --foreground: 0 0% 98%;
    --card: 210 40% 3.9%;
    --card-foreground: 0 0% 98%;
    --popover: 210 40% 3.9%;
    --popover-foreground: 0 0% 98%;
    --primary: 206 81% 60%;
    --primary-foreground: 0 0% 98%;
    --secondary: 210 40% 15.9%;
    --secondary-foreground: 0 0% 98%;
    --muted: 210 40% 15.9%;
    --muted-foreground: 210 40% 64.9%;
    --accent: 45 81% 60%;
    --accent-foreground: 0 0% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 98%;
    --border: 210 40% 15.9%;
    --input: 210 40% 15.9%;
    --ring: 206 81% 60%;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    margin: 0;
    padding: 0;
}

/* --- Animations --- */
@keyframes logo-pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0px rgba(59, 130, 246, 0)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.4)); }
}
.animate-logo-pulse { animation: logo-pulse 4s ease-in-out infinite; }

@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}
.animate-blob {
    animation: blob 7s infinite;
}
.animation-delay-2000 {
    animation-delay: 2s;
}
.animation-delay-4000 {
    animation-delay: 4s;
}
.animate-pulse-ring {
    animation: pulse-ring 3s cubic-bezier(0.25, 0.8, 0.25, 1) infinite;
}
@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 0; }
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
.animate-synapse {
    stroke-dasharray: 10;
    animation: dash 3s linear infinite;
}
@keyframes dash {
    to { stroke-dashoffset: -20; }
}

/* --- Header Styling --- */
.glass-header {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

/* --- Desktop Mega Menu --- */
.nav-item::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 30px; 
}

.mega-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    left: 50%;
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-link-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: #2563eb;
    transition: width 0.3s ease;
}
.nav-link-underline:hover::after { width: 100%; }

/* Mobile Scrollbar */
#mobile-menu::-webkit-scrollbar { width: 4px; }
#mobile-menu::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 10px; }

/* Custom Orbit Animation */
@keyframes orbit {
    0% {
        transform: rotate(var(--orbit-angle)) translateX(150px) rotate(calc(-1 * var(--orbit-angle)));
    }
    100% {
        transform: rotate(calc(var(--orbit-angle) + 360deg)) translateX(150px) rotate(calc(-1 * (var(--orbit-angle) + 360deg)));
    }
}

.animate-orbit {
    position: absolute;
    top: 50% !important;
    left: 50% !important;
    margin-left: -2rem; /* 32px, half of w-16 */
    margin-top: -2rem; /* 32px, half of h-16 */
    animation: orbit 20s linear infinite;
}
