/* RESET */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* THEME VARIABLES */

:root {
  --bg: #05060a;
  --bg-alt: #0b0d15;
  --text: #f8f9ff;
  --text-muted: #b0b4c8;
  --border-subtle: #2a2f40;
  --accent: #a46bff;
  --accent-soft: rgba(164, 107, 255, 0.16);
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.4);
  --max-width: 1080px;
  --nav-height: 68px;
  --transition-fast: 0.18s ease-out;
}

/* DARK BASE */

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #15162b 0, #05060a 55%);
  color: var(--text);
  line-height: 1.6;
}

/* LIGHT THEME: high contrast, simple */

body.theme-light {
  --bg: #f3f4ff;
  --bg-alt: #ffffff;
  --text: #111322;
  --text-muted: #4f5670;
  background: var(--bg);
  color: var(--text);
}

body.theme-light .section {
  background: transparent;
}

body.theme-light .section-alt {
  background: #ffffff;
}

body.theme-light .card {
  background: #ffffff;
  border-color: #dde0f2;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

body.theme-light .site-header {
  background: #ffffff;
  border-bottom-color: #dde0f2;
}

body.theme-light .hero {
  background: #f3f4ff;
}

body.theme-dark {
  background: radial-gradient(circle at top left, #15162b 0, #05060a 55%);
  color: var(--text);
}

/* LAYOUT */

.container {
  width: 100%;
  max-width: var(--max-width);
  padding: 0 1.5rem;
  margin: 0 auto;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  padding: 4rem 0;
  background: radial-gradient(circle at top left, #101226 0, #05060a 60%);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header.align-left {
  text-align: left;
}

.section-header h2 {
  margin: 0 0 0.5rem;
  font-size: 1.7rem;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

/* HEADER / NAV */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 6, 10, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(63, 68, 94, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 1rem;
}

.logo {
  font-weight: 650;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast),
    transform var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text);
  border-color: rgba(164, 107, 255, 0.6);
  transform: translateY(-1px);
}

/* NAV TOGGLE (MOBILE) */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(98, 106, 137, 0.6);
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle span {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7ff;
  margin-inline: auto;
  transition: transform 0.2s ease, opacity 0.2s ease, width 0.2s ease;
}

.nav-toggle-open span:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
  width: 14px;
}
.nav-toggle-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle-open span:nth-child(3) {
  transform: translateY(-3px) rotate(-45deg);
  width: 14px;
}

/* THEME TOGGLE */

.theme-toggle {
  border-radius: 999px;
  border: 1px solid rgba(88, 93, 132, 0.8);
  background: radial-gradient(circle at top left, #26294f 0, #15172b 55%);
  color: #e7e8ff;
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  white-space: nowrap;
}

body.theme-light .theme-toggle {
  background: #ffffff;
  color: #22253a;
}

/* HERO */

.hero {
  padding: 4rem 0 4.5rem;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-text {
  max-width: 620px;
}

.hero h1 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero-sub {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(11, 196, 120, 0.08);
  border: 1px solid rgba(11, 196, 120, 0.4);
  color: #b2f5d6;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

body.theme-light .pill {
  color: #116a3d;
  background: rgba(17, 122, 74, 0.08);
  border-color: rgba(17, 122, 74, 0.4);
}

.hero-fit {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.hero-fit li + li {
  margin-top: 0.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* BUTTONS */

.btn-primary,
.btn-ghost,
.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #b076ff, #8250ff);
  color: white;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(120, 126, 164, 0.8);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.02);
}

.btn-link {
  padding: 0;
  border-radius: 0;
  border-bottom: 1px solid transparent;
  color: var(--accent);
  background: none;
}

.btn-link:hover {
  border-color: var(--accent);
}

/* CARDS + GRIDS */

.card {
  background: radial-gradient(circle at top left, #181a33 0, #05060a 70%);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  border: 1px solid rgba(62, 70, 118, 0.9);
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin-top: 0;
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.card-list li + li {
  margin-top: 0.25rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.examples-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.about-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: flex-start;
  gap: 1.75rem;
}

.team-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* ABOUT / TEAM */

.process-list {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.process-list li + li {
  margin-top: 0.45rem;
}

.team {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.team-card {
  text-decoration: none;
  color: inherit;
  padding-bottom: 1.3rem;
}

.team-card h4 {
  margin: 0 0 0.3rem;
}

.team-card p {
  margin: 0 0 0.7rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.text-link {
  font-size: 0.85rem;
  color: var(--accent);
}

/* PRICING (used on separate page too) */

.pricing-layout {
  display: grid;
  gap: 1.5rem;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  font-size: 0.92rem;
}

.pricing-list li + li {
  margin-top: 0.9rem;
}

.price-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #e3d5ff;
  font-size: 0.82rem;
  margin-top: 0.3rem;
}

body.theme-light .price-tag {
  color: #4a3382;
}

/* CONTACT */

.contact-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  align-items: center;
}

.contact-visual {
  display: flex;
  justify-content: center;
}

.contact-image-placeholder {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(120, 127, 171, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-content {
  width: 100%;
}

.contact-details {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.contact-details p {
  margin: 0 0 0.25rem;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  gap: 0.25rem;
}

.contact-form input,
.contact-form textarea {
  border-radius: 10px;
  border: 1px solid rgba(98, 108, 159, 0.9);
  padding: 0.55rem 0.7rem;
  background: rgba(3, 5, 18, 0.9);
  color: var(--text);
  font: inherit;
}

body.theme-light .contact-form input,
body.theme-light .contact-form textarea {
  background: #f5f5fb;
  border-color: #d0d3ea;
  color: #111322;
}

/* FOOTER */

.site-footer {
  border-top: 1px solid rgba(57, 64, 100, 0.9);
  padding: 1.5rem 0 1.8rem;
  background: #05060a;
}

body.theme-light .site-footer {
  background: #f4f5ff;
  border-top-color: #dde0f2;
}

.footer-inner {
  display: flex;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .contact-layout,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3.5rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    inset-inline: 0;
    top: var(--nav-height);
    flex-direction: column;
    padding: 0.75rem 1.5rem 1rem;
    background: rgba(5, 6, 10, 0.98);
    border-bottom: 1px solid rgba(63, 68, 94, 0.7);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: max-height 0.22s ease, opacity 0.18s ease,
      transform 0.18s ease;
  }

  .nav-links.nav-open {
    max-height: 260px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.4rem 0;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .contact-image-placeholder {
    max-width: 260px;
  }
}
/* Card images – keep them neat and consistent */
.card-img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 0.75rem;
}

/* Link-style button inside cards */
.card-link {
  margin-top: 0.75rem;
  background: transparent;
  border: none;
  color: #a5b4fc;
  font: inherit;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

/* Modal base */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
}

.modal.modal-open {
  display: flex;
}

/* Backdrop */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

/* Dialog */
.modal-dialog {
  position: relative;
  z-index: 81;
  max-width: 960px;
  width: 100%;
  margin: 1.5rem;
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: #050816;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .modal-dialog {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
  }
}

/* Gallery */
.modal-gallery img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 0.75rem;
}

/* Body */
.modal-body h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.modal-meta {
  opacity: 0.8;
  margin-bottom: 0.75rem;
}

/* Close button */
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(15, 23, 42, 0.85);
  border: none;
  color: #e5e7eb;
  border-radius: 999px;
  width: 2rem;
  height: 2rem;
  font-size: 1.2rem;
  line-height: 2rem;
  text-align: center;
  cursor: pointer;
}

/* Prevent scroll behind modal */
.no-scroll {
  overflow: hidden;
}