/* ============================================
   Premium Animations & Final Color Fixes
   ============================================ */

/* 1. CTA Section - White Text on Blue Background */
.cta-section {
    background: linear-gradient(135deg, #2573D1 0%, #4A90E2 100%) !important;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M20 20h20v20h-20z M25 25h10v10h-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: pattern-shift 20s linear infinite;
}

@keyframes pattern-shift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    color: #FFFFFF !important;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.cta-section .form-hint,
.cta-section .privacy-note {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.875rem;
    margin-top: 1rem;
}

.cta-section .form-hint i,
.cta-section .privacy-note i {
    color: #FFFFFF;
    margin-right: 0.5rem;
    opacity: 0.9;
}

.cta-section input,
.cta-section textarea {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: var(--text-primary) !important;
    padding: 14px 16px;
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

.cta-section input:focus,
.cta-section textarea:focus {
    background: #FFFFFF !important;
    border-color: #FFFFFF !important;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2) !important;
}

.cta-section .btn {
    background: #FFFFFF !important;
    color: #2573D1 !important;
    padding: 14px 32px;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta-section .btn:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}

/* 2. Footer Logo - Black Text */
footer .logo,
.footer .logo {
    color: var(--text-primary) !important;
    font-size: 1.5rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

footer .logo i,
.footer .logo i {
    color: var(--robo-blue) !important;
}

footer .logo span,
.footer .logo span {
    color: #1F2937 !important; /* Dark black/grey */
}

/* 3. Rating Badge - Closer to Robot with Premium Animation */
.robot-display {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.robot-3d {
    font-size: 200px;
    color: rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 10;
    animation: robot-float 4s ease-in-out infinite;
}

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

/* Rating positioned very close to robot head */
.rating-badge,
.conversion-card.rating {
    position: absolute !important;
    top: 30px !important;
    right: calc(50% - 180px) !important;
    background: #FFFFFF !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
    padding: 0.75rem 1rem !important;
    border-radius: 16px !important;
    min-width: 100px;
    z-index: 15;
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    }
}

/* 4. PREMIUM WAVE ANIMATION FROM ROBOT */
.robot-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    pointer-events: none;
    z-index: 5;
}

/* Wave Circles */
.wave-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: wave-expand 3s ease-out infinite;
}

.wave-circle:nth-child(1) {
    width: 100px;
    height: 100px;
    animation-delay: 0s;
}

.wave-circle:nth-child(2) {
    width: 100px;
    height: 100px;
    animation-delay: 0.5s;
}

.wave-circle:nth-child(3) {
    width: 100px;
    height: 100px;
    animation-delay: 1s;
}

.wave-circle:nth-child(4) {
    width: 100px;
    height: 100px;
    animation-delay: 1.5s;
}

@keyframes wave-expand {
    0% {
        width: 100px;
        height: 100px;
        opacity: 1;
        border-width: 3px;
    }
    100% {
        width: 400px;
        height: 400px;
        opacity: 0;
        border-width: 1px;
    }
}

/* Particle Effects from Robot Head */
.robot-particles {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    pointer-events: none;
    z-index: 12;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: particle-float 4s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 50%;
    left: 50%;
    animation-delay: 0s;
    animation-name: particle-1;
}

.particle:nth-child(2) {
    top: 50%;
    left: 50%;
    animation-delay: 0.5s;
    animation-name: particle-2;
}

.particle:nth-child(3) {
    top: 50%;
    left: 50%;
    animation-delay: 1s;
    animation-name: particle-3;
}

.particle:nth-child(4) {
    top: 50%;
    left: 50%;
    animation-delay: 1.5s;
    animation-name: particle-4;
}

.particle:nth-child(5) {
    top: 50%;
    left: 50%;
    animation-delay: 2s;
    animation-name: particle-5;
}

@keyframes particle-1 {
    0%, 100% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }
    25% {
        transform: translate(-30px, -50px) scale(1);
        opacity: 1;
    }
    75% {
        transform: translate(-60px, -100px) scale(0.5);
        opacity: 0.5;
    }
}

@keyframes particle-2 {
    0%, 100% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }
    25% {
        transform: translate(30px, -50px) scale(1);
        opacity: 1;
    }
    75% {
        transform: translate(60px, -100px) scale(0.5);
        opacity: 0.5;
    }
}

@keyframes particle-3 {
    0%, 100% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }
    25% {
        transform: translate(0, -60px) scale(1);
        opacity: 1;
    }
    75% {
        transform: translate(0, -120px) scale(0.5);
        opacity: 0.5;
    }
}

@keyframes particle-4 {
    0%, 100% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }
    25% {
        transform: translate(-40px, -30px) scale(1);
        opacity: 1;
    }
    75% {
        transform: translate(-80px, -60px) scale(0.5);
        opacity: 0.5;
    }
}

@keyframes particle-5 {
    0%, 100% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }
    25% {
        transform: translate(40px, -30px) scale(1);
        opacity: 1;
    }
    75% {
        transform: translate(80px, -60px) scale(0.5);
        opacity: 0.5;
    }
}

/* Signal Lines from Robot */
.signal-lines {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 100px;
    pointer-events: none;
    z-index: 8;
}

.signal-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
    animation: signal-pulse 2s ease-in-out infinite;
}

.signal-line:nth-child(1) {
    top: 20%;
    left: 0;
    right: 0;
    animation-delay: 0s;
}

.signal-line:nth-child(2) {
    top: 50%;
    left: 0;
    right: 0;
    animation-delay: 0.3s;
}

.signal-line:nth-child(3) {
    top: 80%;
    left: 0;
    right: 0;
    animation-delay: 0.6s;
}

@keyframes signal-pulse {
    0%, 100% {
        transform: scaleX(0);
        opacity: 0;
    }
    50% {
        transform: scaleX(1);
        opacity: 1;
    }
}

/* Add HTML Structure via JavaScript */
.hero-robot-container {
    position: relative;
    display: inline-block;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .robot-3d {
        font-size: 150px;
    }
    
    .rating-badge,
    .conversion-card.rating {
        position: static !important;
        margin: 1rem auto;
    }
    
    .robot-waves,
    .robot-particles,
    .signal-lines {
        display: none;
    }
}

/* Ensure animations perform well */
@media (prefers-reduced-motion: reduce) {
    .wave-circle,
    .particle,
    .signal-line,
    .robot-3d {
        animation: none !important;
    }
}