/* Animated Demo Section */
.demo-container {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 60px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    min-height: 600px;
}

.demo-stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
}

/* User Avatars */
.user-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.4);
    position: relative;
    animation: avatarPulse 2s ease-in-out infinite;
}

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

.user-card {
    text-align: center;
    position: relative;
}

.user-name {
    font-size: 24px;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 10px;
}

.user-status {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
}

/* Thought Bubbles */
.thought-bubble {
    position: absolute;
    background: white;
    color: #0f172a;
    padding: 20px 25px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    animation: bubbleAppear 0.5s ease-out forwards;
    max-width: 250px;
}

.thought-bubble::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    bottom: -5px;
}

.thought-bubble::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    bottom: -15px;
}

.thought-bubble.left::before {
    left: 30px;
}

.thought-bubble.left::after {
    left: 20px;
}

.thought-bubble.right::before {
    right: 30px;
}

.thought-bubble.right::after {
    right: 20px;
}

@keyframes bubbleAppear {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Connection Animation */
.connection-line {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #ec4899);
    border-radius: 2px;
    animation: lineGrow 1s ease-out forwards;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
}

@keyframes lineGrow {
    to { width: 300px; }
}

/* Ping Animation */
.ping {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.4);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pingPulse 1.5s ease-out infinite;
}

@keyframes pingPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Notification Card */
.notification-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(99, 102, 241, 0.5);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: cardPop 0.5s ease-out 0.5s forwards;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.4);
    min-width: 300px;
}

@keyframes cardPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.notification-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: bounce 1s ease-in-out infinite;
}

.notification-title {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.notification-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

.notification-button {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.notification-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.6);
}

/* Distance Indicator */
.distance-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(16, 185, 129, 0.2);
    border: 2px solid #10b981;
    border-radius: 50%;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #10b981;
    animation: distancePulse 2s ease-in-out infinite;
}

@keyframes distancePulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}

/* Phone Screens */
.phone-demo {
    width: 280px;
    height: 560px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 35px;
    padding: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    position: relative;
}

.phone-demo-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}

.phone-demo-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 20px;
    background: #000;
    border-radius: 0 0 15px 15px;
    z-index: 10;
}

.phone-demo-content {
    padding: 40px 20px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-header {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.app-title {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-item-demo {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-avatar-demo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.contact-info {
    flex: 1;
}

.contact-name-demo {
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-distance {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.match-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    animation: badgePulse 1s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Step Controls */
.demo-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.step-dot.active {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    width: 40px;
    border-radius: 6px;
}

.step-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 968px) {
    .demo-stage {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .connection-line {
        width: 4px;
        height: 100px;
        animation: lineGrowVertical 1s ease-out forwards;
    }
    
    @keyframes lineGrowVertical {
        to { height: 200px; }
    }
    
    .phone-demo {
        margin: 0 auto;
    }

    .demo-controls {
        margin-top: 30px;
    }

    .step-dot {
        width: 10px;
        height: 10px;
    }

    .step-dot.active {
        width: 30px;
    }
}

@media (max-width: 480px) {
    .demo-container {
        padding: 20px 10px;
        border-radius: 20px;
    }

    .user-avatar {
        width: 70px;
        height: 70px;
        font-size: 35px;
    }

    .user-name {
        font-size: 16px;
        margin-top: 12px;
    }

    .user-status {
        font-size: 13px;
    }

    .thought-bubble {
        padding: 10px 15px;
        font-size: 12px;
        max-width: 160px;
        border-radius: 15px;
    }

    .thought-bubble::before {
        width: 15px;
        height: 15px;
    }

    .thought-bubble::after {
        width: 10px;
        height: 10px;
    }

    .connection-line {
        height: 80px;
    }

    @keyframes lineGrowVertical {
        to { height: 150px; }
    }

    .ping {
        width: 30px;
        height: 30px;
    }

    .notification-card {
        min-width: 200px;
        padding: 20px 15px;
    }

    .notification-icon {
        font-size: 40px;
        margin-bottom: 12px;
    }

    .notification-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .notification-text {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .notification-button {
        padding: 10px 25px;
        font-size: 15px;
    }

    .distance-indicator {
        width: 120px;
        height: 120px;
        font-size: 16px;
        border-width: 1px;
    }

    .phone-demo {
        width: 200px;
        height: 400px;
        padding: 10px;
    }

    .phone-demo-screen {
        border-radius: 25px;
    }

    .phone-demo-notch {
        width: 80px;
        height: 18px;
    }

    .phone-demo-content {
        padding: 25px 12px 12px;
    }

    .app-title {
        font-size: 15px;
        padding: 15px 0;
    }

    .contact-avatar-demo {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .contact-name-demo {
        font-size: 13px;
    }

    .contact-distance {
        font-size: 11px;
    }

    .demo-controls {
        gap: 10px;
        margin-top: 25px;
    }

    .step-dot {
        width: 8px;
        height: 8px;
    }

    .step-dot.active {
        width: 25px;
    }
}

/* Feature Card Enhanced Animations */
.feature-card {
    position: relative;
    overflow: visible !important;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feature-card .feature-icon {
    position: relative;
    z-index: 2;
    font-size: 80px !important;
    margin-bottom: 30px !important;
}

/* Animated Feature Demos */
.feature-demo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

.feature-card:hover .feature-demo {
    opacity: 1;
}

/* Lock Animation for Privacy */
.lock-animation {
    animation: lockShake 2s ease-in-out infinite;
}

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

/* Handshake Animation - Enhanced */
.handshake-animation {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
}

.hand {
    font-size: 50px;
    animation: handMove 2s ease-in-out infinite;
}

.hand:first-child {
    animation-delay: 0s;
    animation-name: handMoveLeft;
}

.hand:last-child {
    animation-delay: 0s;
    animation-name: handMoveRight;
}

.handshake-animation > div:nth-child(2) {
    font-size: 40px !important;
    animation: handshakeGlow 2s ease-in-out infinite;
}

@keyframes handMoveLeft {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(15px) rotate(-10deg); }
}

@keyframes handMoveRight {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(-15px) rotate(10deg); }
}

@keyframes handshakeGlow {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(99, 102, 241, 0));
    }
    50% { 
        transform: scale(1.2);
        filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.8));
    }
}

/* Contact List Animation - Enhanced */
.contact-animation {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
}

.contact-bubble {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    animation: bubbleSlide 3s ease-in-out infinite;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.contact-bubble:nth-child(1) { animation-delay: 0s; }
.contact-bubble:nth-child(2) { animation-delay: 0.4s; }
.contact-bubble:nth-child(3) { animation-delay: 0.8s; }

@keyframes bubbleSlide {
    0%, 100% { 
        transform: translateX(0) scale(1); 
        opacity: 0.6;
        box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
    }
    50% { 
        transform: translateX(15px) scale(1.05); 
        opacity: 1;
        box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
        border-color: rgba(99, 102, 241, 0.6);
    }
}

/* Lightning Animation - Enhanced */
.lightning-animation {
    position: relative;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
}

.lightning-bolt {
    font-size: 80px;
    animation: lightningFlash 1s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.5));
}

@keyframes lightningFlash {
    0%, 100% { 
        opacity: 0.4; 
        transform: scale(1) rotate(-10deg);
        filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.3));
    }
    50% { 
        opacity: 1; 
        transform: scale(1.3) rotate(10deg);
        filter: drop-shadow(0 0 30px rgba(251, 191, 36, 1));
    }
}

/* Delete Animation - Enhanced */
.delete-animation {
    position: relative;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
}

.trash-icon {
    font-size: 60px;
    animation: trashShake 2s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(239, 68, 68, 0.3));
}

@keyframes trashShake {
    0%, 100% { 
        transform: rotate(0deg) translateY(0); 
    }
    25% { 
        transform: rotate(-15deg) translateY(-8px); 
    }
    75% { 
        transform: rotate(15deg) translateY(-8px); 
    }
}

.delete-items {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.delete-item {
    font-size: 28px;
    animation: deleteFloat 2.5s ease-in-out infinite;
    filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.4));
}

.delete-item:nth-child(1) {
    animation-delay: 0s;
}

.delete-item:nth-child(2) {
    animation-delay: 0.4s;
}

.delete-item:nth-child(3) {
    animation-delay: 0.8s;
}

@keyframes deleteFloat {
    0% { 
        transform: translateY(0) scale(1) rotate(0deg); 
        opacity: 1; 
    }
    100% { 
        transform: translateY(-80px) scale(0) rotate(180deg); 
        opacity: 0; 
    }
}

/* Globe Animation - Enhanced */
.globe-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 30px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.globe {
    font-size: 80px;
    animation: globeSpin 6s linear infinite;
    filter: drop-shadow(0 5px 20px rgba(99, 102, 241, 0.4));
}

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

.globe-ping {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #10b981, #059669);
    border-radius: 50%;
    animation: globePing 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
}

.globe-ping:nth-child(2) { top: 15%; left: 25%; animation-delay: 0s; }
.globe-ping:nth-child(3) { top: 65%; left: 65%; animation-delay: 0.6s; }
.globe-ping:nth-child(4) { top: 35%; left: 75%; animation-delay: 1.2s; }

@keyframes globePing {
    0%, 100% { 
        transform: scale(0); 
        opacity: 0; 
    }
    50% { 
        transform: scale(1.8); 
        opacity: 1;
        box-shadow: 0 0 25px rgba(16, 185, 129, 1);
    }
}

/* Privacy Card Enhanced Animations */
.privacy-card {
    position: relative;
    overflow: visible !important;
}

/* Encryption Animation - Enhanced */
.encryption-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
}

.data-block {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(139, 92, 246, 0.4));
    border-radius: 12px;
    position: relative;
    animation: dataEncrypt 2s ease-in-out infinite;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.data-block::before {
    content: '🔒';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    opacity: 0;
    animation: lockAppear 2s ease-in-out infinite;
}

.data-block:nth-child(1) { animation-delay: 0s; }
.data-block:nth-child(2) { animation-delay: 0.3s; }
.data-block:nth-child(3) { animation-delay: 0.6s; }

.data-block:nth-child(1)::before { animation-delay: 0s; }
.data-block:nth-child(2)::before { animation-delay: 0.3s; }
.data-block:nth-child(3)::before { animation-delay: 0.6s; }

@keyframes dataEncrypt {
    0%, 100% { 
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(139, 92, 246, 0.4));
        transform: scale(1) rotate(0deg);
        box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
    }
    50% { 
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.6), rgba(5, 150, 105, 0.6));
        transform: scale(1.15) rotate(5deg);
        box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5);
    }
}

@keyframes lockAppear {
    0%, 40%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    50%, 90% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Timer Animation */
.timer-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.timer-circle {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    position: relative;
    animation: timerSpin 15s linear infinite;
}

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

.timer-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: #6366f1;
    animation: timerFill 15s linear infinite;
}

.timer-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    animation: timerCount 15s linear infinite;
}

/* No Sell Animation */
.no-sell-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.data-icon {
    font-size: 40px;
    animation: dataFloat 2s ease-in-out infinite;
}

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

.block-sign {
    font-size: 50px;
    color: #ef4444;
    animation: blockPulse 1.5s ease-in-out infinite;
}

@keyframes blockPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* Compliance Badges */
.compliance-demo {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.badge {
    background: rgba(16, 185, 129, 0.2);
    border: 2px solid #10b981;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    animation: badgeGlow 2s ease-in-out infinite;
}

.badge:nth-child(1) { animation-delay: 0s; }
.badge:nth-child(2) { animation-delay: 0.3s; }
.badge:nth-child(3) { animation-delay: 0.6s; }

@keyframes badgeGlow {
    0%, 100% { 
        box-shadow: 0 0 0 rgba(16, 185, 129, 0);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
        transform: scale(1.05);
    }
}

/* Hover state for cards */
.feature-card:hover .feature-icon,
.privacy-card:hover .privacy-icon {
    animation-play-state: paused;
    transform: scale(1.1);
}
