/* Illusion Designer — v3 */
@import url("https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700;800;900&display=swap");

:root {
  --bg: hsl(0 0% 8%);
  --surface: hsl(0 0% 12%);
  --surface-2: hsl(0 0% 16%);
  --card: hsl(0 0% 11%);
  --border: hsl(0 0% 18%);
  --fg: hsl(0 0% 95%);
  --muted: hsl(0 0% 65%);
  --primary: hsl(3 99% 51%);
  --primary-2: hsl(340 80% 50%);
  --gradient: linear-gradient(135deg, var(--primary), var(--primary-2));
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px -10px hsl(3 99% 51% / .35);
  --container: 1440px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Jost", system-ui, sans-serif;
  background: var(--bg); color: var(--fg);
  line-height: 1.65; font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; }
.section-tag {
  display: inline-block; padding: .35rem 1rem; border-radius: 999px;
  background: hsl(3 99% 51% / .12); color: var(--primary);
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title { font-size: clamp(2rem, 3.4vw, 2.85rem); font-weight: 700; margin-bottom: .85rem; line-height: 1.2; }
.section-subtitle { color: var(--muted); max-width: 720px; margin: 0 auto 3rem; text-align: center; font-size: 1.05rem; }
.section-head { text-align: center; margin-bottom: 3.5rem; }
.accent { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .95rem 1.85rem; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); color: #fff; }
.btn-outline { border-color: var(--border); color: var(--fg); background: transparent; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* Header — no bottom border */
.top-bar {
  background: #0a0a0a; color: var(--muted);
  font-size: .85rem; border-bottom: 1px solid var(--border);
}
.top-bar .top-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 40px; gap: 1rem; flex-wrap: wrap;
}
.top-bar .top-left { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.top-bar .top-left a { color: var(--muted); display: inline-flex; align-items: center; gap: .4rem; }
.top-bar .top-left a:hover { color: var(--primary); }
.top-bar .top-socials { display: flex; gap: .65rem; }
.top-bar .top-socials a {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: hsl(0 0% 100% / .06); color: var(--muted);
  font-size: .8rem; transition: background .2s, color .2s;
}
.top-bar .top-socials a:hover { background: var(--gradient); color: #fff; }
@media (max-width: 640px) {
  .top-bar .top-inner { height: auto; padding: .5rem 0; justify-content: center; text-align: center; }
}
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: hsl(0 0% 8% / .9); backdrop-filter: blur(12px);
  border-bottom: 0;
  transition: background .3s, backdrop-filter .3s;
}

/* Home page (desktop): transparent bars overlaid on hero slider */
body.home .top-bar {
  position: absolute; left: 0; right: 0; z-index: 51;
  background: transparent; border-bottom: none;
}
body.home .site-header {
  position: absolute; left: 0; right: 0; top: 40px; z-index: 50;
  background: transparent; backdrop-filter: none;
  border-bottom: none;
}

/* Top bar hides on scroll, header stays fixed and solid */
.top-bar { transition: transform .35s ease, opacity .25s ease; }
body.scrolled .top-bar {
  transform: translateY(-100%); opacity: 0; pointer-events: none;
}
body.home.scrolled .site-header {
  position: fixed; top: 0;
  background: hsl(0 0% 8% / .92);
  backdrop-filter: blur(12px);
  animation: barSlide .3s ease;
}
@keyframes barSlide { from { transform: translateY(-100%); } to { transform: translateY(0); } }

.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 700; }
.brand-logo {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--gradient); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.05rem;
}
.brand-logo-img {
  width: 160px; height: 84px; object-fit: contain; display: block;
  border-radius: 12px;
}
@media (max-width: 600px){ .brand-logo-img { width: 120px; height: 64px; } }
.brand-name { font-size: 1.15rem; }
.brand-name small { display: block; font-size: .65rem; color: var(--muted); font-weight: 400; letter-spacing: .15em; text-transform: uppercase; }
.nav-links { display: flex; gap: 2.25rem; }
.nav-links a { font-weight: 500; font-size: .95rem; color: var(--muted); }
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-cta { display: inline-flex; align-items: center; gap: .5rem; color: white; font-weight: 600; }
.nav-toggle { display: none; background: none; border: 0; color: var(--fg); font-size: 1.4rem; cursor: pointer; position: relative; z-index: 65; padding: .5rem .65rem; }
.nav-toggle * { pointer-events: none; }

/* Hero — left aligned */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background: linear-gradient(90deg, hsl(0 0% 4% / .92), hsl(0 0% 4% / .65) 55%, hsl(0 0% 4% / .25)), url("hero-bg.jpg") center/cover;
  padding: 7rem 0 4rem;
}
.hero .container { width: 100%; }
.hero-inner { max-width: 760px; text-align: left; }
.hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.5rem); font-weight: 800; line-height: 1.08; margin: 1rem 0 1.5rem; }
.hero p { color: var(--muted); max-width: 580px; margin: 0 0 2.25rem; font-size: 1.2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: flex-start; }

/* Page header — image background */
.page-header {
  position: relative;
  padding: 7rem 0 5rem;
  text-align: center;
  background:
    linear-gradient(180deg, hsl(0 0% 4% / .82), hsl(0 0% 4% / .92)),
    url("hero-bg.jpg") center/cover fixed;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.page-header::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, hsl(3 99% 51% / .18), transparent 55%);
  pointer-events: none;
}
.page-header > .container { position: relative; }
.page-header .section-title { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.page-header .breadcrumbs { color: var(--muted); margin-top: 1rem; font-size: .95rem; }
.page-header .breadcrumbs a:hover { color: var(--primary); }
.page-header .breadcrumbs span { color: var(--primary); margin: 0 .5rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 3rem 0; }
.stat { text-align: center; padding: 1.75rem; background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); }
.stat strong { display: block; font-size: 2.4rem; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.stat span { color: var(--muted); font-size: .95rem; }

/* About — image left with floating badge, list 2-col */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 4.5rem; align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.about-badge {
  position: absolute; right: -22px; bottom: -28px;
  background: var(--gradient); color: #fff;
  padding: 1.25rem 1.6rem; border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.about-badge strong { font-size: 2rem; font-weight: 800; display: block; line-height: 1; }
.about-badge span { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.about-content p { color: var(--muted); margin-bottom: 1rem; font-size: 1.02rem; }
.about-list {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .75rem 1.5rem;
  margin: 1.5rem 0 2rem;
}
.about-list li { display: flex; align-items: center; gap: .65rem; color: var(--fg); font-weight: 500; }
.about-list li i { color: var(--primary); font-size: .95rem; }

/* Services / cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.25rem;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  width: 64px; height: 64px; border-radius: var(--radius);
  background: var(--gradient); color: #fff;
  display: grid; place-items: center; font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.card h3 { font-size: 1.3rem; margin-bottom: .65rem; }
.card p { color: var(--muted); font-size: .98rem; }
.card .card-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--primary); font-weight: 600; margin-top: 1rem; font-size: .95rem; }

/* Process — circular icon steps + dashed connectors */
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; position: relative; }
.step { text-align: center; position: relative; padding: 1rem .5rem; }
.step-circle {
  width: 96px; height: 96px; margin: 0 auto 1.25rem;
  border-radius: 50%; background: var(--card); border: 2px solid var(--border);
  display: grid; place-items: center; color: var(--primary); font-size: 2rem;
  position: relative; transition: border-color .3s, transform .3s;
}
.step:hover .step-circle { border-color: var(--primary); transform: translateY(-4px); }
.step-num {
  position: absolute; top: -8px; right: -8px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gradient); color: #fff;
  font-size: .8rem; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: var(--shadow);
}
.step-circle::after {
  content: ""; position: absolute;
  top: 50%; left: calc(100% + 8px);
  width: calc(100% + 1.5rem); height: 0;
  border-top: 2px dashed var(--border);
}
.step:last-child .step-circle::after { display: none; }
.step h4 { font-size: 1.2rem; margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .92rem; }

/* Why Choose Us */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.why-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.25rem;
  text-align: left; transition: border-color .3s, transform .3s;
}
.why-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.why-card .why-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: hsl(3 99% 51% / .12); color: var(--primary);
  display: grid; place-items: center; font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.why-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.why-card p { color: var(--muted); font-size: .96rem; }

/* Vision / Mission */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
.vm-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.5rem;
  position: relative; overflow: hidden;
}
.vm-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: var(--gradient);
}
.vm-card .vm-icon {
  width: 58px; height: 58px; border-radius: 14px;
  background: var(--gradient); color: #fff;
  display: grid; place-items: center; font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.vm-card h3 { font-size: 1.5rem; margin-bottom: .75rem; }
.vm-card p { color: var(--muted); font-size: 1rem; line-height: 1.7; }

/* Projects — editorial card with always-visible caption */
.project {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
  display: block;
  transition: border-color .35s, transform .35s, box-shadow .35s;
}
.project:hover { border-color: var(--primary); transform: translateY(-6px); box-shadow: var(--shadow); }
.project-thumb {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  background: #0a0a0a;
}
.project-thumb img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  filter: grayscale(100%) brightness(.85);
  transform: scale(1.02);
  transition: filter .5s ease, transform .6s ease;
}
.project:hover .project-thumb img { filter: grayscale(0) brightness(1); transform: scale(1.06); }
.project-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, hsl(3 99% 51% / 0) 60%, hsl(3 99% 51% / .25));
  opacity: 0; transition: opacity .35s;
}
.project:hover .project-thumb::after { opacity: 1; }
.project-overlay {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.25rem; border-top: 1px solid var(--border);
  background: var(--card);
}
.project-overlay > div { min-width: 0; }
.project-overlay span {
  color: var(--primary); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; display: block;
}
.project-overlay h3 {
  color: var(--fg); font-size: 1.05rem; margin-top: .25rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.project-overlay::after {
  content: "\2192"; flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: hsl(3 99% 51% / .12); color: var(--primary);
  transition: background .3s, color .3s, transform .3s;
}
.project:hover .project-overlay::after { background: var(--gradient); color: #fff; transform: translateX(4px); }

/* Project detail */
.project-hero {
  width: 100%; aspect-ratio: 21/9;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); margin-bottom: 3rem;
}
.project-hero img { width: 100%; height: 100%; object-fit: cover; }
.project-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin: 2rem 0 3rem; }
.project-meta .meta-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
}
.project-meta .meta-item small { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; display: block; margin-bottom: .35rem; }
.project-meta .meta-item strong { font-size: 1.05rem; color: var(--fg); }
.project-detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; }
.project-detail-grid h3 { font-size: 1.5rem; margin: 1.75rem 0 .75rem; }
.project-detail-grid p { color: var(--muted); margin-bottom: 1rem; line-height: 1.75; }
.project-detail-grid ul.checks li {
  display: flex; gap: .65rem; align-items: flex-start;
  margin-bottom: .65rem; color: var(--muted);
}
.project-detail-grid ul.checks li i { color: var(--primary); margin-top: .35rem; }
.sidebar-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem; margin-bottom: 1.5rem;
}
.sidebar-card h4 { font-size: 1.1rem; margin-bottom: 1rem; }
.tech-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tech-tags span {
  padding: .35rem .85rem; border-radius: 999px;
  background: hsl(3 99% 51% / .12); color: var(--primary);
  font-size: .82rem; font-weight: 600;
}

/* Service detail */
.service-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.service-hero-grid .service-icon-lg {
  width: 96px; height: 96px; border-radius: 22px;
  background: var(--gradient); color: #fff;
  display: grid; place-items: center; font-size: 2.4rem;
  margin-bottom: 1.5rem; box-shadow: var(--shadow);
}
.service-hero-grid img { border-radius: var(--radius-lg); border: 1px solid var(--border); }
.service-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; margin-top: 1.5rem; }
.service-features li { display: flex; gap: .65rem; align-items: center; color: var(--fg); }
.service-features li i { color: var(--primary); }

/* Testimonials */
.testimonial {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.25rem;
  transition: border-color .3s;
  position: relative;
}
.testimonial:hover { border-color: hsl(3 99% 51% / .35); }
.testimonial .quote-icon {
  font-size: 2rem; color: hsl(3 99% 51% / .35);
  margin-bottom: 1rem;
}
.testimonial .stars { color: var(--primary); margin-bottom: 1rem; font-size: .9rem; letter-spacing: .15em; }
.testimonial p { color: var(--muted); font-style: italic; margin-bottom: 1.75rem; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.testimonial-author .avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--gradient); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 1.05rem; flex-shrink: 0;
  box-shadow: var(--shadow);
}
.testimonial-author strong { display: block; font-size: 1rem; color: var(--fg); }
.testimonial-author small { color: var(--muted); font-size: .85rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; }
.contact-list { display: grid; gap: 1.1rem; align-content: start; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item > div:last-child { flex: 1; min-width: 0; }
.contact-item .icon {
  width: 50px; height: 50px; border-radius: 12px; flex-shrink: 0;
  background: hsl(3 99% 51% / .12); color: var(--primary);
  display: grid; place-items: center; font-size: 1.15rem;
}
.contact-item h4 { font-size: 1.05rem; margin: 0 0 .25rem; }
.contact-item p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.55; }
.contact-item a { color: var(--muted); font-size: .98rem; line-height: 1.55; }
.contact-item a:hover { color: var(--primary); }

.form { display: grid; gap: 1rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { font-size: .85rem; color: var(--muted); display: block; margin-bottom: .35rem; }
.form input, .form textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border); color: var(--fg);
  font-family: inherit; font-size: .95rem; transition: border-color .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--primary); }
.form textarea { min-height: 150px; resize: vertical; }

/* CTA — full width band */
.cta-band {
  background: var(--gradient);
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, hsl(0 0% 100% / .12), transparent 60%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: #fff; margin-bottom: 1rem; font-weight: 700; }
.cta-band p { color: hsl(0 0% 100% / .9); margin-bottom: 2rem; font-size: 1.15rem; }
.cta-band .btn { background: #fff; color: var(--primary); }
.cta-band .btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px hsl(0 0% 0% / .45); }

/* Footer */
.site-footer { background: hsl(0 0% 6%); border-top: 1px solid var(--border); padding: 4.5rem 0 1.75rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.6fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-grid h5 { font-size: 1.05rem; margin-bottom: 1.35rem; }
.footer-grid ul li {
  margin-bottom: .75rem; color: var(--muted); font-size: .95rem;
  display: flex; align-items: flex-start; gap: .65rem;
}
.footer-grid .quick-links li::before,
.footer-grid .service-links li::before {
  content: "\f105";
  font-family: "Font Awesome 6 Free"; font-weight: 900;
  color: var(--primary); font-size: .85rem; line-height: 1.6;
}
.footer-grid ul li a { color: var(--muted); }
.footer-grid ul li a:hover { color: var(--primary); }
.footer-grid p { color: var(--muted); font-size: .95rem; margin-top: 1rem; }
.contact-info li i {
  width: 28px; height: 28px; border-radius: 8px;
  background: hsl(3 99% 51% / .12); color: var(--primary);
  display: grid; place-items: center; font-size: .8rem; flex-shrink: 0;
}
.socials { display: flex; gap: .75rem; margin-top: 1.25rem; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); color: var(--muted);
  display: grid; place-items: center; transition: background .2s, color .2s, transform .2s;
}
.socials a:hover { background: var(--gradient); color: #fff; transform: translateY(-2px); }
.copyright { border-top: 1px solid var(--border); padding-top: 1.5rem; text-align: center; color: var(--muted); font-size: .9rem; }

/* Responsive */
@media (max-width: 1024px) {
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .step-circle::after { display: none; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .project-meta { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .grid-3, .grid-2, .about-grid, .contact-grid, .footer-grid, .vm-grid, .why-grid,
  .service-hero-grid, .project-detail-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row, .service-features { grid-template-columns: 1fr; }
  .about-list { grid-template-columns: 1fr; }
  .site-header { overflow: visible; }
  .nav { position: relative; }
  .nav-links { display: none; position: absolute; top: calc(100% + .25rem); left: 1rem; right: 1rem;
    flex-direction: column; gap: 0; background: hsl(0 0% 6% / .98); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 18px 48px rgba(0,0,0,.42); padding: .75rem 1.1rem; z-index: 64; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .9rem 0; display: block; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .about-badge { right: 12px; bottom: -22px; padding: 1rem 1.25rem; }
  .about-badge strong { font-size: 1.75rem; }
  .page-header { background-attachment: scroll; }
}
@media (max-width: 540px) {
  .stats, .process-grid, .project-meta { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
  body { font-size: 16px; }
}


/* Home stats bar (full-width gradient) */
.stats-bar {
  background: var(--gradient);
  padding: 3.5rem 0;
  margin: 0;
  color: #fff;
}
.stats-bar .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stats-bar .stat {
  background: transparent; border: none; padding: 0;
  text-align: center;
}
.stats-bar .stat-value {
  font-size: 3rem; font-weight: 800; line-height: 1;
  color: #fff; background: none; -webkit-text-fill-color: #fff;
  margin-bottom: .5rem;
}
.stats-bar .stat-label {
  color: rgba(255,255,255,.92);
  font-size: .95rem; letter-spacing: .04em;
  text-transform: uppercase; font-weight: 500;
}
@media (max-width: 768px) {
  .stats-bar .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .stats-bar .stat-value { font-size: 2.2rem; }
}

/* Hero Slider */
/* Hero Slider — keeps original .hero styling, swaps backgrounds */
.hero.hero-slider{background:#0a0a14;overflow:hidden;min-height:100vh;}
.hero-slides{position:absolute;inset:0;}
.hero-slide{position:absolute;inset:0;display:flex;align-items:center;opacity:0;transition:opacity 1s ease;pointer-events:none;background:linear-gradient(90deg,hsl(0 0% 4% / .92),hsl(0 0% 4% / .65) 55%,hsl(0 0% 4% / .25)),var(--bg) center/cover no-repeat;}
.hero-slide.active{opacity:1;pointer-events:auto;}
.hero-slide .container{width:100%;position:relative;z-index:2;}
.hero-slide.active .hero-inner{animation:heroFade .9s ease both;}
@keyframes heroFade{from{opacity:0;transform:translateY(18px);}to{opacity:1;transform:none;}}
.slider-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:5;width:48px;height:48px;border-radius:50%;border:1px solid rgba(255,255,255,.4);background:rgba(0,0,0,.35);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s;}
.slider-arrow:hover{background:rgba(0,0,0,.7);}
.slider-arrow.prev{left:1.5rem;}
.slider-arrow.next{right:1.5rem;}
.slider-dots{position:absolute;bottom:1.5rem;left:50%;transform:translateX(-50%);z-index:5;display:flex;gap:.5rem;}
.slider-dots .dot{width:12px;height:12px;border-radius:50%;border:0;background:rgba(255,255,255,.4);cursor:pointer;padding:0;transition:all .2s;}
.slider-dots .dot.active{background:red;width:32px;border-radius:6px;}
@media (max-width:768px){.slider-arrow{display:none;}}

/* FAQ Skills - progress bars */
.faq-skills{display:flex;flex-direction:column;gap:1.4rem;margin-top:1.5rem;}
.faq-skills .faq-sat{margin-top:0;}
.faq-sat .lbl{font-size:.95rem;font-weight:500;margin-bottom:.5rem;}
.faq-bar{position:relative;width:100%;height:8px;background:rgba(255,255,255,.08);border-radius:4px;overflow:visible;}
.faq-bar .fill{height:100%;background:red;border-radius:4px;transition:width .6s ease;}
.faq-bar .pct{position:absolute;top:-22px;font-size:.8rem;font-weight:600;color:#fff;}


/* Service page FAQ accordion */
.faq-accordion { display: flex; flex-direction: column; gap: .75rem; margin-top: 1rem; }
.faq-accordion details { border: 1px solid var(--border, #eee); border-radius: 10px; background: var(--surface, #fff); padding: 0; transition: box-shadow .25s, border-color .25s; }
.faq-accordion details[open] { border-color: var(--primary); box-shadow: 0 8px 22px rgba(0,0,0,.06); }
.faq-accordion summary { list-style: none; cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; color: var(--fg); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion summary::after { content: "+"; color: var(--primary); font-size: 1.4rem; line-height: 1; transition: transform .25s; }
.faq-accordion details[open] summary::after { content: "−"; }
.faq-accordion .faq-a { padding: 0 1.25rem 1.1rem; color: var(--muted); line-height: 1.65; }
/* Rich content blocks on service pages */
.rich-content h3 { margin-top: 1.5rem; }
.rich-content p, .rich-content li { color: var(--muted); line-height: 1.7; }
.rich-content ul { padding-left: 1.25rem; }
.rich-content ul li { margin: .35rem 0; }
.rich-content .keyword { color: var(--fg); font-weight: 600; }

/* ===== Mobile fix: stack top-bar (socials), then logo+menu, then slider content ===== */
@media (max-width: 768px) {
  /* On home page, top-bar + header are absolutely positioned over the hero,
     which causes the logo/menu to overlap the slider text on small screens.
     Make them flow normally on mobile so the order becomes:
     social icons -> logo + menu -> slider content. */
  body.home .top-bar,
  body.home .site-header {
    position: static;
    background: hsl(0 0% 8% / .96);
    backdrop-filter: blur(12px);
  }
  body.home .top-bar {
    background: #0a0a0a;
    border-bottom: 1px solid var(--border);
  }
  /* Keep header above the absolutely-positioned hero slides so the
     mobile nav-toggle is clickable from the start (not only after scroll). */
  body.home .site-header {
    position: sticky; top: 0; z-index: 60;
    isolation: isolate;
  }
  body.home.scrolled .site-header { position: sticky; top: 0; z-index: 60; }

  /* Let the hero size itself naturally below the now-static header */
  body.home .hero.hero-slider { min-height: 640px; padding: 2rem 0 4rem; }

  /* Keep slider content top-aligned within the hero on mobile */
  .hero-slide { align-items: flex-start !important; padding-top: 1.25rem; }
  .hero-slide .container { padding-top: 1rem; }
  .hero-inner { text-align: center; margin: 0 auto; max-width: min(100%, 21rem); }
  .hero h1 { font-size: clamp(2.8rem, 10vw, 4rem); line-height: 1.04; margin: .75rem 0 1rem; }
  .hero p { font-size: 1rem; line-height: 1.55; max-width: 100%; margin: 0 0 1.75rem; color: hsl(0 0% 92% / .92); }
  .section-tag { font-size: .72rem; }
  .hero-actions { justify-content: center; }
  .hero-actions .btn { width: min(100%, 18rem); justify-content: center; padding: 1rem 1.2rem; font-size: 1rem; }
  .btn.btn-primary { color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.18); box-shadow: 0 14px 32px -12px hsl(3 99% 51% / .85); }
  .slider-dots { bottom: 1rem; }
}
