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

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    animation: particles-float 20s ease-in-out infinite;
}

@keyframes particles-float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #3b82f6 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 8s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.5),
                    0 0 40px rgba(99, 102, 241, 0.3);
    }
    50% { 
        box-shadow: 0 0 30px rgba(6, 182, 212, 0.6),
                    0 0 60px rgba(6, 182, 212, 0.4);
    }
}

.header-section {
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-container {
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-card {
    animation: fade-in-up 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.link-card:hover::before {
    left: 100%;
}

.link-card:active {
    transform: scale(0.98) !important;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.share-button {
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.share-button:hover {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: confetti-fall 3s linear forwards;
}

@keyframes confetti-fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@media (max-width: 640px) {
    .gradient-text {
        font-size: 2.5rem;
    }
    
    .share-button {
        bottom: 1rem;
        right: 1rem;
        width: 3rem;
        height: 3rem;
    }
    
    .link-card {
        padding: 1rem;
    }
}

/* Custom cursor (subtle) */
@media (pointer: fine) {
    body {
        cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="3" fill="%236366f1" opacity="0.5"/></svg>') 10 10, auto;
    }
    
    a, button {
        cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="5" fill="%2306b6d4" opacity="0.7"/></svg>') 10 10, pointer;
    }
}

/* Focus states for accessibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid #06b6d4;
    outline-offset: 4px;
}

/* Ukrainian flag accent */
.link-card:nth-child(odd):hover {
    border-color: rgba(6, 182, 212, 0.5) !important;
}

.link-card:nth-child(even):hover {
    border-color: rgba(251, 191, 36, 0.5) !important;
}