* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  background: #002868;
}

body {
  font-family: "Montserrat", sans-serif;
  color: #002868;
  min-height: 100vh;
}


.home-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  background: #002868;
  overflow: hidden;
}

.home-background {
   position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  z-index: 0;
  opacity:0.6;
  background-image:
    linear-gradient(to bottom,
      rgba(240, 242, 244, 0.767) 0%,
      hsla(240, 6%, 87%, 0.752) 4%,
      #213a80 68%,
      #002868 100%),
    url("/media/photography/photograph-background-img.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
}

/* NAVIGATION BAR */
.navbar,
.home-title,
.home-links,
.footer {
  position: relative;
  z-index: 5;
}

/* Navbar */
.navbar {
  position: relative;
  z-index: 50;
  width: min(100% - 120px, 1120px);
  margin: 0 auto;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.filmmakers-logo {
  width: 32px;
  height: auto;
  display: block;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 56px;
}

.nav-toggle,
.nav-toggle-label,
.nav-item-contact-mobile {
  display: none;
}

.hamburger-icon {
  display: block;
  font-size: 24px;
  line-height: 1;
  color: #002868;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-item-home,
.nav-item-about-us,
.nav-item-our-work,
.nav-item-our-service {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #002868;
  text-transform: uppercase;
  transition: all 0.5s ease;
}

.nav-menu a.active {
  color: #18357b;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28em;
}

.nav-contact-button.active {
  background: #0f255c;
}

.nav-item-home:hover,
.nav-item-about-us:hover,
.nav-item-our-work:hover,
.nav-item-our-service:hover,
.nav-contact-button:hover {
  transform: scale(1.08); /* zoom in a bit */
  color: lightblue
}

.nav-contact-button {
  min-width: 130px;
  height: 42px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #18357b;
  border-radius: 999px;
  transition: all 0.5s ease;
}

.nav-contact-button:active {
  background: #2a4d98;
}

.button-label {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: #fbfbfb;
  text-transform: uppercase;
}

.home-title {
  max-width: 1080px;
  margin: 42px auto 0;
  padding: 0 48px 40px;
  text-align: center;
}

.home-title h1 {
  margin-bottom: 24px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: #fbfbfb;
}

.home-title p {
  max-width: 860px;
  margin: 0 auto;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  color: #eef2ff;
}

/* Footer Navigation */
.footer {
  background: #002868;
  width: 100%;
  margin-top: 0px;
  padding-bottom: 14px;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  margin-bottom: 24px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  transition: background-color 0.5s ease, transform 0.5s ease;
}

.footer-social-link:hover {
  background: #355486;
}

.footer-social-link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  transition: transform 0.5s ease;
}

.footer-social-link:hover img {
  transform: scale(1.05);
}

.footer-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
  padding: 8px 24px;
  background: rgba(255, 255, 255, 0.92);
  margin-bottom: 14px;
}

.footer-menu a {
  font-size: 11px;
  font-weight: 700;
  color: #002868;
  text-transform: uppercase;
  transition: all 0.5s ease;
}

.footer-menu a:hover {
  color: lightblue;
}

.footer-copyright {
  text-align: center;
  font-size: 9px;
  font-weight: 400;
  line-height: 1;
  color: #ffffff;
}



@media only screen and (min-width: 834px) and (max-width: 1194px) {


    .hero {
        padding-top: 140px; 
    }
    .navbar ul {
        gap: 25px; 
    }
    .nav-links {
        font-size: 14px;
    }
    .description {
        max-width: 90%; 
        font-size: 18px;
        line-height: 1.5;
    }
    .film-row {
        gap: 30px; 
        padding: 0 30px;
        justify-content: center;
    }
    .film-card {
        flex: 1;
        max-width: 250px;
    }
    .category-title {
        font-size: 15px;
    }
    .footer-nav {
        height: auto;
        padding: 10px 0;
    }
    .footer-nav a {
        margin: 0 10px;
        font-size: 12px;
    }
}




/* Background & Hero */

.portfolio {
  width: 100%;
  margin: 0 auto;
  padding: 40px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  overflow: hidden;
  box-sizing: border-box;
}

.portfolio h2 {
  z-index: 3;
  font-size: 18px;
  font-weight: normal;
  letter-spacing: 2px;
  margin-bottom: 0px;
  text-transform: uppercase;
}

/* The scrollable area */
.scroll-container {
  align-content: center;
  display: flex;
  gap: 25px;
  width: 100%;
  height: 611px;
  padding: 50px 50px 50px 50px; 
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; 
  -ms-overflow-style: none;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

a {
  text-decoration: none;
}


.card {

  flex: 0 0 372px; 
  height: 565px; 
  width: 372px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 25px;
  scroll-snap-align: start;
  transition: transform 0.3s ease;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.card:hover {
  transform: translateY(-10px);
}

.card-button {
  width: 80%;
  padding: 14px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}

@media (max-width: 1024px) {
  .navbar,
  .home-title,
  .portfolio {
    width: min(100% - 48px, 1120px);
  }

  .navbar {
    padding-top: 18px;
  }

  .filmmakers-logo {
    width: 28px;
  }

  .nav-menu {
    gap: 28px;
  }

  .nav-item-home,
  .nav-item-about-us,
  .nav-item-our-work,
  .nav-item-our-service {
    font-size: 10px;
  }

  .nav-contact-button {
    min-width: 112px;
    height: 38px;
  }

  .button-label,
  .footer-menu a {
    font-size: 10px;
  }

  .home-title h1 {
    font-size: 30px;
  }

  .home-title p {
    font-size: 11px;
  }

  .scroll-container {
    height: 500px;
    padding: 32px 24px;
    gap: 18px;
  }

  .card {
    flex-basis: 300px;
    width: 300px;
    height: 450px;
  }
}

@media (max-width: 768px) {
  .nav-toggle-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    cursor: pointer;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(220px, calc(100vw - 24px));
    padding: 16px;
    border-radius: 16px;
    background: rgba(24, 53, 123, 0.96);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    z-index: 25;
  }

  .nav-toggle:checked ~ .nav-menu {
    display: flex;
  }

  .nav-toggle:checked + .nav-toggle-label {
    opacity: 0.8;
  }

  .nav-menu .nav-item-contact-mobile {
    display: inline-flex;
  }

  .hamburger-icon {
    color: #002868;
  }

  .nav-menu a {
    color: #fbfbfb;
    font-size: 12px;
    font-weight: 700;
  }

  .nav-menu a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 6px 12px;
    text-decoration: none;
  }

  .nav-contact-button {
    display: none;
  }

  .navbar,
  .home-title,
  .portfolio {
    width: calc(100% - 24px);
  }

  .filmmakers-logo {
    width: 24px;
  }

  .nav-menu {
    gap: 14px;
  }

  .nav-item-home,
  .nav-item-about-us,
  .nav-item-our-work,
  .nav-item-our-service {
    font-size: 8px;
  }

  .nav-contact-button {
    min-width: 86px;
    height: 30px;
    padding: 0 14px;
  }

  .button-label {
    font-size: 7px;
  }

  .home-title {
    margin-top: 24px;
    padding: 0 0 24px;
  }

  .home-title h1 {
    margin-bottom: 14px;
    font-size: 24px;
  }

  .home-title p {
    font-size: 10px;
  }

  .portfolio h2 {
    font-size: 14px;
  }

  .scroll-container {
    height: 390px;
    padding: 20px 8px 24px;
    gap: 14px;
  }

  .card {
    flex-basis: 230px;
    width: 230px;
    height: 340px;
    padding-bottom: 16px;
  }

  .card-button {
    width: 86%;
    padding: 10px;
    font-size: 0.75rem;
  }

  .footer-social-link {
    width: 32px;
    height: 32px;
  }

  .footer-social-link img {
    width: 14px;
    height: 14px;
  }

  .footer-menu {
    gap: 14px;
    padding: 6px 12px;
  }

  .footer-menu a {
    font-size: 7px;
  }

  .footer-copyright {
    font-size: 6px;
  }
}
@media (max-width: 768px) {

  .scroll-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;

    width: 100%;
    height: auto;

    overflow: visible; /* disables scrolling */
    padding: 20px;
  }

  .card {
    width: 100%;
    height: 280px; /* adjust as needed */

    flex: unset;        /* IMPORTANT: removes scroll behavior */
    scroll-snap-align: unset;
  }

  /* last card spans full width (2 / 2 / 1 layout) */
  .card:last-child {
    grid-column: 1 / -1;
  }
}
