/* ===========================
   Fun & Playful Additions
   =========================== */

/* Fun Divider */
.fun-divider {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rocket-icon {
    font-size: 3rem;
    animation: rocketBounce 2s ease-in-out infinite;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(34, 197, 94, 0.3));
}

@keyframes rocketBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(-5deg);
    }
    75% {
        transform: translateY(-10px) rotate(5deg);
    }
}

/* Logo Particles Effect */
.logo-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.logo-particles::before,
.logo-particles::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-gradient);
    animation: particleFloat 4s ease-in-out infinite;
}

.logo-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.logo-particles::after {
    top: 70%;
    right: 15%;
    animation-delay: 2s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    50% {
        transform: translate(20px, -30px) scale(1.5);
        opacity: 1;
    }
}

/* Logo Glow */
.logo-glow {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.2) 0%, transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes glowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Fun Buttons */
.btn-fun {
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.btn-fun:hover {
    transform: translateY(-5px) scale(1.05);
}

.btn-fun .btn-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.btn-fun:hover .btn-icon {
    transform: translateX(5px) rotate(15deg);
}

.btn-fun::before {
    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.6s ease, height 0.6s ease;
}

.btn-fun:hover::before {
    width: 300px;
    height: 300px;
}

/* Fun Images Styling */
.fun-image,
.fun-image-wide,
.fun-image-small {
    border-radius: var(--radius-xl);
    transition: var(--transition-base);
}

.solution-fun-image {
    position: absolute;
    right: 5%;
    top: 10%;
    width: 300px;
    z-index: 0;
    opacity: 0.15;
    animation: floatSide 8s ease-in-out infinite;
}

.solution-fun-image .fun-image {
    width: 100%;
    height: auto;
    filter: blur(1px);
}

@keyframes floatSide {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(3deg);
    }
}

.services-fun-header {
    position: relative;
    width: 100%;
    height: 400px;
    margin-bottom: 4rem;
    overflow: hidden;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.services-fun-header .fun-image-wide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.1) saturate(1.2);
}

.fun-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(34, 197, 94, 0.1) 0%, 
        rgba(6, 182, 212, 0.1) 50%,
        rgba(255, 255, 255, 0.95) 100%);
}

.process-fun-image {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 250px;
    z-index: 0;
    opacity: 0.12;
}

.process-fun-image .fun-image-small {
    width: 100%;
    height: auto;
}

.audience-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.audience-img-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
}

.audience-img-container:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(34, 197, 94, 0.2);
}

.audience-img-container .fun-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition-base);
}

.audience-img-container:hover .fun-image {
    transform: scale(1.1);
}

/* Playful Section Headers */
.section-header {
    position: relative;
}

.section-title::after {
    content: '✨';
    margin-left: 1rem;
    font-size: 0.8em;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2) rotate(180deg);
    }
}

/* Enhanced Pillar Icons */
.pillar-icon {
    position: relative;
    overflow: visible;
}

.pillar-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-gradient);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
}

.pillar:hover .pillar-icon::before {
    opacity: 0.3;
    transform: scale(1.3);
}

/* Confetti Effect on Hover */
.problem-card,
.value-card,
.service-block {
    position: relative;
    overflow: hidden;
}

.problem-card::after,
.value-card::after {
    content: '🎉';
    position: absolute;
    top: -50px;
    right: 20px;
    font-size: 2rem;
    opacity: 0;
    transform: rotate(0deg);
    transition: all 0.5s ease;
}

.problem-card:hover::after,
.value-card:hover::after {
    top: 20px;
    opacity: 1;
    transform: rotate(360deg);
}

/* Scroll Indicator Enhancement */
.scroll-indicator span {
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Market Stats Fun */
.market-stat {
    position: relative;
}

.market-stat::before {
    content: '📈';
    position: absolute;
    top: -30px;
    right: -10px;
    font-size: 2.5rem;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.market-stat:hover::before {
    opacity: 1;
    transform: scale(1) rotate(15deg);
}

/* Contact Cards Fun */
.contact-card .contact-icon {
    animation: wiggle 3s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

/* Enhanced Navigation Logo */
.logo-img {
    transition: all 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.1) rotate(5deg);
}

/* Hero Logo Slow Spinning Animation */
.hero-logo-spin {
    animation: heroSlowSpin 30s linear infinite !important;
    filter: drop-shadow(0 20px 40px rgba(34, 197, 94, 0.3));
}

@keyframes heroSlowSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Enhanced hover effect for spinning hero logo */
.hero-logo-spin:hover {
    animation-play-state: paused;
    filter: drop-shadow(0 25px 50px rgba(34, 197, 94, 0.5)) drop-shadow(0 0 40px rgba(6, 182, 212, 0.4));
}

/* Process Steps Fun */
.process-number {
    position: relative;
    overflow: visible;
}

.process-number::after {
    content: '⭐';
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 1.5rem;
    opacity: 0;
    transform: scale(0) rotate(0deg);
    transition: all 0.3s ease;
}

.process-step:hover .process-number::after {
    opacity: 1;
    transform: scale(1) rotate(180deg);
}

/* Responsive Fun Elements */
@media (max-width: 968px) {
    .solution-fun-image,
    .process-fun-image {
        display: none;
    }

    .services-fun-header {
        height: 300px;
    }

    .audience-images {
        grid-template-columns: 1fr;
    }

    .rocket-icon {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .services-fun-header {
        height: 200px;
    }

    .audience-img-container .fun-image {
        height: 250px;
    }

    .btn-fun {
        gap: 0.5rem;
    }

    .btn-fun .btn-icon {
        font-size: 1.25rem;
    }
}