/* Hero Dashboard Visualization */
.hero-composition {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Main Card */
.main-card {
    width: 320px;
    height: auto;
    min-height: 240px;
    padding: 1.5rem;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.main-card:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #ef4444;
}

.dot.yellow {
    background: #fbbf24;
}

.dot.green {
    background: #10b981;
}

.card-title {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-left: auto;
    font-weight: 500;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    opacity: 0;
    animation: slideIn 0.5s forwards;
}

.message.delay-1 {
    animation-delay: 1.5s;
}

.avatar-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
}

.bubble {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border-bottom-left-radius: 2px;
    font-size: 0.875rem;
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--color-text-muted);
    border-radius: 50%;
    margin: 0 2px;
    opacity: 0.4;
    animation: blink 1.4s infinite both;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

.typing-indicator {
    margin-left: 40px;
    margin-top: 5px;
    opacity: 0;
    animation: fadeIn 0.5s forwards 3s;
}

/* Floating Stat Cards */
.stat-card {
    position: absolute;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 160px;
    z-index: 3;
    background: rgba(15, 23, 42, 0.8);
    border-color: var(--color-primary);
    animation: float 6s ease-in-out infinite;
}

.stat-1 {
    top: 40px;
    right: -20px;
    animation-delay: 0s;
}

.stat-2 {
    bottom: 60px;
    left: -40px;
    animation-delay: 2s;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(225, 29, 72, 0.2);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.stat-value {
    font-weight: 700;
    color: var(--color-accent);
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes blink {
    0% {
        opacity: 0.4;
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0.4;
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-composition {
        transform: scale(0.8);
        height: 350px;
    }

    .stat-1 {
        right: 0;
        top: 20px;
    }

    .stat-2 {
        left: -10px;
        bottom: 40px;
    }
}