:root {
  --bg: #020617;
  --bg-alt: #020617;
  --bg-soft: #020617;
  --surface: #020617;
  --surface-elevated: #020617;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --accent-gold: #d4af37;
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.4);
  --danger: #ef4444;
}

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

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

body {
  line-height: 1.5;
}

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

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

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

.section {
  padding: 5rem 0;
}

.section-alt {
  padding: 5rem 0;
  background: radial-gradient(circle at top, #020617 0, #020617 35%, #020617 100%);
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.section-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: flex-start;
  gap: 3rem;
}

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

h1,
h2,
h3 {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.4rem, 3vw, 3rem);
}

h2 {
  font-size: clamp(1.7rem, 2.3vw, 2.1rem);
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.75);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.95);
}

.btn-outline {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-subtle);
  color: var(--text);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(148, 163, 184, 0.75);
}

.btn-small {
  padding: 0.45rem 1.1rem;
  font-size: 0.8rem;
}

.btn-full-width {
  width: 100%;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.75));
  border-bottom: 1px solid rgba(15, 23, 42, 0.95);
}

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

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

.logo-img {
  max-height: 40px;
  max-width: 200px;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-mark-fallback {
  display: none;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, #4b5563 0, #020617 50%, #020617 100%);
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e5e7eb;
}

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

.logo-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.logo-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.nav {
  display: flex;
  align-items: center;
}

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

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

.nav-links a::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -0.25rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.95);
  padding: 0.4rem;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
}

/* Hero */

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

.hero-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  /* Optional static/animated background image (supports GIF, PNG, WEBP, etc.).
     Replace 'map.webp' with your own image or GIF file. */
  background-image: url('map.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.12;
}

.hero-overlay video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: saturate(1.05) brightness(0.95);
}

/* Portrait: make hero full viewport so background video fills the screen */
@media (orientation: portrait) {
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
  }

  .hero-overlay,
  .hero-overlay video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .hero-overlay video {
    object-fit: contain;
    object-position: center center;
  }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0.5;
  background-image: linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.9),
      rgba(15, 23, 42, 0.98) 40%,
      rgba(15, 23, 42, 1) 100%
    ),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.22), transparent 55%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
  z-index: 1;
}

.hero-content h1 {
  margin-bottom: 1rem;
}

.hero-subtitle {
  max-width: 34rem;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.stat {
  min-width: 120px;
}

.stat-number {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  color: #e5e7eb;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-panel {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  width: 100%;
  max-width: 360px;
  padding: 1.75rem 1.5rem;
  border-radius: 1.4rem;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 55%),
    rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85);
}

.hero-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
}

.hero-card p {
  font-size: 0.9rem;
}

.hero-form {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

label {
  font-size: 0.78rem;
  font-weight: 500;
  color: #e5e7eb;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
  font-size: 0.87rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input::placeholder,
textarea::placeholder {
  color: #6b7280;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(37, 99, 235, 0.9);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.6);
  background: rgba(15, 23, 42, 1);
}

.form-note {
  margin-top: 0.2rem;
  font-size: 0.7rem;
  color: #9ca3af;
}

/* About */

.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.highlight-card {
  border-radius: 1rem;
  padding: 1.1rem 1rem;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.25), transparent 55%),
    rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.highlight-card h3 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.highlight-card p {
  font-size: 0.8rem;
}

/* Services */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-card {
  border-radius: 1.2rem;
  padding: 1.5rem 1.4rem;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.1), transparent 50%),
    rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.service-card h3 {
  font-size: 1rem;
}

.service-card p {
  font-size: 0.86rem;
}

.service-card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  list-style: disc;
}

.service-card li {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

/* Process */

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.step {
  border-radius: 1.1rem;
  padding: 1.2rem 1.1rem;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.32);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.75rem;
  color: #e5e7eb;
  margin-bottom: 0.6rem;
}

.step h3 {
  font-size: 0.92rem;
}

.step p {
  font-size: 0.8rem;
}

/* Projects */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.project-card {
  border-radius: 1.1rem;
  padding: 1.3rem 1.2rem;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.project-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.4);
  font-size: 0.7rem;
  color: #dbeafe;
  margin-bottom: 0.5rem;
}

.project-card h3 {
  font-size: 0.98rem;
}

.project-card p {
  font-size: 0.82rem;
}

/* Project images gallery */
.project-images-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.project-images-title {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.project-images-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.project-image-wrap {
  aspect-ratio: 4 / 3;
  border-radius: 0.6rem;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.project-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Contact */

.contact-section {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
}

.contact-details p {
  margin-bottom: 0.2rem;
  font-size: 0.85rem;
}

.contact-form {
  border-radius: 1.4rem;
  padding: 1.5rem 1.4rem;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer */

.site-footer {
  padding: 1.8rem 0 2.2rem;
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  background: radial-gradient(circle at top, #020617 0, #020617 45%, #020617 100%);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.78rem;
  color: #6b7280;
}

.footer-meta {
  max-width: 34rem;
}

.admin-link {
  font-size: 0.7rem;
  color: #4b5563;
  opacity: 0.7;
}
.admin-link:hover {
  opacity: 1;
  color: var(--text-muted);
}

/* Responsive */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.2fr);
  }

  .hero-panel {
    justify-content: flex-start;
  }

  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .services-grid,
  .process-steps,
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .logo-img {
    max-height: 32px;
    max-width: 150px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    inset-inline: 1.5rem;
    top: 3.6rem;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.9rem 0.95rem;
    background: rgba(15, 23, 42, 0.98);
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    transform-origin: top;
    transform: scaleY(0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

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

  .nav-links li {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }

  .nav-links .btn-small {
    width: auto;
    margin-left: auto;
  }

  .hero {
    padding-top: 4rem;
  }

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

  .hero-stats {
    gap: 1rem;
  }

  .services-grid,
  .process-steps,
  .projects-grid,
  .about-highlights {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-form {
    padding: 1.3rem 1.1rem;
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 1.1rem;
  }

  .logo-img {
    max-height: 28px;
    max-width: 120px;
  }

  h1 {
    font-size: 2.05rem;
  }

  .hero-card {
    max-width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
  }
}

/* Form toast */
.form-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 0.85rem 1.5rem;
  max-width: 90%;
  font-size: 0.9rem;
  color: var(--text);
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 0.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.form-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.form-toast.error {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(30, 27, 27, 0.98);
}
