/* =====================================================================
   Wazirison Digital Concepts — public stylesheet
   Colours/fonts come from CSS variables injected by the admin settings.
   ===================================================================== */
:root {
  --grad: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  --grad-3: linear-gradient(120deg, var(--grad-a), var(--grad-b), var(--accent2));
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 20px 50px -20px rgba(2, 8, 30, .45);
  --header-h: 78px;
}
html[data-theme="dark"] {
  --bg: var(--bg-dark); --bg-2: color-mix(in srgb, var(--bg-dark) 85%, #1e3a8a 15%);
  --surface: rgba(255, 255, 255, .045); --surface-2: rgba(255, 255, 255, .08); --border: rgba(255, 255, 255, .1);
  --text: var(--text-dark); --text-soft: color-mix(in srgb, var(--text-dark) 68%, transparent);
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: var(--bg-light); --bg-2: #ffffff;
  --surface: rgba(255, 255, 255, .8); --surface-2: #ffffff; --border: rgba(15, 23, 42, .09);
  --text: var(--text-light); --text-soft: color-mix(in srgb, var(--text-light) 66%, transparent);
  color-scheme: light;
}
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); font-size: var(--fs-base); }
html.a11y-text-lg { font-size: calc(var(--fs-base) * 1.12); }
html.a11y-text-xl { font-size: calc(var(--fs-base) * 1.25); }
body { background: var(--bg); color: var(--text); font-family: var(--font-b); line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .display-6 { font-family: var(--font-h); font-weight: 700; letter-spacing: -.02em; color: var(--text); }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; }
::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 3px solid var(--accent2) !important; outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 9999; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 12px; color: #fff; }
.container-x { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.text-soft { color: var(--text-soft) !important; }
.text-gradient { background: var(--grad-3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hp-field { position: absolute !important; left: -5000px !important; width: 1px; height: 1px; overflow: hidden; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn { border-radius: var(--btn-radius); font-weight: 600; padding: .6rem 1.25rem; transition: transform .25s var(--ease), box-shadow .25s, background .25s; position: relative; overflow: hidden; }
.btn-lg { padding: .85rem 1.6rem; }
.btn-sm { padding: .35rem .85rem; }
.btn:active { transform: scale(.97); }
.btn-grad { background: var(--grad); color: #fff; border: 0; box-shadow: 0 10px 30px -10px var(--primary); }
.btn-grad:hover, .btn-grad:focus { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 36px -12px var(--accent); }
.btn-glow::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35), transparent 70%); transform: translateX(-120%); transition: transform .8s; }
.btn-glow:hover::after { transform: translateX(120%); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn .ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.45); animation: ripple .6s linear; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: .25s; }
.icon-btn:hover { color: var(--primary); border-color: var(--primary); transform: rotate(-8deg); }
.theme-toggle .fa-sun { display: none; }
html[data-theme="dark"] .theme-toggle .fa-moon { display: none; }
html[data-theme="dark"] .theme-toggle .fa-sun { display: inline; }
.link-arrow { font-weight: 600; display: inline-flex; gap: .4rem; align-items: center; }
.link-arrow i { transition: transform .25s; }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Preloader / progress ---------- */
.preloader { position: fixed; inset: 0; z-index: 10000; background: var(--bg); display: grid; place-items: center; transition: opacity .5s, visibility .5s; }
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-ring { width: 54px; height: 54px; border-radius: 50%; border: 4px solid var(--surface-2); border-top-color: var(--primary); border-right-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad-3); z-index: 2000; }
.preview-bar { background: #f59e0b; color: #111; text-align: center; padding: 6px; font-size: .875rem; position: relative; z-index: 1100; }
.preview-bar a { color: #111; text-decoration: underline; }
.announcement { padding: 8px 0; font-size: .9rem; color: #fff; background: var(--grad); position: relative; z-index: 1001; }
.announcement a { color: #fff; font-weight: 600; text-decoration: underline; }
.announcement-warning { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.announcement-success { background: linear-gradient(90deg, #10b981, #06b6d4); }
.announcement-dark { background: #0b1220; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.site-header .navbar { min-height: var(--header-h); padding: 10px 0; }
.header-glass .site-header.scrolled, .header-solid .site-header { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(16px) saturate(140%); box-shadow: 0 8px 30px -18px rgba(0,0,0,.5); border-bottom: 1px solid var(--border); }
.header-solid .site-header { background: var(--bg-2); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-10deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--font-h); }
.brand-text strong { font-size: 1.15rem; }
.brand-text small { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); }
.brand-logo { max-height: 46px; width: auto; }
html[data-theme="dark"] .logo-on-light, html[data-theme="light"] .logo-on-dark { display: none; }
.nav-main .nav-link { color: var(--text); font-weight: 500; padding: .5rem .8rem !important; position: relative; font-size: .95rem; }
.nav-main .nav-link::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .2rem; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); border-radius: 2px; }
.nav-main .nav-link:hover::after, .nav-main .nav-link.active::after { transform: scaleX(1); }
.nav-main .nav-link.active { color: var(--primary); }
.dropdown-menu { background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; animation: dropIn .25s var(--ease); }
.dropdown-item { color: var(--text); border-radius: 8px; padding: 8px 12px; }
.dropdown-item:hover { background: var(--surface-2); color: var(--primary); }
@keyframes dropIn { from { opacity: 0; transform: translateY(8px); } }
.navbar-toggler { border: 0; padding: 8px; }
.burger { display: inline-flex; flex-direction: column; gap: 5px; }
.burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
@media (max-width: 1199.98px) {
  .offcanvas-xl { background: var(--bg-2); color: var(--text); }
  .offcanvas-xl .btn-close { filter: var(--close-filter, none); }
  html[data-theme="dark"] .offcanvas-xl .btn-close { filter: invert(1); }
  .nav-main .nav-link { padding: .8rem .2rem !important; border-bottom: 1px solid var(--border); }
  .nav-main .nav-link::after { display: none; }
}

/* ---------- Flash toasts ---------- */
.toast-flash { position: fixed; top: calc(var(--header-h) + 14px); right: 16px; z-index: 1500; max-width: 420px; box-shadow: var(--shadow); border-radius: 14px; animation: slideIn .4s var(--ease); }
@keyframes slideIn { from { transform: translateX(110%); } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; padding: 70px 0 90px; overflow: hidden; isolation: isolate; margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + 60px); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -3; opacity: .55; }
html[data-theme="light"] .hero-bg { opacity: .14; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(1200px 600px at 10% 10%, color-mix(in srgb, var(--primary) 30%, transparent), transparent 60%), radial-gradient(900px 500px at 90% 80%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 60%), linear-gradient(180deg, transparent 60%, var(--bg)); }
.hero-particles { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: -1; animation: float 14s ease-in-out infinite; pointer-events: none; }
.orb-1 { width: 320px; height: 320px; background: var(--primary); top: 8%; left: -80px; }
.orb-2 { width: 260px; height: 260px; background: var(--accent); bottom: 5%; right: -60px; animation-delay: -5s; }
.orb-3 { width: 180px; height: 180px; background: var(--accent2); top: 40%; left: 45%; opacity: .3; animation-delay: -9s; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(30px, -40px) scale(1.08); } 66% { transform: translate(-20px, 25px) scale(.95); } }
.shape { position: absolute; border: 2px solid color-mix(in srgb, var(--accent2) 50%, transparent); z-index: -1; animation: spinFloat 22s linear infinite; pointer-events: none; }
.shape-1 { width: 60px; height: 60px; top: 18%; right: 12%; border-radius: 14px; }
.shape-2 { width: 34px; height: 34px; bottom: 22%; left: 8%; border-radius: 50%; border-color: color-mix(in srgb, var(--accent) 60%, transparent); animation-duration: 16s; }
.shape-3 { width: 0; height: 0; border: 0; border-left: 26px solid transparent; border-right: 26px solid transparent; border-bottom: 46px solid color-mix(in srgb, var(--primary) 40%, transparent); top: 70%; right: 38%; animation-duration: 26s; }
@keyframes spinFloat { 0% { transform: rotate(0) translateY(0); } 50% { transform: rotate(180deg) translateY(-30px); } 100% { transform: rotate(360deg) translateY(0); } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent2); margin-bottom: .8rem; }
.hero-eyebrow { background: var(--surface); border: 1px solid var(--border); padding: 7px 14px; border-radius: 999px; backdrop-filter: blur(8px); letter-spacing: .06em; text-transform: none; font-size: .88rem; color: var(--text); }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.hero-title { font-size: clamp(2.3rem, 5.4vw, 4.2rem); line-height: 1.08; margin-bottom: 1rem; }
.hero-role { font-size: clamp(1.05rem, 2.2vw, 1.4rem); font-weight: 600; color: var(--text); min-height: 2.2em; font-family: var(--font-h); }
.typewriter { background: var(--grad-3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.caret { display: inline-block; width: 3px; height: 1.1em; background: var(--accent2); margin-left: 4px; vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-text { font-size: 1.1rem; color: var(--text-soft); max-width: 640px; margin-bottom: 1.8rem; }
.hero-portrait { position: relative; width: min(420px, 82vw); aspect-ratio: 1; margin: 0 auto; }
.portrait-ring { position: absolute; inset: -14px; border-radius: 50%; background: conic-gradient(from 0deg, var(--grad-a), var(--accent2), var(--grad-b), var(--grad-a)); animation: spin 9s linear infinite; filter: blur(.5px); }
.portrait-ring::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--bg); }
.portrait-img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; z-index: 1; box-shadow: 0 30px 80px -30px var(--primary); }
.tech-orbit { position: absolute; inset: -40px; z-index: 2; animation: spin 40s linear infinite; pointer-events: none; }
.tech-orbit span { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px; display: grid; place-items: center; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--primary); font-size: 1.35rem; transform: rotate(calc(var(--i) * 60deg)) translate(calc(min(420px, 82vw) / 2 + 30px)) rotate(calc(var(--i) * -60deg)); }
.tech-orbit span i { animation: spin 40s linear infinite reverse; }
.hero-logo-chip { position: absolute; bottom: 6%; right: 2%; z-index: 3; width: 74px; height: 74px; object-fit: contain; padding: 10px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--border); box-shadow: var(--shadow); }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-top: 60px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; backdrop-filter: blur(10px); display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
.stat i { grid-row: span 2; font-size: 1.5rem; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--grad); color: #fff; }
.stat strong { font-family: var(--font-h); font-size: 1.8rem; line-height: 1; }
.stat span { font-size: .85rem; color: var(--text-soft); }
.scroll-indicator { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); width: 28px; height: 46px; border: 2px solid var(--text-soft); border-radius: 20px; }
.scroll-indicator span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--accent2); border-radius: 2px; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(18px); } }

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--bg-2); }
html[data-theme="dark"] .section-alt { background: linear-gradient(180deg, transparent, rgba(30,107,255,.05), transparent); }
.section-dark-band { background: linear-gradient(135deg, var(--secondary), color-mix(in srgb, var(--secondary) 70%, var(--accent) 30%)); color: #fff; overflow: hidden; }
.section-dark-band .section-title, .section-dark-band .section-sub, .section-dark-band h3 { color: #fff; }
.section-dark-band .section-sub { opacity: .8; }
.band-pattern { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 26px 26px; mask-image: radial-gradient(circle at center, #000, transparent 75%); }
.section-head { max-width: 760px; margin: 0 auto 50px; }
.section-head.text-start { margin-left: 0; }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-bottom: .6rem; }
.section-sub { color: var(--text-soft); font-size: 1.07rem; }
.prose { color: var(--text); }
.prose p { color: var(--text-soft); }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose img { border-radius: var(--radius); margin: 1rem 0; }
.prose pre { background: #0b1220; color: #e2e8f0; padding: 16px; border-radius: 12px; overflow: auto; }
.prose code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { border-left: 4px solid var(--primary); padding: 6px 16px; color: var(--text-soft); background: var(--surface); border-radius: 0 12px 12px 0; }
.prose ul li::marker { color: var(--primary); }
.lead-prose p { font-size: 1.1rem; }
.article-body { font-size: 1.07rem; }

/* ---------- Cards ---------- */
.glass-card, .info-card, .mv-card, .service-card, .project-card, .demo-card, .post-card, .testimonial-card, .profile-card, .value-card, .skill-card, .search-result, .tech-tile, .kpi {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); backdrop-filter: blur(12px); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.card-solid .glass-card, .card-solid .info-card, .card-solid .service-card, .card-solid .project-card, .card-solid .demo-card, .card-solid .post-card, .card-solid .testimonial-card { background: var(--bg-2); backdrop-filter: none; }
.card-outline .service-card, .card-outline .project-card, .card-outline .demo-card, .card-outline .post-card { background: transparent; }
.info-card, .mv-card { padding: 26px; }
.mv-card { padding: 34px; position: relative; overflow: hidden; }
.mv-card::before { content: ""; position: absolute; width: 220px; height: 220px; right: -80px; top: -80px; border-radius: 50%; background: var(--grad); opacity: .14; }
.service-card { display: flex; flex-direction: column; padding: 30px; color: var(--text); position: relative; overflow: hidden; }
.service-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad-3); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s; pointer-events: none; }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); color: var(--text); }
.service-card:hover::before { opacity: 1; }
.service-card h2 a, .service-card h3 { color: var(--text); }
.service-icon { width: 60px; height: 60px; border-radius: 18px; display: inline-grid; place-items: center; font-size: 1.5rem; color: #fff; background: var(--grad); box-shadow: 0 12px 26px -12px var(--primary); margin-bottom: 18px; transition: transform .4s var(--ease); flex-shrink: 0; }
.service-icon.sm { width: 46px; height: 46px; font-size: 1.15rem; border-radius: 14px; margin-bottom: 0; }
.service-card:hover .service-icon, .info-card:hover .service-icon { transform: rotate(-10deg) scale(1.08); }
.card-arrow { position: absolute; right: 24px; bottom: 22px; color: var(--primary); opacity: 0; transform: translateX(-10px); transition: .3s; }
.service-card:hover .card-arrow { opacity: 1; transform: none; }
.service-card-lg { padding: 32px; }
.mini-service { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 500; transition: .3s; height: 100%; }
.mini-service i { color: var(--primary); font-size: 1.2rem; }
.mini-service:hover { transform: translateY(-4px); border-color: var(--primary); color: var(--primary); }
.info-card:hover, .glass-card.hoverable:hover { border-color: color-mix(in srgb, var(--primary) 45%, transparent); }

/* Projects */
.project-card { overflow: hidden; display: flex; flex-direction: column; }
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.project-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-card:hover .project-media img { transform: scale(1.08); }
.project-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, transparent, rgba(6,11,26,.75)); opacity: 0; transition: opacity .35s; }
.project-card:hover .project-overlay, .project-media:focus .project-overlay { opacity: 1; }
.project-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.project-body h3 a { color: var(--text); }
.project-body h3 a:hover { color: var(--primary); }
.project-cat { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent2); }
.status-badge { font-size: .7rem; font-weight: 600; }
.tech-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-badge { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--text); border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); }
.section-dark-band .tech-badge { color: #fff; }
.case-row + .case-row { margin-top: 80px; }
.case-media, .case-hero-img { display: block; border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.case-media img, .case-hero-img img { width: 100%; transition: transform .8s var(--ease); display: block; }
.case-media:hover img { transform: scale(1.05); }
.project-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin-bottom: 20px; font-size: .92rem; }
.project-facts dt { color: var(--text-soft); font-weight: 500; }
.project-facts dd { margin: 0; }
.check-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.check-list.cols-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list i { color: #22c55e; margin-top: 5px; }

/* Demos */
.demo-card { overflow: hidden; display: flex; flex-direction: column; }
.demo-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.section-dark-band .demo-card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #fff; }
.section-dark-band .demo-card .text-soft { color: rgba(255,255,255,.7) !important; }
.demo-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.demo-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.demo-card:hover .demo-thumb img { transform: scale(1.07); }
.demo-type { position: absolute; left: 12px; top: 12px; background: rgba(6,11,26,.75); color: #fff; font-size: .72rem; padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.demo-status { position: absolute; right: 12px; top: 12px; }
.browser-frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--bg-2); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.browser-bar > span { width: 11px; height: 11px; border-radius: 50%; background: #ef4444; }
.browser-bar > span:nth-child(2) { background: #f59e0b; } .browser-bar > span:nth-child(3) { background: #22c55e; }
.browser-url { margin-left: 10px; font-size: .8rem; color: var(--text-soft); background: var(--surface); padding: 3px 12px; border-radius: 999px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.browser-frame iframe { width: 100%; height: 640px; border: 0; display: block; background: #fff; }
.demo-creds { background: color-mix(in srgb, var(--accent2) 10%, transparent); border: 1px dashed color-mix(in srgb, var(--accent2) 45%, transparent); padding: 14px; border-radius: 12px; }
.demo-shell { background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); padding: 22px; box-shadow: var(--shadow); }
.demo-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.demo-table { --bs-table-bg: transparent; --bs-table-color: var(--text); }
.demo-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-soft); }
.row-alert td { background: rgba(245, 158, 11, .08) !important; }
.demo-log li { padding: 6px 0; border-bottom: 1px dashed var(--border); }
.kpi { padding: 16px; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.kpi i { grid-row: span 2; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.kpi span { font-size: .78rem; color: var(--text-soft); }
.kpi strong { font-family: var(--font-h); font-size: 1.3rem; }
.bk-grid { display: grid; grid-template-columns: 60px repeat(5, 1fr); gap: 6px; }
.bk-head { text-align: center; font-size: .8rem; font-weight: 600; }
.bk-time { font-size: .78rem; color: var(--text-soft); display: flex; align-items: center; }
.bk-slot { height: 34px; border-radius: 8px; border: 1px solid var(--border); transition: .2s; }
.bk-slot.free, .bk-legend.free { background: rgba(34,197,94,.18); }
.bk-slot.free:hover { background: rgba(34,197,94,.4); transform: scale(1.04); }
.bk-slot.taken, .bk-legend.taken { background: rgba(148,163,184,.25); cursor: not-allowed; }
.bk-slot.mine, .bk-legend.mine { background: var(--grad); }
.bk-slot.sel { outline: 3px solid var(--accent2); }
.bk-legend { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; }

/* Technologies */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); margin-bottom: 40px; }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tech-pill { display: inline-flex; gap: 8px; align-items: center; padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); white-space: nowrap; font-weight: 600; font-size: .9rem; }
.tech-pill i { color: var(--primary); }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.tech-tile { padding: 20px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; font-weight: 600; font-size: .88rem; }
.tech-tile i, .tech-tile .lucide-icon { font-size: 2rem; color: var(--tc); transition: transform .4s var(--ease); }
.tech-tile:hover { transform: translateY(-6px); border-color: var(--tc); box-shadow: 0 16px 30px -18px var(--tc); }
.tech-tile:hover i { transform: scale(1.18) rotate(-6deg); }
.skill-card { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.skill-card:hover { transform: translateY(-5px); border-color: var(--tc); }
.skill-icon { font-size: 1.8rem; color: var(--tc); }
.skill-bar .bar, .skill-card .bar { height: 8px; background: var(--surface-2); border-radius: 8px; overflow: hidden; margin-top: 6px; }
.bar span { display: block; height: 100%; width: 0; background: var(--grad-3); border-radius: 8px; transition: width 1.6s var(--ease); }

/* Process */
.process-line { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; position: relative; padding: 0; }
.process-step { position: relative; padding: 28px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: .35s var(--ease); }
.process-step:hover { transform: translateY(-6px); border-color: var(--primary); }
.step-num { position: absolute; right: 18px; top: 12px; font-family: var(--font-h); font-size: 2.4rem; font-weight: 700; opacity: .12; }
.step-icon { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 14px; font-size: 1.2rem; }

/* Testimonials */
.testimonial-card { padding: 30px; margin: 0; position: relative; }
.testimonial-card:hover { transform: translateY(-6px); }
.quote-mark { font-size: 2.2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars { color: #f59e0b; font-size: .85rem; margin: 6px 0; }
.testimonial-card blockquote { color: var(--text-soft); font-size: .98rem; }
.avatar-initials { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; }

/* FAQ */
.faq-accordion .accordion-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px !important; margin-bottom: 12px; overflow: hidden; }
.faq-accordion .accordion-button { background: transparent; color: var(--text); font-weight: 600; box-shadow: none; }
.faq-accordion .accordion-button:not(.collapsed) { color: var(--primary); }
html[data-theme="dark"] .faq-accordion .accordion-button::after { filter: invert(1); }

/* Blog */
.post-card { overflow: hidden; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.07); }
.post-card h3 a { color: var(--text); }
.post-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cat-list li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--border); }
.share-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share-row a, .share-row button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: .25s; }
.share-row a:hover, .share-row button:hover { background: var(--grad); color: #fff; transform: translateY(-3px); }
.author-box { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.author-box img { border-radius: 50%; object-fit: cover; }

/* CTA */
.cta-box { position: relative; overflow: hidden; padding: 56px; border-radius: calc(var(--radius) + 10px); background: var(--grad); color: #fff; box-shadow: 0 30px 60px -30px var(--accent); }
.cta-box h2 { color: #fff; }
.cta-orbs::before, .cta-orbs::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.15); animation: float 12s ease-in-out infinite; }
.cta-orbs::before { width: 260px; height: 260px; right: -60px; top: -100px; }
.cta-orbs::after { width: 160px; height: 160px; left: 30%; bottom: -90px; animation-delay: -4s; }

/* Page hero */
.page-hero { position: relative; padding: calc(var(--header-h) + 70px) 0 70px; margin-top: calc(var(--header-h) * -1); overflow: hidden; isolation: isolate; }
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .22; z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 400px at 15% 10%, color-mix(in srgb, var(--primary) 30%, transparent), transparent 60%), linear-gradient(180deg, transparent 40%, var(--bg)); }
.page-title { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.page-sub { color: var(--text-soft); font-size: 1.1rem; max-width: 760px; }
.breadcrumb { font-size: .85rem; margin-bottom: 1rem; }
.breadcrumb-item a { color: var(--text-soft); }
.breadcrumb-item.active { color: var(--text); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-soft); }

/* About */
.img-stack { position: relative; padding: 0 40px 40px 0; }
.img-stack .img-main { width: 100%; border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
.img-stack .img-float { position: absolute; right: 0; bottom: 0; width: 45%; border-radius: var(--radius); border: 6px solid var(--bg); box-shadow: var(--shadow); animation: float 10s ease-in-out infinite; }
.glass-chip { position: absolute; left: 18px; top: 18px; padding: 8px 14px; border-radius: 999px; background: rgba(6,11,26,.65); color: #fff; font-size: .82rem; backdrop-filter: blur(8px); }
.profile-card { overflow: hidden; text-align: center; }
.profile-banner { width: 100%; height: 140px; object-fit: cover; display: block; }
.profile-banner-grad { background: var(--grad-3); }
.profile-photo { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin-top: -75px; border: 6px solid var(--bg); position: relative; box-shadow: var(--shadow); }
.profile-contact li { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.profile-contact i { color: var(--primary); width: 18px; }
.value-card { padding: 28px 20px; text-align: center; height: 100%; }
.value-card > i { font-size: 1.8rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.value-card:hover { transform: translateY(-6px); }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--primary), var(--accent), var(--accent2)); transform: translateX(-50%); }
.tl-item { position: relative; width: 50%; padding: 0 40px 36px; }
.tl-left { left: 0; text-align: right; }
.tl-right { left: 50%; }
.tl-dot { position: absolute; top: 4px; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; z-index: 1; box-shadow: 0 0 0 6px var(--bg); font-size: .9rem; }
.tl-left .tl-dot { right: -20px; } .tl-right .tl-dot { left: -20px; }
.tl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: left; transition: .3s; }
.tl-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.tl-type { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent2); font-weight: 700; }
@media (max-width: 767.98px) {
  .timeline::before { left: 20px; }
  .tl-item, .tl-right { width: 100%; left: 0; padding: 0 0 28px 60px; text-align: left; }
  .tl-left .tl-dot, .tl-right .tl-dot { left: 0; right: auto; }
}
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gallery-item { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.1); }
.img-square .gallery-item, .img-square .project-media, .img-square .case-media { border-radius: 4px; }
.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,.88); display: grid; place-items: center; padding: 20px; animation: fadeIn .25s; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 12px; }
.lightbox p { color: #fff; text-align: center; margin-top: 10px; }
.lightbox button { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: #fff; font-size: 2rem; }
@keyframes fadeIn { from { opacity: 0; } }

/* Filters / forms */
.filter-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 36px; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-block; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: .88rem; font-weight: 500; transition: .25s; }
.pill:hover { border-color: var(--primary); color: var(--primary); }
.pill.active { background: var(--grad); color: #fff; border-color: transparent; }
.form-control, .form-select { background-color: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-radius: 12px; padding: .7rem .95rem; }
.form-control:focus, .form-select:focus { background-color: var(--surface-2); color: var(--text); border-color: var(--primary); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--primary) 25%, transparent); }
.form-control::placeholder { color: var(--text-soft); opacity: .7; }
html[data-theme="dark"] .form-select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23cbd5e1' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
html[data-theme="dark"] .form-select option { background: #0b1220; }
.form-label { font-weight: 500; font-size: .92rem; }
.input-group .btn { border-radius: 0 12px 12px 0; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-soft); }
.empty-state i { font-size: 3rem; margin-bottom: 12px; opacity: .5; }
.search-result { display: block; padding: 18px 20px; color: var(--text); }
.search-result:hover { border-color: var(--primary); transform: translateX(4px); color: var(--text); }
.pagination .page-link { background: var(--surface); border-color: var(--border); color: var(--text); margin: 0 3px; border-radius: 10px !important; }
.pagination .active .page-link { background: var(--grad); border-color: transparent; color: #fff; }
.other-services a { color: var(--text); display: block; padding: 5px 0; }
.other-services a:hover { color: var(--primary); }
.contact-options { display: grid; gap: 12px; }
.contact-opt { --c: var(--primary); display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: .3s; }
.contact-opt i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 1.15rem; }
.contact-opt small { display: block; color: var(--text-soft); font-size: .75rem; }
.contact-opt:hover { transform: translateX(5px); border-color: var(--c); color: var(--text); }
.map-box { height: 420px; border-radius: calc(var(--radius) + 4px); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); z-index: 0; }
.error-page { min-height: 70vh; display: grid; place-items: center; position: relative; overflow: hidden; padding: 80px 0; }
.error-code { font-size: clamp(6rem, 18vw, 11rem); line-height: 1; font-family: var(--font-h); font-weight: 800; }

/* Social icons */
.social-icons a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: .3s var(--ease); }
.social-icons a:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-4px) rotate(-6deg); }
.social-sm a { width: 36px; height: 36px; border-radius: 10px; font-size: .9rem; }

/* Footer */
.site-footer { position: relative; overflow: hidden; padding: 80px 0 0; background: var(--bg-2); border-top: 1px solid var(--border); }
.footer-dark { background: #050a18; color: #cbd5e1; --text: #e6edf7; --text-soft: #94a3b8; --surface: rgba(255,255,255,.05); --border: rgba(255,255,255,.08); }
.footer-dark .brand-text strong, .footer-dark .footer-title { color: #fff; }
.footer-glow { position: absolute; width: 600px; height: 600px; left: 50%; top: -400px; transform: translateX(-50%); background: radial-gradient(circle, color-mix(in srgb, var(--primary) 35%, transparent), transparent 70%); pointer-events: none; }
.footer-title { font-size: 1rem; margin-bottom: 1rem; }
.footer-about { color: var(--text-soft); font-size: .93rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a, .footer-contact a { color: var(--text-soft); font-size: .93rem; transition: .25s; }
.footer-links a:hover { color: var(--primary); padding-left: 4px; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 10px; font-size: .93rem; color: var(--text-soft); align-items: baseline; }
.footer-contact i { color: var(--primary); width: 16px; }
.footer-bottom { margin-top: 50px; padding: 22px 0; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .86rem; color: var(--text-soft); }
.footer-bottom a, .footer-bottom .link-btn { color: var(--text-soft); text-decoration: none; }
.footer-bottom a:hover { color: var(--primary); }

/* Back to top / floating */
.back-to-top { position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--grad); color: #fff; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(20px); transition: .35s var(--ease); z-index: 900; }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.float-contacts { position: fixed; bottom: calc(var(--fbottom) + 60px); z-index: 950; display: flex; flex-direction: column; gap: 12px; opacity: 0; transform: translateY(20px); transition: .5s var(--ease); pointer-events: none; }
.float-contacts.show { opacity: 1; transform: none; pointer-events: auto; }
.float-right { right: 24px; } .float-left { left: 24px; }
.float-btn { position: relative; width: var(--fsize); height: var(--fsize); border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-size: calc(var(--fsize) * .48); box-shadow: 0 10px 25px -8px var(--c); transition: transform .3s var(--ease); }
.float-btn:hover { color: #fff; transform: scale(1.1); }
.float-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--c); animation: ring 2.2s infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.float-tip { position: absolute; white-space: nowrap; font-size: .8rem; background: #0b1220; color: #fff; padding: 6px 10px; border-radius: 8px; opacity: 0; pointer-events: none; transition: .25s; }
.float-right .float-tip { right: calc(100% + 10px); } .float-left .float-tip { left: calc(100% + 10px); }
.float-btn:hover .float-tip, .float-btn:focus .float-tip { opacity: 1; }
@media (min-width: 768px) { .float-btn.hide-desktop { display: none; } }
@media (max-width: 767.98px) { .float-btn.hide-mobile { display: none; } .float-contacts { bottom: calc(var(--fbottom) + 56px); } .float-right { right: 14px; } .float-left { left: 14px; } .back-to-top { right: 14px; bottom: 14px; } }
.a11y-widget { position: fixed; bottom: 24px; z-index: 940; }
.a11y-widget.float-left { left: 24px; } .a11y-widget.float-right { right: 84px; }
.a11y-toggle { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-2); color: var(--text); box-shadow: var(--shadow); }
.a11y-panel { position: absolute; bottom: 54px; left: 0; width: 230px; background: #0b1220; color: #fff; padding: 14px; border-radius: 14px; box-shadow: var(--shadow); }
.a11y-widget.float-right .a11y-panel { left: auto; right: 0; }
@media (max-width: 767.98px) { .a11y-widget.float-left { left: 14px; } .a11y-widget { bottom: 14px; } }
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: #0b1220; color: #e2e8f0; padding: 18px 20px; border-radius: 16px; z-index: 1200; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.1); font-size: .9rem; }
html.a11y-contrast { --text-soft: var(--text); --border: currentColor; }
html.a11y-contrast[data-theme="dark"] { --bg: #000; --bg-2: #000; --surface: #000; --text: #fff; }
html.a11y-contrast[data-theme="light"] { --bg: #fff; --bg-2: #fff; --surface: #fff; --text: #000; }
html.a11y-contrast .text-gradient, html.a11y-contrast .typewriter { color: var(--text); background: none; -webkit-text-fill-color: currentColor; }

/* Custom cursor (desktop) */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 5000; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor-dot { width: 7px; height: 7px; background: var(--accent2); }
.cursor-ring { width: 34px; height: 34px; border: 2px solid var(--primary); transition: width .2s, height .2s, opacity .2s; opacity: .6; }
.cursor-ring.hover { width: 54px; height: 54px; opacity: .9; }
@media (hover: none), (max-width: 991px) { .cursor-dot, .cursor-ring { display: none; } }

/* Leaflet theming */
.leaflet-popup-content-wrapper { border-radius: 12px; }

/* Animation intensity & reduced motion */
html[data-anim="none"] *, html.a11y-reduce-motion *, html.a11y-reduce-motion *::before, html.a11y-reduce-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html[data-anim="low"] .orb, html[data-anim="low"] .shape, html[data-anim="low"] .tech-orbit, html[data-anim="low"] .portrait-ring { animation: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
}
@media (max-width: 991.98px) {
  .section { padding: 72px 0; }
  .hero { min-height: auto; }
  .cta-box { padding: 36px 26px; }
  .tech-orbit span { width: 42px; height: 42px; margin: -21px; font-size: 1.05rem; transform: rotate(calc(var(--i) * 60deg)) translate(calc(min(420px, 82vw) / 2 + 18px)) rotate(calc(var(--i) * -60deg)); }
  .browser-frame iframe { height: 480px; }
}
@media print { .site-header, .site-footer, .float-contacts, .a11y-widget, .back-to-top, .cookie-banner { display: none !important; } }
