/* Animations CSS for Resume Website */

/* Fade in animation for sections */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Slide in animation from left */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Slide in animation from right */
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Pulse animation for profile image */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Apply animations to elements */

/* Programming Languages & Tools icons animation */
.list-inline-item i {
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    will-change: transform;
}

.list-inline-item i:hover {
    transform: scale(1.3);
}

/* Profile image animation */
.img-profile {
    transition: all 0.3s ease;
}

.img-profile:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(189, 93, 56, 0.5);
}

/* Section animations */
section.resume-section {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Stagger the animations for each section */
#about { animation-delay: 0.1s; }
#experience { animation-delay: 0.2s; }
#education { animation-delay: 0.3s; }
#skills { animation-delay: 0.4s; }
#interests { animation-delay: 0.5s; }
#awards { animation-delay: 0.6s; }

/* Resume item animations */
.resume-item {
    animation: slideInRight 0.5s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

/* Social icons animation */
.list-social-icons .list-inline-item {
    transition: transform 0.3s ease;
}

.list-social-icons .list-inline-item:hover {
    transform: translateY(-5px);
}

/* Navigation link animations */
.navbar-nav .nav-item {
    transition: color 0.3s ease;
    opacity: 1;
}

.navbar-nav .nav-item:hover .nav-link {
    color: #ffffff;
    opacity: 1;
}

.navbar-nav .nav-item .nav-link {
    position: relative;
    transition: color 0.3s ease;
    opacity: 1;
}

.navbar-nav .nav-item .nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #BD5D38;
    transition: width 0.3s ease;
}

.navbar-nav .nav-item .nav-link:hover:after {
    width: 100%;
}

/* Skills icons animation */
.list-icons .list-inline-item i {
    transform: scale(1);
    transition: all 0.3s ease;
    will-change: transform, color;
}

.list-icons .list-inline-item i:hover {
    transform: scale(1.2);
    color: #BD5D38;
}

/* Awards trophy animation */
.fa-trophy {
    transition: transform 0.3s ease;
}

.fa-trophy:hover {
    transform: rotate(10deg);
}