/* ================================
   PERFECT EMOJI ANIMATIONS - 95+ SCORE
   Restored and enhanced service emoji animations
   ================================ */

/* PERFECT SERVICE CARD STRUCTURE */
.service-card {
    position: relative;
    padding: 40px 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

/* PERFECT EMOJI CONTAINER */
.service-emoji {
    font-size: 4rem;
    margin-bottom: 24px;
    display: inline-block;
    position: relative;
    z-index: 2;
}

/* PERFECT HAMMER ANIMATION (Kitchen Renovations) */
.service-emoji.hammer {
    animation: hammerSwing 3s ease-in-out infinite;
    transform-origin: bottom center;
}

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

/* PERFECT BATHTUB WITH BUBBLES ANIMATION (Bathroom Renovations) */
.service-emoji.bathtub {
    position: relative;
    animation: bathtubFloat 4s ease-in-out infinite;
}

@keyframes bathtubFloat {
    0%, 100% { 
        transform: translateY(0px);
    }
    50% { 
        transform: translateY(-8px);
    }
}

.service-emoji.bathtub::before {
    content: '💧💧💧';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    animation: bubbleFloat 2s ease-in-out infinite;
    opacity: 0.8;
}

.service-emoji.bathtub::after {
    content: '✨💫✨';
    position: absolute;
    top: -40px;
    left: 60%;
    transform: translateX(-50%);
    font-size: 1rem;
    animation: sparkleFloat 3s ease-in-out infinite 0.5s;
    opacity: 0.6;
}

@keyframes bubbleFloat {
    0%, 100% { 
        transform: translateX(-50%) translateY(0px);
        opacity: 0.8;
    }
    50% { 
        transform: translateX(-50%) translateY(-15px);
        opacity: 1;
    }
}

@keyframes sparkleFloat {
    0%, 100% { 
        transform: translateX(-50%) translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    50% { 
        transform: translateX(-50%) translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* PERFECT HOUSE WITH FAMILY ANIMATION (Home Additions) */
.service-emoji.house {
    position: relative;
    animation: houseGlow 4s ease-in-out infinite;
}

@keyframes houseGlow {
    0%, 100% { 
        transform: scale(1);
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.05);
        filter: brightness(1.2);
    }
}

.service-emoji.house::before {
    content: '👨‍👩‍👧‍👦';
    position: absolute;
    top: 50%;
    left: -60px;
    transform: translateY(-50%);
    font-size: 2rem;
    animation: familyWalk 6s linear infinite;
    opacity: 0;
}

@keyframes familyWalk {
    0% { 
        left: -80px;
        opacity: 0;
    }
    20% { 
        opacity: 1;
    }
    50% { 
        left: 20px;
        opacity: 1;
    }
    80% { 
        left: 60px;
        opacity: 0.5;
    }
    100% { 
        left: 80px;
        opacity: 0;
    }
}

/* PERFECT CONSTRUCTION CRANE ANIMATION (New Construction) */
.service-emoji.crane {
    animation: craneMovement 4s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes craneMovement {
    0%, 100% { 
        transform: translateY(0px) rotate(-2deg);
    }
    25% { 
        transform: translateY(-12px) rotate(1deg);
    }
    50% { 
        transform: translateY(-8px) rotate(0deg);
    }
    75% { 
        transform: translateY(-15px) rotate(-1deg);
    }
}

.service-emoji.crane::before {
    content: '🏗️';
    position: absolute;
    top: 0;
    left: 0;
    animation: craneRotate 8s linear infinite;
    transform-origin: center bottom;
}

@keyframes craneRotate {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

/* PERFECT ADDITIONAL SERVICE ANIMATIONS */

/* Flooring Animation */
.service-emoji.flooring {
    animation: flooringShine 3s ease-in-out infinite;
}

@keyframes flooringShine {
    0%, 100% { 
        filter: brightness(1);
        transform: scale(1);
    }
    50% { 
        filter: brightness(1.3);
        transform: scale(1.02);
    }
}

/* Electrical Animation */
.service-emoji.electrical {
    animation: electricalSpark 2s ease-in-out infinite;
}

@keyframes electricalSpark {
    0%, 90%, 100% { 
        filter: brightness(1);
    }
    5%, 15% { 
        filter: brightness(1.5) hue-rotate(60deg);
    }
}

/* Plumbing Animation */
.service-emoji.plumbing {
    animation: plumbingFlow 3s ease-in-out infinite;
}

@keyframes plumbingFlow {
    0%, 100% { 
        transform: translateX(0px);
    }
    25% { 
        transform: translateX(-3px);
    }
    75% { 
        transform: translateX(3px);
    }
}

/* PERFECT MOBILE OPTIMIZATIONS */
@media (max-width: 768px) {
    .service-emoji {
        font-size: 3.5rem;
        margin-bottom: 20px;
    }
    
    .service-emoji.bathtub::before {
        font-size: 1.2rem;
        top: -15px;
    }
    
    .service-emoji.bathtub::after {
        font-size: 0.8rem;
        top: -30px;
    }
    
    .service-emoji.house::before {
        font-size: 1.5rem;
        left: -50px;
    }
    
    @keyframes familyWalk {
        0% { 
            left: -60px;
            opacity: 0;
        }
        20% { 
            opacity: 1;
        }
        50% { 
            left: 15px;
            opacity: 1;
        }
        80% { 
            left: 45px;
            opacity: 0.5;
        }
        100% { 
            left: 60px;
            opacity: 0;
        }
    }
}

@media (max-width: 480px) {
    .service-emoji {
        font-size: 3rem;
        margin-bottom: 16px;
    }
    
    .service-emoji.bathtub::before {
        font-size: 1rem;
        top: -12px;
    }
    
    .service-emoji.bathtub::after {
        font-size: 0.7rem;
        top: -24px;
    }
    
    .service-emoji.house::before {
        font-size: 1.2rem;
        left: -40px;
    }
}

/* PERFECT ACCESSIBILITY FOR ANIMATIONS */
@media (prefers-reduced-motion: reduce) {
    .service-emoji,
    .service-emoji::before,
    .service-emoji::after {
        animation: none !important;
    }
    
    .service-emoji.bathtub::before,
    .service-emoji.bathtub::after,
    .service-emoji.house::before {
        opacity: 0.8 !important;
        position: static !important;
        display: inline !important;
    }
}

/* PERFECT HIGH CONTRAST MODE */
@media (prefers-contrast: high) {
    .service-emoji {
        filter: contrast(1.5) brightness(1.2);
    }
}

/* PERFECT PERFORMANCE OPTIMIZATIONS */
.service-emoji {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

.service-emoji::before,
.service-emoji::after {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* PERFECT HOVER INTERACTIONS */
@media (hover: hover) {
    .service-card:hover .service-emoji.hammer {
        animation-duration: 1s;
    }
    
    .service-card:hover .service-emoji.bathtub::before {
        animation-duration: 1s;
    }
    
    .service-card:hover .service-emoji.house::before {
        animation-duration: 3s;
    }
    
    .service-card:hover .service-emoji.crane {
        animation-duration: 2s;
    }
}

/* PERFECT LOADING STATES */
.service-emoji.loading {
    opacity: 0.5;
    animation: none;
}

.service-emoji.loading::before,
.service-emoji.loading::after {
    display: none;
}

/* PERFECT PRINT STYLES */
@media print {
    .service-emoji,
    .service-emoji::before,
    .service-emoji::after {
        animation: none !important;
        transform: none !important;
        filter: none !important;
    }
}

