@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- PROFESSIONAL POLISH --- */

/* 1. Selection Color */
::selection {
    background-color: #DC2626;
    /* pb-red */
    color: white;
}

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

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

::-webkit-scrollbar-thumb {
    background: #E5E7EB;
    /* gray-200 */
    border-radius: 5px;
    border: 2px solid #FAFAFA;
    /* creates padding effect */
}

::-webkit-scrollbar-thumb:hover {
    background: #D1D5DB;
    /* gray-300 */
}



/* Modern Cursor */
.cursor-caret {
    display: inline-block;
    width: 6px;
    height: 0.85em;
    /* Responsive to font size */
    background-color: #DC2626;
    border-radius: 9999px;
    margin-left: 8px;
    margin-bottom: -0.15em;
    /* Visual alignment for baseline */
    animation: blink-smooth 1s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.4);
}

@media (max-width: 768px) {
    .cursor-caret {
        width: 4px;
        /* Slightly thinner on mobile */
    }
}

@keyframes blink-smooth {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Floating Animation */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 6s ease-in-out 3s infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

/* Card Hover Glow */
.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.border-hover-highlight:hover {
    border-color: #F87171;
    /* red-400 */
}

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

/* Network Nodes */
.node {
    position: absolute;
    border-radius: 50%;
    background: #DC2626;
    animation: pulse-node 3s infinite;
}

@keyframes pulse-node {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(220, 38, 38, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

/* Range Slider */
input[type=range] {
    -webkit-appearance: none;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #DC2626;
    cursor: pointer;
    margin-top: -10px;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
    transition: transform 0.1s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #333;
    border-radius: 2px;
}

/* Timeline */
.timeline-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 23px;
    height: 100%;
    width: 2px;
    background: #e5e5e5;
    z-index: 0;
}

/* Utilities */
.font-mono {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-variant-ligatures: none;
}

/* Icon Pop Animation */
.icon-pop {
    animation: pop-in 0.3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes pop-in {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

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

/* Blob Animation */
@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;
}

/* Orbit Animations */
.animate-orbit-slow {
    animation: orbit-rotate 30s linear infinite;
}

.animate-orbit-fast {
    animation: orbit-rotate 20s linear infinite reverse;
}

.counter-rotate-slow {
    animation: orbit-rotate 30s linear infinite reverse;
}

.counter-rotate-fast {
    animation: orbit-rotate 20s linear infinite;
}

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

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

.orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
}

/* --- MOBILE MENU FIXED STYLES --- */
#mobile-menu {
    position: fixed;
    top: 64px;
    /* Matches navbar height */
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 0 1.5rem;
    z-index: 50;
    /* Ensure it is above everything else */

    /* Force display to block so it renders, but hide visually */
    display: block !important;

    /* Animation States */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When the JS adds this class, show the menu */
#mobile-menu.menu-open {
    opacity: 1;
    visibility: visible;

    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }

    /* Link Styling */
    .mobile-link {
        display: block;
        padding: 1.25rem 0;
        font-size: 1.125rem;
        font-weight: 600;
        color: #374151;
        border-bottom: 1px solid #f3f4f6;
        text-decoration: none;
    }

    .mobile-link:hover {
        color: #DC2626;
    }

    /* Dashboard Button */
    .mobile-dashboard-btn {
        display: block;
        width: 100%;
        margin: 1.5rem 0;
        padding: 0.875rem;
        background-color: #f3f4f6;
        color: #000000;
        font-weight: 700;
        text-align: center;
        border-radius: 0.75rem;
        text-decoration: none;
    }