*, *::before, *::after {
  box-sizing: border-box;
}

.menu, .menu-btn, .image-box, .footer-social img {
  will-change: transform;
}

/* Popup Styles */
  .popup {
    display: none; /* Hide popup initially */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    padding: 10px;
    background-color: #ffcccb;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  .popup-content {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffcccb;
    padding: 2%;
    border-radius: 2%;
    text-align: center;
    width: 50vw;
    max-width: 40vw;
    height: auto;
  }
    .popup-content h2 {
        font-size: 2vw;
        color: #333;
        margin-bottom: 5px;
    }
    .popup-content p {
        font-size: 1.5vw;
        color: #333;
        margin-bottom: 20px;
    }
    
  .close {
    position: absolute;
    right: 2%;
    top: 2%;
    font-size: 3vw;
    cursor: pointer;
    border: none;
    color: #333;
    border-radius: 20%;
    background-color: #ffcccb;
  }

/* Responsive popup */
@media (max-width: 768px) {
  .popup {
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
  }
    
  .popup-content {
    width: 90vw;
    max-width: 100vw;
    height:auto;
  }
  
  .popup-content h2,
  .popup-content p {
    font-size: 1rem;
  }
  
  .close {
  font-size: 4vw;
  }
}

@media (max-width: 480px) {
    .popup {
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
  }
  
  .popup-content {
    width: 90vw;
    max-width: 100vw;
    height:auto;
  }
  .popup-content h2,
  .popup-content p {
    font-size: 1rem;
  }
  
    .close {
  font-size: 5vw;
  }
}

/* General Styles */
.container {
  max-width: 100vw;
  margin: 0 auto;
  padding: 20px;
}

header, footer {
  padding: 20px;
  text-align: left;
  z-index: 900;
}

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

header {
  background-color: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  position: relative;
  color: white;
}

header .logo img {
  width: 20vw;
  height: auto;
  background-color: #f4f4f4;
  margin-left: 1vw;
}

.menu-btn {
  font-size: 2rem;
  border: none;
  cursor: pointer;
  background-color: transparent;
  color: #007acc;
  display: block; /* Always visible by default (mobile first) */
  z-index: 1100;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.menu-btn:focus,
.menu-btn:hover {
  background: #e0f7fa;
  color: #f39c12;
  outline: 2px solid #007acc;
}

/* Default: Mobile First (menu hidden, button visible) */
.menu {
  display: none;
  position: absolute;
  top: 60px;
  right: 10px;
  background-color: #E0FFFF;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: left;
  z-index: 1000;
  min-width: 50vw;
  margin-right: 0;
  overflow: visible;
}
.menu.active {
  display: block;
}

.menu ul {
  list-style: none;
  padding: 10px;
  gap: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.menu ul li {
  margin: 0;
}

.menu ul li a {
  text-decoration: none;
  color: #00008B;
  display: block;
  padding: 5px;
  font-size: 1.2rem;
}

.menu ul li a:hover {
  text-decoration: underline;
  color: #f39c12;
}

/* Large and Tablet Screens: Menu always visible, flexible, button hidden */
@media (min-width: 768px) {
  .menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    background: none;
    box-shadow: 2px 2px 10px rgba(4, 40, 105, 0.5);    
    min-width: 0;
    width: auto;
    max-width: 100vw;
    margin-right: 0;
    overflow: visible !important;
  }
  .menu ul {
    flex-direction: row;
    gap: 2vw;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100vw;
    justify-content: flex-end;
  }
  .menu ul li {
    margin: 0 0.5vw;
    flex: 0 1 auto;
  }
  .menu ul li a {
    padding: 8px 1vw;
    font-size: 1rem;
    min-width: 60px;
    word-break: keep-all;
  }
  .menu-btn {
    display: none !important;
  }
}

/* As screen shrinks, menu items wrap and shrink spacing */
@media (min-width: 768px) and (max-width: 1023px) {
  .menu ul {
    gap: 1vw;
  }
  .menu ul li a {
    padding: 8px 0.5vw;
    font-size: 0.95rem;
  }
}

/* At exactly 768px and below, switch to button menu */
@media (max-width: 767px) {
  .menu {
    display: none;
    background-color: #15317E;
    border-radius: 10px;
  }
  .menu-btn {
    display: block;
  }

  .menu ul li a {
    color: #fff;
    text-align: center;
  }
}

/* Tablet-specific Styles */
@media (max-width: 768px) {
  .container {
    padding: 10px;
    max-width: 95vw;
  }
  .menu {
    width: 90%;
  }
  header, footer {
    padding: 15px;
  }
  nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* Phone-specific Styles */
@media (max-width: 480px) {
  .container {
    padding: 5px;
    max-width: 99vw;
  }
  header, footer {
    font-size: 14px;
  }
  nav ul li {
    margin: 5px 0;
  }
}

/* Hero Section Animation */
.hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  height: auto;
  transform: scale(0.5);
  transition: transform 1.5s ease-in-out;
}

.base-image {
  position: relative;
  width: 100vw;
  max-width: 100%;
  height: auto;
  max-height: 100vh;
  object-fit: cover;
  z-index: 1;
  filter: blur(0px);
  transition: transform 1.5s ease-in-out;
  transform: scale(1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin: 0;
  padding: 0;
  background-color: #f0f0f0;
  background-image: url("Nature.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-blend-mode: overlay;
}

@media (max-width: 768px) {
  .base-image {
    max-height: 100vh;
    width: 100vw;
    height: auto;
    border-radius: 0;
  }
}
@media (max-width: 480px) {
  .base-image {
    max-height: 100vh;
    width: 100vw;
    height: auto;
    border-radius: 0;
  }
}

.overlay-text {
  bottom: 0;
  left: 30vw;
  transform: translateY(-80%);
  display: flex;
  text-align: center;
  font-size: 3vw;
  color: white;
  background: rgba(8, 96, 15, 0.16);
  padding: 10px;
  border-radius: 20px;
  position: absolute;
  transition: transform 0.3s ease-in-out;
  object-fit: cover;
  z-index: 3;
  justify-content: center;
  align-items: center;
  place-items: center;
  width: 40vw;
  height: 5%;
  max-width: 100%;
  max-height: 100%;
}

.overlay-image {
  transform: translateY(-50%);
  width: 50vw;
  height: auto;
  max-height: 94%;
  border-radius: 5%;
  top: 50%;
  left: 25%;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  transition: transform 1.5s ease-in-out;
  object-fit: cover;
  filter: blur(0px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin: 0;
  padding: 0;
}

.zoom-in {
  transform: scale(1);
}

@media screen and (max-width: 600px) {
  .hero {
    flex-wrap: nowrap;
    align-items: center;
  }
  .hero-image {
    width: 50%;
  }
  .overlay-text {
    position: absolute;
    display: flex;
    top: 85%;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 5%;
    font-size: 3vw;
    background: rgba(0, 0, 0, 0.1);
    color: white;
    padding: 10px;
    text-align: center;
    justify-content: center;
    align-items: center;
    place-items: center;
    z-index: 10;
    transition: transform 0.3s ease-in-out;
    object-fit: cover;
    display: flex;
  }
}

/* focus Section Styling */
.focus {
  text-align: center;
  padding: 0.2vw;
  background: #f0f8ff;
  font-family: Arial, sans-serif;
}
.focus h2 {
  font-size: 4vw;
  color: #4169e1;
}

section h1 {
  color: #007bff;
  text-align: center;
  padding: 20px;
}

section p {
  font-size: 1.1em;
  text-align: center;
}
.focus {
  margin: 1%;
  display: flex;
  text-align: center;
  font-size: 2vw;
  color: white;
  background: rgba(0, 0, 0, 0.11);
  padding: 10px;
  max-width: 65%;
  border-radius: 3vw 0 2vw 0;
  position: relative;
  transition: transform 0.3s ease-in-out;
  object-fit: cover;
  justify-content: center;
  left: 17%;
  z-index: 5;
}

.focus-content {
  width: 100%;
  height: auto;
  background-color: rgba(135, 206, 235, 0.44);
  color: #15317E;
  text-align: center;
  align-content: center;
  border-radius: 3vw 0 2vw 0;
}

.focus h2 {
  font-size: 4vw;
  color: #4169e1;
  text-shadow: 4px 4px 5px rgba(0, 0, 0, 0.3);
}

.focus h2, .focus p, .focus a {
  margin: 10px 0;
}

.cta-button {
  display: inline-block;
  padding: 10px 20px;
  color: white;
  background-color: #007BFF;
  text-decoration: none;
  border-radius: 3vw 0 2vw 0;
  font-size: 2vw;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}

/* key Section */
.box-container {
  display: flex;
  gap: 20px;
  padding: 20px;
  flex-wrap: wrap;
  justify-content: center;
  background-color: #f9f9f9;
}

.image-box {
  width: 30%;
  height: auto;
  text-align: center;
  background: white;
  border: 1px solid #555;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.image-box:hover {
  transform: scale(1.05);
}

.image-box img {
  width: 100%;
  height: auto;
  display: block;
}

.image-box .caption {
  background-color: #D9FBFC;
  color: #28a745;
  padding: 10px;
  text-align: center;
}

.button {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  color: white;
  border: none;
  text-decoration: none;
  font-weight: bold;
  background-color: #007BFF;
  border-radius: 2vw;
  font-size: 1.2vw;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover {
  background-color: #218838;
  transform: scale(1.1);
}

@media screen and (max-width: 768px) {
  .focus {
    font-size: 4vw;
    padding: 5px;
    width: 90%;
  }
  .focus-content {
    width: 100%;
    padding: 5px;
  }
  .cta-button {
    font-size: 4vw;
    padding: 5px 10px;
  }
  .box {
    font-size: 4vw;
    padding: 5px;
    width: 90%;
    left: 5%;
  }
  .image-box {
    width: 100%;
  }
  .button {
    font-size: 3vw;
    padding: 5px 10px;
  }
}

@media screen and (max-width: 480px) {
  .focus {
    font-size: 4vw;
    padding: 5px;
    width: 90%;
  }
  .focus-content {
    width: 100%;
    padding: 5px;
  }
  .cta-button {
    font-size: 4vw;
    padding: 5px 10px;
  }
  .box {
    font-size: 4vw;
    padding: 5px;
    width: 90%;
    left: 5%;
  }
  .image-box {
    width: 100%;
  }
  .button {
    font-size: 3vw;
    padding: 5px 10px;
  }
}

/* Resources Section Styling */
.resources {
  background-color: #e5e7f1;
  padding: 30px;
  text-align: center;
  font-family: Arial, sans-serif;
  color: #333;
}

.resources h2 {
  font-size: 4vw;
  margin-bottom: 30px;
  color: #007BFF;
  text-shadow: 4px 4px 5px rgba(0, 0, 0, 0.3);
}

.resource-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.resource-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 300px;
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.resource-card h3 {
  font-size: 2vw;
  margin-bottom: 10px;
  color: #007BFF;
}

.resource-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 15px;
}

.resource-link {
  display: inline-block;
  font-size: 14px;
  color: #007BFF;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid #007BFF;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.resource-link:hover {
  background-color: #007BFF;
  color: #fff;
}

@media screen and (max-width: 480px) {
  .resources h2 {
    font-size: 4vw;
    margin-bottom: 5vh;
  }
  .resource-card {
    width: 80vw;
    padding: 1vh;
  }
  .resource-card h3 {
    font-size: 4vw;
  }
  .resource-card p {
    font-size: 4vw;
  }
  .resource-link {
    font-size: 4vw;
    padding: 2vw;
  }
}

@media screen and (max-width: 768px) {
  .resources h2 {
    font-size: 4vw;
    margin-bottom: 5vh;
  }
  .resource-card {
    width: 80vw;
    padding: 1vh;
  }
  .resource-card h3 {
    font-size: 4vw;
  }
  .resource-card p {
    font-size: 3.5vw;
  }
  .resource-link {
    font-size: 4vw;
    padding: 1vh;
  }
}

/* Belt Section Styling */
.belt {
  text-align: center;
  padding: 0.2vw;
  background: url('star5a.png') center/cover no-repeat;
  font-family: Arial, sans-serif;
}
.belt h2 {
  font-size: 3vw;
  color: #f9f9f9;
  text-shadow: 4px 4px 5px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
  background-color: #15317E;
  color: #fff;
  text-align: center;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  max-width: 100vw;
  flex-wrap: wrap;
  font-size: 1rem;
}

.footer-logo img {
  max-width: 10vw;
  height: auto;
  padding: 0;
  margin-left: 1vw;
  margin-top: 3vh;
  margin-right: 1vw;
  border-radius: 5%;
  transition: transform 0.3s ease;
}

.footer-contact {
  flex: 2;
  text-align: left;
  padding: 0;
  margin-left: 5vw;
}

.footer-contact p {
  color: #fff;
  margin-left: 1vw;
  padding: 0;
  text-align: left;
  margin-top: 1vw;
}

.footer-contact a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: #f39c12;
}

.footer-social {
  flex: 1;
  text-align: center;
  padding: 10px;
}

.footer-social img {
  width: 3vw;
  height: auto;
  transition: transform 0.3s ease;
  margin: 5px;
}

.footer-social img:hover {
  transform: scale(1.1);
  filter: brightness(2);
  cursor: pointer;
  margin: 5px;
}

/* Footer Links */
.footer-links {
  flex: 1;
  text-align: left;
  padding: 2px;
  margin-left: 5vw;
}

.footer-links a {
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s ease;
  font-size: 1rem;
  margin-left: 5px;
  padding: 5px;
  display: inline-block;
}

.footer-links a:hover {
  color: #f39c12;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin: 5px;
}

.footer-links ul li a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: #f39c12;
}

.footer-copyright {
  margin-top: 20px;
  border-top: 1px solid #ccc;
  padding-top: 10px;
  text-align: center;
  font-size: small;
  color: #fff;
}

.footer-copyright p {
  margin: 0;
  padding: 0;
  color: #fff;
}
.footer-copyright a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-copyright a:hover {
  text-decoration: underline;
  color: #f39c12;
}

/* Responsive Design */
@media (max-width: 768px), (max-width: 480px) {
  .menu-btn {
    display: block;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .footer-contact, .footer-social, .footer-links {
    flex: unset;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .footer-container h2 {
    font-size: 4vw;
    margin: 2vh;
    padding: 1vw;
    color: #fff;
    text-align: center;
  }
  .footer-container p {
    font-size: 2.5vw;
    margin: 1vh;
    color: #fff;
    padding-top: 0.5vw;
    text-align: center;
  }
  .footer-logo img {
    max-width: 30vw;
    height: auto;
    margin: 5vh;
  }
  .footer-social img {
    width: 5vw;
    height: auto;
    margin: 5px;
  }
  .footer-links ul li {
    display: block;
  }
  .footer-links ul li a {
    display: block;
    font-size: 2.5vw;
    text-align: center;
    color: #fff;
    transition: color 0.3s ease;
  }
}