/* MELIA V6 - WOW FACTOR STYLES */

/* Animated Background Mesh */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(78,205,196,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,107,107,0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(78,205,196,0.05) 0%, transparent 50%);
    animation: meshMove 20s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes meshMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(5%, -5%) rotate(5deg); }
    66% { transform: translate(-5%, 5%) rotate(-5deg); }
}

/* Particles Container */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

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

/* Enhanced Navigation */
nav {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.logo-text:hover {
    transform: scale(1.1) rotate(-3deg);
    color: var(--teal);
}

.logo:hover .logo-bar {
    width: 80px;
    background: linear-gradient(90deg, var(--coral), var(--teal));
}

/* Ripple Effect on Nav Links */
.nav-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--teal);
    transition: width 0.6s ease, height 0.6s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.nav-links a:hover::before {
    width: 300px;
    height: 300px;
}

.nav-links a:hover { 
    color: var(--white);
    transform: translateY(-3px);
}

/* Section Transitions */
section.active { 
    animation: sectionFadeIn 0.8s ease-out;
}

@keyframes sectionFadeIn {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Parallax */
.hero-bg {
    transition: transform 0.3s ease-out;
    transform: scale(1.1);
}

.hero:hover .hero-bg {
    transform: scale(1.15);
}

/* Logo Float Animation */
.hero-logo .logo-text {
    animation: logoFloat 6s ease-in-out infinite;
}

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

/* Badge Bounce */
.hero-badge {
    animation: badgeBounce 2s ease-in-out infinite;
}

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

/* Button Ripple Effect */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: width 0.6s ease, height 0.6s ease;
    transform: translate(-50%, -50%);
}

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

.btn-primary:hover { 
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255,255,255,0.4);
}

.btn-teal:hover { 
    transform: translateY(-5px) rotate(-2deg) scale(1.05);
    box-shadow: 0 15px 40px rgba(78,205,196,0.4);
}

.btn-coral:hover { 
    transform: translateY(-5px) rotate(2deg) scale(1.05);
    box-shadow: 0 15px 40px rgba(255,107,107,0.4);
}

/* Scroll Reveal Base */
.section-header,
.pain-card,
.solution-card,
.feature-card,
.pricing-card,
.comparison-section,
.contact-card,
.cta-banner {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.section-header.reveal,
.pain-card.reveal,
.solution-card.reveal,
.feature-card.reveal,
.pricing-card.reveal,
.comparison-section.reveal,
.contact-card.reveal,
.cta-banner.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Pain Cards 3D Effect */
.pain-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 20px 60px rgba(78,205,196,0.3);
}

.pain-card .emoji {
    animation: emojiFloat 3s ease-in-out infinite;
}

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

/* Solution Cards 3D */
.solution-card:hover {
    transform: translateY(-15px) rotateY(5deg) scale(1.02);
    box-shadow: 0 30px 80px rgba(0,0,0,0.2);
}

.solution-card:hover img {
    transform: scale(1.1);
}

/* Feature Cards */
.feature-card:hover {
    transform: translateY(-10px) rotate(-2deg);
    box-shadow: 0 20px 60px rgba(78,205,196,0.2);
}

.feature-card:hover .icon {
    transform: scale(1.2) rotate(10deg);
}

/* Pricing Cards */
.pricing-card:hover {
    transform: translateY(-20px) scale(1.05);
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}

.pricing-card.popular::before {
    animation: popularBounce 2s ease-in-out infinite;
}

@keyframes popularBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

/* Contact Cards */
.contact-card:hover {
    transform: translateY(-15px) rotate(-2deg);
    box-shadow: 0 25px 70px rgba(0,0,0,0.2);
}

.contact-card:hover img {
    transform: scale(1.1);
}

/* CTA Banner Rotation */
.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 15s linear infinite;
}

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

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

/* Stagger Delays */
.pain-card:nth-child(1) { transition-delay: 0.1s; }
.pain-card:nth-child(2) { transition-delay: 0.2s; }
.pain-card:nth-child(3) { transition-delay: 0.3s; }
.pain-card:nth-child(4) { transition-delay: 0.4s; }

.solution-card:nth-child(1) { transition-delay: 0.1s; }
.solution-card:nth-child(2) { transition-delay: 0.2s; }
.solution-card:nth-child(3) { transition-delay: 0.3s; }

.feature-card:nth-child(1) { transition-delay: 0.1s; }
.feature-card:nth-child(2) { transition-delay: 0.15s; }
.feature-card:nth-child(3) { transition-delay: 0.2s; }
.feature-card:nth-child(4) { transition-delay: 0.25s; }
.feature-card:nth-child(5) { transition-delay: 0.3s; }
.feature-card:nth-child(6) { transition-delay: 0.35s; }

.pricing-card:nth-child(1) { transition-delay: 0.1s; }
.pricing-card:nth-child(2) { transition-delay: 0.2s; }
.pricing-card:nth-child(3) { transition-delay: 0.3s; }
