/* CSS Custom Properties (Variables) */
:root {
  /* Colors */
  --color-primary-green: rgb(41, 117, 28);
  --color-dark-bg: #36454f;
  --color-header-bg: #333;
  --color-white: #fff;
  --color-black: #000;
  --color-gradient-start: rgba(2, 0, 36, 1);
  --color-gradient-mid: rgba(42, 115, 29, 1);
  --color-gradient-end: rgba(41, 117, 28, 1);

  /* Fonts */
  --font-primary: "Poppins", sans-serif;
  --font-secondary: "Open Sans", sans-serif;
}

/* Gradient Utility Class */
.gradient-bg {
  background: linear-gradient(90deg, var(--color-gradient-start) 0%,
              var(--color-gradient-mid) 91%, var(--color-gradient-end) 100%);
}

/* Base CSS */
body {
  font-family: var(--font-primary);
  background-color: var(--color-dark-bg);
  margin: 0;
}

header {
  background-color: var(--color-header-bg);
  color: var(--color-white);
  padding-right: 20px;
  padding-left: 20px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  padding-right: 80px;
}

.bar {
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 3px;
}

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

.menu-modal.open {
  display: flex;
  animation: slideIn 0.3s ease-in-out forwards;
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.menu-modal-content {
  background: rgba(3, 3, 3, 0.35);
  box-shadow: 0 8px 32px 0 rgba(31, 135, 45, 0.37);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 20px;
  max-width: 350px; /* Reduce the max-width for a smaller modal */
  width: 90%;
  max-height: 80vh;
  text-align: center; /* Center text within the modal */
}

.close {
  cursor: pointer;
  position: absolute;
  top: 20px; /* Adjusted to be visible */
  right: 20px; /* Adjusted to be visible */
  font-size: 40px; /* Reduced size for better visibility */
  color: white;
}

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

.logo img {
  height: 100px;
  width: auto;
}

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

ul {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 40px;
  margin: 0;
  padding: 0;
  width: 100%;
}

.menu-list {
  list-style: none;
  width: 100%; /* Ensure the list items take the full width */
  text-align: center; /* Center text within list items */
}

.menu-list a {
  list-style: none;
  text-decoration: none;
  color: white;
  font-size: larger;
}

.menu-list a:hover {
  color: green;
}

footer {
  background-color: #333;
  padding-left: 20px;
  padding-right: 20px;
}

.footer-section {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.footer-logo-con {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}

.footer-logo-con img {
  height: auto;
  width: 150px;
}

.footer-info-con {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: end;
  width: 100%;
}

.footer-info-con p {
  color: white;
}

.footer-info-con p a {
  color: white;
  text-decoration: none;
}

.footer-info-con p a:hover {
  color: rgb(41, 117, 28);
}
/* Media Queries */

/* Mobile Portrait */
@media (max-width: 768px) and (orientation: portrait) {
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
  }

  .hamburger {
    padding-right: 40px;
  }

  .menu-modal-content {
    width: 90%;
    max-width: 300px; /* Adjust width for smaller screens */
  }

  .footer-section {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }

  .footer-logo-con {
    width: 100%;
    justify-content: center;
    align-items: center;
  }

  .footer-info-con {
    width: 100%;
    align-items: center;
    text-align: center;
  }
}

/* Mobile Landscape */
@media (max-width: 846px) and (orientation: landscape) {
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
  }

  .hamburger {
    padding-right: 40px;
  }

  .menu-modal-content {
    width: 80%;
    max-width: 300px; /* Adjust width for smaller screens */
  }

  .footer-section {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }

  .footer-logo-con {
    width: 100%;
    justify-content: center;
    align-items: center;
  }

  .footer-info-con {
    width: 100%;
    align-items: center;
    text-align: center;
  }
}

/* Tablet Portrait */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
  }

  .hamburger {
    padding-right: 30px;
  }

  .menu-modal-content {
    width: 70%;
    max-width: 320px; /* Adjust width for smaller screens */
  }

  .footer-section {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .footer-logo-con {
    width: 100%;
    justify-content: center;
    align-items: center;
  }

  .footer-info-con {
    width: 100%;
    align-items: center;
    text-align: center;
  }
}

/* Tablet Landscape */
@media only screen and (min-width: 1024px) and (max-width: 1112px) and (orientation: landscape) {
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
  }

  .hamburger {
    padding-right: 40px;
  }

  .menu-modal-content {
    width: 60%;
    max-width: 350px; /* Adjust width for smaller screens */
  }

  .footer-section {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .footer-logo-con {
    width: 100%;
    justify-content: center;
    align-items: center;
  }

  .footer-info-con {
    width: 100%;
    align-items: center;
    text-align: center;
  }
}

/* Bigger Tablet Portrait */
@media only screen and (min-width: 1024px) and (max-width: 1366px) and (orientation: portrait) {
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
  }

  .hamburger {
    padding-right: 40px;
  }

  .menu-modal-content {
    width: 60%;
    max-width: 350px; /* Adjust width for smaller screens */
  }

  .footer-section {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .footer-logo-con {
    width: 100%;
    justify-content: center;
    align-items: center;
  }

  .footer-info-con {
    width: 100%;
    align-items: center;
    text-align: center;
  }
}

/* Bigger Tablet Landscape */
@media only screen and (min-width: 1112px) and (max-width: 1366px) and (orientation: landscape) {
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
  }

  .hamburger {
    padding-right: 40px;
  }

  .menu-modal-content {
    width: 50%;
    max-width: 350px; /* Adjust width for smaller screens */
  }

  .footer-section {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .footer-logo-con {
    width: 100%;
    justify-content: center;
    align-items: center;
  }

  .footer-info-con {
    width: 100%;
    align-items: center;
    text-align: center;
  }
}
