/* Digital Marketing Animations */

/* Fade In Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1.5s ease-in-out;
}

/* Slide In From Left Animation */
@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in-left {
    animation: slideInLeft 1s ease-out;
}

/* Slide In From Right Animation */
@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in-right {
    animation: slideInRight 1s ease-out;
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.bounce {
    animation: bounce 2s ease infinite;
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Typing Animation */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

.typing {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid;
    width: 0;
    animation: typing 3.5s steps(40, end) forwards;
}

/* Data Analysis Animation */
@keyframes dataAnalysis {
    0% { height: 0%; }
    100% { height: 100%; }
}

.data-bar {
    width: 100%;
    background-color: #f0f0f0;
    position: relative;
    height: 20px;
    margin-bottom: 10px;
    overflow: hidden;
}

.data-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #0d6efd;
    animation: dataAnalysis 2s ease-out forwards;
}

.data-bar:nth-child(2)::after {
    animation-delay: 0.5s;
}

.data-bar:nth-child(3)::after {
    animation-delay: 1s;
}

/* Social Media Icons Animation */
@keyframes socialBounce {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

.social-icon-animation {
    display: inline-block;
    transition: all 0.3s ease;
}

.social-icon-animation:hover {
    animation: socialBounce 0.6s ease;
    color: #ffc107 !important;
}

/* Staggered Fade In for Service Cards */
.service-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:nth-child(1) {
    transition-delay: 0.1s;
}

.service-card:nth-child(2) {
    transition-delay: 0.3s;
}

.service-card:nth-child(3) {
    transition-delay: 0.5s;
}

/* Digital Marketing Graph Animation */
@keyframes graphGrow {
    0% {
        height: 0;
    }
    100% {
        height: 100%;
    }
}

.graph-bar {
    width: 20px;
    background-color: #0d6efd;
    margin: 0 5px;
    position: relative;
    animation: graphGrow 1.5s ease-out forwards;
}

.graph-bar:nth-child(2) {
    animation-delay: 0.2s;
}

.graph-bar:nth-child(3) {
    animation-delay: 0.4s;
}

.graph-bar:nth-child(4) {
    animation-delay: 0.6s;
}

.graph-bar:nth-child(5) {
    animation-delay: 0.8s;
}

/* Floating Animation for Hero Elements */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.float {
    animation: float 3s ease-in-out infinite;
}