/* Colours */

:root {
  --background-color: #120704;
  --text-color: #fff;
  --text-grey: #888888;
  --accent-color: #ff5733;
}

@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=M+PLUS+1p&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  color: var(--text-color);
}

* {
  font-family: "Inter", sans-serif;
  color: var(--text-color);
  font-size: 1rem;
  margin: 0;
  line-height: 1.4;
}

a {
  text-decoration: none;
}

ul {
  padding: 0;
  margin: 0;
}

li {
  list-style-type: none;
  padding: 0;
}

/* Background Circle */

.circle {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40%;
  height: 40%;
  background-color: var(--accent-color);
  opacity: 0;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -1;
}

@keyframes circle-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.4;
  }
}

.circle {
  animation: circle-fade 4s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
  .circle {
    animation: none !important;
    opacity: 0.4 !important;
  }
}

/* NavBar */
nav {
  background: rgba(18, 7, 4, 0.7);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  overflow: hidden;
  padding-top: 40px;
  padding-bottom: 15px;
}
nav .nav-inner {
  display: flex;
  align-items: center;
  margin: 0 10%;
}

.logo img {
  height: 50px;
  display: block;
}

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

.nav-links li a {
  color: var(--text-color);
  text-decoration: none;
  padding: 10px 25px;
  display: block;
  text-transform: uppercase;
  color: var(--text-grey);
}

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

.nav-links .hire-us {
  background-color: var(--accent-color);
  border-radius: 100px;
  color: var(--background-color);
  font-weight: 700;
  padding: 10px 25px;
  text-transform: capitalize;
  margin-left: 10px;
  border-width: 1px;
  border-color: transparent;
  border-style: solid;
}

.nav-links .hire-us:hover {
  color: var(--background-color);
  box-shadow: 0 0 20px white;
  border-width: 1px;
  border-color: white;
  border-style: solid;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 3000;
}

.menu-toggle img {
  height: 28px;
  display: block;
}

/* Main Content */
.main,
#main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 120px 20px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  main,
  #main {
    min-height: calc(100vh - 80px);
    padding: 80px 16px;
  }
}

/* Text Styling */

.significant {
  font-size: 8rem;
  background: linear-gradient(to bottom, #fff, #fff, rgba(255,255,255,0.4));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 auto;
}

.key {
  font-size: 1rem;
  color: var(--text-grey);
  text-align: left;
  text-transform: uppercase;
}

.heading {
  font-size: 2rem;
  text-align: left;
  margin-bottom: 10px;
  font-weight: 700;
}

.heading-alt {
  font-size: 1.5rem;
  text-align: left;
  margin-bottom: 10px;
  font-weight: 700;
}

.content {
  font-size: 1rem;
  color: var(--text-grey);
  text-align: left;
}

.details-button,
.see-details {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.06);
  background: transparent;
}

.details-button img,
.see-details img {
  width: 16px;
  height: 16px;
  display: inline-block;
}

/* Images */

.landscape {
  width: 100%;
  margin-top: 100px;
  margin-bottom: -150px;
}

/* Applied Technologies Section */

.applied-tech {
  margin: 150px auto 0;
  max-width: 1100px;
  padding: 0 10%;
  text-align: center;
}

.applied-tech h2 {
  font-size: 2rem;
  color: var(--text-color);
  margin-bottom: 60px;
}

.applied-tech .content {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
  align-items: center;

}

.applied-tech .content img {
  width: 100px;
  height: auto;
  object-fit: contain;
}

/* Make applied technologies images grey (grayscale) */
.applied-tech .content img {
  filter: grayscale(100%);
  transition: filter 200ms ease-in-out, opacity 200ms ease-in-out;
}

/* Optional: restore colour on hover for interactivity */
.applied-tech .content img:hover {
  filter: grayscale(0%);
}

/* Contact Us Section */

.contact-us {
  margin: 0 auto 0;
  max-width: 1100px;
  padding: 0 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-us .cta {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.contact-us .body {
  font-size: 1.25rem;
  color: var(--text-grey);
  margin-bottom: 20px;
}

.contact-us .curved-arrow {
  width: 80px;
  margin-top: 0;
}

.contact-us .cta-row {
  display: flex;
  gap: 20px;
  margin-top: 50px;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Nudge the arrow so it visually points at the button; adjust for responsiveness */
.contact-us .curved-arrow {
  transform: translateY(-50px);
}

@media (max-width: 500px) {
  .contact-us .cta-row {
    flex-direction: column;
    gap: 10px;
  }

  .contact-us .curved-arrow {
    transform: translateY(0);
    width: 64px;
    margin-top: 6px;
  }
}

.contact-us a {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  border-width: 1px;
  border-style: solid;
  border-radius: 100px;
  color: var(--background-color);
  padding: 14px 30px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  display: inline-block;
}

.contact-us a:hover {
  box-shadow: 0 0 20px white;
  border-color: white;
  border-width: 1px;
}

/* Footer Section */

footer {
  margin-top: 100px;
  padding: 80px 10% 100px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

/* Center align content inside each footer column */
footer .column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

footer .column:first-child {
  flex: 5;
  /* keep column stacked and left-aligned */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

footer .column:first-child select {
  order: -1;
  margin-top: auto;
}

footer .column:first-child p {
  margin-top: 10px;
  color: var(--text-grey);
}

footer select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: rgb(36, 36, 36);
  border-radius: 100px;
  border: none;
  color: var(--text-color);
  font-weight: 700;
  padding: 10px 25px;
  text-transform: capitalize;
  cursor: pointer;
  background-image: url("../assets/icons/chevron_right.svg");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px 14px;
  position: relative;
  z-index: 2100;
  min-width: 100px;
  width: 20%;
}

footer select:hover {
  background-color: rgb(29, 29, 29);
}

footer select:focus {
  outline: none;
}

footer select::-ms-expand {
  display: none;
}

nav.open .nav-links footer select,
nav.open .nav-links select {
  z-index: 4000;
  position: relative;
}

footer .header {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

footer li {
  margin-bottom: 5px;
}

footer li a {
  color: var(--text-grey);
}

footer li a:hover {
  color: var(--accent-color);
}

/* Responsive Controls */
/* Reduce navigation gap and button padding on narrower desktop widths */
@media (min-width: 769px) and (max-width: 980px) {
  .nav-inner {
    margin: 0 6%;
  }
  .nav-links {
    gap: 16px;
  }
  .nav-links li a {
    padding: 8px 12px;
    font-size: 0.95rem;
  }
  .nav-links .hire-us {
    padding: 8px 14px;
    margin-left: 6px;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  nav {
    height: auto;
    padding-top: 20px;
    padding-bottom: 12px;
  }

  .nav-inner {
    margin: 0 16px;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  nav.open {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: block;
    padding-top: 10;
  }

  nav.open .nav-inner {
    position: relative;
    align-items: center;
  }

  nav.open .nav-links {
    display: flex;
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin: 0;
    padding: 0;
  }

  nav.open .nav-links li a {
    font-size: 22px;
    padding: 10px 12px;
  }

  nav.open .nav-links .hire-us {
    font-size: 22px;
    padding: 10px 35px;
    margin-left: 0;
  }

  .significant {
    font-size: 4rem;
  }

  body.nav-open {
    overflow: hidden;
  }

  .contact-us {
    flex-direction: column;
    gap: 24px;
  }

  .contact-us .left {
    padding: 0px 40px 40px 40px;
    border-radius: 12px;
  }

  .carousel .service-card:first-child, .carousel .service-card:last-child {
    display: none;
  }

  .services-carousel::before, .services-carousel::after {
    display: none;
  }

  .service-card {
    width: 90%;
  }

  .curved-arrow {
    display: none;
  }
}

/* Services Carousel */
.services-carousel {
  /* full-bleed section: span the full viewport width while keeping
     internal content boxed via padding */
  width: 100vw;
  box-sizing: border-box;
  margin-top: 100px;
  position: relative;
  /* center the full-bleed element reliably from inside a centered parent */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 40px 4% 0;
}
.services-carousel::before,
.services-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(160px, 8vw, 140px);
  pointer-events: none;
  z-index: 3;
  /* smoother multi-stop gradient for a gentle fade */
  background: linear-gradient(
    to right,
    rgba(18, 7, 4,0.95) 0%,
    rgba(18, 7, 4,0.7) 28%,
    rgba(18, 7, 4,0.35) 60%,
    rgba(18, 7, 4,0) 100%
  );
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.services-carousel::after {
  right: 0;
  left: auto;
  background: linear-gradient(
    to left,
    rgba(18, 7, 4,0.95) 0%,
    rgba(18, 7, 4,0.7) 28%,
    rgba(18, 7, 4,0.35) 60%,
    rgba(18, 7, 4,0) 100%
  );
}
.services-carousel::before {
  left: 0;
  right: auto;
}

/* Ensure carousel content sits under the overlays while the heading stays above */
.services-carousel .carousel {
  position: relative;
  z-index: 2;
}
.services-carousel h2 {
  position: relative;
  z-index: 4;
}
.services-carousel h2 {
  font-size: 2rem;
  color: var(--text-color);
  margin: 0 auto 18px;
  text-align: center;
}
.carousel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 18px 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.service-card {
  flex: 0 0 270px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  scroll-snap-align: center;
}
.carousel .service-card:first-child {
  /* push the first card right so it's not hidden under the left blur overlay */
  margin-left: clamp(60px, 8vw, 140px);
}

.carousel .service-card:last-child {
  /* push the last card left so it's not hidden under the right blur overlay */
  margin-right: clamp(60px, 8vw, 140px);
}

.service-card img {
  width: 48px;
  height: 48px;
}
.service-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
}
.service-desc {
  color: var(--text-grey);
  font-size: 0.95rem;
  margin: 0 0 8px 0;
  text-align: left;
}
.see-details {
  margin-top: auto;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--accent-color);
  border: 1px solid rgba(255,255,255,0.06);
  background: transparent;
  font-weight: 600;
}
.see-details img {
  width: 16px;
  height: 16px;
}

/* Hide scrollbars but keep scrolling functional across browsers */
.carousel {
  -ms-overflow-style: none; /* IE/Edge */
  scrollbar-width: none; /* Firefox */
}
.carousel::-webkit-scrollbar {
  display: none; /* Safari/Chrome */
  height: 0;
}

/* Carousel arrow buttons */
.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  cursor: pointer;
  transition: background 150ms ease, transform 120ms ease;
}
.carousel-button img {
  width: 18px;
  height: 18px;
  display: block;
  filter: brightness(1.25) invert(1) hue-rotate(180deg);
}
.carousel-button:focus {
  outline: 3px solid rgba(255,255,255,0.08);
  transform: translateY(-50%) scale(1.02);
}
.carousel-button:hover {
  background: rgba(0,0,0,0.6);
}
.carousel-prev {
  left: clamp(12px, 2vw, 28px);
}
.carousel-next {
  right: clamp(12px, 2vw, 28px);
}
.carousel-prev img { transform: rotate(180deg); }

@media (max-width: 768px) {
  /* hide arrow buttons on narrow screens where carousel stacks */
  .carousel-button { display: none; }
}

/* Disabled state for carousel buttons */
.carousel-button[disabled],
.carousel-button[aria-disabled="true"] {
  opacity: 0.36;
  cursor: not-allowed;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.28);
  pointer-events: none;
}

@media (max-width: 768px) {
  /* Stack carousel into a column on small screens so cards don't grow too wide */
  .services-carousel {
    /* keep full-bleed on mobile but reduce vertical spacing */
    padding: 24px 4%;
    margin-top: 40px;
  }
  /* reduce overlay width on small screens and soften effect */
  .services-carousel::before,
  .services-carousel::after {
    width: clamp(36px, 10vw, 80px);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    background: linear-gradient(to right, rgba(28,16,14,0.9), rgba(28,16,14,0));
  }
  /* avoid pushing the first card on narrow screens where cards stack */
  .carousel .service-card:first-child {
    margin-left: 0;
  }

  .services-carousel h2 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .carousel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-x: visible;
    padding: 0;
  }

  .service-card {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    padding: 20px;
    align-items: flex-start;
    scroll-snap-align: none;
  }

  .see-details {
    align-self: flex-start;
  }
}

/* Footer responsive reflow: keep Services + Work side-by-side and
   place language select + copyright beneath them on small screens */
@media (max-width: 768px) {
  footer {
    /* allow precise ordering and consistent spacing */
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 18px;
  }

  /* Make Services and Work columns sit side-by-side */
  footer .column {
    flex: 1 1 50%;
    min-width: 45%;
    box-sizing: border-box;
  }

  /* Put the language/copyright column below the two columns */
  footer .column:first-child {
    order: 2;
    flex: 1 1 100%;
    min-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-top: 12px;
  }

  /* Ensure Services and Work are the first row */
  footer .column:nth-child(2),
  footer .column:nth-child(3) {
    order: 1;
  }

  /* Restore select ordering and spacing for the stacked layout */
  footer .column:first-child select {
    order: -1;
    margin-top: 12px;
    width: auto;
    min-width: 160px;
  }

  /* Reduce padding so the two columns fit nicely on narrow viewports */
  footer {
    padding: 40px 6% 60px;
  }

  /* On very narrow devices, stack everything to one column to keep readability */
  @media (max-width: 480px) {
    footer .column { flex: 1 1 100%; min-width: 100%; }
    footer .column:first-child { order: 3; }
    footer .column:nth-child(2), footer .column:nth-child(3) { order: 1; }
  }
}