/* Custom Styles & Glassmorphism Theme for D2Zone Connect WhatsApp API Portfolio */

@layer utilities {
    .glass-panel {
        background: rgba(15, 23, 42, 0.85);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .glass-card {
        background: rgba(30, 41, 59, 0.6);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .text-gradient-emerald {
        background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #a7f3d0 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .text-gradient-gold {
        background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #fef08a 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .text-gradient-orange {
        background: linear-gradient(135deg, #F85606 0%, #ff7a00 50%, #ffb380 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .glow-emerald {
        box-shadow: 0 0 25px rgba(16, 185, 129, 0.35);
    }

    .glow-orange {
        box-shadow: 0 0 25px rgba(248, 86, 6, 0.35);
    }
}

/* WhatsApp Phone Simulator Background */
.whatsapp-chat-bg {
    background-color: #0b141a;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 18px 18px;
}

/* WhatsApp Speech Bubble Style */
.chat-bubble-outgoing {
    background: #005c4b;
    border-radius: 14px 14px 2px 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.chat-bubble-incoming {
    background: #202c33;
    border-radius: 14px 14px 14px 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #10b981;
}

/* Animations */
@keyframes pulseGlow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.animate-pulse-glow {
    animation: pulseGlow 4s ease-in-out infinite;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

.toast {
    display: flex;
    items-center: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 16px;
    background: #0f172a;
    border: 1px solid #10b981;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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