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

body {
  font-family: "Arial", sans-serif;
  overflow-x: hidden;
}

/* Landing Page Styles */
.landing-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  z-index: 1000;
}

.nav-item {
  color: white;
  font-weight: bold;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.main-title {
  text-align: center;
  font-size: 4em;
  color: white;
  margin-top: 150px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: titleGlow 3s ease-in-out infinite alternate;
}

.subtitle {
  text-align: center;
  font-size: 1.5em;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 10px;
}

@keyframes titleGlow {
  from {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  }

  to {
    text-shadow: 2px 2px 20px rgba(255, 255, 255, 0.5);
  }
}

/* Background Animation */
.background-flowers {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.flower {
  position: absolute;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, #ff6b6b, #ffa500);
  border-radius: 50% 10% 50% 10%;
  animation: rotate 8s linear infinite;
  animation-delay: var(--delay);
  left: var(--x);
  top: var(--y);
  opacity: 0.7;
}

.flower::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes rotate {
  from {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.2);
  }

  to {
    transform: rotate(360deg) scale(1);
  }
}

/* Flashcard Slideshow */
.flashcard-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 80px;
  cursor: pointer;
  z-index: 10;
  position: relative;
}

.flashcard-slideshow {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  overflow-x: auto;
  padding: 20px;
}

.flashcard {
  min-width: 200px;
  height: 250px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  overflow: hidden;
  opacity: 0.7;
  transform: scale(0.9);
}

.flashcard.active {
  opacity: 1;
  transform: scale(1);
}

.flashcard:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.flashcard img {
  width: 100%;
  height: 70%;
  object-fit: cover;
}

.card-info {
  padding: 15px;
  text-align: center;
}

.card-info h3 {
  font-size: 1.2em;
  color: #333;
  margin-bottom: 5px;
}

.card-info p {
  color: #666;
  font-size: 0.9em;
}

.enter-globe-btn {
  margin-bottom: 20px;
  padding: 15px 30px;
  font-size: 1.2em;
  background: linear-gradient(45deg, #4ecdc4, #44a08d);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.enter-globe-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Content Sections */
.content-section {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 100px 50px;
  z-index: 2000;
  overflow-y: auto;
}

.content-section.active {
  display: block;
}

.content-section h2 {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
}

.content-section p {
  font-size: 1.2em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Blog Section */
.blog-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
}

.blog-login input {
  padding: 12px 20px;
  font-size: 1em;
  border: none;
  border-radius: 25px;
  width: 300px;
  text-align: center;
}

.blog-login button {
  padding: 12px 30px;
  font-size: 1em;
  background: #4ecdc4;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.blog-login button:hover {
  background: #44a08d;
  transform: translateY(-2px);
}

/* Globe Page Styles */
.globe-page {
  position: relative;
  width: 100%;
  height: 100vh;
  background: #000;
  overflow: hidden;
}

.controls-panel {
  position: absolute;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  padding: 15px 25px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.back-btn {
  padding: 10px 20px;
  background: #ff6b6b;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1em;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: #ff5252;
  transform: translateY(-2px);
}

.search-filter {
  display: flex;
  gap: 15px;
  align-items: center;
}

.search-filter input,
.search-filter select {
  padding: 10px 15px;
  border: none;
  border-radius: 25px;
  font-size: 1em;
  background: rgba(255, 255, 255, 0.9);
}

.search-filter input {
  width: 200px;
}

#globeContainer {
  width: 100%;
  height: 100%;
}

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

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 15px;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2em;
  cursor: pointer;
  color: #666;
}

.close:hover {
  color: #333;
}

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

.animal-detail img {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

.iucn-badge {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  color: white;
  font-weight: bold;
  margin: 10px 0;
}

.critically-endangered {
  background: #d32f2f;
}

.endangered {
  background: #f57c00;
}

.vulnerable {
  background: #fbc02d;
  color: #333;
}

.near-threatened {
  background: #689f38;
}

.least-concern {
  background: #388e3c;
}

.globe-footer {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 15px 25px;
  border-radius: 10px;
  color: white;
  z-index: 100;
}

.globe-footer button {
  padding: 8px 16px;
  background: #ff9800;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.globe-footer button:hover {
  background: #f57c00;
  transform: translateY(-2px);
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.glow-ring {
  border-radius: 50%;
  position: absolute;
  pointer-events: none;
}

.glow-critically-endangered {
  box-shadow: 0 0 20px 5px #d32f2f;
  animation: pulse-red 2s infinite;
}

.glow-endangered {
  box-shadow: 0 0 20px 5px #f57c00;
  animation: pulse-orange 2s infinite;
}

.glow-vulnerable {
  box-shadow: 0 0 20px 5px #fbc02d;
  animation: pulse-yellow 2s infinite;
}

@keyframes pulse-red {
  0%,
  100% {
    box-shadow: 0 0 20px 5px #d32f2f;
  }

  50% {
    box-shadow: 0 0 30px 10px #d32f2f;
  }
}

@keyframes pulse-orange {
  0%,
  100% {
    box-shadow: 0 0 20px 5px #f57c00;
  }

  50% {
    box-shadow: 0 0 30px 10px #f57c00;
  }
}

@keyframes pulse-yellow {
  0%,
  100% {
    box-shadow: 0 0 20px 5px #fbc02d;
  }

  50% {
    box-shadow: 0 0 30px 10px #fbc02d;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-title {
    font-size: 2.5em;
  }

  .flashcard-slideshow {
    flex-direction: column;
    align-items: center;
  }

  .controls-panel {
    flex-direction: column;
    gap: 15px;
  }

  .search-filter {
    flex-direction: column;
    width: 100%;
  }

  .search-filter input {
    width: 100%;
  }
}

.tooltip-globe {
  position: absolute;
  left: 2%;
  bottom: 15%;
  background: rgba(0, 0, 0, 0);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  pointer-events: none;
  font-size: 0.9em;
  z-index: 1000;
}

.tip {
  padding: 3px;
}

.reset-filter {
  padding: 10px 20px;
  background: #ff6b6b;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1em;
  transition: all 0.3s ease;
}

.flipbook-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.flipbook {
  width: 600px;
  height: 400px;
  position: relative;
  overflow: hidden;
}

.flipbook img.page {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: transform 0.8s ease, opacity 0.8s ease;
  transform: rotateY(90deg);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
}

.flipbook img.page.active {
  opacity: 1;
  transform: rotateY(0deg);
  z-index: 2;
}

.button-container {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

#prevPageBtn,
#nextPageBtn,
#portfolioButton {
  padding: 12px 25px;
  font-size: 1em;
  background: #4ecdc4;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

#portfolioButton {
  display: inline-block;
}

#portfolioButton:hover {
  background: #44a08d;
  transform: translateY(-2px);
}
