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

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
    }
}

@keyframes slide-up {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes constellation-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

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

.animate-slide-up {
    animation: slide-up 0.6s ease-out forwards;
}

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

.animate-constellation-spin {
    animation: constellation-spin 20s linear infinite;
}

/* Network Visualization Styles */
.network-visualization {
    position: relative;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
}

.network-visualization::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    animation: constellation-spin 40s linear infinite reverse;
}

.network-node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #3B82F6;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-glow 3s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.network-node:hover {
    transform: translate(-50%, -50%) scale(1.5);
    background: #10B981;
}

.network-connection {
    position: absolute;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.4), rgba(16, 185, 129, 0.4));
    height: 2px;
    transform-origin: 0 0;
}

/* Cooperative Card Styles */
.cooperative-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cooperative-card:hover {
    transform: translateY(-8px);
    border-color: #3B82F6;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

/* Scroll Animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Gradient Backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.gradient-dual {
    background: linear-gradient(135deg, #3B82F6 0%, #10B981 100%);
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #3B82F6, #10B981);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #2563EB, #059669);
}