/* ===============================================
   ADDITIONAL ANIMATIONS & POLISH
   Add this to the END of your style.css file
   =============================================== */

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Profile picture gentle pulse */
.profile-img {
    animation: gentlePulse 6s ease-in-out infinite;
}

@keyframes gentlePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

/* Social icon bouncing animation */
.social-btn:nth-child(1) {
    animation: iconBounce 3s ease-in-out infinite;
    animation-delay: 0s;
}

.social-btn:nth-child(2) {
    animation: iconBounce 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

.social-btn:nth-child(3) {
    animation: iconBounce 3s ease-in-out infinite;
    animation-delay: 1s;
}

.social-btn:nth-child(4) {
    animation: iconBounce 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes iconBounce {

    0%,
    20%,
    100% {
        transform: translateY(0);
    }

    10% {
        transform: translateY(-8px);
    }
}

/* Override hover to disable animation */
.social-btn:hover {
    animation: none !important;
    transform: translateY(-4px) scale(1.05) !important;
}

/* Gallery items fade-in animation */
.gallery-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.gallery-item:nth-child(1) {
    animation-delay: 0.1s;
}

.gallery-item:nth-child(2) {
    animation-delay: 0.2s;
}

.gallery-item:nth-child(3) {
    animation-delay: 0.3s;
}

.gallery-item:nth-child(4) {
    animation-delay: 0.4s;
}

.gallery-item:nth-child(5) {
    animation-delay: 0.5s;
}

.gallery-item:nth-child(6) {
    animation-delay: 0.6s;
}

.gallery-item:nth-child(7) {
    animation-delay: 0.7s;
}

.gallery-item:nth-child(8) {
    animation-delay: 0.8s;
}

.gallery-item:nth-child(9) {
    animation-delay: 0.9s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced gallery hover */
.gallery-item:hover {
    transform: translateY(-6px) scale(1.02) !important;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.4) !important;
}

/* Button ripple effect */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn:hover::after {
    width: 200px;
    height: 200px;
}

.btn:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.3) !important;
}

/* Upload button ripple */
.upload-trigger {
    position: relative;
    overflow: hidden;
}

.upload-trigger::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.upload-trigger:hover::before {
    width: 300px;
    height: 300px;
}

.upload-trigger:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 20px -3px rgba(168, 85, 247, 0.5) !important;
}

/* Profile card entrance */
.profile-card {
    animation: fadeIn 0.8s ease-out, floatIn 1s ease-out;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Theme button rotation on hover */
.theme-btn:hover i {
    transform: rotate(180deg);
    transition: transform 0.6s ease;
}

/* Music widget pulse */
.music-icon-wrapper {
    animation: musicPulse 2s ease-in-out infinite;
}

@keyframes musicPulse {

    0%,
    100% {
        box-shadow: 0 0 15px var(--primary);
    }

    50% {
        box-shadow: 0 0 25px var(--primary), 0 0 40px var(--primary);
    }
}