/* ========== RESET ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
*:before,
*:after {
  box-sizing: inherit;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  font-family: 'Fira Mono', monospace;
  font-size: 16px;
  background-color: #000000; /* Black background */
  color: #EAEAEA;      /* Light gray text */
  line-height: 1.6;
}
/* ========== NAVBAR ========== */
.menu {
  background: rgba(0, 191, 255, 0.1); /* Transparent neon blue */
  height: 4rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  display: flex;
  justify-content: center;
  color: #EAEAEA;
  transition: transform 0.3s ease;
  box-shadow: 0px 0 10px rgba(0,0,0,0.6);
}
.menu ol {
  list-style: none;
  margin: 0 auto;
  padding: 0;
}
.menu > ol {
  max-width: 1000px;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
}
.menu > ol > .menu-item {
  position: relative;
  flex: 1 0 auto;
  padding: 0.75rem 0;
  line-height: 2.5rem;
  text-align: center;
}
.menu > ol > .menu-item a {
  display: block;
  color: #EAEAEA;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 1rem;
  transition: color 0.15s linear, background 0.15s linear;
}
.menu > ol > .menu-item:hover > a {
  color: #00BFFF;
  text-shadow: 0 0 6px #00BFFF;
}
.menu > ol > .menu-item:after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  background: #00BFFF;
  transition: transform 0.2s ease;
}
.menu > ol > .menu-item:hover:after {
  transform: translateX(-50%) scale(1);
}

/* Submenu container */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  z-index: 1000;
}
.menu > ol > .menu-item:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.sub-menu .menu-item {
  padding: 0.5rem 0;
  background: rgba(0, 191, 255, 0.15);
  opacity: 0;
  transform-origin: bottom;
}
.sub-menu .menu-item a {
  display: block;
  padding: 0 0.75rem;
  color: #EAEAEA;
  text-decoration: none;
}
.sub-menu .menu-item:hover {
  background: #000000;
}
.sub-menu .menu-item:hover a {
  color: #FFFFFF;
}

/* Submenu animation sequence */
.menu > ol > .menu-item:hover > .sub-menu .menu-item {
  animation: enter 0.28s ease forwards;
}
.menu > ol > .menu-item:hover > .sub-menu .menu-item:nth-child(2) {
  animation-delay: 0.08s;
}
.menu > ol > .menu-item:hover > .sub-menu .menu-item:nth-child(3) {
  animation-delay: 0.16s;
}
.menu > ol > .menu-item:hover > .sub-menu .menu-item:nth-child(4) {
  animation-delay: 0.24s;
}
.menu > ol > .menu-item:hover > .sub-menu .menu-item:nth-child(5) {
  animation-delay: 0.32s;
}
/* Allow submenu to appear on hover */
.menu-item:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Smooth fade + slide-in animation for submenu items */
@keyframes enter {
  from {
    opacity: 0;
   
  }
  to {
    opacity: 1;

  }
}

/* Hidden navbar */
.menu.hidden {
  transform: translateY(-100%);
}

/* Mobile */
@media screen and (max-width: 600px) {
  .menu {
    position: relative;
  }
  .menu:after {
    content: "";
    position: absolute;
    top: calc(50% - 2px);
    right: 1rem;
    width: 30px;
    height: 4px;
    background: #EAEAEA;
    box-shadow: 0 10px #EAEAEA, 0 -10px #EAEAEA;
  }
  .menu > ol {
    display: none;
    background: rgba(0, 191, 255, 0.15);
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    animation: fade 0.2s ease-out;
  }
  .menu > ol > .menu-item {
    flex: 0;
    opacity: 0;
    animation: enter 0.3s ease-out forwards;
  }
  .menu > ol > .menu-item + .menu-item {
    margin-top: 0.75rem;
  }
  .menu:hover > ol {
    display: flex;
  }
}
  .menu-item.logo img {
    height: 40px;        /* Adjust as needed (typical: 30–60px) */
    width: auto;         /* Keeps correct aspect ratio */
    vertical-align: middle;
    transition: transform 0.3s ease;
  }

  .menu-item.logo img:hover {
    transform: scale(1.1); /* Small hover zoom effect (optional) */
  }
/* ========== SCROLL PROGRESS BAR ========== */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 6px;
  background: linear-gradient(90deg, #00BFFF, #1CFFFF);
  box-shadow: 0 0 6px #00BFFF;
  z-index: 9999;
  transition: width 0.2s ease;
}
  
  /* ========== FOOTER ========== */
.my-footer {
  background: rgba(10, 10, 15, 0.95);
  border-top: 1px solid rgba(0, 191, 255, 0.3);
  color: #EAEAEA;
  padding: 40px 0;
  text-align: center;
  font-family: 'Fira Sans', sans-serif;
  box-shadow: 0 -5px 20px rgba(0, 191, 255, 0.1);
}

.footer-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 25px;
}

.footer-navbars {
  text-align: center;
  min-width: 150px;
}

.footer-navbar-title a {
  color: #00BFFF;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-navbar-title p {
  color: #00BFFF;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-navbar-title a:hover {
  color: #1CFFFF;
  text-shadow: 0 0 6px #00BFFF, 0 0 10px #00BFFF;
}

/* Submenu */
.footer-submenu {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
}

.footer-submenu li {
  margin: 6px 0;
}

.footer-submenu a {
  color: #EAEAEA;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-submenu a:hover {
  color: #00BFFF;
  text-shadow: 0 0 5px #00BFFF;
}

.footer-supports,
.footer-infos {
  margin-top: 20px;
  color: #B0B0B0;
  font-size: 13px;
}

.footer-supports a,
.footer-infos a {
  color: #00BFFF;
  text-decoration: none;
}

.footer-supports a:hover,
.footer-infos a:hover {
  text-decoration: underline;
}

/* Responsive */
@media screen and (max-width: 700px) {
  .footer-navigation {
    flex-direction: column;
    gap: 1.5rem;
  }
}
  
 /* ========== STOPMOTION ========== */
.stopmotion-container {
  position: relative;
  height: 500vh;
  width: 100%;
  overflow: hidden;
}
.frame {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.frame.active {
  opacity: 1;
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== MAIN CONTENT ========== */
#main-content {
  opacity: 0;
  visibility: hidden;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease, visibility 0s linear 1s;
}
#main-content.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Logo Reveal */
.logo-reveal {
  text-align: center;
  padding: 150px 20px 80px;
}
.logo-title {
  font-size: 5rem;
  font-weight: 800;
  color: #00BFFF;
  text-shadow: 0 0 20px #00BFFF;
}
.subtitle {
  font-size: 1.5rem;
  color: #EAEAEA;
  text-shadow: 0 0 15px #1CFFFF;
  margin-top: 1rem;
}

/* ========== TEXT BOXES ========== */
.intro-text-boxes {
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding: 80px 15%;
}
.text-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 0, 255, 0.4);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 0 25px rgba(255, 0, 255, 0.2);
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease, transform 1s ease, box-shadow 0.3s ease;
}
.text-box:hover {
  box-shadow: 0 0 25px rgba(255, 0, 255, 0.6), 0 0 40px rgba(0, 191, 255, 0.3);
}
.text-box.visible {
  opacity: 1;
  transform: translateY(0);
}
.text-box h2 {
  color: #FF00FF;
  margin-bottom: 15px;
}
.text-box p {
  color: #EAEAEA;
}

/* SDG logos */
.sdg-logos {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 80px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}
.sdg-logos.visible {
  opacity: 1;
  transform: translateY(0);
}
.sdg-logos img {
  max-width: 150px;
  height: auto;
  border-radius: 10px;
  border: 2px solid rgba(255, 0, 255, 0.5);
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.3s ease;
}
.sdg-logos img.visible {
  opacity: 1;
  transform: translateY(0);
}
.sdg-logos img:hover {
  box-shadow: 0 0 25px #FF00FF, 0 0 35px #00BFFF;
  transform: scale(1.05);
}
/* ======= Learn More Button ======= */
.learn-more-container {
  text-align: center;
  margin-top: 40px;
}

.learn-more-btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #00BFFF;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid #00BFFF;
  border-radius: 30px;
  background: rgba(0, 191, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 191, 255, 0.4), inset 0 0 10px rgba(0, 191, 255, 0.2);
  transition: all 0.3s ease;
}

.learn-more-btn:hover {
  color: #FF00FF;
  border-color: #FF00FF;
  background: rgba(255, 0, 255, 0.1);
  box-shadow: 0 0 25px #FF00FF, 0 0 35px #00BFFF;
  transform: scale(1.05);
  text-shadow: 0 0 10px #FF00FF;
}

.learn-more-btn:active {
  transform: scale(0.98);
  box-shadow: 0 0 15px #FF00FF;
}

.stopmotion-container,
#progress-bar {
  pointer-events: none;
}
