:root {
  --bg: #080808;
  --surface: #141414;
  --surface-soft: #101010;
  --text: #fafafa;
  --muted: #9a9a9a;
  --border: rgba(255, 255, 255, 0.1);
  --primary: #d83c28;
  --primary-dark: #b92f20;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  --navbar-bg: rgba(8, 8, 8, 0.72);
  --navbar-mobile-bg: rgba(8, 8, 8, 0.96);
  --navbar-icon-filter: invert(1);
  --nav-muted: rgba(255, 255, 255, 0.65);
  --body-muted: rgba(255, 255, 255, 0.72);
  --section-muted: rgba(255, 255, 255, 0.68);
  --input-bg: #0d0d0d;
  --input-border: rgba(255, 255, 255, 0.14);
  --placeholder: rgba(255, 255, 255, 0.35);
  --modal-bg: #050505;
  --theme-toggle-bg: rgba(255, 255, 255, 0.08);
  --theme-toggle-color: #fafafa;
  --theme-toggle-border: rgba(255, 255, 255, 0.16);
}

html[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f6f6f6;
  --surface-soft: #f1f1f1;
  --text: #111111;
  --muted: #5f5f5f;
  --border: rgba(0, 0, 0, 0.12);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.12);
  --navbar-bg: rgba(255, 255, 255, 0.86);
  --navbar-mobile-bg: rgba(255, 255, 255, 0.98);
  --navbar-icon-filter: none;
  --nav-muted: rgba(17, 17, 17, 0.68);
  --body-muted: rgba(17, 17, 17, 0.72);
  --section-muted: rgba(17, 17, 17, 0.68);
  --input-bg: #ffffff;
  --input-border: rgba(0, 0, 0, 0.16);
  --placeholder: rgba(0, 0, 0, 0.38);
  --modal-bg: #111111;
  --theme-toggle-bg: rgba(0, 0, 0, 0.05);
  --theme-toggle-color: #111111;
  --theme-toggle-border: rgba(0, 0, 0, 0.14);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  transition: background-color 180ms ease, color 180ms ease;
}

a {
  color: inherit;
}

.fw-black {
  font-weight: 900;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.75);
}

.text-muted-bright {
  color: var(--body-muted);
}

.btn {
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0;
}

.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-dark);
  --bs-btn-hover-border-color: var(--primary-dark);
  --bs-btn-active-bg: var(--primary-dark);
  --bs-btn-active-border-color: var(--primary-dark);
}

.site-navbar {
  background: var(--navbar-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.brand-logo {
  width: auto;
  height: 58px;
  object-fit: contain;
}

.navbar-toggler {
  border-color: var(--border);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.15rem rgba(216, 60, 40, 0.35);
}

.navbar-toggler-icon {
  filter: var(--navbar-icon-filter);
}

.navbar .nav-link {
  color: var(--nav-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--primary);
}

.theme-toggle {
  align-items: center;
  background: var(--theme-toggle-bg);
  border: 1px solid var(--theme-toggle-border);
  border-radius: 999px;
  color: var(--theme-toggle-color);
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
}

.hero-section {
  color: #fff;
  min-height: 100vh;
  padding: 130px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg,
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img,
.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.18));
}

.hero-section h1 {
  line-height: 1.02;
}

.hero-section h1 span,
.section-title span,
.section-heading h2 span {
  color: var(--primary);
}

.section-pad {
  padding: 88px 0;
}

.border-section {
  border-top: 1px solid var(--border);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-heading.text-center {
  margin-left: auto;
  margin-right: auto;
}

.section-heading h2,
.section-title {
  font-size: clamp(2.15rem, 4vw, 4.2rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: none;
}

.section-heading p {
  color: var(--section-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 18px 0 0;
}

.service-card,
.detail-card,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.service-card {
  padding: 30px;
}

.service-card:hover,
.detail-card:hover {
  border-color: rgba(216, 60, 40, 0.74);
  transform: translateY(-6px);
}

.service-card i,
.detail-card > i,
.contact-card > i {
  color: var(--primary);
  display: inline-block;
  font-size: 2rem;
  margin-bottom: 18px;
}

.service-card h3,
.detail-card h3 {
  font-size: 1.12rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.service-card p,
.detail-card p,
.detail-card li {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.detail-card {
  height: 100%;
  padding: 32px;
}

.detail-card ul {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.detail-card li {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-top: 9px;
}

.detail-card li::before {
  background: var(--primary);
  border-radius: 999px;
  content: "";
  flex: 0 0 6px;
  height: 6px;
  width: 6px;
}

.rounded-media,
.project-image-wrap {
  border-radius: 12px;
  overflow: hidden;
}

.about-image {
  aspect-ratio: 16 / 11;
  box-shadow: var(--shadow);
  object-fit: cover;
  width: 100%;
}

.stat-number {
  color: var(--primary);
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1;
}

.stat-number + span {
  color: var(--muted);
  display: block;
  font-size: 0.84rem;
  margin-top: 8px;
}

.project-card,
.photo-card {
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
  display: block;
  padding: 0;
  position: relative;
  text-align: left;
  width: 100%;
}

.media-frame {
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background: #000;
  display: block;
  overflow: hidden;
  position: relative;
}

.media-frame.video-ratio {
  aspect-ratio: 16 / 9;
}

.media-frame img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms ease;
  width: 100%;
}

.project-card:hover img,
.photo-card:hover img {
  transform: scale(1.055);
}

.media-frame::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.34) 72%, rgba(0, 0, 0, 0.9) 100%);
  content: "";
  inset: 0;
  position: absolute;
}

.media-caption {
  bottom: 0;
  color: #fff;
  left: 0;
  padding: 24px;
  position: absolute;
  right: 0;
  z-index: 2;
}

.media-caption h3 {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}

.category-label,
.media-category {
  color: var(--primary);
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.play-badge {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  color: #000;
  display: flex;
  height: 58px;
  justify-content: center;
  left: 50%;
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 220ms ease;
  width: 58px;
  z-index: 3;
}

.project-card:hover .play-badge {
  opacity: 1;
}

.featured-slider {
  overflow: hidden;
  padding: 2px 0;
}

.featured-track {
  display: flex;
  gap: 24px;
  transform: translateX(0);
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.featured-slide {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
}

.circle-btn {
  align-items: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  display: inline-flex;
  height: 44px;
  justify-content: center;
  transition: border-color 200ms ease, color 200ms ease, opacity 200ms ease;
  width: 44px;
}

.circle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.circle-btn:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.clients-section {
  overflow: hidden;
  padding: 78px 0;
}

.logo-marquee {
  overflow: hidden;
  position: relative;
}

.logo-marquee::before,
.logo-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(18vw, 180px);
  z-index: 2;
}

.logo-marquee::before {
  background: linear-gradient(90deg, var(--bg), transparent);
  left: 0;
}

.logo-marquee::after {
  background: linear-gradient(270deg, var(--bg), transparent);
  right: 0;
}

.logo-track {
  animation: marquee 34s linear infinite;
  display: flex;
  gap: 34px;
  width: max-content;
}

.logo-track img {
  background: transparent;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
  height: 70px;
  object-fit: contain;
  opacity: 0.96;
  width: 180px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.portfolio-tabs {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  display: inline-flex;
  padding: 4px;
}

.portfolio-tabs .nav-link,
.filter-btn {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.portfolio-tabs .nav-link.active,
.filter-btn.active {
  background: var(--primary);
  color: #fff;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 9px 18px;
}

.masonry-gallery {
  column-count: 3;
  column-gap: 18px;
}

.photo-card {
  break-inside: avoid;
  margin-bottom: 18px;
}

.photo-card .media-frame {
  aspect-ratio: auto;
}

.photo-card img {
  border-radius: 10px;
  width: 100%;
}

.project-image-wrap {
  position: relative;
}

.project-image-wrap img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.status-badge,
.tag {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 800;
}

.status-badge {
  align-items: center;
  background: var(--primary);
  gap: 6px;
  left: 18px;
  padding: 8px 12px;
  position: absolute;
  text-transform: uppercase;
  top: 18px;
}

.tag {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 7px 12px;
}

.cta-section {
  color: #fff;
  min-height: 430px;
  overflow: hidden;
  position: relative;
}

.cta-section .text-muted-bright {
  color: rgba(255, 255, 255, 0.72);
}

.cta-bg::after {
  background: rgba(0, 0, 0, 0.72);
  content: "";
  inset: 0;
  position: absolute;
}

.contact-form,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.contact-form {
  padding: 32px;
}

.form-label {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.form-control,
.form-select {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text);
  min-height: 48px;
}

.form-control:focus,
.form-select:focus {
  background: var(--input-bg);
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(216, 60, 40, 0.2);
  color: var(--text);
}

.form-control::placeholder {
  color: var(--placeholder);
}

.form-note {
  color: var(--muted);
  font-size: 0.82rem;
}

.contact-stack {
  display: grid;
  gap: 18px;
}

.contact-card {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  padding: 24px;
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 6px;
}

.contact-card p {
  color: var(--muted);
  margin: 0;
}

.contact-card a {
  color: var(--muted);
  text-decoration: none;
}

.contact-card a:hover {
  color: var(--primary);
}

.site-footer {
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
  padding: 58px 0 0;
}

.footer-logo {
  height: 70px;
  width: auto;
}

.site-footer h3 {
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: 8px;
}

.footer-links a,
.social-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-links a:hover,
.social-links a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 18px;
}

.social-links a {
  font-size: 1.2rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  color: var(--muted);
  margin-top: 42px;
  padding: 22px 0;
  text-align: center;
}

.video-modal .modal-content {
  background: var(--modal-bg);
  border: 1px solid var(--border);
  color: #fff;
}

.video-modal video {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  display: block;
  width: 100%;
}

.video-fallback {
  color: var(--muted);
  margin: 16px 0 0;
}

.whatsapp-float {
  align-items: center;
  background: #25d366;
  border-radius: 999px;
  bottom: 22px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
  color: #fff;
  display: flex;
  font-size: 1.35rem;
  height: 54px;
  justify-content: center;
  position: fixed;
  right: 22px;
  text-decoration: none;
  width: 54px;
  z-index: 40;
}

.whatsapp-float:hover {
  color: #fff;
  transform: translateY(-2px);
}

/* Keep motion respectful for visitors who prefer reduced animation. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .logo-track {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .featured-track {
    transition-duration: 0.01ms;
  }
}

@media (max-width: 991.98px) {
  .site-navbar .navbar-collapse {
    background: var(--navbar-mobile-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-top: 12px;
    padding: 18px;
  }

  .hero-bg::after {
    background: rgba(0, 0, 0, 0.68);
  }

  .section-pad {
    padding: 70px 0;
  }

  .masonry-gallery {
    column-count: 2;
  }

  .featured-slide {
    flex-basis: calc((100% - 24px) / 2);
  }
}

@media (max-width: 575.98px) {
  html {
    scroll-padding-top: 82px;
  }

  .brand-logo {
    height: 42px;
  }

  .hero-section {
    min-height: 760px;
    padding-top: 108px;
  }

  .hero-section .display-2 {
    font-size: 3rem;
  }

  .section-pad {
    padding: 58px 0;
  }

  /* Bootstrap rows use negative gutters; this keeps small phones from getting a side-scroll bar. */
  .section-pad > .container-xl > .row,
  .site-footer .row {
    margin-left: 0;
    margin-right: 0;
  }

  .service-card,
  .detail-card,
  .contact-form,
  .contact-card {
    padding: 24px;
  }

  .masonry-gallery {
    column-count: 1;
  }

  .media-caption {
    padding: 18px;
  }

  .featured-slide {
    flex-basis: 100%;
  }

  .whatsapp-float {
    bottom: 16px;
    height: 50px;
    right: 16px;
    width: 50px;
  }
}
