/* Neuromarketing Home Page - Engagement & Retention Focused */

/* Unified Color Palette - Psychological Impact */
:root {
    --primary-trust: #1e40af;
    --secondary-energy: #f59e0b;
    --success-growth: #10b981;
    --danger-urgency: #ef4444;
    --info-calm: #06b6d4;
    --warning-attention: #f59e0b;
    --dark-authority: #1f2937;
    --light-comfort: #f8fafc;
}

/* Hero Section - Attention Grabbing */
.hero-section {
    background: linear-gradient(135deg, var(--primary-trust) 0%, var(--info-calm) 100%) !important;
    min-height: 80vh !important;
    position: relative;
    overflow: hidden;
}

.hero-section::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 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-20px) translateY(-20px); }
}

/* Engagement Hooks */
.engagement-hook {
    position: fixed;
    top: 50%;
    right: -300px;
    transform: translateY(-50%);
    background: var(--danger-urgency);
    color: white;
    padding: 15px 20px;
    border-radius: 25px 0 0 25px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: -5px 0 15px rgba(239, 68, 68, 0.3);
    transition: right 0.5s ease;
    z-index: 1000;
    cursor: pointer;
    animation: slideIn 1s ease 3s forwards;
}

@keyframes slideIn {
    to { right: 0; }
}

.engagement-hook:hover {
    right: 10px;
    box-shadow: -8px 0 25px rgba(239, 68, 68, 0.5);
}

/* Sticky Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--success-growth), var(--secondary-energy));
    z-index: 1001;
    transition: width 0.3s ease;
}

/* Interactive Elements */
.interactive-card {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.interactive-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

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

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

/* Gamification Elements */
.achievement-badge {
    position: relative;
    display: inline-block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.progress-ring {
    width: 120px;
    height: 120px;
    position: relative;
}

.progress-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
}

.progress-ring .bg {
    stroke: rgba(255,255,255,0.2);
}

.progress-ring .progress {
    stroke: var(--secondary-energy);
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    animation: progressFill 2s ease-in-out forwards;
}

@keyframes progressFill {
    to { stroke-dashoffset: 70; }
}

/* Social Proof Indicators */
.social-proof-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-left: 4px solid var(--success-growth);
    transform: translateX(-400px);
    transition: transform 0.5s ease;
    z-index: 1000;
    max-width: 300px;
}

.social-proof-popup.show {
    transform: translateX(0);
}

.social-proof-popup .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Micro-Interactions */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.pulse-on-hover:hover {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Attention-Grabbing Buttons */
.cta-primary {
    background: linear-gradient(135deg, var(--secondary-energy) 0%, var(--danger-urgency) 100%);
    border: none;
    color: white;
    font-weight: 700;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.6);
}

/* Urgency Indicators */
.urgency-timer {
    background: var(--danger-urgency);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    display: inline-block;
    animation: urgencyPulse 2s infinite;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

@keyframes urgencyPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5); }
}

/* Testimonial Enhancements */
.testimonial-card {
    background: linear-gradient(145deg, white 0%, #f8fafc 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-trust), var(--secondary-energy));
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

/* Service Cards - Psychological Colors */
.service-card-dev {
    border-left: 5px solid var(--primary-trust);
    background: linear-gradient(145deg, #eff6ff 0%, white 100%);
}

.service-card-cloud {
    border-left: 5px solid var(--info-calm);
    background: linear-gradient(145deg, #ecfeff 0%, white 100%);
}

.service-card-training {
    border-left: 5px solid var(--success-growth);
    background: linear-gradient(145deg, #ecfdf5 0%, white 100%);
}

.service-card-security {
    border-left: 5px solid var(--danger-urgency);
    background: linear-gradient(145deg, #fef2f2 0%, white 100%);
}

/* Stats Section - Gamified */
.stat-counter {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-trust), var(--secondary-energy));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.stat-counter::after {
    content: '+';
    position: absolute;
    right: -20px;
    top: 0;
    color: var(--secondary-energy);
    animation: bounce 2s infinite;
}

/* Floating Action Elements */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--secondary-energy);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    animation: float 3s ease-in-out infinite;
}

.floating-cta:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.6);
}

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

/* Technology Stack - Interactive */
.tech-item {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.tech-item:hover {
    transform: translateY(-10px) rotate(5deg);
}

.tech-item::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-authority);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.tech-item:hover::after {
    opacity: 1;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh !important;
    }
    
    .engagement-hook {
        font-size: 0.8rem;
        padding: 12px 16px;
    }
    
    .social-proof-popup {
        bottom: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .floating-cta {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 20px;
        right: 20px;
    }
    
    .cta-primary {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    .engagement-hook,
    .achievement-badge,
    .floating-cta,
    .urgency-timer {
        animation: none;
    }
    
    .interactive-card:hover {
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .interactive-card {
        border: 2px solid currentColor;
    }
    
    .cta-primary {
        border: 2px solid white;
    }
}