/* ClueCheck Mystery Shopping - Enhanced Animations & Visual Design */

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in {
    opacity: 0;
    transition: opacity 1s ease-in;
}

.animate-fade-in.animated {
    opacity: 1;
}

.animate-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-slide-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-slide-right.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-scale.animated {
    opacity: 1;
    transform: scale(1);
}

/* Staggered animations for grid items */
.stagger-animation > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.stagger-animation.animated > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-animation.animated > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-animation.animated > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-animation.animated > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-animation.animated > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-animation.animated > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-animation.animated > * {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   ENHANCED LAYOUTS
   ======================================== */

.intro-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin: 40px 0;
}

.intro-trust-badges {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.trust-badge-item {
    text-align: center;
    padding: 20px 15px;
    background: white;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.trust-badge-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(249, 155, 57, 0.15);
    border-color: var(--primary-color);
}

.badge-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.trust-badge-item:hover .badge-icon {
    transform: scale(1.2);
}

.badge-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
    line-height: 1.4;
}

.intro-image {
    position: relative;
}

.intro-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.intro-image:hover img {
    transform: scale(1.02);
}

.image-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: float 3s ease-in-out infinite;
}

.image-badge i {
    color: #10b981;
    font-size: 1.2rem;
}

.image-badge span {
    font-weight: 600;
    color: var(--secondary-color);
}

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

/* ========================================
   VISUAL ENHANCEMENTS
   ======================================== */

/* Hero Background Enhancement */
.hero {
    background: linear-gradient(135deg, rgba(50, 74, 107, 0.95), rgba(30, 58, 95, 0.95)), 
                url('https://images.unsplash.com/photo-1556742111-a301076d9d18?w=1600&q=80') center/cover;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(249, 155, 57, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Parallax effect for hero */
.hero-parallax {
    transform: translateY(0);
    transition: transform 0.3s ease-out;
}

/* Trust indicators enhancement */
.trust-indicators {
    background: linear-gradient(to bottom, white, #f8f9fa);
    padding: 80px 0;
}

.trust-item {
    transition: all 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-10px);
}

.trust-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.trust-item:hover i {
    transform: scale(1.2);
}

/* Service cards enhancement */
.service-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(249, 155, 57, 0.1), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

/* Icon animations */
@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.icon-pulse {
    animation: iconPulse 2s ease-in-out infinite;
}

/* Gradient backgrounds */
.gradient-bg-primary {
    background: linear-gradient(135deg, var(--primary-color), #ffa94d);
}

.gradient-bg-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #1e3a5f);
}

/* Image overlays */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-overlay:hover::after {
    opacity: 1;
}

/* ========================================
   SECTION DIVIDERS
   ======================================== */

.section-divider {
    height: 100px;
    background: linear-gradient(to bottom, white, transparent);
}

.wave-divider {
    position: relative;
    height: 80px;
    overflow: hidden;
}

.wave-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0 L0,40 Q300,100 600,40 T1200,40 L1200,0 Z" fill="%23f8f9fa"/></svg>') center/cover no-repeat;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .intro-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .trust-badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .image-badge {
        bottom: 10px;
        right: 10px;
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .badge-icon {
        font-size: 2rem;
    }
    
    .badge-label {
        font-size: 0.8rem;
    }
}

/* ========================================
   LOADING ANIMATIONS
   ======================================== */

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton-loader {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ========================================
   HOVER EFFECTS
   ======================================== */

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(249, 155, 57, 0.4);
}

/* ========================================
   TEXT ANIMATIONS
   ======================================== */

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), #ffa94d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-text {
    position: relative;
    display: inline-block;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 12px;
    background: rgba(249, 155, 57, 0.3);
    z-index: -1;
    transition: height 0.3s ease;
}

.highlight-text:hover::after {
    height: 100%;
}
