/* =========================================
   ANIMATIONS CSS
   Consolidates Scroll and Social Icon Animations
   ========================================= */

/* --- SCROLL ANIMATIONS --- */
/* Base styles for animations */
.fade-in,
.slide-in,
.scale-in,
.rotate-in,
.reveal-content,
.parallax-element {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.fade-in.active {
    opacity: 1;
}

/* Slide animations from different directions */
.slide-in {
    transform: translateY(50px);
}

.slide-in.from-left {
    transform: translateX(-50px);
}

.slide-in.from-right {
    transform: translateX(50px);
}

.slide-in.active {
    opacity: 1;
    transform: translate(0);
}

/* Scale animation */
.scale-in {
    transform: scale(0.8);
}

.scale-in.active {
    opacity: 1;
    transform: scale(1);
}

/* Rotation animation */
.rotate-in {
    transform: rotate(-10deg) scale(0.9);
}

.rotate-in.active {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* Typewriter effect */
.type-effect {
    border-right: 2px solid var(--color-accent-1);
    white-space: nowrap;
    overflow: hidden;
    margin: 0 auto;
}

.type-effect.typing {
    opacity: 1;
}

/* Reveal content effect */
.reveal-content {
    position: relative;
}

.reveal-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--color-accent-1), var(--color-accent-3));
    transform: scaleX(1);
    transform-origin: right;
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
    z-index: 1;
}

.reveal-content.revealed::before {
    transform: scaleX(0);
}

.reveal-content>* {
    opacity: 0;
    transition: opacity 0.3s ease 0.5s;
    position: relative;
    z-index: 2;
}

.reveal-content.revealed>* {
    opacity: 1;
}

/* Progress bars */
.progress-bar-container {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-bar {
    height: 0.5rem;
    background: linear-gradient(to right, var(--color-accent-1), var(--color-accent-3));
    width: 0;
    transition: width 1.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    border-radius: var(--radius-full);
}

/* Staggered sequences */
.fade-in-stagger {
    opacity: 1;
}

.fade-in-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* Specific section delays */
.hero-title.slide-in {
    transition-delay: 0.2s;
}

.hero-description.slide-in {
    transition-delay: 0.4s;
}

.hero-buttons.slide-in {
    transition-delay: 0.6s;
}

.service-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(138, 108, 255, 0.1);
}

/* Scroll background shift */
.scroll-bg-shift {
    background-position: 0% 0%;
    transition: background-position 0.5s ease;
}

.scroll-bg-shift.active {
    background-position: 100% 0%;
}

/* Blur on scroll */
.blur-on-scroll {
    filter: blur(5px);
    transition: filter 0.5s ease;
}

.blur-on-scroll.active {
    filter: blur(0);
}

/* Color shift on scroll */
.color-shift {
    transition: color 0.5s ease, background-color 0.5s ease;
}

.color-shift.active {
    color: var(--color-accent-1);
}

/* Zoom on scroll */
.zoom-on-scroll {
    transform: scale(0.9);
    transition: transform 0.8s ease;
}

.zoom-on-scroll.active {
    transform: scale(1);
}

/* Fade text on scroll */
.fade-text-on-scroll {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-text-on-scroll.active {
    opacity: 0.3;
    transform: scale(0.95);
}

/* Text colot shift (gradient) */
.text-color-shift {
    background: linear-gradient(to right, var(--color-accent-1), var(--color-accent-3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 100%;
    background-position: 100% 0;
    transition: background-position 0.5s ease;
}

.text-color-shift.active {
    background-position: 0 0;
}

/* --- SOCIAL ICONS ANIMATIONS --- */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(10deg);
    }

    75% {
        transform: rotate(-10deg);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Base styles for all social icons */
.social-link {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 62, 157, 0.4);
}

.social-link svg {
    transition: transform 0.3s ease, fill 0.3s ease;
}

/* Specific Social Network Gradients & Hover Animations */
.tiktok-icon {
    background: linear-gradient(135deg, rgba(255, 0, 80, 0.2), rgba(0, 0, 0, 0.2));
}

.tiktok-icon:hover {
    background: linear-gradient(135deg, rgba(255, 0, 80, 0.8), rgba(0, 0, 0, 0.8));
}

.tiktok-icon:hover svg {
    animation: shake 0.6s ease-in-out infinite;
}

.youtube-icon {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2), rgba(200, 0, 0, 0.2));
}

.youtube-icon:hover {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.8), rgba(200, 0, 0, 0.8));
}

.youtube-icon:hover svg {
    animation: pulse 1s ease-in-out infinite;
}

.instagram-icon {
    background: linear-gradient(45deg, rgba(240, 148, 51, 0.2), rgba(230, 104, 60, 0.2), rgba(220, 39, 67, 0.2), rgba(204, 35, 102, 0.2), rgba(188, 24, 136, 0.2));
}

.instagram-icon:hover {
    background: linear-gradient(45deg, rgba(240, 148, 51, 0.8), rgba(230, 104, 60, 0.8), rgba(220, 39, 67, 0.8), rgba(204, 35, 102, 0.8), rgba(188, 24, 136, 0.8));
}

.instagram-icon:hover svg {
    animation: spin 2s linear infinite;
}

.pinterest-icon {
    background: linear-gradient(135deg, rgba(230, 0, 35, 0.2), rgba(180, 0, 25, 0.2));
}

.pinterest-icon:hover {
    background: linear-gradient(135deg, rgba(230, 0, 35, 0.8), rgba(180, 0, 25, 0.8));
}

.pinterest-icon:hover svg {
    animation: bounce 0.8s ease-in-out infinite;
}

.facebook-icon {
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.2), rgba(10, 90, 200, 0.2));
}

.facebook-icon:hover {
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.8), rgba(10, 90, 200, 0.8));
}

.facebook-icon:hover svg {
    animation: pulse 0.8s ease-in-out infinite;
}

.twitter-icon {
    background: linear-gradient(135deg, rgba(29, 161, 242, 0.2), rgba(20, 120, 220, 0.2));
}

.twitter-icon:hover {
    background: linear-gradient(135deg, rgba(29, 161, 242, 0.8), rgba(20, 120, 220, 0.8));
}

.twitter-icon:hover svg {
    animation: float 1s ease-in-out infinite;
}

/* Click Ripple Effect */
.icon-ripple {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.8s ease-out;
    pointer-events: none;
    z-index: 0;
}

/* Visibility Enhancements */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    z-index: 1;
}

.social-link svg {
    width: 1.2rem;
    height: 1.2rem;
    z-index: 2;
    position: relative;
}

/* Footer specific overrides */
.footer-social .social-link {
    width: 2.5rem;
    height: 2.5rem;
}