/* Base Styles */
:root {
  --primary-color: #23e880;
  --secondary-color: #1B1B1B;
  --text-color: #ffffff;
  --accent-color: #ff4d4d;
  --background-color: rgba(0, 0, 0, 0.7);
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'VT323', sans-serif;
  color: var(--text-color);
  overflow-x: hidden;
}

/* Map Styles */
#map {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Content Wrapper */
.content-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;

  

  text-align: center;
}

.logo-container {
 
  padding: 1.5rem;
  border-radius: 20px;
  
 
  display: inline-block;
  margin: 0 auto;
}

.main-title {
  font-family: 'VT323', sans-serif;
  font-size: 5rem;
  color: var(--primary-color);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.globe-icon {
  font-size: 2rem;
  margin-top: 0.5rem;
  animation: float 3s ease-in-out infinite;
}

/* Sections */
section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.text-container {
  background: var(--background-color);
  padding: 3rem;
  border-radius: 20px;
  max-width: 800px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
  border: 1px solid var(--primary-color);
}

/* Typography */
.section-title {
  font-family: 'VT323', sans-serif;
  font-size: 3rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 2rem;
}

.intro-text {
  font-size: 1.5rem;
  line-height: 1.6;
  margin: 2rem 0;
}

.highlight-text {
  font-style: italic;
  color: var(--primary-color);
}

/* Grid Layouts */
.challenge-grid, .solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.challenge-item, .solution-item {
  text-align: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.challenge-item:hover, .solution-item:hover {
  transform: translateY(-10px);
}

/* Images */
.challenge-image, .solution-image, .impact-image {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  filter: drop-shadow(0 0 10px var(--primary-color));
}

/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Typing Effect */
.typing-effect {
  font-family: 'VT323', monospace;
  font-size: 2rem;
  color: var(--primary-color);
  border-right: 3px solid var(--primary-color);
  animation: blink 0.7s step-end infinite;
}

/* Grow Text Animation */
.grow-text {
  display: inline-block;
  animation: grow 2s forwards;
}

@keyframes grow {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}

/* Strikethrough */
.strikethrough {
  color: var(--accent-color);
  text-decoration: line-through;
}

.highlight {
  color: var(--primary-color);
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .text-container {
    padding: 2rem;
  }
  
  .challenge-grid, .solution-grid {
    grid-template-columns: 1fr;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--secondary-color);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1ae070;
}

/* === Hamburger Button === */
.menu-toggle {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #1B1B1B;
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 20px;
  cursor: pointer;
  z-index: 11;
}

.text-center{
  text-align: center;
}

.logo-container h2{
  font-size: 49px;
}
/* === Side Menu ===
#menu {
  position: absolute;
  top: 0;
  left: -500px;
  width: 200px;
  background: white;
  box-shadow: 2px 0 10px rgba(0,0,0,0.2);
  padding: 60px 27px 15px;
  transition: left 0.3s ease;
  z-index: 10;
  font-family: 'barlow', sans-serif;
  font-size: 15px;
} */

#menu.open {
  left: 0;
}

#menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#menu li {
  margin: 15px 0;
}

#menu a {
  text-decoration: none;
  color: #333;
  font-weight: thin;
  font-size: 20px;
}

/* === Marker === */
.custom-marker {
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  transition: opacity 0.2s ease-in-out;
}

.custom-marker:hover {
  opacity: 0.6;
}

.custom-marker svg {
  width: 100%;
  height: 100%;
}

/* === Popup === */
/* .mapboxgl-popup-content {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: white;
  padding: 0;
  border-radius: 8px;
} */

.popup-animal {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-size: 18px;
  opacity: 0.8;
}

.popup-icon {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 18px;
  opacity: 0.8;
}

/* === Legends === */
/* .legend {
  background: #fff;
  padding: 10px;
  border-radius: 6px;
  font-family: 'barlow', sans-serif;
  font-size: 12px;
  box-shadow: 0 0 6px rgba(0,0,0,0.2);
  z-index: 9;
} */

#icon-legend {
  position: absolute;
  bottom: 20px;
  left: 20px;
}

#color-legend {
  position: absolute;
  bottom: 20px;
  right: 20px;
}

.legend-item {
  display: flex;
  align-items: center;
  margin: 6px 0;
}

.legend-icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

.legend-color {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border-radius: 50%;
}

/* #logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); 
  transition: all 0.5s ease; 
  z-index: 10;
} */
.position-top {
  position: fixed;
  top: 10px; /* Adjust as needed */
  left: 10px; /* Adjust as needed */
  transform: translate(0, 0); /* Reset transform */
}

#typing-container {
  font-family: 'VT323', sans-serif;
  font-size: 45px;
  color: #23e880;
  white-space: normal; /* Allows text to wrap to the next line */
  overflow-wrap: break-word; /* Ensures long words break properly */
  overflow: hidden;
}

/* cursor to blink */
@keyframes blink {
  from {
    border-right-color: #23e880;
  }
  to {
    border-right-color: transparent;
  }
}

/* Define the grow animation */
@keyframes grow {
  0% {
    font-size: 0em;
  }
  100% {
    font-size: 3em; /* Adjust to desired size */
    line-height: normal;
  }
}

/* Apply the animation to the grow-text class */
.grow-text {
  display: inline-block; /* Ensure the animation works properly */
  animation: grow 15s forwards; /* 2 seconds duration, play once, and stop at the final state */
  transition: font-size 0.5s ease-in-out;
}

.strikethrough {
  text-decoration: line-through;
  
}


.vt323-regular {
  font-family: "VT323", monospace;
  font-weight: 400;
  font-style: normal;
}

.montserrat-2> {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}
.barlow-thin {
  font-family: "Barlow", sans-serif;
  font-weight: 100;
  font-style: normal;
}

.barlow-extralight {
  font-family: "Barlow", sans-serif;
  font-weight: 200;
  font-style: normal;
}

.barlow-light {
  font-family: "Barlow", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.barlow-regular {
  font-family: "Barlow", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.barlow-medium {
  font-family: "Barlow", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.barlow-semibold {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.barlow-bold {
  font-family: "Barlow", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.barlow-extrabold {
  font-family: "Barlow", sans-serif;
  font-weight: 800;
  font-style: normal;
}

.barlow-black {
  font-family: "Barlow", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.barlow-thin-italic {
  font-family: "Barlow", sans-serif;
  font-weight: 100;
  font-style: italic;
}

.barlow-extralight-italic {
  font-family: "Barlow", sans-serif;
  font-weight: 200;
  font-style: italic;
}

.barlow-light-italic {
  font-family: "Barlow", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.barlow-regular-italic {
  font-family: "Barlow", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.barlow-medium-italic {
  font-family: "Barlow", sans-serif;
  font-weight: 500;
  font-style: italic;
}

.barlow-semibold-italic {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-style: italic;
}

.barlow-bold-italic {
  font-family: "Barlow", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.barlow-extrabold-italic {
  font-family: "Barlow", sans-serif;
  font-weight: 800;
  font-style: italic;
}

.barlow-black-italic {
  font-family: "Barlow", sans-serif;
  font-weight: 900;
  font-style: italic;
}

/* Network Comparison Section */
.network-comparison {
  padding: 4rem 2rem;
  background: rgba(0, 0, 0, 0.7);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.network-type {
  text-align: center;
}

.network-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.network-item {
  background: rgba(0, 0, 0, 0.5);
  padding: 1.5rem;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

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

.network-image {
  width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px var(--primary-color));
}

.network-item p {
  font-family: 'VT323', sans-serif;
  font-size: 1.2rem;
  color: var(--primary-color);
  margin: 0.5rem 0;
}

@media (max-width: 768px) {
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .network-examples {
    grid-template-columns: 1fr;
  }
}

/* Bridge Section */
.bridge-section {
  padding: 4rem 2rem;
  margin-bottom: 4rem;
}

.bridge-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 4rem 0;
  flex-wrap: wrap;
}

.bridge-item {
  flex: 1;
  max-width: 200px;
  min-width: 150px;
  text-align: center;
}

.bridge-image {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 10px var(--primary-color));
  transition: transform 0.3s ease;
}

.bridge-image:hover {
  transform: scale(1.1);
}

.bridge-connection {
  width: 150px;
  transition: transform 0.3s ease;
}

.connection-image {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 10px var(--primary-color));
}

/* Warning Network Planet */
.warning-network {
  text-align: center;
  margin-top: 4rem;
}

.planet-container {
  width: 300px;
  height: 300px;
  margin: 0 auto;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  cursor: grab;
}

.planet-container:active {
  cursor: grabbing;
}

#earthCanvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  border-radius: 50%;
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
  touch-action: none;
}

.network-title {
  font-family: 'VT323', sans-serif;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-top: 2rem;
  text-shadow: 0 0 10px rgba(35, 232, 128, 0.5);
}

@media (max-width: 768px) {
  .planet-container {
    width: 300px;
    height: 300px;
  }
}

/* Responsive styles for bridge section */
@media (max-width: 567px) {
  .bridge-illustration {
    flex-direction: column;
    gap: 1.5rem;
  }

  .bridge-item {
    max-width: 150px;
    margin: 0 auto;
  }

  .bridge-connection {
    width: 100px;
    transform: rotate(90deg);
    margin: 1rem 0;
  }

  .bridge-section .text-container {
    padding: 1.5rem;
  }

  .bridge-section .section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .warning-network {
    margin-top: 2rem;
  }

  .planet-container {
    width: 250px;
    height: 250px;
  }

  .network-title {
    font-size: 2rem;
    margin-top: 1.5rem;
  }
}

/* Additional responsive improvements */
@media (max-width: 768px) {
  .bridge-section {
    padding: 3rem 1rem;
    margin-bottom: 3rem;
  }

  .bridge-illustration {
    margin: 3rem 0;
  }
}

@media (max-width: 400px) {
  .planet-container {
    width: 200px;
    height: 200px;
  }

  .bridge-section .section-title {
    font-size: 1.5rem;
  }

  .bridge-item {
    max-width: 120px;
  }

  .bridge-connection {
    width: 80px;
  }
}
