/* SVG Animation Styles */
@keyframes floatUp {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

@keyframes floatDown {
    0% { transform: translateY(0); }
    50% { transform: translateY(15px); }
    100% { transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    0% { transform: translateX(-30px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUpFade {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes scaleIn {
    from { 
        opacity: 0; 
        transform: scale(0.8); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}

@keyframes slideWidth {
    from { width: 0; }
    to { width: 150px; }
}

@keyframes slideHeight {
    from { height: 0; }
    to { height: 150px; }
}

/* Apply animations to hero elements */
.hero-title {
    animation: slideUpFade 0.8s ease-out forwards;
}

.hero-subtitle {
    animation: slideUpFade 0.8s 0.2s ease-out forwards;
    opacity: 0;
}

.hero-features {
    animation: slideUpFade 0.8s 0.4s ease-out forwards;
    opacity: 0;
}

.hero-cta {
    animation: slideUpFade 0.8s 0.6s ease-out forwards;
    opacity: 0;
}

.feature-icon {
    animation: scaleIn 0.6s 0.8s ease-out forwards;
    opacity: 0;
}

.portfolio {
    animation: fadeIn 1s 0.3s ease-out forwards;
    opacity: 0;
}

.resume {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

.resume-text, .portfolio-item {
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.resume-text:nth-child(2) {
    animation-delay: 1.1s;
}

.resume-text:nth-child(3) {
    animation-delay: 1.3s;
}

.resume-text:nth-child(4) {
    animation-delay: 1.5s;
}

.portfolio-item:nth-child(1) {
    animation-delay: 1.0s;
}

.portfolio-item:nth-child(2) {
    animation-delay: 1.2s;
}

.portfolio-item:nth-child(3) {
    animation-delay: 1.4s;
}

.portfolio-item:nth-child(4) {
    animation-delay: 1.6s;
}

/* Subtle animations for accent lines */
.accent-line-1 {
    animation: slideWidth 1.5s ease-out forwards;
    transform-origin: left;
    width: 0;
}

.accent-line-2 {
    animation: slideHeight 1.5s 0.2s ease-out forwards;
    transform-origin: top;
    height: 0;
}

.accent-line-3 {
    animation: slideWidth 1.5s 0.4s ease-out forwards;
    transform-origin: right;
    width: 0;
}

.accent-line-4 {
    animation: slideHeight 1.5s 0.6s ease-out forwards;
    transform-origin: bottom;
    height: 0;
}

.decoration-dots {
    animation: fadeIn 2s 1s ease-out forwards, rotate 180s linear infinite;
    opacity: 0;
}

.dot-pattern-2 {
    animation: fadeIn 2s 1.2s ease-out forwards, rotate 240s linear infinite reverse;
    opacity: 0;
}

/* Mobile-friendly animation adjustments */
@media (max-width: 768px) {
    .hero-title, .hero-subtitle, .hero-features, .hero-cta {
        animation-duration: 0.6s;
    }
    
    .feature-icon {
        animation-duration: 0.4s;
    }
    
    .resume, .portfolio {
        animation-duration: 0.7s;
    }
    
    .resume-text, .portfolio-item {
        animation-delay: 0.5s;
    }
    
    @keyframes slideWidth {
        from { width: 0; }
        to { width: 80px; }
    }
    
    @keyframes slideHeight {
        from { height: 0; }
        to { height: 80px; }
    }
}

@media (max-width: 480px) {
    @keyframes slideWidth {
        from { width: 0; }
        to { width: 50px; }
    }
    
    @keyframes slideHeight {
        from { height: 0; }
        to { height: 50px; }
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-title, .hero-subtitle, .hero-features, .hero-cta,
    .feature-icon, .resume, .portfolio, .resume-text, .portfolio-item,
    .accent-line-1, .accent-line-2, .accent-line-3, .accent-line-4 {
        animation: none !important;
        opacity: 1 !important;
    }
}
