/* =============================================================
   Websikh Technology - Design System (Phase 2)
   Premium modern technology company website
   Colors: #2563eb (blue) / #7c3aed (purple) / #f97316 (orange) / white
   Font:  Poppins (SIL OFL 1.1, Google Fonts)
   ============================================================= */

:root {
    --bs-blue: #2563eb;
    --bs-indigo: #7c3aed;
    --bs-orange: #f97316;
    --bs-teal: #14b8a6;
    --bs-dark: #0f172a;
    --bs-light: #f8fafc;
    --bs-body: #f1f5f9;
    --bs-text: #475569;
    --bs-muted: #64748b;
    --bs-border: #e2e8f0;

    --grad-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --grad-accent: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    --grad-hero: linear-gradient(135deg, #0b1120 0%, #111c33 55%, #1b1140 100%);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
    --shadow-md: 0 6px 18px rgba(15, 23, 42, .10);
    --shadow-lg: 0 16px 40px rgba(15, 23, 42, .16);
    --radius: .75rem;
    --radius-lg: 1.25rem;
    --transition: .25s ease;
}

* { box-sizing: border-box; }

html, body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
    font-size: .9375rem;
    font-weight: 400;
    line-height: 1.65;
    color: var(--bs-text);
    background-color: var(--bs-body);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--bs-dark); line-height: 1.25; }
a { color: var(--bs-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--bs-indigo); }
img, video, iframe, embed, object { max-width: 100%; height: auto; }

/* Keep long words / links / tables from pushing the page wider than the viewport */
h1, h2, h3, h4, h5, h6, p, a, li, td, th, dd, dt, figcaption, blockquote, .article-body { overflow-wrap: break-word; }
table { max-width: 100%; }
pre { max-width: 100%; overflow-x: auto; }

/* Never let a button overflow its container on small screens */
.btn { max-width: 100%; }

/* ---------- Helpers ---------- */
.gradient-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.gradient-text-light {
    background: linear-gradient(90deg, #60a5fa, #a78bfa 50%, #fdba74);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.text-slate { color: var(--bs-text); }
.text-muted-2 { color: var(--bs-muted); }

.bg-soft-primary { background: linear-gradient(135deg, #eff6ff, #f5f3ff) !important; }
.bg-soft-accent { background: linear-gradient(135deg, #fff7ed, #fffbeb) !important; }

.section { padding-top: 5rem; padding-bottom: 5rem; }
.section-sm { padding-top: 3rem; padding-bottom: 3rem; }

/* Keep large vertical gutters without the 3rem horizontal gutter
   spilling 12px past the Bootstrap container on small screens. */
.row.g-5 { --bs-gutter-x: 1.5rem; }

.eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--bs-blue);
    background: rgba(37, 99, 235, .08);
    border: 1px solid rgba(37, 99, 235, .16);
    padding: .35rem .85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); margin-bottom: .75rem; }
.section-head p { color: var(--bs-muted); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    padding: .7rem 1.4rem;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
}
.btn-gradient {
    background: var(--grad-primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .28);
}
.btn-gradient:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(124, 58, 237, .34); }
.btn-accent {
    background: var(--grad-accent);
    color: #fff;
    box-shadow: 0 8px 20px rgba(249, 115, 22, .28);
}
.btn-accent:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(249, 115, 22, .36); }
.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--bs-blue);
    color: var(--bs-blue);
}
.btn-outline-primary:hover { background: var(--bs-blue); color: #fff; transform: translateY(-2px); }
.btn-outline-light { border: 2px solid rgba(255,255,255,.85); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.9); color: var(--bs-dark); border-color: transparent; }
.btn-light { background: #fff; color: var(--bs-dark); box-shadow: var(--shadow-sm); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--bs-dark); }
.btn-white-soft { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn-white-soft:hover { background: rgba(255,255,255,.24); color: #fff; }
.btn-lg { padding: .9rem 1.8rem; font-size: 1rem; }

/* ---------- Top bar + Navbar ---------- */
.top-bar { border-bottom: 1px solid rgba(255,255,255,.08); }

/* Wider header so navigation + logo are not cramped on desktop */
.navbar .container,
.top-bar .container { max-width: 1400px; }

.navbar { padding-top: .8rem; padding-bottom: .8rem; transition: padding var(--transition), box-shadow var(--transition); }
.navbar.navbar-shrink { padding-top: .4rem; padding-bottom: .4rem; box-shadow: var(--shadow-md); }
.navbar .navbar-brand { font-size: 1.25rem; display: inline-flex; align-items: center; padding: 0; margin-right: 1.25rem; flex-shrink: 0; }
.brand-logo { height: 52px; width: auto; display: block; }
.brand-logo-footer { height: 48px; width: auto; display: block; }
@media (max-width: 991.98px) { .brand-logo { height: 44px; } }
@media (max-width: 575.98px) { .brand-logo { height: 38px; } }
.navbar .nav-link {
    font-weight: 500;
    color: var(--bs-dark);
    padding: .5rem .8rem !important;
    position: relative;
}
.navbar .nav-link::after {
    content: '';
    position: absolute;
    left: .8rem; right: .8rem; bottom: .18rem;
    height: 2px;
    background: var(--grad-primary);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { transform: scaleX(1); }
.navbar .nav-link.active { color: var(--bs-blue); }
.dropdown-menu { border-radius: var(--radius); padding: .5rem; min-width: 240px; }
.dropdown-item { border-radius: .5rem; padding: .55rem .9rem; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero-section {
    position: relative;
    background: #0b1120 url('../images/hero-bg.jpg') center / cover no-repeat;
    color: #e2e8f0;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(11,17,32,.90) 0%, rgba(17,28,51,.86) 55%, rgba(27,17,64,.90) 100%),
        radial-gradient(circle at 12% 20%, rgba(37,99,235,.35), transparent 45%),
        radial-gradient(circle at 88% 15%, rgba(124,58,237,.32), transparent 45%),
        radial-gradient(circle at 70% 90%, rgba(249,115,22,.18), transparent 45%);
    pointer-events: none;
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148,163,184,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148,163,184,.07) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 78%);
    -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 78%);
    pointer-events: none;
}
.hero-section .container { position: relative; z-index: 2; }
.hero-section .eyebrow {
    color: #93c5fd;
    background: rgba(147,197,253,.12);
    border-color: rgba(147,197,253,.25);
}
.hero-title {
    font-size: clamp(1.9rem, 4.6vw, 3.3rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.1rem;
}
.hero-sub { font-size: 1.05rem; color: #cbd5e1; margin-bottom: 1.8rem; max-width: 560px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.8rem; }
.hero-badges span {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .82rem; font-weight: 500; color: #e2e8f0;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    padding: .4rem .8rem; border-radius: 999px;
}
.hero-badges i { color: #fbbf24; }
.hero-lead-meta { display: flex; gap: 2rem; margin-top: 1.6rem; flex-wrap: wrap; }
.hero-lead-meta .hm { display: flex; align-items: center; gap: .7rem; color: #94a3b8; font-size: .85rem; }
.hero-lead-meta .hm i { font-size: 1.3rem; color: #60a5fa; }

.hero-visual { position: relative; }
.hero-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(6px);
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
    animation: floatY 6s ease-in-out infinite;
}
.hero-card .dots { display:flex; gap:.4rem; margin-bottom:1rem; }
.hero-card .dots span { width:.55rem; height:.55rem; border-radius:50%; background:#334155; }
.hero-card .dots span:first-child { background:#f87171; }
.hero-card .dots span:nth-child(2) { background:#fbbf24; }
.hero-card .dots span:nth-child(3) { background:#34d399; }
.hero-code { font-family: 'Consolas', 'Monaco', monospace; font-size:.8rem; color:#93c5fd; line-height:1.9; }
.hero-code .tag { color:#c4b5fd; }
.hero-code .attr { color:#fbbf24; }
.hero-code .str { color:#6ee7b7; }
.hero-float-badge {
    position: absolute;
    display: flex; align-items: center; gap: .55rem;
    background: #fff; color: var(--bs-dark);
    border-radius: 999px; padding: .55rem 1rem;
    font-size: .8rem; font-weight: 600;
    box-shadow: var(--shadow-lg);
    animation: floatY 5s ease-in-out infinite reverse;
}
.hero-float-badge i { color: var(--bs-blue); font-size: 1.05rem; }
.hero-float-badge.one { top: -1.1rem; right: 1rem; }
.hero-float-badge.two { bottom: -1.2rem; left: -1.5rem; }

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* ---------- Trust / stat bar ---------- */
.trust-bar { background: #fff; border-bottom: 1px solid var(--bs-border); padding: 2.4rem 0; }
.stat-box { text-align: center; padding: .75rem; }
.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--grad-primary);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    display: inline-block;
}
.stat-label { color: var(--bs-muted); font-size: .9rem; margin-top: .15rem; }

/* ---------- Cards ---------- */
.card {
    border: 1px solid var(--bs-border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    height: auto;
}
/* A single card sitting directly in a grid cell fills the row height so
   cards stay even. Stacked cards (e.g. the service sidebar) keep their
   natural height instead of each becoming full-column tall. */
.row > [class*="col-"] > .card:only-child { height: 100%; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(37,99,235,.35); }

/* Service cards */
.service-card { position: relative; overflow: hidden; }
.service-card .service-icon {
    width: 58px; height: 58px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.55rem;
    border-radius: 1rem;
    background: var(--grad-primary);
    color: #fff;
    margin-bottom: 1.1rem;
    box-shadow: 0 10px 22px rgba(37,99,235,.30);
    transition: transform var(--transition);
}
.service-card:hover .service-icon { transform: rotate(-8deg) scale(1.06); }
.service-card h5 { font-size: 1.06rem; margin-bottom: .55rem; }
.service-card p { font-size: .88rem; color: var(--bs-muted); margin-bottom: 1rem; }
.service-card .card-link {
    font-weight: 600; font-size: .86rem; color: var(--bs-blue);
    display: inline-flex; align-items: center; gap: .3rem;
}
.service-card .card-link i { transition: transform var(--transition); }
.service-card:hover .card-link i { transform: translateX(4px); }
.service-card .svc-count {
    position: absolute; top: 1rem; right: 1.1rem;
    font-size: 2.2rem; font-weight: 700; line-height: 1;
    color: #f1f5f9; -webkit-text-fill-color: transparent;
}
.service-card:nth-child(3n+1) .service-icon { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.service-card:nth-child(3n+2) .service-icon { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.service-card:nth-child(3n) .service-icon { background: linear-gradient(135deg, #f97316, #ea580c); }

/* Feature / why-us boxes */
.feature-box {
    background: #fff;
    border: 1px solid var(--bs-border);
    border-radius: var(--radius-lg);
    padding: 1.7rem 1.5rem;
    height: 100%;
    transition: all var(--transition);
}
.feature-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    background: linear-gradient(135deg, #eff6ff, #f5f3ff);
}
.feature-box .fb-icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: #fff;
    border-radius: .9rem;
    background: var(--grad-primary);
    margin-bottom: 1rem;
}
.feature-box h5 { font-size: 1rem; margin-bottom: .5rem; }
.feature-box p { font-size: .86rem; color: var(--bs-muted); margin: 0; }
.feature-box:nth-child(3n) .fb-icon { background: var(--grad-accent); }

/* Steps / process */
.step-card { text-align: center; padding: 1.5rem 1rem; }
.step-card .step-num {
    width: 56px; height: 56px; margin: 0 auto 1rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem; font-weight: 700; color: #fff;
    border-radius: 50%;
    background: var(--grad-primary);
    box-shadow: 0 10px 22px rgba(37,99,235,.3);
}
.step-card:nth-child(3n+2) .step-num { background: var(--grad-accent); box-shadow: 0 10px 22px rgba(249,115,22,.3); }
.step-card h5 { font-size: 1rem; margin-bottom: .5rem; }
.step-card p { font-size: .86rem; color: var(--bs-muted); margin: 0; }

/* Portfolio cards */
.portfolio-card { overflow: hidden; }
.portfolio-thumb {
    position: relative;
    height: 210px;
    overflow: hidden;
}
.portfolio-thumb img, .portfolio-thumb .ph-fallback { width: 100%; height: 100%; object-fit: cover; display: block; }
.portfolio-thumb .ph-fallback {
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: #fff;
    background: var(--grad-primary);
}
.portfolio-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0) 30%, rgba(15,23,42,.9));
    opacity: 0;
    display: flex; align-items: flex-end;
    padding: 1.1rem;
    transition: opacity var(--transition);
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay .cat-badge {
    font-size: .72rem; font-weight: 600;
    color: #fff; background: rgba(255,255,255,.2);
    padding: .3rem .7rem; border-radius: 999px;
    backdrop-filter: blur(4px);
}
.portfolio-card .card-body { padding-top: 1rem; }
.portfolio-card h5 { font-size: 1.02rem; margin-bottom: .35rem; }
.portfolio-card .card-text { font-size: .84rem; color: var(--bs-muted); margin: 0; }

/* Testimonials */
.testimonial-card { padding: 1.6rem 1.5rem; }
.testimonial-card .quote-icon { font-size: 1.6rem; color: rgba(37,99,235,.25); }
.testimonial-card p { font-size: .92rem; color: var(--bs-text); }
.testimonial-author { display: flex; align-items: center; gap: .8rem; margin-top: 1.2rem; }
.testimonial-author .av {
    width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: #fff; background: var(--grad-primary);
    flex-shrink: 0;
}
.testimonial-author .ta-name { font-weight: 600; color: var(--bs-dark); font-size: .95rem; line-height: 1.2; }
.testimonial-author .ta-role { font-size: .8rem; color: var(--bs-muted); }
.carousel-indicators [data-bs-target] { background-color: var(--bs-blue); width: 8px; height: 8px; border-radius: 50%; }

/* Pricing */
.pricing-card { display: flex; flex-direction: column; }
.pricing-card .plan-name { font-size: .92rem; font-weight: 600; color: var(--bs-muted); text-transform: uppercase; letter-spacing: .05em; }
.pricing-card .plan-price { font-size: 2.3rem; font-weight: 700; color: var(--bs-dark); line-height: 1.1; }
.pricing-card .plan-price span { font-size: .95rem; font-weight: 400; color: var(--bs-muted); }
.pricing-card .plan-desc { font-size: .86rem; color: var(--bs-muted); margin-top: .5rem; }
.pricing-card ul { list-style: none; padding: 0; margin: 1.2rem 0 1.5rem; flex-grow: 1; }
.pricing-card ul li {
    display: flex; gap: .55rem; align-items: flex-start;
    font-size: .88rem; color: var(--bs-text);
    padding: .38rem 0;
}
.pricing-card ul li i { color: #22c55e; margin-top: .2rem; }
.pricing-card ul li.disabled { color: #cbd5e1; }
.pricing-card ul li.disabled i { color: #cbd5e1; }
.pricing-card.featured {
    border: 0;
    background: linear-gradient(160deg, #0f172a, #1e1b4b);
    color: #e2e8f0;
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}
.pricing-card.featured .plan-name,
.pricing-card.featured .plan-desc,
.pricing-card.featured ul li,
.pricing-card.featured .plan-price,
.pricing-card.featured .plan-price span { color: inherit; }
.pricing-card.featured .plan-price { color: #fff; }
.pricing-card.featured ul li i { color: #4ade80; }
.pricing-card.featured .most-popular {
    position: absolute; top: 1rem; right: 1rem;
    font-size: .7rem; font-weight: 600; letter-spacing: .05em;
    background: var(--grad-accent); color: #fff;
    padding: .3rem .7rem; border-radius: 999px;
    text-transform: uppercase;
}
.pricing-card.featured { position: relative; }
@media (max-width: 991.98px) {
    .pricing-card.featured { transform: none; }
}

/* FAQ accordion */
.accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--bs-blue);
    box-shadow: none;
}
.accordion-item {
    border: 1px solid var(--bs-border) !important;
    border-radius: var(--radius) !important;
    overflow: hidden;
    margin-bottom: .8rem;
    background: #fff;
}
.accordion-button {
    font-weight: 600;
    color: var(--bs-dark);
    background: #fff;
    padding: 1rem 1.2rem;
}
.accordion-button::after { background-size: 1rem; }
.accordion-body { font-size: .9rem; color: var(--bs-text); background: #fff; }

/* Forms */
.form-control, .form-select {
    border-radius: .7rem;
    border: 1px solid var(--bs-border);
    padding: .7rem .95rem;
    font-size: .9rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--bs-blue);
    box-shadow: 0 0 0 .22rem rgba(37, 99, 235, .12);
}
.form-label { font-weight: 500; font-size: .86rem; color: var(--bs-dark); }
.alert { border-radius: var(--radius); border: 0; }

/* Contact info cards */
.contact-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem; }
.contact-card .cc-icon {
    width: 48px; height: 48px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; color: #fff;
    border-radius: .9rem; background: var(--grad-primary);
}
.contact-card h6 { font-size: .95rem; margin-bottom: .3rem; }
.contact-card p { font-size: .86rem; color: var(--bs-muted); margin: 0; line-height: 1.5; }

/* Category filter chips */
.filter-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .84rem; font-weight: 500;
    color: var(--bs-text);
    background: #fff;
    border: 1px solid var(--bs-border);
    padding: .5rem 1.1rem; border-radius: 999px;
    transition: all var(--transition);
    cursor: pointer;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--grad-primary); color: #fff; border-color: transparent;
    box-shadow: 0 8px 18px rgba(37,99,235,.25);
}

/* Page header (inner pages) */
.page-hero {
    position: relative;
    background: #0b1120 url('../images/hero-bg.jpg') center / cover no-repeat;
    color: #e2e8f0;
    padding: 4rem 0 3.5rem;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(135deg, rgba(11,17,32,.93), rgba(17,28,51,.89)),
        radial-gradient(circle at 15% 10%, rgba(37,99,235,.35), transparent 45%),
        radial-gradient(circle at 85% 90%, rgba(124,58,237,.3), transparent 45%);
    pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.5rem); margin-bottom: .5rem; }
.page-hero p { color: #cbd5e1; margin: 0; max-width: 640px; }
.page-hero .eyebrow {
    color: #93c5fd;
    background: rgba(147, 197, 253, .12);
    border-color: rgba(147, 197, 253, .25);
}

/* Breadcrumb */
.breadcrumb { --bs-breadcrumb-divider-color: #64748b; }
.breadcrumb-item a { color: #93c5fd; }
.breadcrumb-item.active { color: #cbd5e1; }

/* CTA band */
.cta-band {
    position: relative;
    background: var(--grad-primary);
    border-radius: var(--radius-lg);
    color: #fff;
    padding: 3rem 2.5rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(37,99,235,.35);
}
.cta-band::after {
    content: '';
    position: absolute; right: -60px; top: -60px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
}
.cta-band::before {
    content: '';
    position: absolute; right: 40px; bottom: -80px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: rgba(124,58,237,.35);
}
.cta-band h3 { color: #fff; font-size: clamp(1.3rem, 2.6vw, 1.9rem); margin-bottom: .5rem; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }
.cta-band .btn { position: relative; z-index: 2; }

/* Footer */
.site-footer { background: #0b1120; }
.site-footer h5, .site-footer h6 { color: #fff; }
.footer-links a { transition: all var(--transition); }
.footer-links a:hover { color: #fff !important; padding-left: 4px; }
.site-footer hr { opacity: .12; }

/* Floating WhatsApp + back-to-top */
.whatsapp-float {
    position: fixed;
    bottom: 1.4rem; right: 1.4rem;
    z-index: 1050;
}
.whatsapp-float a {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem; color: #fff;
    background: #25d366;
    border-radius: 50%;
    box-shadow: 0 10px 26px rgba(37,211,102,.45);
    transition: transform var(--transition);
}
.whatsapp-float a:hover { transform: scale(1.08); color: #fff; }
.back-to-top {
    position: fixed;
    bottom: 1.4rem; left: 1.4rem;
    z-index: 1050;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem; color: #fff;
    background: var(--grad-primary);
    border: 0; border-radius: 50%;
    box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden;
    transform: translateY(12px);
    transition: all var(--transition);
    cursor: pointer;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { color: #fff; transform: translateY(-3px); }

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* Blog cards */
.blog-card .blog-thumb { height: 180px; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; width: 100%; }
.blog-card .blog-thumb-fallback {
    height: 180px; display: flex; align-items: center; justify-content: center;
    font-size: 2.6rem; color: #fff; background: var(--grad-primary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.blog-meta { display: flex; gap: 1rem; font-size: .78rem; color: var(--bs-muted); margin-bottom: .6rem; }
.blog-meta i { color: var(--bs-blue); }
.blog-card h5 { font-size: 1.05rem; }
.blog-card .card-text { font-size: .87rem; color: var(--bs-muted); }

/* Article body */
.article-body { font-size: .95rem; }
.article-body h2 { font-size: 1.35rem; margin: 1.6rem 0 .6rem; }
.article-body h3 { font-size: 1.15rem; margin: 1.4rem 0 .5rem; }
.article-body p { margin-bottom: 1rem; }
.article-body ul, .article-body ol { padding-left: 1.2rem; margin-bottom: 1rem; }
.article-body li { margin-bottom: .35rem; }
.article-body blockquote {
    border-left: 4px solid var(--bs-blue);
    margin: 1.2rem 0;
    padding: .8rem 1.2rem;
    background: #eff6ff;
    border-radius: 0 .6rem .6rem 0;
    color: var(--bs-dark);
}
.article-body img { border-radius: var(--radius); }

/* Tech badges */
.tech-chip {
    display: inline-flex; align-items: center; gap: .45rem;
    font-size: .95rem; font-weight: 700;
    color: var(--bs-text);
    background: #fff;
    border: 1px solid var(--bs-border);
    padding: .5rem 1.1rem; border-radius: 999px;
    transition: all var(--transition);
}
.tech-chip:hover { border-color: var(--bs-blue); color: var(--bs-blue); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.tech-chip i { color: var(--bs-blue); font-size: 1.1rem; }

/* ---------- Team cards ---------- */
.team-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--bs-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(37, 99, 235, .35); }
.team-card.featured {
    border: 2px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        var(--grad-primary) border-box;
    box-shadow: 0 14px 34px rgba(37, 99, 235, .18);
}
.team-photo {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--grad-primary);
}
.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.team-card:hover .team-photo img { transform: scale(1.06); }
.team-photo-fallback {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem; color: rgba(255, 255, 255, .85);
}
.team-featured-badge {
    position: absolute;
    top: .85rem; right: .85rem;
    z-index: 3;
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .72rem; font-weight: 600; letter-spacing: .02em;
    color: #fff;
    background: var(--grad-accent);
    padding: .32rem .75rem;
    border-radius: 999px;
    box-shadow: var(--shadow-md);
}
.team-body { padding: 1.35rem 1.25rem 1.4rem; text-align: center; }
.team-name { font-size: 1.05rem; margin-bottom: .2rem; }
.team-role {
    font-size: .82rem; font-weight: 500;
    color: var(--bs-blue);
    margin-bottom: .7rem;
}
.team-bio { font-size: .84rem; color: var(--bs-muted); margin-bottom: .85rem; line-height: 1.55; }
.team-skills { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin-bottom: 1rem; }
.skill-chip {
    font-size: .72rem; font-weight: 500;
    color: var(--bs-text);
    background: #f1f5f9;
    border: 1px solid var(--bs-border);
    padding: .22rem .6rem;
    border-radius: 999px;
}
.team-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: .9rem; }
.team-socials { display: flex; justify-content: center; gap: .5rem; padding-top: .9rem; border-top: 1px solid var(--bs-border); }
.team-socials .ts-icon {
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .95rem; color: var(--bs-blue);
    background: #f1f5f9;
    border-radius: 50%;
    transition: all var(--transition);
}
.team-socials .ts-icon:hover {
    color: #fff;
    background: var(--grad-primary);
    transform: translateY(-3px);
}

/* Service detail */
.detail-section-title { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.detail-section-title i {
    width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
    color: #fff; background: var(--grad-primary); border-radius: .6rem; font-size: 1rem;
}
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: .55rem; align-items: flex-start; padding: .45rem 0; font-size: .9rem; }
.check-list li i { color: #22c55e; margin-top: .25rem; }

/* Highlight box */
.highlight-box {
    background: linear-gradient(135deg, #eff6ff, #f5f3ff);
    border: 1px solid rgba(37,99,235,.15);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
}

/* Pagination */
.pagination .page-link {
    border-radius: .5rem; margin: 0 .2rem;
    color: var(--bs-text); border: 1px solid var(--bs-border);
    font-weight: 500;
}
.pagination .page-item.active .page-link {
    background: var(--grad-primary); border-color: transparent; color: #fff;
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
    .navbar-collapse { padding-top: .8rem; }
    .hero-float-badge.two { left: 1rem; }
    .section { padding-top: 3.6rem; padding-bottom: 3.6rem; }
}
@media (max-width: 575.98px) {
    body { font-size: .9rem; }
    .cta-band { padding: 2.2rem 1.5rem; }
    .hero-lead-meta { gap: 1rem; }
    .hero-float-badge.one { right: .4rem; }
}

/* =============================================================
   Responsive hardening (Phase 3)
   ============================================================= */

/* ---------- Tablets & smaller (<= 991px) ---------- */
@media (max-width: 991.98px) {
    /* Keep the opening menu inside the viewport and scrollable */
    .navbar-collapse {
        max-height: calc(100vh - 74px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .navbar-collapse .navbar-nav .nav-link {
        padding: .62rem .25rem !important;
        font-size: .98rem;
    }
    /* CTA row in the mobile menu wraps instead of overflowing */
    .navbar-collapse > .d-flex { flex-wrap: wrap; padding-bottom: .4rem; }
    .dropdown-menu { min-width: 0; max-width: 100%; }
    .dropdown-menu .dropdown-item { overflow-wrap: break-word; }
    .hero-visual { margin-top: .5rem; }
    .section { padding-top: 3.6rem; padding-bottom: 3.6rem; }
}

/* ---------- Phones landscape / small tablets (<= 767px) ---------- */
@media (max-width: 767.98px) {
    .section { padding-top: 3rem; padding-bottom: 3rem; }
    .section-head { margin-bottom: 2.4rem; }
    .page-hero { padding: 3rem 0 2.5rem; }
    .page-hero h1 { font-size: clamp(1.45rem, 6vw, 2rem); }
    .stat-number { font-size: 1.75rem; }
    .stat-label { font-size: .82rem; }
    .hero-sub { font-size: .98rem; }
    .hero-badges span { font-size: .76rem; padding: .35rem .7rem; }
    .hero-card { padding: 1.15rem; }
    .hero-code { font-size: .72rem; line-height: 1.75; }
    .hero-float-badge { font-size: .72rem; padding: .45rem .85rem; }
    .pricing-card .plan-price { font-size: 1.9rem; }
    .cta-band { text-align: left; }
    .contact-card { padding: 1.15rem; }
    .team-body { padding: 1.15rem 1rem 1.2rem; }
    .section-sm { padding-top: 2.4rem; padding-bottom: 2.4rem; }
}

/* ---------- Phones portrait (<= 575px) ---------- */
@media (max-width: 575.98px) {
    .btn { font-size: .88rem; padding: .62rem 1.15rem; }
    .btn-lg { font-size: .95rem; padding: .78rem 1.3rem; }
    .navbar .container { padding-left: .9rem; padding-right: .9rem; }
    .hero-title { font-size: clamp(1.6rem, 7vw, 2.1rem); }
    .hero-sub { max-width: 100%; }
    .hero-lead-meta { gap: .9rem 1.1rem; }
    .hero-lead-meta .hm { font-size: .8rem; }
    .filter-btn { font-size: .8rem; padding: .42rem .9rem; }
    .tech-chip { font-size: .85rem; padding: .42rem .9rem; }
    .form-control, .form-select { font-size: 1rem; padding: .62rem .8rem; }
    .accordion-button { font-size: .92rem; padding: .9rem 1rem; }
    .accordion-body { font-size: .87rem; }
    .testimonial-card { padding: 1.3rem 1rem; }
    .pagination .page-link { padding: .4rem .62rem; font-size: .88rem; }
    .cta-band { padding: 1.9rem 1.3rem; border-radius: 1rem; }
    .highlight-box { padding: 1.3rem; }
}

/* ---------- Very small phones (<= 400px, incl. 320px) ---------- */
@media (max-width: 400px) {
    .stat-number { font-size: 1.6rem; }
    .hero-card { padding: 1rem; }
    .hero-code { font-size: .68rem; }
    .step-card .step-num { width: 48px; height: 48px; font-size: 1.15rem; }
    .service-card .service-icon { width: 52px; height: 52px; font-size: 1.35rem; }
    .cta-band .btn { font-size: .9rem; }
    .site-footer h6 { font-size: .92rem; }
}

/* ---------- Floating buttons: smaller + safer spacing on mobile ---------- */
@media (max-width: 575.98px) {
    .whatsapp-float { right: 1rem; bottom: 1rem; }
    .whatsapp-float a { width: 48px; height: 48px; font-size: 1.45rem; }
    .back-to-top { left: 1rem; bottom: 1rem; width: 40px; height: 40px; font-size: .95rem; }
}

/* Ensure the mobile menu anchor targets are easy to tap (44px min) */
@media (max-width: 991.98px) {
    .navbar-collapse .navbar-nav .nav-link { min-height: 44px; display: flex; align-items: center; }
    .navbar-collapse .btn { min-height: 44px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}

/* =============================================================
   Websikh Technology - FINAL RESPONSIVE HARDENING
   Applied after existing styles so the mobile fixes take priority.
   ============================================================= */

/* Global overflow protection without breaking responsive tables */
html {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

body {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

.container,
.container-fluid {
    min-width: 0;
}

.row {
    --bs-gutter-x: 1.5rem;
}

.row > * {
    min-width: 0;
}

.card,
.card-body,
.service-card,
.feature-box,
.highlight-box,
.article-body,
.cta-band {
    min-width: 0;
}

.article-body,
.article-body * {
    max-width: 100%;
}

.article-body pre,
.article-body code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.article-body table,
.table-responsive {
    width: 100%;
}

/* ---------- Header / Navbar ---------- */
.navbar {
    width: 100%;
    z-index: 1030;
}

.navbar > .container {
    min-width: 0;
    flex-wrap: nowrap;
}

.navbar-brand {
    min-width: 0;
    max-width: calc(100% - 58px);
}

.brand-logo {
    max-width: 100%;
    height: 52px;
    width: auto;
    object-fit: contain;
}

.navbar-toggler {
    flex: 0 0 auto;
    margin-left: auto;
    padding: .45rem .65rem;
}

.navbar-collapse {
    min-width: 0;
}

.navbar-nav {
    min-width: 0;
}

.navbar-nav .nav-link {
    white-space: normal;
    overflow-wrap: anywhere;
}

.navbar-actions {
    min-width: 0;
}

.navbar-actions .btn {
    flex-shrink: 0;
}

.dropdown-menu {
    max-width: min(95vw, 360px);
}

.dropdown-item {
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Collapsed navigation is fully usable from tablet through mobile. */
@media (max-width: 1199.98px) {
    .navbar .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .navbar-collapse {
        width: 100%;
        padding-top: .75rem;
        padding-bottom: .75rem;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        overflow-x: hidden;
    }

    .navbar-nav {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .navbar-nav .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: .65rem .25rem !important;
    }

    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin: 0;
        border: 0 !important;
        box-shadow: none !important;
        background: #f8fafc;
    }

    .navbar-nav .dropdown-item {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: .65rem .85rem;
    }

    .navbar-actions {
        width: 100%;
        padding-top: .65rem !important;
        border-top: 1px solid var(--bs-border);
    }

    .navbar-actions .btn {
        min-height: 44px;
    }
}

/* ---------- Hero / page sections ---------- */
.hero-section,
.page-hero {
    width: 100%;
    min-width: 0;
}

.hero-section .row,
.page-hero .row {
    min-width: 0;
}

.hero-title,
.hero-sub,
.page-hero h1,
.page-hero p {
    overflow-wrap: anywhere;
}

.hero-code {
    max-width: 100%;
    overflow-x: auto;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.hero-card {
    max-width: 100%;
}

.hero-visual {
    min-width: 0;
}

.hero-float-badge {
    max-width: 90%;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* ---------- Buttons / action groups ---------- */
.btn {
    white-space: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
    .btn {
        max-width: 100%;
    }

    .d-flex.gap-2.mt-4 {
        flex-wrap: wrap;
    }

    .d-flex.gap-2.mt-4 .btn {
        flex: 1 1 100%;
        width: 100%;
    }
}

/* ---------- Forms ---------- */
.form-control,
.form-select,
textarea,
input,
select {
    max-width: 100%;
}

textarea {
    resize: vertical;
}

/* ---------- Pricing / comparison ---------- */
.pricing-card,
.pricing-card .card-body {
    min-width: 0;
}

.pricing-card .plan-price {
    overflow-wrap: anywhere;
}

/* ---------- Tables: only the table itself may scroll ---------- */
.table-responsive {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive > table {
    min-width: 600px;
}

/* ---------- Footer ---------- */
.site-footer {
    width: 100%;
    overflow: hidden;
}

.site-footer .row > * {
    min-width: 0;
}

.site-footer p,
.site-footer li,
.site-footer a,
.site-footer span {
    overflow-wrap: anywhere;
}

.footer-links {
    padding-left: 0;
}

@media (max-width: 575.98px) {
    .site-footer {
        padding-top: 2.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .site-footer .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .site-footer .row {
        row-gap: 2rem !important;
    }

    .site-footer .footer-nav-col,
    .site-footer .footer-service-col {
        width: 100%;
    }

    .site-footer .list-inline {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: .5rem;
    }

    .site-footer .list-inline-item {
        margin-right: 0 !important;
    }

    .brand-logo-footer {
        max-width: 100%;
        height: 44px;
    }
}

/* ---------- Floating buttons: avoid covering content on small phones ---------- */
@media (max-width: 575.98px) {
    .whatsapp-float {
        right: .75rem;
        bottom: .75rem;
    }

    .whatsapp-float a {
        width: 46px;
        height: 46px;
        font-size: 1.35rem;
    }

    .back-to-top {
        left: .75rem;
        bottom: .75rem;
        width: 38px;
        height: 38px;
    }
}

/* ---------- 320px safety ---------- */
@media (max-width: 360px) {
    .container,
    .navbar .container {
        padding-left: .75rem;
        padding-right: .75rem;
    }

    .section {
        padding-left: 0;
        padding-right: 0;
    }

    .hero-card {
        padding: .85rem;
    }

    .hero-code {
        font-size: .64rem;
    }

    .eyebrow {
        max-width: 100%;
        white-space: normal;
    }

    .stat-box {
        min-width: 0;
    }
}
