/* ==============================================================================
   dichvubaocao.com - Custom Stylesheet
   Chuẩn mã hóa: UTF-8 No BOM
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --font-heading: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-sans: 'Be Vietnam Pro', 'Inter', system-ui, sans-serif;
    --color-primary: #1e40af;       /* Blue 800 */
    --color-primary-dark: #1e3a8a;  /* Blue 900 */
    --color-accent: #059669;        /* Emerald 600 */
    --color-zalo: #0068ff;
    --color-messenger: #0084ff;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ==============================================================================
   1. HERO SECTION & ACCENTS
   ============================================================================== */
.hero-gradient {
    background: radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.12) 0%, transparent 45%),
                radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
                linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.academic-badge {
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.08);
}

/* ==============================================================================
   2. FLOATING WIDGETS (ZALO, PHONE, MESSENGER)
   ============================================================================== */
.floating-contact {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 999;
}

.float-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.float-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.float-btn.zalo {
    background-color: var(--color-zalo);
}

.float-btn.phone {
    background-color: #ef4444;
}

/* Hiệu ứng sóng lan tỏa (Pulse Radar Effect) */
.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    pointer-events: none;
    animation: pulseAnimation 2s infinite cubic-bezier(0.45, 0, 0.2, 1);
}

.zalo .pulse-ring {
    border: 2px solid rgba(0, 104, 255, 0.7);
}

.phone .pulse-ring {
    border: 2px solid rgba(239, 68, 68, 0.7);
}

@keyframes pulseAnimation {
    0% {
        transform: scale(0.95);
        opacity: 0.9;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Tooltip trên nút nổi */
.float-tooltip {
    position: absolute;
    right: 64px;
    white-space: nowrap;
    background: rgba(15, 23, 42, 0.9);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: all 0.25s ease;
}

.float-btn:hover .float-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* ==============================================================================
   3. TOAST NOTIFICATION POPUP
   ============================================================================== */
#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 90vw;
    width: 380px;
}

.toast {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-left: 5px solid;
    animation: slideInRight 0.35s ease-out forwards;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.toast-success {
    border-left-color: #10b981;
}

.toast.toast-error {
    border-left-color: #ef4444;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==============================================================================
   4. FORM ELEMENTS & LOADING SPINNER
   ============================================================================== */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Tinh chỉnh thanh cuộn trình duyệt */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
