/* Animations for portfolio - compatible with new layout */

/* Fade in animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Hero animations */
.hero-logo {
    animation: fadeInDown 0.6s ease-out;
}

.hero-name {
    animation: fadeIn 0.6s ease-out 0.1s backwards;
}

.hero-tags {
    animation: fadeIn 0.6s ease-out 0.2s backwards;
}

.hero-quote {
    animation: fadeIn 0.6s ease-out 0.3s backwards;
}

.theme-toggle-wrapper {
    animation: fadeIn 0.6s ease-out 0.4s backwards;
}

.workspace-placeholder {
    animation: fadeIn 0.8s ease-out 0.5s backwards;
}

/* Section animations */
.section,
.edu-skills-row,
.info-cards-row,
.cta-section {
    animation: fadeIn 0.6s ease-out backwards;
}

.work-experience { animation-delay: 0.1s; }
.edu-skills-row { animation-delay: 0.15s; }
.info-cards-row { animation-delay: 0.2s; }
.cta-section { animation-delay: 0.25s; }

/* Card hover */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
