/* ==========================================================================
   Base styles
   ========================================================================== */

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

html, body {
  width: 100%;
  height: 100%;
  background-color: #101012;
  font-family: "Montserrat", sans-serif;
  color: white;
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
  background-color: #151517;
  padding: 20px 40px;
  width: 100%;
  position: relative;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  z-index: 20;
}

.navbar-brand {
  position: static;
}

.navbar-logo-img {
  height: 56px;
  width: auto;
  display: block;
}

.navbar-menu {
  display: flex;
  list-style: none;
  margin-left: auto;
  gap: 30px;
  align-items: center;
}

.navbar-link {
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  font-family: "Montserrat", sans-serif;
  transition: opacity 0.2s ease;
  text-align: center;
  list-style: none;
}

.navbar-link:hover {
  opacity: 0.7;
}

.mobile-menu-overlay {
  display: none;
  width: 100%;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  overflow: hidden;
}

/* ==========================================================================
   Main Content
   ========================================================================== */

.main-content {
  padding: 0;
}

.section {
  height: 356px;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 0;
  width: 100%;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
}

.section-left {
  width: 40%;
  padding-right: 40px;
}

.section-heading {
  text-align: center;
  word-break: keep-all;
  word-wrap: break-word;
  max-width: 700px;
  font-size: 38px;
  line-height: 44px;
  font-weight: 400;
  color: white;
}

.section-subheading {
  font-size: 18px;
  line-height: 26px;
  font-weight: 500;
  color: white;
  margin-bottom: 0;
  text-align: center;
}

.section-right {
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
  padding-left: 40px;
}

.section-long-text {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #c5c5c5;
  position: relative;
  max-width: 900px;
  -webkit-backdrop-filter: blur(10px) brightness(85%);
  backdrop-filter: blur(10px) brightness(85%);
  border: 5px solid #0000001c;
}

/* Mirror sections 2 and 4 */
.section-2 .section-container,
.section-4 .section-container {
  flex-direction: row-reverse;
}

/* Separator bars */
.separator {
  height: 10px;
  background-color: #101012;
  width: 100%;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background-color: #101012;
  padding: 40px;
  margin-top: auto;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  color: white;
  font-size: 16px;
}

.footer-social {
  display: flex;
  list-style: none;
  gap: 25px;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: white;
}

/* ==========================================================================
   Background Images (Full Width)
   ========================================================================== */

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* Place your background images here */
.section-1::before {
  background-image:
    radial-gradient(circle closest-corner at 65%, #0000006b, #fafafa03 98%, #fff0),
    url('../img/section1.jpg');
}

.section-2::before {
  background-image:
    radial-gradient(circle at 45%, #000000d9, #fff0),
    url('../img/section2.jpg');
  background-position: 50% 35%;
}

.section-3::before {
  background-image:
    radial-gradient(circle at 65%, #000000e0, #fff0),
    url('../img/section3.jpg');
}

.section-4::before {
  background-image:
    radial-gradient(circle at 35%, #000000e3, #fff0),
    url('../img/section4.jpg');
}

.hamburger-menu{
  display: none;
}

/* =============================================================================
    Modal styling (for desktop)
    ============================================================================
 */

/* Contact Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-window {
  background: #c0c0c0;
  padding: 0;
  border-radius: 0;
  max-width: 500px;
  width: 90%;
  min-height: 320px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  display: flex;
  flex-direction: column;
}

.modal-titlebar {
  background: #000080;
  color: white;
  padding: 4px 4px 4px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: bold;
  font-size: 14px;
  user-select: none;
}

.modal-titlebar-text {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.modal-close {
  background: #c0c0c0;
  border: 1px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  color: black;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  font-family: "MS Sans Serif", "Montserrat", sans-serif;
}

.modal-close:active {
  border-color: #808080 #ffffff #ffffff #808080;
}

.modal-body {
  padding: 20px 16px;
  flex: 1;
}

.modal-body p {
  color: #000;
  line-height: 1.6;
  font-size: 14px;
  margin: 0;
  font-family: "MS Sans Serif", "Montserrat", sans-serif;
}

.modal-close-btn {
  display: block;
  margin: 16px auto 20px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  color: #000;
  font-size: 14px;
  font-weight: bold;
  font-family: "MS Sans Serif", "Montserrat", sans-serif;
  cursor: pointer;
  padding: 8px 32px;
  min-width: 100px;
}

.modal-close-btn:active {
  border-color: #808080 #ffffff #ffffff #808080;
}

.modal-close-btn .close-icon {
  color: #c00000;
  font-weight: bold;
  margin-right: 6px;
  font-size: 16px;
}

/* ==========================================================================
     Mobile Styles (via media queries)
     ========================================================================== */

@media (max-width: 768px) {
  /* Hamburger Button */
  .hamburger-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 20;
  }

  .hamburger-menu span {
    width: 25px;
    height: 2px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Mobile Navbar Adjustments */
  .navbar {
    padding: 12px 20px;
    min-height: 80px;
    z-index: 20;
  }

  .navbar-container {
    padding: 0;
    margin: 0;
  }

  .navbar-logo-img {
    height: 50px;
  }

  .mobile-menu-overlay {
    display: block;
    max-height: 0;
    margin-top: -3px;
    transition: max-height 0.5s ease;
  }

  .mobile-menu-overlay.active {
    max-height: 250px;
  }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    background-color: #151517;
    padding: 20px;
    gap: 10px;
    list-style: none;
    border-bottom: 1px solid #333;
  }

  .mobile-navbar-link {
    display: block;
    font-size: 16px;
    padding: 10px 0;
    text-align: center;
    list-style: none;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-family: "Montserrat", sans-serif;
    transition: opacity 0.2s ease;
  }

  .navbar-menu{
    display: none;
   }

  /* Fix horizontal overflow on mobile */
  html, body {
    width: 100%;
    overflow-x: hidden;
  }

  .section{
    display: block;
    min-height: 356px;
    height: fit-content;
  }

  .section-container {
    flex-direction: column;
    justify-content: center;
    padding: 20px;
  }

  .section-left {
    width: 100%;
    padding: 20px 0 20px 0;
    text-align: center;
  }

  .section-heading {
    font-size: 38px;
    font-weight: 400;
    line-height: 44px;
    max-width: 100%;
    text-align: center;
    margin: auto;
  }

  .section-right {
    width: 100%;
    padding-left: 0;
    text-align: center;
    gap: 15px;
  }

  .section-subheading {
    text-align: center;
    margin: auto;
    font-weight: 500;
    font-size: 22px;
    line-height: 26px;
  }

  .section-long-text {
    max-width: 100%;
    font-size: 16px;
    line-height: 18px;
    border-width: 3px;
    text-align: center;
  }

  /* Footer vertical on mobile */
  .footer-container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-social {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Switch radial gradients to a uniform overlay on mobile */
  .section-1::before {
    background-image:
      linear-gradient(#00000080, #00000080),
      url('../img/section1.jpg');
  }

  .section-2::before {
    background-image:
      linear-gradient(#00000080, #00000080),
      url('../img/section2.jpg');
    background-position: 50% 35%;
  }

  .section-3::before {
    background-image:
      linear-gradient(#00000080, #00000080),
      url('../img/section3.jpg');
  }

  .section-4::before {
    background-image:
      linear-gradient(#00000080, #00000080),
      url('../img/section4.jpg');
  }

  /* Mirror sections 2 and 4 no longer need row-reverse on mobile */
  .section-2 .section-container,
  .section-4 .section-container {
    flex-direction: column;
  }
}
