/* ========================================
   ANIMATIONS & EFFECTS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Fade in on scroll */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

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

/* Particles Background */
#particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float 3s infinite ease-in-out, twinkle 2s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Konami Code Easter Egg */
.konami-active {
    animation: pulse 1s infinite;
}

.konami-success {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--gold), var(--olive));
    color: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 10000;
    text-align: center;
    font-size: 2rem;
    animation: fadeInUp 0.5s ease-out;
    max-width: 90%;
}

.konami-success h2 {
    margin-bottom: 1rem;
    color: white;
}

.konami-success p {
    font-size: 1.2rem;
}

/* Loading Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.loading {
    animation: spin 1s linear infinite;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--olive));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Text Gradient Animation */
.gradient-animate {
    background: linear-gradient(
        90deg,
        var(--gold),
        var(--olive),
        var(--olive),
        var(--gold)
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease infinite;
}

/* Professional Icon Styles - No Emojis */
.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--olive));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.icon-circle::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 3px;
}

.icon-healthcare::before {
    clip-path: polygon(40% 0%, 60% 0%, 60% 40%, 100% 40%, 100% 60%, 60% 60%, 60% 100%, 40% 100%, 40% 60%, 0% 60%, 0% 40%, 40% 40%);
}

.icon-design::before {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    transform: rotate(45deg);
}

.icon-code::before {
    width: 28px;
    height: 28px;
    background: none;
    border: 3px solid white;
    border-radius: 4px;
    position: relative;
}

.icon-code::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 3px;
    background: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 -6px 0 white, 0 6px 0 white;
}

/* Crescent Moon Cursor with Stardust Trail */
.cursor-moon {
    position: fixed;
    width: 28px;
    height: 28px;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

/* Crescent Moon Shape */
.cursor-moon::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #FFD700, #D4AF37);
    box-shadow: 
        0 0 15px rgba(255, 215, 0, 0.6),
        0 0 30px rgba(212, 175, 55, 0.4),
        inset -3px -3px 8px rgba(0, 0, 0, 0.15);
}

/* Crescent shadow to create crescent shape */
.cursor-moon::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: transparent;
    box-shadow: 8px 0 0 0 rgba(250, 249, 246, 0.95);
    top: 2px;
    left: 6px;
}

@keyframes moonGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    }
}

.cursor-moon.active {
    animation: moonGlow 2s ease-in-out infinite;
}

/* Stardust Trail Particles */
.stardust {
    position: fixed;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #FFD700, #FFA500);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    animation: stardustFade 0.8s ease-out forwards;
    box-shadow: 0 0 4px rgba(255, 215, 0, 0.8);
}

@keyframes stardustFade {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: scale(0) rotate(360deg) translateY(10px);
    }
}

/* Larger sparkle particles */
.stardust.sparkle {
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #FFFFFF, #FFD700);
    animation: sparkleFade 1s ease-out forwards;
}

@keyframes sparkleFade {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
    100% {
        opacity: 0;
        transform: scale(0) translateX(20px);
    }
}
