/* ==========================================================================
   3D Effects, Depth & Animations
   Project: Website Deployment
   Strictly English Architecture
   ========================================================================== */

:root {
    --primary: #3b82f6;
    --accent: #06b6d4;
    --whatsapp-green: #25d366;
    --call-blue: #0ea5e9;
    --gold: #f59e0b;
    
    --bg-dark: #0a0e17;
    --surface-dark: #111827;
}

/* ==========================================================================
   LEFT 3D UPDATES / NOTIFICATIONS PORTAL HUB (WHERE TEXT ENTERS)
   ========================================================================== */

.updates-portal-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(30, 64, 175, 0.4));
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    cursor: default;
    user-select: none;
    flex-shrink: 0;
}

.updates-badge-inner {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    position: relative;
    z-index: 2;
}

.updates-icon {
    font-size: 0.65rem;
    color: #38bdf8;
    animation: iconPulse 2.5s ease-in-out infinite;
}

.updates-text {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: #ffffff;
    text-transform: uppercase;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* 3D Suction Wave & Vortex behind Updates Badge */
.portal-suction-wave {
    position: absolute;
    inset: -3px;
    border-radius: 9999px;
    border: 1px solid rgba(56, 189, 248, 0.5);
    animation: suctionPulse 2.5s ease-out infinite;
    pointer-events: none;
}

@keyframes suctionPulse {
    0% {
        transform: scale(1.3);
        opacity: 0.7;
    }
    100% {
        transform: scale(0.7);
        opacity: 0;
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        color: #38bdf8;
    }
    50% {
        transform: scale(1.15);
        color: #fbbf24;
    }
}

/* ==========================================================================
   TICKER FLOW: Sliding from Right to Left and Absorbed into Updates Hub
   Slow & Smooth Reading Speed
   ========================================================================== */

.ticker-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    padding: 0 2px;
}

.ticker-wrapper:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-track-container {
    position: relative;
    flex: 1;
    height: 22px;
    overflow: hidden;
    /* Soft fade into left UPDATES hub; fully open on right next to email */
    mask-image: linear-gradient(to right, transparent 0%, black 4%, black 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 100%);
}

.ticker-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    will-change: transform;
    /* Prompt, steady continuous stream without stopping or long waits */
    animation: endlessSeamlessStream 34s linear infinite;
}

.ticker-item,
.ticker-item span {
    font-family: 'Plus Jakarta Sans', 'Hind Siliguri', 'Noto Sans Bengali', 'Noto Sans Devanagari', 'Noto Nastaliq Urdu', 'Segoe UI', sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    margin-right: 32px;
    color: #e2e8f0;
    font-size: 0.82rem;
    line-height: 22px;
    letter-spacing: 0.2px;
    transition: color 0.2s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.ticker-item:hover {
    color: #ffffff;
}

/* Language Badges */
.ticker-lang-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.ticker-lang-tag.en {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #ffffff;
}

.ticker-lang-tag.bn {
    background: linear-gradient(135deg, #10b981, #047857);
    color: #ffffff;
    font-family: 'Hind Siliguri', 'Noto Sans Bengali', 'Segoe UI', sans-serif;
}

.ticker-lang-tag.ur {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-family: 'Noto Nastaliq Urdu', 'Segoe UI', Tahoma, sans-serif;
}

.ticker-lang-tag.hi {
    background: linear-gradient(135deg, #ec4899, #be185d);
    color: #ffffff;
    font-family: 'Noto Sans Devanagari', 'Segoe UI', sans-serif;
}

/* Seamless infinite conveyor: zero delay, continuous stream from email to UPDATES */
@keyframes endlessSeamlessStream {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
