/* Animace pro text reveal */
.text-reveal {
    position: relative;
    overflow: hidden;
}

.reveal-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transform: translateX(-100%);
    animation: textReveal 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes textReveal {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(101%); }
}

/* Fade in up animace */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-up[data-delay="0.3s"] {
    animation-delay: 0.3s;
}

.fade-in-up[data-delay="0.6s"] {
    animation-delay: 0.6s;
}

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

/* Hover efekty */
.hover-3d {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.hover-3d:hover {
    transform: translateY(-5px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Skill progress animace */
.skill-progress.animate {
    animation: fillBar 1.5s ease-out forwards;
}

@keyframes fillBar {
    from { width: 0; }
    to { width: attr(data-width); }
}

/* Page transition */
.page-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.page-content.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

/* Pulse animace */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

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

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

/* Shine efekt */
.shine {
    position: relative;
    overflow: hidden;
}

.shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent 20%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 80%
    );
    transform: rotate(30deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}

/* Pulsing animation for profile image */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(var(--primary-color-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Add RGB variables for primary color */
:root {
    --primary-color-rgb: 58, 134, 255;
}

[data-theme="dark"] {
    --primary-color-rgb: 76, 201, 240;
}
/* Pulsing animation for profile image */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(var(--primary-color-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Skill tag hover animation */
@keyframes tagFloat {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
    100% {
        transform: translateY(0);
    }
}

.skill-tag:hover {
    animation: tagFloat 0.3s ease;
}

/* Achievement badge glow */
@keyframes badgeGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px currentColor);
    }
    50% {
        filter: drop-shadow(0 0 10px currentColor);
    }
}

.achievement-badge {
    animation: badgeGlow 2s infinite;
}

/* Timeline item entrance */
@keyframes timelineEntrance {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-item {
    animation: timelineEntrance 0.6s ease-out forwards;
    opacity: 0;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.3s; }
.timeline-item:nth-child(3) { animation-delay: 0.5s; }

/* Stat card counter */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    animation: countUp 0.5s ease-out forwards;
    opacity: 0;
}
/* ===== Enhanced Animations ===== */

/* Level dot animation */
@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

.level-dot.active {
    animation: dotPulse 2s infinite;
}

.level-dot.active:nth-child(1) { animation-delay: 0s; }
.level-dot.active:nth-child(2) { animation-delay: 0.2s; }
.level-dot.active:nth-child(3) { animation-delay: 0.4s; }
.level-dot.active:nth-child(4) { animation-delay: 0.6s; }
.level-dot.active:nth-child(5) { animation-delay: 0.8s; }

/* Skill progress animation */
@keyframes progressFill {
    from {
        width: 0;
    }
    to {
        width: attr(data-level);
    }
}

.skill-progress {
    animation: progressFill 1.5s ease-out forwards;
}

/* Programming skill hover effect */
@keyframes skillHover {
    0% {
        transform: translateY(0);
        box-shadow: var(--shadow-sm);
    }
    100% {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
    }
}

.programming-skill:hover {
    animation: skillHover 0.3s ease-out forwards;
}

/* Achievement rank glow */
@keyframes rankGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(var(--primary-color-rgb), 0.5);
    }
    50% {
        box-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.8);
    }
}

.achievement-rank {
    animation: rankGlow 2s infinite;
}

/* Strength item bounce */
@keyframes strengthBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.strength-item:hover {
    animation: strengthBounce 0.6s ease;
}

/* Stat counter */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.stat-number {
    animation: countUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Page load animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.content-section:nth-child(1) { animation-delay: 0.1s; }
.content-section:nth-child(2) { animation-delay: 0.2s; }
.skills-section { animation-delay: 0.3s; }
.languages-section { animation-delay: 0.4s; }
.achievements-section { animation-delay: 0.5s; }
.strengths-section { animation-delay: 0.6s; }

/* Staggered animation for programming skills */
.programming-skill {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.programming-skill:nth-child(1) { animation-delay: 0.1s; }
.programming-skill:nth-child(2) { animation-delay: 0.2s; }
.programming-skill:nth-child(3) { animation-delay: 0.3s; }
.programming-skill:nth-child(4) { animation-delay: 0.4s; }
.programming-skill:nth-child(5) { animation-delay: 0.5s; }