/* ============================================================
   VIVEKANAND JHA — MAIN THEME
   Dark glassmorphism · Cyan/Emerald accents · Mobile-first
   ============================================================ */

:root {
    --bg: #0a0a0f;
    --bg-soft: #111117;
    --surface: #18181b;
    --surface-2: #1f1f24;
    --border: #27272a;
    --border-soft: #2e2e33;

    --text: #e4e4e7;
    --text-muted: #a1a1aa;
    --text-dim: #71717a;

    --cyan: #22d3ee;
    --cyan-dark: #0891b2;
    --emerald: #10b981;
    --indigo: #6366f1;
    --amber: #f59e0b;
    --red: #ef4444;

    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;

    --shadow-glow: 0 0 40px -10px rgba(34, 211, 238, .35);
    --shadow-card: 0 8px 32px -8px rgba(0, 0, 0, .5);

    --container: 1200px;
    --header-h: 76px;

    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    --transition: 220ms cubic-bezier(.4, 0, .2, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    min-width: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

img, svg, video, canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--cyan); }

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
    max-width: 100%;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    max-width: 100%;
    min-width: 0;
}

pre, code, kbd, samp {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ---------- CONTAINER ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}
@media (max-width: 380px) {
    .container { padding: 0 14px; }
}

/* ---------- SECTION ---------- */
.section { padding: 90px 0; position: relative; }
.section-sm { padding: 60px 0; }
.section-lg { padding: 120px 0; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    margin: 0 0 16px;
    letter-spacing: -.02em;
    line-height: 1.15;
}
.section-head p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0;
}
.section-head .eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 12px;
}

/* ---------- TEXT GRADIENT ---------- */
.grad {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--emerald) 50%, var(--indigo) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .95rem;
    transition: all var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
    max-width: 100%;
    text-align: center;
    white-space: normal;
}
.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--emerald));
    color: #06121a;
    box-shadow: 0 8px 24px -8px rgba(34, 211, 238, .5);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -8px rgba(34, 211, 238, .7);
    color: #06121a;
}
.btn-ghost {
    background: rgba(255, 255, 255, .04);
    border-color: var(--border);
    color: var(--text);
    backdrop-filter: blur(10px);
}
.btn-ghost:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    background: rgba(34, 211, 238, .08);
}
.btn-whatsapp {
    background: #25D366;
    color: #052e16;
}
.btn-whatsapp:hover {
    background: #1ebe5d;
    color: #052e16;
    transform: translateY(-2px);
}
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }

@media (max-width: 400px) {
    .btn-lg { padding: 13px 22px; font-size: 1rem; }
}

/* ---------- CARDS ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    max-width: 100%;
}
@media (max-width: 500px) {
    .card { padding: 22px; }
}
.card:hover {
    border-color: var(--border-soft);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}
.card-glass {
    background: rgba(24, 24, 27, .6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* ---------- GRID ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.grid > * { min-width: 0; }

@media (max-width: 900px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
    .section { padding: 60px 0; }
    .section-lg { padding: 80px 0; }
}

/* ---------- HEADER (NON-STICKY) ---------- */
.site-header {
    position: relative;
    background: rgba(10, 10, 15, .85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h);
    gap: 16px;
    min-width: 0;
    padding: 8px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -.01em;
    color: var(--text);
    min-width: 0;
    flex-shrink: 1;
}
.logo > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.logo:hover { color: var(--cyan); }
.logo-mark {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--cyan), var(--indigo));
    display: grid;
    place-items: center;
    font-weight: 900;
    color: #06121a;
    font-size: 1.1rem;
    box-shadow: var(--shadow-glow);
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-desktop a {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: .92rem;
    font-weight: 500;
    color: var(--text-muted);
}
.nav-desktop a:hover,
.nav-desktop a.active {
    color: var(--cyan);
    background: rgba(34, 211, 238, .08);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Hamburger */
.hamburger {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--border);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
    background: transparent;
}
.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- MOBILE VIEW: HIDE HEADER CTA, SHOW HAMBURGER ---------- */
@media (max-width: 980px) {
    .nav-desktop { display: none; }
    .header-cta .btn { display: none; }   /* Hide the "Book 1:1 Consultation" button */
    .header-cta { gap: 0; }
    .hamburger { display: flex; }
}

/* Mobile drawer */
.mobile-drawer {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px 24px;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    z-index: 99;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.mobile-drawer.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.mobile-drawer a {
    display: block;
    padding: 14px 12px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.mobile-drawer a:last-of-type { border-bottom: none; }
.mobile-drawer a:hover,
.mobile-drawer a.active { color: var(--cyan); background: rgba(34, 211, 238, .06); }
.mobile-drawer .btn {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 16px;
}

/* ---------- PROMO SLIDER ---------- */
.promo-slider {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #0b1e2e 50%, #1e1b4b 100%);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    max-width: 100%;
}
.promo-track {
    display: flex;
    transition: transform 600ms cubic-bezier(.4, 0, .2, 1);
    max-width: 100%;
}
.promo-slide {
    min-width: 100%;
    width: 100%;
    padding: 22px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    flex-wrap: wrap;
    box-sizing: border-box;
}
.promo-slide .promo-text {
    font-size: clamp(.9rem, 2vw, 1.1rem);
    font-weight: 600;
    min-width: 0;
    max-width: 100%;
}
.promo-slide .promo-tag {
    display: inline-block;
    background: rgba(34, 211, 238, .15);
    color: var(--cyan);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    margin-right: 10px;
}
.promo-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.promo-dots button {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
    transition: all var(--transition);
}
.promo-dots button.active { background: var(--cyan); width: 22px; border-radius: 4px; }

@media (max-width: 500px) {
    .promo-slide { padding: 16px 12px; gap: 10px; }
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    padding: 90px 0 80px;
    overflow: hidden;
    max-width: 100%;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(34, 211, 238, .12), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(99, 102, 241, .12), transparent 45%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 60px;
    align-items: center;
    min-width: 0;
}
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .hero { padding: 60px 0 50px; }
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, .1);
    border: 1px solid rgba(16, 185, 129, .3);
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 500;
    color: var(--emerald);
    margin-bottom: 20px;
    max-width: 100%;
}
.hero-status .dot {
    width: 7px; height: 7px;
    min-width: 7px;
    background: var(--emerald);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--emerald);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}
.hero h1 {
    font-size: clamp(1.75rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.03em;
    margin: 0 0 20px;
    overflow-wrap: anywhere;
}
.hero-sub {
    font-size: 1.08rem;
    color: var(--text-muted);
    margin: 0 0 32px;
    max-width: 560px;
}
.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}
@media (max-width: 480px) {
    .hero-ctas { flex-direction: column; }
    .hero-ctas .btn { width: 100%; justify-content: center; }
}

.hero-socials { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-socials a {
    width: 40px; height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    color: var(--text-muted);
    transition: all var(--transition);
    flex-shrink: 0;
}
.hero-socials a:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    transform: translateY(-3px);
}

/* Hero visual */
.hero-visual {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1;
    margin-left: auto;
    min-width: 0;
}
@media (max-width: 900px) {
    .hero-visual {
        max-width: 100%;
        margin: 0 auto;
    }
}
@media (max-width: 480px) {
    .hero-visual { display: none; }
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .5;
    pointer-events: none;
}
.hero-orb.a { inset: 10% 15% 55% 10%; background: var(--cyan); animation: float 8s ease-in-out infinite; }
.hero-orb.b { inset: 55% 10% 10% 45%; background: var(--indigo); animation: float 10s ease-in-out infinite reverse; }
.hero-orb.c { inset: 30% 30% 30% 30%; background: var(--emerald); opacity: .3; animation: float 12s ease-in-out infinite; }
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}
.hero-card {
    position: absolute;
    inset: 15% 15% 15% 15%;
    background: rgba(24, 24, 27, .7);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    box-shadow: var(--shadow-card);
    max-width: 100%;
    overflow: hidden;
}
@media (max-width: 500px) {
    .hero-card { padding: 18px; inset: 8%; }
}
.hero-code {
    font-family: var(--font-mono);
    font-size: .82rem;
    line-height: 1.7;
    color: var(--text-muted);
    overflow-wrap: anywhere;
    word-break: break-word;
}
@media (max-width: 380px) {
    .hero-code { font-size: .72rem; }
}
.hero-code .key { color: var(--cyan); }
.hero-code .str { color: var(--emerald); }
.hero-code .com { color: var(--text-dim); font-style: italic; }

/* ---------- STATS ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 500px) { .stats-grid { grid-template-columns: minmax(0, 1fr); } }

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 22px;
    text-align: center;
    transition: all var(--transition);
    max-width: 100%;
}
.stat-card:hover {
    border-color: rgba(34, 211, 238, .4);
    transform: translateY(-4px);
}
.stat-num {
    font-size: 2.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--cyan), var(--emerald));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    font-size: .88rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ---------- SERVICE CARD ---------- */
.service-card { display: flex; flex-direction: column; min-width: 0; }
.service-icon {
    width: 52px; height: 52px;
    min-width: 52px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(34, 211, 238, .1);
    color: var(--cyan);
    margin-bottom: 18px;
    font-size: 1.4rem;
}
.service-card h3 {
    font-size: 1.15rem;
    margin: 0 0 10px;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.service-card p {
    color: var(--text-muted);
    font-size: .92rem;
    margin: 0 0 18px;
    flex-grow: 1;
}
.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.service-features li {
    font-size: .78rem;
    padding: 4px 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
}

/* ---------- PROJECT CARD ---------- */
.project-card {
    padding: 0;
    overflow: hidden;
    min-width: 0;
}
.project-thumb {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--surface-2), var(--bg-soft));
    position: relative;
    overflow: hidden;
    width: 100%;
}
.project-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 600ms ease;
}
.project-card:hover .project-thumb img { transform: scale(1.06); }
.project-body { padding: 22px; min-width: 0; }
.project-cat {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 8px;
}
.project-body h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    overflow-wrap: anywhere;
}
.project-body p {
    color: var(--text-muted);
    font-size: .9rem;
    margin: 0 0 14px;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tags span {
    font-size: .75rem;
    padding: 3px 9px;
    background: rgba(99, 102, 241, .1);
    color: #a5b4fc;
    border-radius: 5px;
}

/* ---------- TESTIMONIAL ---------- */
.testimonial {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    min-width: 0;
}
.testimonial .stars { color: var(--amber); font-size: .9rem; margin-bottom: 12px; }
.testimonial p {
    color: var(--text-muted);
    font-style: italic;
    margin: 0 0 18px;
    font-size: .95rem;
}
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.testimonial .avatar {
    width: 44px; height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--indigo));
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #06121a;
}
.testimonial .who strong { display: block; font-size: .92rem; }
.testimonial .who span { font-size: .8rem; color: var(--text-dim); }

/* ---------- NEWSLETTER ---------- */
.newsletter-box {
    background: linear-gradient(135deg, rgba(34,211,238,.08), rgba(99,102,241,.08));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
    max-width: 100%;
}
@media (max-width: 500px) {
    .newsletter-box { padding: 32px 18px; }
}
.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 480px;
    margin: 24px auto 0;
    width: 100%;
}
.newsletter-form input {
    flex: 1 1 0;
    min-width: 0;
    padding: 13px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    outline: none;
    transition: border-color var(--transition);
    width: 100%;
}
.newsletter-form input:focus { border-color: var(--cyan); }
.newsletter-form button { flex-shrink: 0; }
@media (max-width: 500px) {
    .newsletter-form { flex-direction: column; }
    .newsletter-form button { width: 100%; }
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    padding: 60px 0 24px;
    margin-top: 80px;
    max-width: 100%;
}
.footer-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.4fr)
        minmax(0, 1fr)
        minmax(0, 1fr)
        minmax(0, 1fr)
        minmax(0, 1.2fr);
    gap: 36px;
    margin-bottom: 44px;
}
@media (max-width: 980px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

.footer-col { min-width: 0; }
.footer-col h4 {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--text-dim);
    margin: 0 0 16px;
    font-weight: 700;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
    font-size: .9rem;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}
.footer-col a:hover { color: var(--cyan); }
.footer-about p {
    color: var(--text-muted);
    font-size: .9rem;
    margin: 0 0 16px;
    max-width: 300px;
}
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: .85rem;
    color: var(--text-dim);
}
.footer-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-socials a {
    width: 36px; height: 36px;
    border-radius: 9px;
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    color: var(--text-muted);
}
.footer-socials a:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- FLOATING CTAS ---------- */
.floating-ctas {
    position: fixed;
    right: 18px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 200;
    pointer-events: none;
}
.floating-ctas > * { pointer-events: auto; }
.fab {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    box-shadow: 0 8px 24px -6px rgba(0,0,0,.5);
    transition: all var(--transition);
    position: relative;
}
.fab:hover { transform: scale(1.08) translateY(-2px); color: #fff; }
.fab-whatsapp { background: #25D366; }
.fab-call { background: var(--indigo); }
.fab-chat { background: linear-gradient(135deg, var(--cyan), var(--emerald)); color: #06121a; }
.fab-top {
    background: rgba(24,24,27,.9);
    border: 1px solid var(--border);
    color: var(--text);
    opacity: 0;
    pointer-events: none;
}
.fab-top.show { opacity: 1; pointer-events: auto; }
@media (max-width: 500px) {
    .floating-ctas { right: 12px; bottom: 12px; gap: 8px; }
    .fab { width: 46px; height: 46px; }
    .fab svg { width: 20px; height: 20px; }
}

/* ---------- LEAD POPUP — FIXED FOR MOBILE ---------- */
.lead-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.lead-popup-overlay.show {
    display: flex;
    animation: fadeIn 300ms ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lead-popup {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px 28px;
    max-width: 480px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    box-shadow: var(--shadow-card);
    animation: slideUp 400ms cubic-bezier(.4,0,.2,1);
    margin: auto 0;
}
@media (max-width: 500px) {
    .lead-popup-overlay { padding: 16px 12px; }
    .lead-popup {
        padding: 24px 20px 20px;
        border-radius: 18px;
    }
    .lead-popup h3 {
        font-size: 1.2rem;
        padding-right: 34px;
    }
    .lead-popup .form-row {
        grid-template-columns: minmax(0, 1fr);
    }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.lead-popup h3 { margin: 0 0 8px; font-size: 1.4rem; }
.lead-popup p { color: var(--text-muted); margin: 0 0 22px; font-size: .92rem; }
.popup-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 34px; height: 34px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--text-dim);
    font-size: 1.2rem;
    background: transparent;
}
.popup-close:hover { background: var(--surface-2); color: var(--text); }

/* ---------- CHAT PANEL ---------- */
#chat-panel {
    max-width: calc(100vw - 40px);
}
@media (max-width: 500px) {
    #chat-panel {
        right: 12px !important;
        left: 12px !important;
        bottom: 78px !important;
        width: auto !important;
        max-width: none !important;
    }
}

/* ---------- FORMS ---------- */
.form-group { margin-bottom: 16px; min-width: 0; }
.form-group label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-muted);
}
.form-group label .req { color: var(--red); }
.form-control {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    font-size: .95rem;
    -webkit-appearance: none;
    appearance: none;
}
@media (max-width: 500px) {
    .form-control { font-size: 16px; }
}
.form-control:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, .15);
}
textarea.form-control { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 500px) { .form-row { grid-template-columns: minmax(0, 1fr); } }

.form-msg {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    margin-bottom: 16px;
    display: none;
}
.form-msg.ok {
    background: rgba(16,185,129,.1);
    color: var(--emerald);
    border: 1px solid rgba(16,185,129,.3);
    display: block;
}
.form-msg.err {
    background: rgba(239,68,68,.1);
    color: var(--red);
    border: 1px solid rgba(239,68,68,.3);
    display: block;
}

/* ---------- UTILITIES ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-4 { margin-bottom: 32px; }
.hidden { display: none !important; }

/* Global safety net */
img, video, iframe, embed, object, table, pre, code {
    max-width: 100%;
}
iframe, embed, object { width: 100%; }

/* Tables scroll, never push layout */
table { border-collapse: collapse; }
.admin-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}
.article-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}
@media (min-width: 700px) {
    .article-content table { display: table; white-space: normal; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- ARTICLE CONTENT ---------- */
.article-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text);
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
}
.article-content h1,
.article-content h2,
.article-content h3 {
    color: var(--text);
    margin: 2em 0 .6em;
    line-height: 1.25;
    letter-spacing: -.01em;
}
.article-content h2 { font-size: 1.6rem; }
.article-content h3 { font-size: 1.3rem; }
.article-content p { margin: 0 0 1.1em; color: #d4d4d8; }
.article-content ul,
.article-content ol { margin: 0 0 1.1em; padding-left: 1.5em; color: #d4d4d8; }
.article-content li { margin-bottom: .4em; }
.article-content a {
    color: var(--cyan);
    text-decoration: underline;
    text-decoration-color: rgba(34,211,238,.4);
    overflow-wrap: anywhere;
}
.article-content a:hover { text-decoration-color: var(--cyan); }
.article-content blockquote {
    border-left: 4px solid var(--cyan);
    background: rgba(34,211,238,.05);
    padding: 12px 20px;
    margin: 1.4em 0;
    border-radius: 0 8px 8px 0;
    color: var(--text-muted);
    font-style: italic;
}
.article-content pre {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: 10px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: .88rem;
    color: #fbbf24;
    margin: 1.4em 0;
    white-space: pre;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}
.article-content code {
    font-family: var(--font-mono);
    background: var(--bg-soft);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .88em;
    color: #fbbf24;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.article-content pre code {
    background: transparent;
    padding: 0;
    white-space: inherit;
    overflow-wrap: normal;
    word-break: normal;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.5em 0;
    border: 1px solid var(--border);
}
.article-content th,
.article-content td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    text-align: left;
}
.article-content th { background: var(--bg-soft); font-weight: 700; }

/* ---------- SKIP TO CONTENT (a11y) ---------- */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--cyan);
    color: #06121a;
    padding: 10px 16px;
    font-weight: 700;
    border-radius: 0 0 8px 0;
    z-index: 9999;
}
.skip-to-content:focus {
    left: 0;
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

/* ---------- TINY SCREENS (iPhone SE 320px) ---------- */
@media (max-width: 360px) {
    .container { padding: 0 12px; }
    .card { padding: 18px; }
    .btn { padding: 11px 18px; font-size: .92rem; }
    .btn-lg { padding: 12px 20px; font-size: .95rem; }
    .hero h1 { font-size: 1.6rem; }
    .hero-sub { font-size: 1rem; }
    .section-head h2 { font-size: 1.5rem; }
}