/* =========================================================
   3BerryTech Solutions — Modern IT Company Design Layer
   Loaded after the base theme; overrides + new components.
   ========================================================= */

:root {
    --bt-primary: #0b9be8;
    --bt-primary-600: #0784c9;
    --bt-accent: #6d5dfc;
    --bt-cyan: #22d3ee;
    --bt-grad: linear-gradient(120deg, #0b9be8 0%, #6d5dfc 100%);
    --bt-grad-soft: linear-gradient(120deg, rgba(11,155,232,.12), rgba(109,93,252,.12));
    --bt-dark: #070d1f;
    --bt-dark-2: #0d1630;
    --bt-dark-3: #15214a;
    --bt-ink: #0f172a;
    --bt-text: #475569;
    --bt-muted: #64748b;
    --bt-line: #e5e9f2;
    --bt-bg: #ffffff;
    --bt-bg-soft: #f5f8fd;
    --bt-radius: 16px;
    --bt-radius-sm: 10px;
    --bt-shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
    --bt-shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, .28);
    --bt-font: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
    --bt-font-head: 'Plus Jakarta Sans', 'Inter', 'Segoe UI', sans-serif;
    --bt-header-h: 76px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
    font-family: var(--bt-font);
    color: var(--bt-text);
    background: var(--bt-bg);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
.body { background: var(--bt-bg); }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--bt-font-head);
    color: var(--bt-ink);
    letter-spacing: -0.02em;
    text-transform: none;
}
a { color: var(--bt-primary); transition: color .2s ease; }
a:hover, a:focus { color: var(--bt-accent); text-decoration: none; }
img { max-width: 100%; }
::selection { background: var(--bt-primary); color: #fff; }
.main { overflow: hidden; }

.bt-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.bt-section { padding: 96px 0; position: relative; }
.bt-section-sm { padding: 64px 0; }
.bt-soft { background: var(--bt-bg-soft); }
.bt-center { text-align: center; }
.bt-grad-text {
    background: var(--bt-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Section headings */
.bt-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--bt-primary);
    background: var(--bt-grad-soft);
    border: 1px solid rgba(11,155,232,.18);
    padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.bt-eyebrow::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--bt-grad); box-shadow: 0 0 0 3px rgba(11,155,232,.18);
}
.bt-title {
    font-size: clamp(28px, 3.6vw, 42px); line-height: 1.18; font-weight: 800;
    margin: 0 0 18px;
}
.bt-title strong { font-weight: 800; }
.bt-lead { font-size: 17px; line-height: 1.8; color: var(--bt-text); max-width: 760px; }
.bt-center .bt-lead { margin-left: auto; margin-right: auto; }
.bt-head { margin-bottom: 56px; }

/* Buttons */
.bt-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--bt-font-head); font-weight: 700; font-size: 15px;
    padding: 14px 28px; border-radius: 12px; border: 1px solid transparent;
    cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    text-decoration: none !important; line-height: 1.2; white-space: nowrap;
}
.bt-btn i { transition: transform .2s ease; }
.bt-btn:hover i { transform: translateX(3px); }
.bt-btn-primary { background: var(--bt-grad); color: #fff !important; box-shadow: 0 12px 28px -10px rgba(11,155,232,.65); }
.bt-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(109,93,252,.7); }
.bt-btn-ghost { background: rgba(255,255,255,.06); color: #fff !important; border-color: rgba(255,255,255,.22); backdrop-filter: blur(6px); }
.bt-btn-ghost:hover { background: rgba(255,255,255,.14); }
.bt-btn-outline { background: transparent; color: var(--bt-ink) !important; border-color: var(--bt-line); }
.bt-btn-outline:hover { border-color: var(--bt-primary); color: var(--bt-primary) !important; }
.bt-btn-sm { padding: 10px 18px; font-size: 14px; border-radius: 10px; }

/* Override Porto bootstrap buttons used in forms */
.btn-primary {
    background: var(--bt-grad) !important; border: 0 !important; border-radius: 12px !important;
    font-family: var(--bt-font-head); font-weight: 700; text-shadow: none !important;
    box-shadow: 0 12px 28px -10px rgba(11,155,232,.65);
}
.btn-primary:hover { opacity: .95; }

/* ---------- Top bar + Header ---------- */
.bt-topbar {
    background: var(--bt-dark); color: #94a3b8; font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.bt-topbar .bt-container { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 16px; }
.bt-topbar a { color: #cbd5e1; }
.bt-topbar a:hover { color: #fff; }
.bt-topbar-left, .bt-topbar-right { display: flex; align-items: center; gap: 22px; }
.bt-topbar i { color: var(--bt-cyan); margin-right: 6px; }
.bt-topbar .bt-social a { margin-left: 4px; }
.bt-topbar .bt-social a i { color: #cbd5e1; margin: 0; }
.bt-topbar .bt-social a:hover i { color: #fff; }

#siteHeader {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .25s ease, border-color .25s ease;
}
#siteHeader.is-scrolled { box-shadow: 0 8px 30px -18px rgba(15,23,42,.35); border-bottom-color: var(--bt-line); }
.bt-nav { display: flex; align-items: center; justify-content: space-between; height: var(--bt-header-h); gap: 24px; }
.bt-logo img { height: 44px; width: auto; display: block; }
.bt-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.bt-menu > li { position: relative; }
.bt-menu > li > a {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 16px; border-radius: 10px;
    font-family: var(--bt-font-head); font-weight: 600; font-size: 15px; color: var(--bt-ink);
}
.bt-menu > li > a:hover { color: var(--bt-primary); background: var(--bt-bg-soft); }
.bt-menu > li.active > a { color: var(--bt-primary); }
.bt-menu > li.active > a::after {
    content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px; height: 2px;
    background: var(--bt-grad); border-radius: 2px;
}
.bt-menu .fa-angle-down { font-size: 13px; opacity: .7; }
.bt-sub {
    position: absolute; top: calc(100% + 10px); left: 0; min-width: 230px;
    background: #fff; border: 1px solid var(--bt-line); border-radius: 14px;
    box-shadow: var(--bt-shadow-lg); padding: 8px; list-style: none; margin: 0;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: all .2s ease;
}
.bt-sub::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.bt-menu > li:hover .bt-sub, .bt-menu > li:focus-within .bt-sub { opacity: 1; visibility: visible; transform: translateY(0); }
.bt-sub a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--bt-ink); font-weight: 500; font-size: 14.5px; }
.bt-sub a:hover { background: var(--bt-bg-soft); color: var(--bt-primary); }
.bt-nav-cta { display: flex; align-items: center; gap: 12px; }
.bt-burger {
    display: none; width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid var(--bt-line); background: #fff; color: var(--bt-ink); font-size: 18px;
}

/* ---------- Hero ---------- */
.bt-hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(900px 500px at 85% 10%, rgba(109,93,252,.35), transparent 60%),
        radial-gradient(700px 500px at 0% 100%, rgba(11,155,232,.30), transparent 60%),
        var(--bt-dark);
    color: #cbd5e1;
    padding: 110px 0 120px;
}
.bt-hero::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    pointer-events: none;
}
.bt-hero .bt-container { position: relative; z-index: 2; }
.bt-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.bt-hero .bt-eyebrow { color: #a5f3fc; background: rgba(34,211,238,.08); border-color: rgba(34,211,238,.25); }
.bt-hero h1 {
    color: #fff; font-size: clamp(36px, 5.4vw, 64px); line-height: 1.06; font-weight: 800;
    margin: 0 0 22px; letter-spacing: -0.035em;
}
.bt-hero h1 .bt-grad-text { background: linear-gradient(120deg, #38bdf8, #a78bfa); -webkit-background-clip: text; background-clip: text; }
.bt-hero p.bt-hero-text { font-size: 18px; line-height: 1.75; color: #a8b3c7; max-width: 560px; margin-bottom: 34px; }
.bt-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.bt-hero-note { margin-top: 30px; color: #8090ab; font-size: 14px; }
.bt-hero-note a { color: #e2e8f0; text-decoration: underline; text-underline-offset: 3px; }

.bt-rotator { display: inline-grid; vertical-align: bottom; }
.bt-rotator > span {
    grid-area: 1 / 1; opacity: 0; transform: translateY(40%);
    transition: opacity .5s ease, transform .5s ease;
}
.bt-rotator > span.is-active { opacity: 1; transform: translateY(0); }

/* Browser mockup */
.bt-mock {
    position: relative; border-radius: 18px; background: #0f1a36;
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 8px rgba(255,255,255,.03);
    transform: perspective(1400px) rotateY(-8deg) rotateX(3deg);
    transition: transform .6s ease;
}
.bt-mock:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.bt-mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.bt-mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.bt-mock-bar span:nth-child(2) { background: #febc2e; }
.bt-mock-bar span:nth-child(3) { background: #28c840; }
.bt-mock-bar em { margin-left: 14px; flex: 1; height: 22px; border-radius: 6px; background: rgba(255,255,255,.06); font-style: normal; font-size: 11.5px; color: #8090ab; line-height: 22px; padding: 0 10px; }
.bt-mock-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 0 0 18px 18px; background: #0b1226; }
.bt-mock-screen img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
    opacity: 0; transition: opacity .9s ease;
}
.bt-mock-screen img.is-active { opacity: 1; }
.bt-float {
    position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,.96); color: var(--bt-ink); border-radius: 14px;
    padding: 12px 16px; box-shadow: var(--bt-shadow-lg); font-family: var(--bt-font-head);
    animation: btFloat 6s ease-in-out infinite;
}
.bt-float small { display: block; color: var(--bt-muted); font-family: var(--bt-font); font-size: 12px; font-weight: 500; }
.bt-float strong { font-size: 15px; font-weight: 800; }
.bt-float .bt-ico { width: 40px; height: 40px; font-size: 17px; border-radius: 11px; margin: 0; }
.bt-float-1 { left: -34px; bottom: 34px; }
.bt-float-2 { right: -22px; top: 70px; animation-delay: -3s; }
@keyframes btFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Hero trust strip */
.bt-hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.bt-hero-tags span {
    font-size: 13px; color: #cbd5e1; padding: 7px 14px; border-radius: 999px;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
}
.bt-hero-tags i { color: var(--bt-cyan); margin-right: 6px; }

/* ---------- Icon tile ---------- */
.bt-ico {
    width: 56px; height: 56px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--bt-grad-soft); color: var(--bt-primary); font-size: 22px; margin-bottom: 22px;
    border: 1px solid rgba(11,155,232,.15); flex-shrink: 0;
}
.bt-ico svg { width: 24px; height: 24px; font-size: inherit !important; }
.bt-ico-solid { background: var(--bt-grad); color: #fff; border: 0; box-shadow: 0 12px 24px -10px rgba(11,155,232,.6); }

/* ---------- Cards ---------- */
.bt-grid { display: grid; gap: 24px; }
.bt-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bt-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bt-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.bt-card {
    position: relative; background: #fff; border: 1px solid var(--bt-line); border-radius: var(--bt-radius);
    padding: 32px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    overflow: hidden;
}
.bt-card::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--bt-grad);
    transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.bt-card:hover { transform: translateY(-6px); box-shadow: var(--bt-shadow-lg); border-color: transparent; }
.bt-card:hover::before { transform: scaleX(1); }
.bt-card:hover .bt-ico { background: var(--bt-grad); color: #fff; border-color: transparent; }
.bt-card h3, .bt-card h4 { font-size: 19px; font-weight: 700; margin: 0 0 10px; }
.bt-card p { margin: 0; color: var(--bt-text); font-size: 15px; line-height: 1.75; }

/* Service card w/ number */
.bt-service { display: flex; flex-direction: column; min-height: 100%; }
.bt-service .bt-num {
    position: absolute; right: 26px; top: 22px; font-family: var(--bt-font-head); font-weight: 800; font-size: 42px;
    color: transparent; -webkit-text-stroke: 1px #dbe3ef; line-height: 1;
}
.bt-service h3 { font-size: 18px; margin-bottom: 0; }

/* ---------- Intro split ---------- */
.bt-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.bt-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.bt-checks li { display: flex; gap: 14px; align-items: flex-start; color: var(--bt-ink); font-weight: 500; line-height: 1.55; }
.bt-checks li::before {
    content: "\f00c"; font-family: FontAwesome; flex-shrink: 0;
    width: 24px; height: 24px; border-radius: 8px; font-size: 11px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--bt-grad); color: #fff; margin-top: 1px;
}
.bt-checks-2 { grid-template-columns: 1fr 1fr; }

/* Pills / word list */
.bt-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.bt-pill {
    padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--bt-line);
    font-weight: 600; font-size: 14px; color: var(--bt-ink);
}
.bt-pill i { color: var(--bt-primary); margin-right: 6px; }

/* ---------- Process ---------- */
.bt-process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; counter-reset: step; }
.bt-process::before {
    content: ""; position: absolute; left: 12%; right: 12%; top: 38px; height: 2px;
    background: repeating-linear-gradient(90deg, #c7d2fe 0 8px, transparent 8px 16px);
}
.bt-step { position: relative; text-align: center; padding: 0 10px; }
.bt-step-ico {
    position: relative; z-index: 1; width: 78px; height: 78px; margin: 0 auto 20px; border-radius: 50%;
    background: #fff; border: 1px solid var(--bt-line); box-shadow: var(--bt-shadow);
    display: flex; align-items: center; justify-content: center;
}
.bt-step-ico img { width: 44px; height: 44px; object-fit: contain; }
.bt-step-ico::after {
    counter-increment: step; content: "0" counter(step);
    position: absolute; top: -4px; right: -6px; width: 28px; height: 28px; border-radius: 50%;
    background: var(--bt-grad); color: #fff; font-size: 11px; font-weight: 800; font-family: var(--bt-font-head);
    display: flex; align-items: center; justify-content: center; border: 3px solid #fff;
}
.bt-step h4 { font-size: 18px; font-weight: 700; margin: 0; }

/* Work showcase (home) */
.bt-work-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.bt-work-strip a {
    display: block; border-radius: var(--bt-radius); overflow: hidden; border: 1px solid var(--bt-line);
    box-shadow: var(--bt-shadow); position: relative; aspect-ratio: 16 / 10; background: #eef2f8;
}
.bt-work-strip img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s ease; }
.bt-work-strip a:hover img { transform: scale(1.06); }

/* ---------- Accordion (Porto panels restyle) ---------- */
.bt-accordion .panel-group .panel { border: 1px solid var(--bt-line); border-radius: 14px !important; box-shadow: none; margin-bottom: 12px; overflow: hidden; }
.bt-accordion .panel-group .panel + .panel { margin-top: 0; }
.bt-accordion .panel-heading { background: #fff !important; padding: 0; border: 0; }
.bt-accordion .panel-title > a {
    display: flex; align-items: center; gap: 12px; padding: 18px 20px !important;
    font-family: var(--bt-font-head); font-weight: 700; font-size: 16px; color: var(--bt-ink) !important;
    background: #fff !important; position: relative;
}
.bt-accordion .panel-title > a i { width: 34px; height: 34px; border-radius: 10px; background: var(--bt-grad-soft); color: var(--bt-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.bt-accordion .panel-title > a::after { content: "\f107"; font-family: FontAwesome; margin-left: auto; transition: transform .25s ease; color: var(--bt-muted); }
.bt-accordion .panel-title > a.collapsed::after { transform: rotate(-90deg); }
.bt-accordion .panel-body { border-top: 1px solid var(--bt-line) !important; padding: 16px 20px 20px 66px; color: var(--bt-text); line-height: 1.75; }

/* ---------- CTA band ---------- */
.bt-cta {
    position: relative; overflow: hidden; border-radius: 24px; padding: 56px 60px;
    background: radial-gradient(600px 300px at 100% 0%, rgba(109,93,252,.55), transparent 60%),
                radial-gradient(600px 300px at 0% 100%, rgba(11,155,232,.45), transparent 60%),
                var(--bt-dark-2);
    color: #cbd5e1; display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.bt-cta::after {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px;
    pointer-events: none;
}
.bt-cta > * { position: relative; z-index: 1; }
.bt-cta h2, .bt-cta h3 { color: #fff; font-size: clamp(24px, 3vw, 34px); margin: 0 0 8px; font-weight: 800; }
.bt-cta h2 em { font-style: normal; background: linear-gradient(120deg,#38bdf8,#a78bfa); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.bt-cta p { margin: 0; color: #a8b3c7; font-size: 16px; }

/* ---------- Page header (inner pages) ---------- */
.bt-page-hero {
    position: relative; overflow: hidden; padding: 88px 0 80px; color: #a8b3c7;
    background:
        radial-gradient(700px 360px at 90% 0%, rgba(109,93,252,.38), transparent 60%),
        radial-gradient(600px 360px at 0% 100%, rgba(11,155,232,.3), transparent 60%),
        var(--bt-dark);
}
.bt-page-hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
    mask-image: linear-gradient(to bottom, #000, transparent);
}
.bt-page-hero .bt-container { position: relative; z-index: 1; }
.bt-page-hero h1 { color: #fff; font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; margin: 14px 0 0; letter-spacing: -0.03em; }
.bt-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; list-style: none; padding: 0; margin: 0; font-size: 14px; }
.bt-crumbs li { color: #8fa0bd; display: flex; align-items: center; gap: 10px; }
.bt-crumbs li + li::before { content: "\f105"; font-family: FontAwesome; color: #4b5b7a; }
.bt-crumbs a { color: #cbd5e1; }
.bt-crumbs a:hover { color: #fff; }
.bt-crumbs .active { color: #38bdf8; }

/* ---------- Content (prose) ---------- */
.bt-prose p { font-size: 16.5px; line-height: 1.85; color: var(--bt-text); margin-bottom: 20px; }
.bt-prose p:last-child { margin-bottom: 0; }
.bt-prose .alternative-font { font-family: var(--bt-font-head); font-weight: 700; color: var(--bt-primary); font-size: inherit; }

.bt-quote {
    position: relative; padding: 40px 44px; border-radius: 20px; background: var(--bt-bg-soft);
    border: 1px solid var(--bt-line); font-size: 19px; line-height: 1.75; color: var(--bt-ink); font-family: var(--bt-font-head); font-weight: 600;
}
.bt-quote::before {
    content: "\201C"; position: absolute; top: -18px; left: 34px; font-size: 90px; line-height: 1; font-family: Georgia, serif;
    background: var(--bt-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.bt-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bt-value {
    display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 14px; background: #fff;
    border: 1px solid var(--bt-line); font-family: var(--bt-font-head); font-weight: 700; color: var(--bt-ink);
    transition: all .25s ease;
}
.bt-value:hover { border-color: rgba(11,155,232,.4); box-shadow: var(--bt-shadow); transform: translateY(-3px); }
.bt-value i { width: 40px; height: 40px; border-radius: 12px; background: var(--bt-grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; }

/* Image banner section */
.bt-banner {
    position: relative; padding: 100px 0; background-size: cover; background-position: center; color: #cbd5e1;
}
.bt-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(7,13,31,.94), rgba(21,33,74,.85)); }
.bt-banner .bt-container { position: relative; z-index: 1; max-width: 900px; text-align: center; }
.bt-banner h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.bt-banner p { font-size: 17px; line-height: 1.85; color: #b6c2d6; margin: 0; }

/* ---------- Portfolio ---------- */
.bt-filter.nav-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 48px; border: 0; float: none; }
.bt-filter.nav-pills > li { float: none; margin: 0 !important; }
.bt-filter.nav-pills > li > a {
    border-radius: 999px !important; padding: 10px 22px; background: #fff; border: 1px solid var(--bt-line);
    color: var(--bt-ink) !important; font-family: var(--bt-font-head); font-weight: 600; font-size: 14px;
}
.bt-filter.nav-pills > li > a:hover { border-color: var(--bt-primary); color: var(--bt-primary) !important; background: #fff; }
.bt-filter.nav-pills > li.active > a, .bt-filter.nav-pills > li.active > a:hover, .bt-filter.nav-pills > li.active > a:focus {
    background: var(--bt-grad) !important; color: #fff !important; border-color: transparent;
}
.bt-portfolio { list-style: none; padding: 0; margin: 0 -12px; }
.bt-portfolio > li { padding: 0 12px; margin-bottom: 32px; width: 100%; }
.bt-project {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: #fff; border: 1px solid var(--bt-line);
    border-radius: 22px; overflow: hidden; transition: box-shadow .3s ease, transform .3s ease;
}
.bt-project:hover { box-shadow: var(--bt-shadow-lg); transform: translateY(-4px); }
.bt-portfolio > li:nth-child(even) .bt-project-media { order: 2; }
.bt-project-media { position: relative; background: linear-gradient(135deg, #e9f3fe, #eeebff); padding: 32px; display: flex; align-items: center; }
.bt-project-media .bt-frame {
    width: 100%; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 24px 50px -24px rgba(15,23,42,.45);
    border: 1px solid rgba(15,23,42,.08);
}
.bt-project-media .bt-frame-bar { height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #f1f5f9; border-bottom: 1px solid #e2e8f0; }
.bt-project-media .bt-frame-bar span { width: 9px; height: 9px; border-radius: 50%; background: #fca5a5; }
.bt-project-media .bt-frame-bar span:nth-child(2) { background: #fcd34d; }
.bt-project-media .bt-frame-bar span:nth-child(3) { background: #86efac; }
.bt-project-media .bt-frame-shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; display: block; }
.bt-project-media .bt-frame-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.4s ease; }
.bt-project:hover .bt-frame-shot img { transform: scale(1.04); }
.bt-project-media .bt-frame-shot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bt-frame-link {
    position: absolute; right: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 12px; background: var(--bt-grad);
    color: #fff !important; display: flex; align-items: center; justify-content: center; box-shadow: var(--bt-shadow);
    opacity: 0; transform: translateY(8px); transition: all .3s ease;
}
.bt-project:hover .bt-frame-link { opacity: 1; transform: translateY(0); }
.bt-project-body { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; }
.bt-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.bt-meta span {
    display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--bt-primary);
    background: var(--bt-grad-soft); padding: 6px 12px; border-radius: 999px;
}
.bt-project-body h3 { font-size: 26px; font-weight: 800; margin: 0 0 12px; word-break: break-word; }
.bt-project-body p { color: var(--bt-text); line-height: 1.8; margin-bottom: 20px; }
.bt-project-body p strong { color: var(--bt-ink); }
.bt-skills-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bt-muted); margin: 6px 0 10px; }
.bt-skills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 26px; }
.bt-skills li { font-size: 13px; font-weight: 600; color: var(--bt-ink); padding: 6px 12px; border-radius: 8px; background: var(--bt-bg-soft); border: 1px solid var(--bt-line); }
.bt-skills li i { color: var(--bt-primary); margin-right: 5px; }
.isotope-item { transition-property: transform, opacity; }

/* ---------- Contact ---------- */
.bt-contact-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 32px; align-items: start; }
.bt-form-card { background: #fff; border: 1px solid var(--bt-line); border-radius: 22px; padding: 40px; box-shadow: var(--bt-shadow); }
.bt-form-card h2 { font-size: 28px; font-weight: 800; margin: 0 0 6px; }
.bt-form-card label { font-family: var(--bt-font-head); font-weight: 600; color: var(--bt-ink); font-size: 14px; margin-bottom: 8px; }
.bt-form-card .form-group { margin-bottom: 18px; }
.form-control {
    height: auto; padding: 13px 16px; border-radius: 12px !important; border: 1px solid var(--bt-line);
    box-shadow: none !important; font-size: 15px; color: var(--bt-ink); background: #fbfcfe; transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-control:focus { border-color: var(--bt-primary); background: #fff; box-shadow: 0 0 0 4px rgba(11,155,232,.12) !important; }
textarea.form-control { resize: vertical; }
.bt-info-card { background: var(--bt-dark-2); border-radius: 22px; padding: 36px; color: #a8b3c7; position: relative; overflow: hidden; }
.bt-info-card::before { content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(109,93,252,.45), transparent 70%); }
.bt-info-card > * { position: relative; }
.bt-info-card h3 { color: #fff; font-size: 22px; font-weight: 800; margin: 0 0 22px; }
.bt-info-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 14px; }
.bt-info-list li { display: flex; gap: 14px; align-items: flex-start; line-height: 1.6; font-size: 14.5px; }
.bt-info-list li i {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
    color: #38bdf8; display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
}
.bt-info-list li strong { display: block; color: #fff; font-family: var(--bt-font-head); font-size: 13px; letter-spacing: .04em; margin-bottom: 2px; }
.bt-info-list a { color: #cbd5e1; }
.bt-info-list a:hover { color: #fff; }
.bt-info-sep { height: 1px; background: rgba(255,255,255,.08); margin: 22px 0; }
.bt-map-wrap { border-radius: 22px; overflow: hidden; border: 1px solid var(--bt-line); box-shadow: var(--bt-shadow); margin-top: 48px; }
.bt-map-wrap .google-map { height: 380px; margin: 0; }
.alert { border-radius: 12px; }

/* ---------- FAQ toggles (Porto restyle) ---------- */
.bt-faq .toggle > section, .bt-faq section.toggle { border: 1px solid var(--bt-line); border-radius: 14px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.bt-faq section.toggle label {
    display: block; background: #fff !important; border: 0 !important; border-radius: 0 !important; color: var(--bt-ink) !important;
    font-family: var(--bt-font-head); font-weight: 700; font-size: 16px; padding: 18px 54px 18px 22px !important; margin: 0; position: relative;
}
.bt-faq section.toggle label::before { display: none !important; }
.bt-faq section.toggle label::after {
    content: "\f067"; font-family: FontAwesome; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
    width: 28px; height: 28px; border-radius: 8px; background: var(--bt-grad-soft); color: var(--bt-primary);
    display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.bt-faq section.toggle.active label { color: var(--bt-primary) !important; }
.bt-faq section.toggle.active label::after { content: "\f068"; background: var(--bt-grad); color: #fff; }
.bt-faq section.toggle > p { padding: 0 22px 20px !important; margin: 0 !important; color: var(--bt-text); line-height: 1.8; border: 0 !important; }

/* Sitemap list */
.bt-linklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bt-linklist a {
    display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-radius: 14px; background: #fff;
    border: 1px solid var(--bt-line); color: var(--bt-ink); font-family: var(--bt-font-head); font-weight: 600;
}
.bt-linklist a::after { content: "\f105"; font-family: FontAwesome; color: var(--bt-muted); transition: transform .2s; }
.bt-linklist a:hover { border-color: var(--bt-primary); color: var(--bt-primary); }
.bt-linklist a:hover::after { transform: translateX(4px); color: var(--bt-primary); }

/* ---------- Footer ---------- */
.bt-footer { background: var(--bt-dark); color: #8fa0bd; position: relative; overflow: hidden; font-size: 14.5px; }
.bt-footer::before {
    content: ""; position: absolute; left: 50%; top: -260px; width: 900px; height: 520px; transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(11,155,232,.16), transparent 65%); pointer-events: none;
}
.bt-footer .bt-container { position: relative; z-index: 1; }
.bt-footer-cta { padding: 64px 0 48px; border-bottom: 1px solid rgba(255,255,255,.07); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.bt-footer-cta h3 { color: #fff; font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin: 0; }
.bt-footer-cta h3 span { background: linear-gradient(120deg, #38bdf8, #a78bfa); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.bt-footer-main { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 1fr; gap: 40px; padding: 56px 0; }
.bt-footer h4 { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .02em; margin: 0 0 20px; }
.bt-footer p { color: #8fa0bd; line-height: 1.75; }
.bt-footer a { color: #b6c2d6; }
.bt-footer a:hover { color: #fff; }
.bt-footer-logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: 12px; margin-bottom: 18px; }
.bt-footer-logo img { height: 34px; width: auto; display: block; }
.bt-footer .bt-newsletter .input-group { display: flex; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 5px; }
.bt-footer .bt-newsletter .form-control { background: transparent; border: 0; color: #fff; padding: 10px 12px; float: none; }
.bt-footer .bt-newsletter .form-control::placeholder { color: #6b7a96; }
.bt-footer .bt-newsletter .form-control:focus { box-shadow: none !important; }
.bt-footer .bt-newsletter .input-group-btn { width: auto; }
.bt-footer .bt-newsletter .btn { background: var(--bt-grad); border: 0; color: #fff; border-radius: 9px !important; padding: 9px 18px; font-weight: 700; font-family: var(--bt-font-head); }
.bt-footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.bt-footer-links a { display: inline-flex; align-items: center; gap: 8px; }
.bt-footer-links a::before { content: "\f105"; font-family: FontAwesome; color: #38bdf8; font-size: 12px; }
.bt-footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.bt-footer-contact li { display: flex; gap: 12px; line-height: 1.6; }
.bt-footer-contact i { color: #38bdf8; width: 16px; margin-top: 4px; text-align: center; }
.bt-social-row { display: flex; gap: 10px; }
.bt-social-row a {
    width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #cbd5e1; transition: all .25s ease;
}
.bt-social-row a:hover { background: var(--bt-grad); color: #fff; border-color: transparent; transform: translateY(-3px); }
.bt-footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }
.bt-footer-bottom ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.bt-footer .alert { font-size: 13px; padding: 10px 12px; margin-bottom: 10px; }

/* Back to top */
.bt-top {
    position: fixed; right: 22px; bottom: 22px; z-index: 999; width: 46px; height: 46px; border-radius: 14px;
    background: var(--bt-grad); color: #fff !important; display: flex; align-items: center; justify-content: center;
    box-shadow: var(--bt-shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s ease;
}
.bt-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-to-top { display: none !important; }

/* ---------- Reveal animations ---------- */
.bt-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.bt-reveal.is-in { opacity: 1; transform: none; }
.bt-d1 { transition-delay: .08s; } .bt-d2 { transition-delay: .16s; } .bt-d3 { transition-delay: .24s; }
.bt-d4 { transition-delay: .32s; } .bt-d5 { transition-delay: .40s; } .bt-d6 { transition-delay: .48s; }
@media (prefers-reduced-motion: reduce) {
    .bt-reveal { opacity: 1; transform: none; transition: none; }
    .bt-float, .bt-mock { animation: none; transform: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .bt-menu > li > a { padding: 10px 12px; }
    .bt-float-1 { left: -10px; } .bt-float-2 { right: -6px; }
}
@media (max-width: 991px) {
    :root { --bt-header-h: 68px; }
    .bt-section { padding: 72px 0; }
    .bt-burger { display: inline-flex; align-items: center; justify-content: center; }
    .bt-nav-cta .bt-btn { display: none; }
    .bt-menu {
        position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; border-bottom: 1px solid var(--bt-line); box-shadow: var(--bt-shadow-lg);
        padding: 10px 16px 18px; max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
        transition: max-height .35s ease, opacity .25s ease;
    }
    .bt-menu.is-open { max-height: 80vh; overflow-y: auto; opacity: 1; visibility: visible; }
    .bt-menu > li > a { padding: 14px 10px; border-radius: 10px; }
    .bt-menu > li.active > a::after { display: none; }
    .bt-sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 14px; min-width: 0; }
    .bt-hero { padding: 72px 0 90px; }
    .bt-hero-grid, .bt-split, .bt-contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .bt-mock { transform: none; max-width: 640px; margin: 0 auto; }
    .bt-grid-3, .bt-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bt-process { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
    .bt-process::before { display: none; }
    .bt-footer-main { grid-template-columns: 1fr 1fr; }
    .bt-project { grid-template-columns: 1fr; }
    .bt-portfolio > li:nth-child(even) .bt-project-media { order: 0; }
    .bt-cta { flex-direction: column; align-items: flex-start; padding: 44px 36px; }
    .bt-values { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .bt-topbar-left .bt-hide-xs, .bt-topbar .bt-social { display: none; }
    .bt-topbar .bt-container { justify-content: center; }
    .bt-logo img { height: 36px; }
    .bt-section { padding: 60px 0; }
    .bt-head { margin-bottom: 40px; }
    .bt-grid-2, .bt-grid-3, .bt-grid-4, .bt-work-strip, .bt-checks-2 { grid-template-columns: 1fr; }
    .bt-card { padding: 26px; }
    .bt-float { display: none; }
    .bt-footer-main { grid-template-columns: 1fr; gap: 32px; }
    .bt-project-body { padding: 28px 24px; }
    .bt-project-media { padding: 18px; }
    .bt-form-card, .bt-info-card { padding: 26px 22px; }
    .bt-values { grid-template-columns: 1fr; }
    .bt-quote { padding: 32px 24px; font-size: 17px; }
    .bt-page-hero { padding: 64px 0 56px; }
    .bt-hero p.bt-hero-text { font-size: 16.5px; }
    .bt-hero-actions .bt-btn { flex: 1 1 auto; }
}
@media (max-width: 480px) {
    .bt-process { grid-template-columns: 1fr; }
}
@media (max-width: 991px) { .bt-split[style] { grid-template-columns: 1fr !important; } }

/* Fixes after visual review */
.bt-accordion .panel-group .panel-heading a .fa { position: static; top: auto; margin: 0; width: 34px; height: 34px; line-height: 34px; text-align: center; display: inline-flex; flex-shrink: 0; }
.bt-rotator > span { white-space: nowrap; }
@media (max-width: 575px) { .bt-rotator > span { white-space: normal; } }
.bt-rotator.bt-grad-text { background: none; -webkit-text-fill-color: currentColor; color: inherit; }
.bt-rotator.bt-grad-text > span { background: var(--bt-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.bt-video { display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.bt-video img { opacity: .85; object-position: center !important; }
.bt-play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 68px; border-radius: 50%;
    background: var(--bt-grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px;
    box-shadow: 0 0 0 10px rgba(255,255,255,.18), var(--bt-shadow-lg); transition: transform .25s ease;
}
.bt-play i { margin-left: 4px; }
.bt-video:hover .bt-play { transform: translate(-50%, -50%) scale(1.08); }
