/* ═══════════════════════════════════════════════════════════
   BUZZ BRIDGE — Premium Enhancement Layer
   Additive polish on top of styles.css
   ═══════════════════════════════════════════════════════════ */

/* ── PAGE LOADER ─────────────────────────────────────────── */
.loader-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #0A0E1A;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity .6s .1s, visibility .6s .1s;
}

.loader-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 1.8rem;
    color: #fff;
    animation: loaderPulse 1.4s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(99, 102, 241, .4);
}

@keyframes loaderPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(99, 102, 241, .4);
    }

    50% {
        transform: scale(1.06);
        box-shadow: 0 0 40px 14px rgba(99, 102, 241, .12);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.loader-bar {
    width: 140px;
    height: 2px;
    background: rgba(255, 255, 255, .06);
    border-radius: 2px;
    margin-top: 28px;
    overflow: hidden;
}

.loader-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #6366F1, #22D3EE);
    border-radius: 2px;
    animation: loaderFill 1.6s cubic-bezier(.4, 0, .2, 1) forwards;
}

@keyframes loaderFill {
    to {
        width: 100%;
    }
}

.loader-text {
    margin-top: 16px;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, .28);
    animation: fadeIn .8s .3s ease both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ── CURSOR GLOW (desktop only) ───────────────────────────── */
.cursor-glow {
    position: fixed;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle, rgba(99, 102, 241, .04) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: left .08s linear, top .08s linear;
    display: none;
}

@media (hover: hover) {
    .cursor-glow {
        display: block;
    }
}

/* ── TYPED CURSOR ────────────────────────────────────────── */
.typed-cursor {
    display: inline-block;
    width: 3px;
    height: .88em;
    background: var(--cyan-light, #22D3EE);
    margin-left: 3px;
    animation: blink .7s step-end infinite;
    vertical-align: text-bottom;
    border-radius: 1px;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* ── SECTION ENTRY ANIMATIONS ────────────────────────────── */
.sr {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .65s ease, transform .65s ease;
}

.sr.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── NAV ACTIVE LINK (scrolled state) ─────────────────────── */
.nav.scrolled .nav-links a.active {
    color: var(--primary, #6366F1);
}

/* ── HERO CARD — animated border shimmer ──────────────────── */
@keyframes borderShimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ── SERVICE CARDS: featured first card ──────────────────── */
@media (min-width: 769px) {
    .services-grid .service-card:first-child {
        /* Let it breathe more — slightly taller icon area */
        padding-top: 32px;
    }
}

/* ── SOCIAL ICONS: platform colors on hover ──────────────── */
.footer-social:nth-child(1):hover {
    background: #1D9BF0;
    border-color: #1D9BF0;
}

.footer-social:nth-child(2):hover {
    background: #0A66C2;
    border-color: #0A66C2;
}

.footer-social:nth-child(3):hover {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: #e6683c;
}

.footer-social:nth-child(4):hover {
    background: #FF0000;
    border-color: #FF0000;
}

/* ── FORM FOCUS RING REFINEMENT ───────────────────────────── */
.cta-form input:focus,
.cta-form select:focus,
.cta-form textarea:focus {
    border-color: var(--cyan, #06B6D4);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, .12);
}

/* ── PROCESS STEPS: smoother entrance ─────────────────────── */
.process-step:nth-child(1) {
    transition-delay: 0ms;
}

.process-step:nth-child(2) {
    transition-delay: 80ms;
}

.process-step:nth-child(3) {
    transition-delay: 160ms;
}

.process-step:nth-child(4) {
    transition-delay: 240ms;
}

.process-step:nth-child(5) {
    transition-delay: 320ms;
}

/* ── ABOUT SECTION: pillar micro-hover ───────────────────── */
.about-pillar:nth-child(1) .about-pillar-icon {
    background: rgba(99, 102, 241, .08);
}

.about-pillar:nth-child(2) .about-pillar-icon {
    background: rgba(6, 182, 212, .08);
}

.about-pillar:nth-child(3) .about-pillar-icon {
    background: rgba(139, 92, 246, .08);
}

.about-pillar:nth-child(2) .about-pillar-icon svg {
    stroke: var(--cyan, #06B6D4);
}

.about-pillar:nth-child(3) .about-pillar-icon svg {
    stroke: var(--violet, #8B5CF6);
}

/* ── TESTIMONIALS: staggered subtle offset ────────────────── */
.testi-card:nth-child(2) {
    margin-top: 24px;
}

.testi-card:nth-child(3) {
    margin-top: -8px;
}

@media (max-width: 768px) {
    .testi-card:nth-child(2) {
        margin-top: 0;
    }

    .testi-card:nth-child(3) {
        margin-top: 0;
    }
}

/* ── WHY BARS: gradient variety ───────────────────────────── */
.why-bar:nth-child(1) .why-bar-fill {
    background: linear-gradient(90deg, #6366F1, #818CF8);
}

.why-bar:nth-child(2) .why-bar-fill {
    background: linear-gradient(90deg, #8B5CF6, #A78BFA);
}

.why-bar:nth-child(3) .why-bar-fill {
    background: linear-gradient(90deg, #06B6D4, #22D3EE);
}

.why-bar:nth-child(4) .why-bar-fill {
    background: linear-gradient(90deg, #6366F1, #06B6D4);
}

.why-bar:nth-child(5) .why-bar-fill {
    background: linear-gradient(90deg, #8B5CF6, #06B6D4);
}

/* ── FOOTER BRAND LEFT ACCENT ─────────────────────────────── */
.footer-brand p {
    padding-left: 14px;
    border-left: 2px solid rgba(99, 102, 241, .25);
}

/* ── SMOOTH PAGE ENTRANCE ─────────────────────────────────── */
body.loaded {
    animation: pageIn .4s ease;
}

@keyframes pageIn {
    from {
        opacity: .95;
    }

    to {
        opacity: 1;
    }
}

/* ── BUTTON RIPPLE FEEDBACK ────────────────────────────────── */
.btn-primary:active {
    transform: scale(.98) translateY(0) !important;
}

/* ── SECTION DIVIDERS (subtle) ────────────────────────────── */
.section+.section {
    border-top: 1px solid var(--border-light, #F1F5F9);
}

/* ── HERO STATS DIVIDER ───────────────────────────────────── */
@media (max-width: 480px) {
    .hero-stats>div {
        border-bottom: 1px solid rgba(255, 255, 255, .06);
        padding-bottom: 12px;
    }

    .hero-stats>div:last-child {
        border-bottom: none;
    }
}