/* =============================================
   Kings Innovations — Modern Theme (Style A)
   Vibrant gradient + glassmorphism
============================================= */
:root {
  --brand: #7422ca;
  --brand-2: #a855f7;
  --brand-light: #c084fc;
  --accent-pink: #ff6bcb;
  --accent-cyan: #3ee7e0;
  --bg: #0d0620;
  --bg-2: #150a30;
  --text: #ffffff;
  --text-muted: #c3bcd6;
  --text-dim: #a99cc4;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Quicksand", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 { font-family: "Sora", sans-serif; }

img { max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

::selection { background: var(--brand); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 50px;
  font-weight: 700; font-family: "Sora", sans-serif; font-size: 15px;
  border: none; cursor: pointer; transition: 0.3s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), #c026d3);
  color: #fff;
  box-shadow: 0 15px 40px -10px rgba(124, 58, 237, 0.7);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px -8px rgba(124, 58, 237, 0.85);
  color: #fff;
}
.btn-ghost {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.btn-sm { padding: 10px 22px; font-size: 13px; }

/* ---------- Blobs ---------- */
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: 0.5;
  animation: float 9s ease-in-out infinite;
  pointer-events: none; z-index: 0;
}
.blob-purple { background: var(--brand); }
.blob-pink { background: var(--accent-pink); animation-delay: 1.5s; }
.blob-cyan { background: var(--accent-cyan); animation-delay: 3s; }
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-35px) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
}

/* ---------- Top bar ---------- */
.topbar {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13px; color: var(--text-dim);
  position: relative; z-index: 50;
}
.topbar .container {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 10px 24px; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap;
}
.topbar a { color: var(--text-dim); transition: 0.2s; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #fff; }
.topbar i { color: var(--brand-light); }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 6, 32, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.navbar .brand { display: flex; align-items: center; gap: 12px; }
.navbar .brand img { height: 52px; width: auto; }
.nav-links { display: flex; gap: 30px; align-items: center; }
@media (max-width: 900px) and (min-width: 641px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 13px; }
}
.nav-links a {
  color: var(--text-muted); font-size: 14px; font-weight: 600;
  font-family: "Sora", sans-serif; position: relative; padding: 6px 0; transition: 0.2s;
  white-space: nowrap;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-light), var(--accent-pink));
  transition: width 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:not(.btn):hover::after, .nav-links a:not(.btn).active::after { width: 100%; }
.nav-toggle {
  display: none; background: none; border: none; color: #fff;
  font-size: 22px; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 20% 20%, #2a1150 0%, var(--bg) 55%);
  padding: 90px 0 110px;
}
.hero .container { position: relative; z-index: 5; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 60px; align-items: center;
}
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #e9d5ff; padding: 8px 18px; border-radius: 50px;
  font-size: 13px; font-weight: 600; margin-bottom: 26px;
}
.badge-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 10px #4ade80;
}
.hero h1 {
  font-size: 54px; line-height: 1.1; font-weight: 800; margin-bottom: 22px;
}
.grad-text {
  background: linear-gradient(90deg, var(--brand-light), #ff9dee, var(--accent-cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% auto; animation: shine 4s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }
.hero p.lead {
  color: var(--text-muted); font-size: 17px; max-width: 520px;
  margin-bottom: 34px; line-height: 1.7;
}
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 50px; margin-top: 56px; flex-wrap: wrap; }
.hero-stats h3 { font-size: 30px; }
.hero-stats p { color: var(--text-dim); font-size: 13px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; text-align: center;
  background: radial-gradient(circle at 50% 0%, #2a1150 0%, var(--bg) 60%);
  padding: 90px 0;
}
.page-hero .container { position: relative; z-index: 5; }
.page-hero h1 { font-size: 46px; font-weight: 800; margin-bottom: 16px; }
.page-hero p { color: var(--text-muted); max-width: 620px; margin: 0 auto; line-height: 1.7; }
.breadcrumb {
  display: inline-flex; gap: 10px; align-items: center;
  font-size: 13px; color: var(--text-dim); margin-bottom: 22px;
  background: var(--glass); border: 1px solid var(--glass-border);
  padding: 7px 18px; border-radius: 50px;
}
.breadcrumb a { color: var(--brand-light); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section-tag {
  color: var(--brand-light); font-weight: 700; font-size: 13px;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 14px; display: block; font-family: "Sora", sans-serif;
}
.section h2.section-title { font-size: 38px; font-weight: 800; margin-bottom: 16px; }
.section p.section-lead { color: var(--text-dim); max-width: 560px; margin-bottom: 54px; line-height: 1.7; }
.section-head-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 30px; flex-wrap: wrap; margin-bottom: 54px;
}
.section-head-row p { color: var(--text-dim); max-width: 460px; line-height: 1.7; }

/* ---------- Glass cards ---------- */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: 24px; padding: 26px;
  box-shadow: 0 25px 60px -20px rgba(0, 0, 0, 0.6);
}

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 22px; padding: 30px 24px;
  transition: 0.4s; position: relative; overflow: hidden;
}
.feature-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--brand), #c026d3);
  opacity: 0; transition: 0.4s; z-index: 0;
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover { transform: translateY(-10px); border-color: transparent; }
.feature-card > * { position: relative; z-index: 1; }
.feature-card .ic {
  width: 52px; height: 52px; border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), #c026d3);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; margin-bottom: 20px; transition: 0.3s;
}
.feature-card:hover .ic { background: rgba(255, 255, 255, 0.2); }
.feature-card h3 { font-size: 17px; margin-bottom: 10px; }
.feature-card p { color: var(--text-dim); font-size: 13.5px; line-height: 1.65; }
.feature-card:hover p, .feature-card:hover h3 { color: #fff; }

/* ---------- Checklist ---------- */
.check-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 0; font-weight: 600; color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07); font-size: 15px;
}
.check-list li:last-child { border-bottom: none; }
.check-list li i { color: var(--brand-light); margin-top: 3px; }

/* ---------- Process / steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step-card {
  text-align: center; padding: 36px 22px; border-radius: 22px;
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  position: relative; transition: 0.35s;
}
.step-card:hover { transform: translateY(-8px); border-color: rgba(192, 132, 252, 0.5); }
.step-card .num {
  position: absolute; top: 18px; right: 22px;
  font-family: "Sora", sans-serif; font-weight: 800; font-size: 14px;
  color: rgba(255, 255, 255, 0.25);
}
.step-card .ic {
  width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #c026d3);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 30px;
  box-shadow: 0 15px 35px -10px rgba(124, 58, 237, 0.7);
}
.step-card h3 { font-size: 16px; line-height: 1.45; }

/* ---------- Portfolio ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.portfolio-item {
  position: relative; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--glass-border); cursor: pointer;
  aspect-ratio: 4 / 3; background: var(--bg-2);
}
.portfolio-item img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  transition: transform 0.6s ease; display: block;
}
.portfolio-item:hover img { transform: scale(1.06); }
.portfolio-item .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30, 8, 61, 0.9), transparent 60%);
  opacity: 0; transition: 0.4s;
  display: flex; align-items: flex-end; padding: 22px;
}
.portfolio-item:hover .overlay { opacity: 1; }
.portfolio-item .overlay span {
  color: #fff; font-family: "Sora", sans-serif; font-weight: 700; font-size: 15px;
  display: inline-flex; align-items: center; gap: 10px;
}

/* ---------- Portfolio filters ---------- */
.filter-tabs { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-tab {
  padding: 11px 24px; border-radius: 50px; cursor: pointer;
  font-family: "Sora", sans-serif; font-size: 13.5px; font-weight: 600;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text-muted); transition: 0.3s;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.filter-tab:hover { color: #fff; border-color: rgba(192, 132, 252, 0.5); }
.filter-tab.active {
  background: linear-gradient(135deg, var(--brand), #c026d3);
  color: #fff; border-color: transparent;
  box-shadow: 0 10px 30px -10px rgba(124, 58, 237, 0.7);
}
.cat-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 5px 14px; border-radius: 50px;
  font-family: "Sora", sans-serif; font-size: 11px; font-weight: 700;
  background: rgba(13, 6, 32, 0.75); border: 1px solid var(--glass-border);
  color: var(--brand-light);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
}
.portfolio-item .overlay span { justify-content: space-between; width: 100%; }
.portfolio-item .overlay .proj-name small {
  font-family: "Quicksand", sans-serif; font-weight: 600;
  color: var(--text-muted); font-size: 12px;
}

/* ---------- Lightbox ---------- */
.lb-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(5, 2, 15, 0.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.lb-backdrop.open { display: flex; animation: lbfade 0.25s ease; }
@keyframes lbfade { from { opacity: 0; } to { opacity: 1; } }
.lb-backdrop img {
  max-width: 90vw; max-height: 85vh; border-radius: 14px;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9);
}
.lb-close {
  position: absolute; top: 24px; right: 30px;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: #fff; width: 44px; height: 44px; border-radius: 50%;
  font-size: 18px; cursor: pointer;
}

/* ---------- CTA band ---------- */
.cta-band {
  margin: 0 24px 100px; border-radius: 32px;
  padding: 60px 40px; text-align: center;
  background: linear-gradient(120deg, #2a0f52, #4c1d95 50%, #1e0a3c);
  position: relative; overflow: hidden;
}
.cta-band > *:not(.blob) { position: relative; z-index: 2; }
.cta-band h2 { font-size: 34px; margin-bottom: 18px; }
.cta-band p { color: var(--text-muted); margin-bottom: 34px; }
@media (min-width: 1240px) {
  .cta-band { max-width: 1180px; margin-left: auto; margin-right: auto; }
}

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.input, textarea.input {
  width: 100%; padding: 15px 22px; border-radius: 50px;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: #fff; font-family: "Quicksand", sans-serif; font-size: 14.5px;
  outline: none; transition: 0.25s;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
textarea.input { border-radius: 22px; min-height: 150px; resize: vertical; }
.input::placeholder { color: var(--text-dim); }
.input:focus {
  border-color: var(--brand-light);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.15);
}
.form-note { font-size: 12.5px; color: var(--text-dim); margin-top: 14px; }
.consent-row {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: var(--text-muted); cursor: pointer; line-height: 1.6;
}
.consent-row input { margin-top: 4px; accent-color: var(--brand); cursor: pointer; }
.consent-row a { color: var(--brand-light); text-decoration: underline; }
.alert-success {
  background: rgba(74, 222, 128, 0.1); border: 1px solid rgba(74, 222, 128, 0.35);
  color: #86efac; padding: 14px 22px; border-radius: 16px;
  font-weight: 600; margin-bottom: 22px; font-size: 14.5px;
}
.alert-error {
  background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5; padding: 14px 22px; border-radius: 16px;
  font-weight: 600; margin-bottom: 22px; font-size: 14.5px;
}
/* honeypot — hidden from humans */
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Contact info ---------- */
.contact-info-card {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px; border-radius: 20px; margin-bottom: 18px;
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: 0.3s;
}
.contact-info-card:hover { border-color: rgba(192, 132, 252, 0.5); transform: translateX(6px); }
.contact-info-card .ic {
  flex-shrink: 0; width: 50px; height: 50px; border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), #c026d3);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
}
.contact-info-card h3 { font-size: 16px; margin-bottom: 6px; }
.contact-info-card p, .contact-info-card a { color: var(--text-dim); font-size: 14px; line-height: 1.6; }
.contact-info-card a:hover { color: var(--brand-light); }

/* ---------- Two-column about ---------- */
.split-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.split-grid .img-wrap {
  border-radius: 26px; overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.7);
}
.split-grid .img-wrap img { display: block; width: 100%; }

/* ---------- Legal pages ---------- */
.legal-content { max-width: 780px; }
.legal-content h2 {
  font-size: 22px; margin: 42px 0 14px; color: #fff;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--text-muted); line-height: 1.8; margin-bottom: 14px; font-size: 15px; }
.legal-content ul { margin: 0 0 14px 22px; list-style: disc; }
.legal-content ul li { color: var(--text-muted); line-height: 1.8; font-size: 15px; margin-bottom: 6px; }
.legal-content a { color: var(--brand-light); }

/* ---------- Footer ---------- */
.footer {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 70px 0 0; position: relative; overflow: hidden;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px; position: relative; z-index: 2;
}
.footer h4 { font-size: 15px; margin-bottom: 20px; color: #fff; }
.footer .brand-col img { height: 54px; margin-bottom: 18px; }
.footer .brand-col p { color: var(--text-dim); font-size: 13.5px; line-height: 1.7; max-width: 280px; }
.footer ul li { margin-bottom: 12px; }
.footer ul a, .footer .contact-line {
  color: var(--text-dim); font-size: 13.5px; transition: 0.2s;
  display: inline-flex; gap: 10px; align-items: flex-start; line-height: 1.6;
}
.footer ul a:hover { color: var(--brand-light); }
.footer ul a i, .footer .contact-line i { color: var(--brand-light); margin-top: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 50px; padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
  font-size: 13px; color: var(--text-dim);
  position: relative; z-index: 2;
}
.socials { display: flex; gap: 12px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--glass); border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 15px; transition: 0.3s;
}
.socials a:hover {
  background: linear-gradient(135deg, var(--brand), #c026d3);
  color: #fff; border-color: transparent; transform: translateY(-3px);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero-grid, .split-grid { grid-template-columns: 1fr; gap: 40px; }
  .card-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 40px; }
  .page-hero h1 { font-size: 36px; }
}
@media (max-width: 640px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 10px 24px 20px;
    background: rgba(13, 6, 32, 0.97);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; width: 100%; }
  .nav-toggle { display: block; }
  .card-grid, .steps-grid, .form-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .hero { padding: 60px 0 80px; }
  .hero h1 { font-size: 32px; }
  .hero-stats { gap: 30px; }
  .section { padding: 70px 0; }
  .section h2.section-title { font-size: 28px; }
  .cta-band { padding: 50px 26px; margin: 0 16px 70px; }
  .cta-band h2 { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .container { justify-content: center; font-size: 12px; }
}
