/* Base */

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

:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --accent: #3B82F6;
  --accent-soft: rgba(59, 130, 246, 0.12);
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --card-bg: #0f172a;
  --border: #1f2933;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.6);
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #111827 0, #020617 50%, #020617 100%);
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Layout helpers */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: linear-gradient(135deg, #020617 0%, #020617 40%, #030712 100%);
}

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

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

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  max-width: 640px;
  margin: 0.25rem auto 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.small {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    to bottom,
    rgba(3, 7, 18, 0.92),
    rgba(3, 7, 18, 0.82),
    transparent
  );
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  height: 42px;
  width: 42px;
  border-radius: 999px;
  background: var(--card-bg);
  padding: 4px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Navigation */

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.93rem;
}

.nav a {
  position: relative;
  color: var(--text-muted);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.18s ease-out;
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #111827;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.45);
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 999px;
  transition: transform 0.18s ease, opacity 0.18s ease, width 0.18s ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  color: #f9fafb;
  background-image: linear-gradient(
      to bottom right,
      rgba(15, 23, 42, 0.9),
      rgba(15, 23, 42, 0.8)
    ),
    url("images/hero.jpg");
  background-position: center;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent),
    radial-gradient(circle at right, rgba(56, 189, 248, 0.04), transparent),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.45), rgba(3, 7, 18, 0.65));
}

.hero-content {
  position: relative;
  padding: 5.5rem 1.5rem 4rem;
  max-width: 720px;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: 2.4rem;
  line-height: 1.1;
  margin: 0 0 1rem;
}

.hero-sub {
  font-size: 1rem;
  color: #e5e7eb;
  max-width: 540px;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out,
    background 0.1s ease-out, color 0.1s ease-out;
}

.btn-primary {
  background: var(--accent);
  color: #111827;
  box-shadow: 0 18px 40px rgba(59, 130, 246, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 50px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.5);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.9);
}

.full-width {
  width: 100%;
}

/* Cards */

.card {
  background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.12), transparent),
    var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.9);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1.5rem;
}

.service-card h3,
.review-card h3 {
  margin-top: 0.1rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* Services */

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

/* Process */

.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.4rem;
  counter-reset: step;
}

.process-list li {
  position: relative;
  padding: 1.2rem 1.25rem 1.2rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.2), transparent),
    #020617;
}

.process-list h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.process-list p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* Projects */

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

.project-card {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(31, 41, 55, 0.9);
  box-shadow: var(--shadow-soft);
}

.project-image {
  height: 220px;
  background-size: cover;
  background-position: center;
}

.project-placeholder {
  background-image: linear-gradient(
      120deg,
      rgba(15, 23, 42, 0.9),
      rgba(30, 64, 175, 0.9)
    ),
    url("https://images.unsplash.com/photo-1505691723518-36a5ac3be353?auto=format&fit=crop&w=1200&q=80");
}

.project-card figcaption {
  padding: 0.9rem 1rem 1.1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Reviews */

.reviews-layout {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.9fr);
}

.reviews-widget h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.reviews-grid {
  display: grid;
  gap: 1.2rem;
}

.review-card header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.35rem;
}

.review-name {
  font-weight: 600;
}

.review-stars {
  color: var(--accent);
  font-size: 0.85rem;
}

/* About */

.about-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
}

.about-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.about-highlight ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.93rem;
}

.about-highlight li::before {
  content: "•";
  color: var(--accent);
  margin-right: 0.45rem;
}

/* Contact */

.contact-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.3fr);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0.75rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.95rem;
}

.contact-list a {
  color: var(--accent);
}

.contact-form {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: radial-gradient(circle at top left, var(--accent-soft), transparent),
    #020617;
  padding: 1.5rem 1.5rem 1.6rem;
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.9rem;
}

label {
  font-size: 0.86rem;
  color: var(--text-muted);
}

input,
select,
textarea {
  border-radius: 10px;
  border: 1px solid rgba(51, 65, 85, 0.9);
  background: rgba(15, 23, 42, 0.9);
  padding: 0.7rem 0.75rem;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4);
}

textarea {
  resize: vertical;
}

.form-note {
  margin-top: 0.4rem;
}

/* Footer */

.site-footer {
  padding: 1.8rem 0 2.4rem;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  background: #020617;
}

.footer-inner {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive */

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

  .about-layout,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: 75vh;
  }

  .hero h1 {
    font-size: 2.1rem;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding-inline: 1.1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    inset-inline: 0;
    top: 60px;
    padding: 0.9rem 1.1rem 1.1rem;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(3, 7, 18, 0.98);
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease-out, transform 0.16s ease-out;
  }

  .nav-open .nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-top: 0.4rem;
  }

  .hero-content {
    padding-top: 5rem;
  }

  .hero-meta {
    gap: 0.8rem;
    font-size: 0.86rem;
  }

  .section {
    padding: 3.5rem 0;
  }
}

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

  .hero-sub {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Gallery */

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

.gallery-card {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(31, 41, 55, 0.9);
  box-shadow: var(--shadow-soft);
}

.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery-card figcaption {
  padding: 0.8rem 1rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.lightbox.open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: min(900px, 92vw);
  max-height: 88vh;
  background: #020617;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(31, 41, 55, 0.9);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: cover;
}

.lightbox-content figcaption {
  padding: 0.75rem 1rem 0.9rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: #020617;
}

.lightbox-close {
  position: absolute;
  top: 0.4rem;
  right: 0.6rem;
  background: rgba(15, 23, 42, 0.85);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Chat widget */

#chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  max-height: 480px;
  background: #0f172a;
  color: #f9fafb;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  overflow: hidden;
  z-index: 1200;
}

#chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  background: #020617;
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
  cursor: pointer;
}

#chat-toggle {
  font-size: 16px;
  font-weight: 700;
}

/* normal (expanded) */

#chat-messages {
  padding: 10px;
  flex: 1;
  overflow-y: auto;
  font-size: 14px;
}

.chat-msg {
  margin-bottom: 8px;
}

.chat-msg.user {
  text-align: right;
}

.chat-msg.bot {
  text-align: left;
}

#chat-form {
  display: flex;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
}

#chat-input {
  flex: 1;
  border: none;
  padding: 8px;
  font-size: 14px;
  background: #020617;
  color: #f9fafb;
}

#chat-input::placeholder {
  color: #64748b;
}

#chat-input:focus {
  outline: none;
}

#chat-form button {
  border: none;
  padding: 0 12px;
  background: #3b82f6;
  color: white;
  font-size: 14px;
  cursor: pointer;
}

/* collapsed (minimized) state */

#chat-widget.collapsed {
  height: auto;
}

#chat-widget.collapsed #chat-messages,
#chat-widget.collapsed #chat-form {
  display: none;
}

