/* Reset and base styles */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
  overflow-x: hidden; /* Prevent horizontal scroll */
  overflow-y: auto; /* Allow vertical scroll only if needed */
}

/* Background container */
.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.background-picture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.background-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Navbar styling */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Navigation links (desktop) */
.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0 1rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
}

/* Hamburger menu button (hidden on desktop) */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  position: absolute;
  right: 1rem; /* Changed from left to right */
}

/* Mobile navbar styling */
@media (max-width: 767px) {
  .navbar {
    justify-content: flex-start;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 0.5rem 0;
  }
}

/* Main content styling */
.content {
  text-align: center;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  padding: 1rem 0.5rem; /* Reduced top/bottom padding, slight side padding */
  min-height: calc(100vh - 60px); /* Account for navbar height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
  position: relative; /* Ensure content is above the background */
  z-index: 5; /* Higher than background, lower than navbar */
}

/* Word cloud styling */
.word-cloud {
  max-width: 100%; /* Use full width on mobile */
  height: auto;
  margin: 1rem auto; /* Reduce margin on mobile */
  display: block;
}

/* Image credit styling */
.image-credit {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.7rem;
  z-index: 1; /* Lower than content */
  pointer-events: none; /* Allow clicks to pass through to content */
}

.image-credit a {
  color: white;
  text-decoration: underline;
}

/* Footer styling */
.footer {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  text-align: center;
  padding: 1rem;
  position: relative;
  bottom: 0;
  width: 100%;
  z-index: 10;
}

.footer-text {
  margin: 0;
  font-size: 0.8rem;
}

.sponsors {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap; /* Allow logos to wrap on small screens */
}

.sponsor-logo {
  height: 50px;
  margin: 0 1rem;
  filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.7));
}

/* Education boxes */
.education-box {
  background: rgba(0, 0, 0, 0.85);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 0.5rem auto;
  max-width: 2000px;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  text-align: left;
  position: relative; /* Ensure links are clickable */
  z-index: 10; /* Higher than image credit */
}

/* Hyperlinks in education boxes */
.education-box a {
  color: #FFD700; /* Darker yellow */
  text-decoration: none;
}

.education-box a:hover {
  text-decoration: underline;
}

/* Project sections */
.project-section {
  background: rgba(0, 0, 0, 0.85);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem auto;
  max-width: 2000px;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  text-align: left;
}

/* Project lists */
.project-list {
  list-style: none;
  padding: 0;
}

.project-list li {
  margin: 0.5rem 0;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.project-list a {
  color: #FFD700; /* Darker yellow */
  text-decoration: none;
}

.project-list a:hover {
  text-decoration: underline;
}

/* Main Project Styling */
.main-project {
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid white;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem auto;
  max-width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.main-project h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.main-project p {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.project-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.project-link:hover {
  text-decoration: underline;
}

/* Other Assignments Styling */
.other-assignments {
  background: rgba(0, 0, 0, 0.85);
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem auto;
  max-width: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.other-assignments h3 {
  color: white;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.5rem;
}

.assignment-list {
  list-style: none;
  padding: 0;
}

.assignment-list li {
  margin: 0.5rem 0;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  text-align: center;
}

.assignment-list a {
  color: #FFD700;
  text-decoration: none;
}

.assignment-list a:hover {
  text-decoration: underline;
}

/* FUA Project */

.project-header {
  text-align: center;
  margin-bottom: 2rem;
  color: white;
}

.project-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.course-context {
  font-style: italic;
  color: white;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.abstract {
  background: rgba(0, 0, 0, 0.85);
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 800px;
  color: white;
  line-height: 1.6;
  text-align: justify;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.download-section {
  text-align: center;
  margin: 2rem auto;
}

.download-btn {
  display: inline-block;
  background: rgba(0, 0, 0, 0.9);
  color: #FFD700;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #FFD700;
  transition: background 0.3s, color 0.3s;
}

.download-btn:hover {
  background: #FFD700;
  color: black;
}

/* Course Pages */

.course-header {
  text-align: center;
  margin-bottom: 2rem;
  color: white;
}

.course-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.course-description {
  background: rgba(0, 0, 0, 0.85);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem auto;
  max-width: 800px;
  color: white;
  line-height: 1.6;
  text-align: justify;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem auto;
  max-width: 1000px;
  padding: 0 1.5rem; /* Added side padding to prevent cropping */
}

.project-card {
  background: rgba(0, 0, 0, 0.85);
  border-radius: 8px;
  padding: 1.5rem;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card h3 {
  color: #FFD700;
  margin-bottom: 0.5rem;
}

.project-card p {
  margin-bottom: 1rem;
  line-height: 1.5;
}

.download-btn {
  display: inline-block;
  background: rgba(0, 0, 0, 0.9);
  color: #FFD700;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid #FFD700;
  transition: background 0.3s, color 0.3s;
}

.download-btn:hover {
  background: #FFD700;
  color: black;
}

.gee-container {
  width: 100%;
  height: 400px;
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
}

.gee-iframe {
  width: 100%;
  height: 100%;
  border: none;
  zoom: 0.9;
}

/* City Networks Old Project */

.explanation {
  margin: 1rem 0;
  line-height: 1.6;
}

.map-container {
  width: 100%;
  margin: 1rem 0;
}

.map-container iframe {
  width: 100%;
  height: 600px;
  border-radius: 4px;
  border: none;
}

.map-note {
  font-size: 0.9rem;
  color: #ccc;
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Contact details styling */
.contact-details {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-details p {
  margin: 0.5rem 0;
}

.contact-link {
  color: #FFD700; /* Darker yellow */
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

.joke {
  margin-top: 1rem;
  font-style: italic;
  color: #ccc;
  font-size: 0.9rem;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .content {
    padding: 0.5rem;
    justify-content: flex-start; /* Ensure content starts at the top */
  }

  .word-cloud {
    max-width: 100%;
    margin: 0.5rem auto; /* Smaller margin for mobile */
  }

  .sponsor-logo {
    height: 30px; /* Smaller logos on mobile */
    margin: 0.3rem;
  }

  .education-box {
    max-width: 95%;
    padding: 1rem;
    margin: 0.5rem auto;
  }

  .project-section {
    max-width: 95%;
    padding: 1rem;
    margin: 0.5rem auto;
  }

  .project-header h1 {
    font-size: 2rem;
  }

  .abstract {
    padding: 1.5rem;
    max-width: 95%;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem; /* Slightly less padding on mobile */
  }

  .course-header h1 {
    font-size: 2rem;
  }

  .map-container iframe {
    height: 300px;
  }
  
}




