/* ====================================
   INTRO SLIDE - ARTISTIC EFFECTS
   Beautiful animations and visual effects
   ==================================== */

/* ===== ANIMATED BACKGROUND GRADIENT ===== */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.intro-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            #f8fef8 0%,
            #DBF3C9 25%,
            #B7E892 50%,
            #93DC5C 75%,
            #f8fef8 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -1;
    opacity: 0.3;
}

/* ===== FLOATING PARTICLES ===== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--green-lime);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-particle 20s infinite ease-in-out;
}

@keyframes float-particle {

    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.particle:nth-child(3) {
    left: 30%;
    animation-delay: 4s;
    animation-duration: 20s;
}

.particle:nth-child(4) {
    left: 40%;
    animation-delay: 1s;
    animation-duration: 16s;
}

.particle:nth-child(5) {
    left: 50%;
    animation-delay: 3s;
    animation-duration: 19s;
}

.particle:nth-child(6) {
    left: 60%;
    animation-delay: 5s;
    animation-duration: 17s;
}

.particle:nth-child(7) {
    left: 70%;
    animation-delay: 2.5s;
    animation-duration: 21s;
}

.particle:nth-child(8) {
    left: 80%;
    animation-delay: 4.5s;
    animation-duration: 15.5s;
}

.particle:nth-child(9) {
    left: 90%;
    animation-delay: 1.5s;
    animation-duration: 18.5s;
}

.particle:nth-child(10) {
    left: 15%;
    animation-delay: 3.5s;
    animation-duration: 16.5s;
}

/* ===== GLOWING ORB DECORATION ===== */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.2;
    pointer-events: none;
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
}

.orb-1 {
    top: 10%;
    left: 15%;
    width: 300px;
    height: 300px;
    background: var(--green-lime);
    animation-delay: 0s;
}

.orb-2 {
    bottom: 20%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: var(--green-508);
    animation-delay: 2s;
}

.orb-3 {
    top: 50%;
    left: 50%;
    width: 250px;
    height: 250px;
    background: var(--green-bright);
    animation-delay: 1s;
}

/* ===== AVATAR ENHANCEMENTS ===== */
.intro-avatar {
    position: relative;
    animation: avatar-entrance 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes avatar-entrance {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.intro-avatar::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--green-lime), var(--green-508), var(--green-bright));
    z-index: -1;
    opacity: 0.3;
    animation: rotate-border 3s linear infinite;
}

@keyframes rotate-border {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.intro-avatar:hover {
    transform: scale(1.05);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== TEXT ANIMATIONS ===== */
.intro-name {
    animation: text-reveal 1s cubic-bezier(0.77, 0, 0.175, 1) 0.3s both;
}

@keyframes text-reveal {
    0% {
        transform: translateY(50px);
        opacity: 0;
        filter: blur(10px);
    }

    100% {
        transform: translateY(0);
        opacity: 1;
        filter: blur(0);
    }
}

.intro-title {
    animation: text-reveal 1s cubic-bezier(0.77, 0, 0.175, 1) 0.5s both;
}

.intro-bio {
    animation: text-reveal 1s cubic-bezier(0.77, 0, 0.175, 1) 0.7s both;
}

/* ===== CONTACT CARD ANIMATIONS ===== */
.contact-item {
    animation: card-slide-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
}

@keyframes card-slide-in {
    0% {
        transform: translateX(50px) rotate(5deg);
        opacity: 0;
    }

    100% {
        transform: translateX(0) rotate(0deg);
        opacity: 1;
    }
}

.contact-item:nth-child(1) {
    animation-delay: 0.9s;
}

.contact-item:nth-child(2) {
    animation-delay: 1.0s;
}

.contact-item:nth-child(3) {
    animation-delay: 1.1s;
}

.contact-item:nth-child(4) {
    animation-delay: 1.2s;
}

.contact-item:nth-child(5) {
    animation-delay: 1.3s;
}

/* Ripple effect on hover */
.contact-item {
    position: relative;
    overflow: hidden;
}

.contact-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(50, 205, 50, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.contact-item:hover::after {
    width: 300px;
    height: 300px;
}

/* ===== CONTACT ICON ANIMATIONS ===== */
.contact-icon {
    animation: icon-bounce 2s ease-in-out infinite;
}

@keyframes icon-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.contact-item:hover .contact-icon {
    animation: icon-spin 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes icon-spin {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.2);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* ===== SHIMMER EFFECT ===== */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    animation: shimmer-slide 3s infinite;
}

@keyframes shimmer-slide {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* ===== MAGNETIC CURSOR EFFECT ===== */
.magnetic {
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== FADE IN ON SCROLL ===== */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .glow-orb {
        display: none;
    }

    .particles {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}