body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden; /* prevent any accidental horizontal overflow creating a white strip */
}

@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

/** Variables **/

:root {
  --color-background: #cbd5e1;
  --color-background-alt: #8ec6ff;
  --color-border-active: #173db6;
  --color-border-default: #94a3b8;
  --color-highlight: #8ec6ff;
  --color-primary: #144be1;
  --color-primary-active: #19388f;
  --color-text-default: #0f172a;
  --color-text-muted: #475569;

  --font-family-body: "Open Sans", sans-serif;
  --font-family-display: "Nunito Sans", sans-serif;
}

/** Base **/

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

* {
  border: 0;
  margin: 0;
  padding: 0;
}

body {
  -webkit-font-smoothing: antialiased;
  font-family: var(--font-family-body);
  font-optical-sizing: auto;
  font-style: normal;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

[type="checkbox"],
[type="radio"],
[type="range"] {
  appearance: none;
  flex-shrink: 0;
  padding: 0;
  user-select: none;
}

[type="checkbox"]:focus,
[type="radio"]:focus,
[type="range"]:focus {
  outline: none;
}

/** Components **/

.fs-form {
  display: grid;
  row-gap: 1.5rem;
}

.fs-form:where(.fs-layout__2-column) {
  column-gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
}

fieldset {
  display: grid;
  margin: 1.5rem 0;
  row-gap: 1.5rem;
}

.fs-form:where(.fs-layout__2-column) fieldset {
  column-gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
  grid-column: 1 / -1;
}

.fs-fieldset-title {
  color: var(--color-text-default);
  font-family: var(--font-family-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.75rem;
  margin-bottom: 1.5rem;
  grid-column: 1 / -1;
}

.fs-field {
  display: flex;
  flex-direction: column;
  row-gap: 0.375rem;
}

.fs-label {
  color: var(--color-text-default);
  display: block;
  font-family: var(--font-family-display);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
}

.fs-description {
  color: var(--color-text-muted);
  display: block;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.fs-button-group {
  display: flex;
  flex-direction: row-reverse;
  column-gap: 1.5rem;
}

.fs-form:where(.fs-layout__2-column) .fs-button-group {
  grid-column: 1 / -1;
}

.fs-button {
  background-color: var(--color-primary);
  border-radius: 0.375rem;
  color: white;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1rem;
  padding: 1rem 2rem;
  transition-duration: 200ms;
  transition-property: background-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.fs-button:hover {
  background-color: var(--color-primary-active);
}

.fs-button:focus-visible {
  background-color: var(--color-primary-active);
  outline: 3px solid var(--color-highlight);
}

.fs-input,
.fs-select {
  appearance: none;
  border-radius: 0.375rem;
  border-width: 0;
  box-shadow: var(--color-border-default) 0 0 0 1px inset;
  color: var(--color-text-default);
  font-size: 1rem;
  height: 2.5rem;
  line-height: 1.5rem;
  outline: none;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.fs-input:focus-visible,
.fs-select:focus-visible {
  box-shadow: var(--color-border-active) 0 0 0 1.5px inset;
  outline: 3px solid var(--color-highlight);
  outline-offset: 0;
}

.fs-input::placeholder {
  color: var(--color-text-muted);
}

.fs-checkbox-group,
.fs-radio-group {
  display: flex;
  flex-direction: column;
  row-gap: 0.5rem;
}

.fs-checkbox-field,
.fs-radio-field {
  column-gap: 0.5rem;
  display: flex;
}

:is(.fs-checkbox-field, .fs-radio-field) .fs-label + .fs-description {
  margin-top: 0.125rem;
}

.fs-checkbox-wrapper,
.fs-radio-wrapper {
  align-items: center;
  display: flex;
  height: 1.25rem;
}

.fs-checkbox,
.fs-radio {
  background-color: #fff;
  border: 1px solid var(--color-text-default);
  height: 1rem;
  width: 1rem;
}

.fs-checkbox {
  border-radius: 0.25rem;
}

.fs-radio {
  border-radius: 100%;
}

.fs-checkbox:checked,
.fs-radio:checked {
  background-color: var(--color-primary);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  border-color: transparent;
}

.fs-checkbox:checked {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}

.fs-radio:checked {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
}

.fs-checkbox:focus-visible,
.fs-radio:focus-visible {
  outline: 3px solid var(--color-highlight);
  outline-offset: 0;
}

.fs-select {
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.fs-slider {
  background: transparent;
  cursor: pointer;
  height: 1.25rem;
  width: 100%;
}

.fs-slider::-moz-range-track {
  background-color: var(--color-background);
  border-radius: 0.5rem;
  height: 0.5rem;
}

.fs-slider::-webkit-slider-runnable-track {
  background-color: var(--color-background);
  border-radius: 0.5rem;
  height: 0.5rem;
}

.fs-slider::-moz-range-thumb {
  background-color: var(--color-primary);
  border: none; /* Removes extra border that FF applies */
  border-radius: 50%;
  height: 1.25rem;
  width: 1.25rem;
}

.fs-slider::-webkit-slider-thumb {
  appearance: none;
  background-color: var(--color-primary);
  border-radius: 50%;
  height: 1.25rem;
  margin-top: -0.375rem; /* Centers thumb on the track */
  width: 1.25rem;
}

.fs-slider:focus-visible::-moz-range-thumb {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.fs-slider:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.fs-switch {
  background-color: var(--color-background-alt);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='white'/%3e%3c/svg%3e");
  background-position: left center;
  background-repeat: no-repeat;
  border-radius: 1.5rem;
  cursor: pointer;
  height: 1.5rem;
  transition-duration: 200ms;
  transition-property: background-color, background-position;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  width: 2.75rem;
}

.fs-switch:checked {
  background-color: var(--color-primary);
  background-position: right center;
}

.fs-switch:focus-visible {
  outline: 3px solid var(--color-highlight);
  outline-offset: 0;
}

.fs-textarea {
  appearance: none;
  border-radius: 0.375rem;
  border-width: 0;
  box-shadow: var(--color-border-default) 0 0 0 1px inset;
  color: var(--color-primary);
  font-size: 1rem;
  line-height: 1.5rem;
  outline: none;
  padding: 0.5rem 0.75rem;
  resize: vertical;
}

.fs-textarea:focus-visible {
  box-shadow: var(--color-border-active) 0 0 0 1.5px inset;
  outline: 3px solid var(--color-highlight);
  outline-offset: 0;
}

.fs-textarea::placeholder {
  color: var(--color-text-muted);
}

/** Utilities **/

.col-span-full {
  grid-column: 1 / -1;
}

.fs-textarea::placeholder {
  color: var(--color-text-muted);
}

.slider-label-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 0.25rem;
}

.slider-label-text {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
  white-space: nowrap;
}

html,
body {
  height: 100%;
}

/* Scrollbar styling for Blink-based browsers (Chrome/Opera) */
::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

::-webkit-scrollbar-track {
  background: #000; /* match the site's dark header/footer */
}

::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  border: 3px solid #000; /* padding around the thumb */
}

/* Firefox scrollbar colors */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) #000;
}

main {
  flex: 1;
}

footer {
  background-color: #000000;
  color: white;
  text-align: center;
  padding: 20px;
  font-family: "Open Sans";
}

.footer-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: #000000;
}

.navbar,
.footer-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: #000;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
}
/* cross-browser rendering hints for Chromium-based browsers like Opera */
.navbar {
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  min-height: 64px; /* ensures vertical centering space */
}

/* Sticky header */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  height: 50px;
  width: auto;
}

/* Footer logo alignment fix */
.footer-navbar .logo {
  height: 44px;
  margin: 0;
  align-self: center;
  display: block;
}

/* make logo left and nav links right-aligned */
.navbar {
  gap: 12px;
}
.navbar .logo {
  margin-right: 12px;
}
.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
}
.nav-links li {
  display: inline-flex;
  align-items: center;
}
.nav-links a {
  line-height: 1.2;
}

/* hero logo inside the banner */
.hero-logo {
  display: block;
  height: auto;
  margin: 0 auto 12px auto;
}

/* ensure header logo and nav are vertically centered in Opera/Chromium */
.navbar,
.footer-navbar {
  align-items: center;
}
.navbar .logo {
  display: block;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
}

/* avoid subpixel jitter on hover/transform in some Blink builds */
.navbar,
.nav-links a,
.carousel-prev,
.carousel-next {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Page center container */
.page-wrap {
  width: 100%;
}

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

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 4px;
  display: inline-block;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
}

.nav-links a:hover {
  color: #0877d1;
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

/* Ensure header and footer nav links are explicitly white and accessible */
.navbar .nav-links a,
.footer-navbar .nav-links a {
  color: #fff !important;
}

.nav-links li {
  margin: 0;
}

.nav-links a:visited {
  color: #fff;
}

.nav-links a:focus,
.nav-links a:focus-visible {
  outline: 3px solid rgba(8, 119, 209, 0.18);
  outline-offset: 2px;
  border-radius: 6px;
}

.page-wrap {
  /* simplified: single column center content */
  display: block;
  margin: 0 auto;
}

.carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 20px auto;
  overflow: hidden;
}

.carousel-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.carousel-slide img:hover {
  transform: scale(1.05);
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 18px;
  z-index: 10;
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.carousel-prev:hover,
.carousel-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.nav-links a:hover {
  color: #0877d1;
}

/* subtle interactive transitions */
.nav-links a,
.carousel-prev,
.carousel-next,
.modal-close {
  transition: transform 160ms ease, color 160ms ease,
    background-color 160ms ease;
}

.nav-links a:active {
  transform: translateY(1px);
}

/* Reveal animation for sections */
.reveal {
  opacity: 0;
  transform: translateY(12px) scale(0.995);
  transition: opacity 420ms cubic-bezier(0.2, 0.9, 0.2, 1),
    transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Fallback: if JS is disabled, .reveal should be visible */
html.no-js .reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* small hover pop for carousel controls */
.carousel-prev:hover,
.carousel-next:hover {
  transform: scale(1.06);
}

.text-center {
  font-family: "Open Sans";
  text-align: center;
}

.para {
  font-family: "Open Sans";
}

.images {
  width: 200px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  position: relative;
  z-index: -1; /* Puts it behind other content */
}

.text-center,
.para {
  position: relative;
  z-index: 1;
}

.images img {
  width: 500px;
  height: 500px;
}

.header {
  border-radius: 15px;
  margin: 10px;
  border-radius: 15px;
  border: 2px solid #333;
  background-color: #ffff;
  width: 180px;
  margin: 10px auto;
}
.hero {
  background-image: url("img/work/job1.jpg");
  background-size: cover;
  background-position: center;
  padding: 100px 20px;
  position: relative;
  width: 100vw; /* full viewport width */
  margin-left: calc(50% - 50vw); /* center the full-bleed area */
  box-sizing: border-box;
}

.hero .content {
  text-align: center;
  color: #fff;
}

/* If hero has a light background, use dark text */
.hero[style*="background-color"] .content,
.hero[style*="background:#"] .content {
  color: #222;
}
.hero h1 {
  margin: 0 0 8px 0;
  font-size: 36px;
}
.hero p {
  margin: 0;
  font-size: 18px;
}

.text-left {
  text-align: left;
  font-family: "Open Sans";
  margin-left: 40px;
}

.align-right {
  float: right;
  margin-right: 40px; /* Space from the right edge */
  width: 800px;
  height: 250px;
}

.align-center {
  display: block;
  width: 800px;
  height: 300px;
  margin: 0 auto;
}

/* Main content area inside center column */
.content {
  padding: 30px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.top-split {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 30px;
  align-items: start;
}

.top-text {
  color: #222;
  font-family: "Open Sans";
}

.top-media video {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 6px;
}

.content {
  padding: 30px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.divider {
  height: 6px;
  background: #1e90ff; /* blue divider */
  margin: 28px 0;
  border-radius: 4px;
}

.bottom-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.bottom-box {
  min-height: 180px;
  border: 2px solid #333;
  border-radius: 8px;
  background: #fff;
}

.bottom-text {
  color: #222;
  font-family: "Open Sans";
}

/* Small screens: stack layout */
@media (max-width: 900px) {
  /* responsive stacking handled by top/bottom split rules */
  .top-split {
    grid-template-columns: 1fr;
  }
  .top-media video {
    max-height: 220px;
  }
  .bottom-split {
    grid-template-columns: 1fr;
  }
}

/* Make other main sections match the centered content */
.services,
.gallery,
.contact {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 30px 20px;
  box-sizing: border-box;
}

footer {
  background-color: #000;
  color: #fff;
  width: 100%;
}

/* center footer content while keeping the black bar full-width */
.footer-navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 30px;
  box-sizing: border-box;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.bottom-box img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Covers the entire box, may crop image */
}
