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

body {
  /* Option 1: Inter + Source Serif Pro (Active) */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  /* Alternative Option 2: IBM Plex (Uncomment to use)
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  */

  line-height: 1.6;
  scroll-behavior: smooth;
  margin: 0;
  max-width: 100%;
}

/* Typography - Headings use serif for scientific authority */
h1, h2, h3, h4, h5, h6 {
  /* Option 1: Source Serif Pro (Active) */
  /* font-family: 'Source Serif Pro', Georgia, serif;
  font-weight: 600; */

  /* Alternative Option 2: IBM Plex Serif (Uncomment to use)*/
  font-family: 'IBM Plex Serif', Georgia, serif;
  
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(120, 97, 97, 0.2);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

#footerBar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: rgba(120, 97, 97, 0.2);
  text-align: center;
  padding: 10px 0;
  z-index: 1000;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

/* Semi-transparent Arrow (Hidden by Default) */
#footerArrow {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 30px;
  color: rgba(255, 255, 255, 0.5);
  transition: opacity 0.3s ease-in-out;
  opacity: 0; /* Hidden initially */
  pointer-events: none;
}

/* Show Arrow on Hover */
#footerBar:hover #footerArrow {
  opacity: 1;
}


/* Ensure the first full screen covers the full viewport */
#firstScreen {
  height: 100vh; /* Full height of viewport */
  position: relative;
}

/* Make sure body allows scrolling */
body {
  min-height: 200vh; /* Ensure scrolling is possible */
}


/* Scroll Down Arrow */
#scrollDown {
  font-size: 24px;
  cursor: pointer;
}


.branding {
  margin-right: auto;
}

.branding h1 {
  font-size: 1.5rem;
  color: #ffffff;
}

.branding p {
  font-size: 0.875rem;
  color: #ffffff;
}

.menu-links {
  margin-left: auto;
  display: flex;
  gap: 20px;
}

.menu-links a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  transition: color 0.3s ease;
}

.menu-links a:hover {
  color: #00ff15;
}

/* Fullscreen Globe Visualization */
#globeViz {
  height: 100vh;
  width: 100%;
  position: relative;
}

#loadingBarContainer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(200, 200, 200, 0.5);
  z-index: 1100;
}

#loadingBar {
  width: 0;
  height: 100%;
  background: #007bff;
  transition: width 0.3s ease-in-out;
}

/* Fixed Layer Selection Controls */
#controls {
  position: absolute;
  top: 120px;
  left: 90%;
  transform: translateX(-50%);
  background: rgba(73, 73, 73, 0.8);
  padding: 10px 15px;
  border-radius: 8px; 
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

#controls label {
  font-size: 14px;
  color: #ffffff;
}

#controls select {
  padding: 5px;
  font-size: 14px;
  background: #000000;
  color: #fffdfd;
  border: none;
  border-radius: 3px;
  margin-left: 10px;
}

/* Section Styling - Limited Width */
section {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 20px;
}

#portfolio h2, #about h2, #collaborations h2, #publications h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
}

#portfolio p{
  text-align: center;
  margin-bottom: 5px;
}

#publications p{
  text-align: left;
  margin-bottom: 5px;
  padding-left: 1.5em;
  text-indent: -1.5em;
}

#publications p.first-author::before {
  content: "* ";
  position: absolute;
  margin-left: -0.1em;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 20px;
}

.portfolio-item {
  position: relative;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s;
}

.portfolio-item:hover {
  transform: scale(1.05);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%);
  transition: filter 0.3s ease-in-out;
}

.portfolio-item:hover img {
  filter: grayscale(0%);
}

.portfolio-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  text-align: center;
  padding: 10px;
}

/* Collaboration Logos */
.collaborations {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
}

.collaborations img {
  height: 100px; /* Adjusted smaller size */
  /* max-width: 150px; */
  object-fit: contain;
}

/* Responsive Design */
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.control-panel {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  padding: 15px;
  color: white;
  font-family: Arial, sans-serif;
  max-width: 250px;
}

.layer-options {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.layer-options label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.color-legend-container {
  margin-top: 10px;
  text-align: center;
}

.color-legend-bar {
  height: 10px;
  width: 100%;
  border-radius: 5px;
}

.legend-values {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-top: 5px;
}

.extra-info {
  display: none;
  line-height: 20px;
  font-size: 12px;
  position: absolute;
  left: auto;
  right: 30px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px;
  border-radius: 5px;
  max-width: 200px;
  white-space: normal;
  text-align: left;
  z-index: 1000;
}

.info {
  font-size: 12px;
  display: inline-block;
  cursor: pointer;
  position: relative;
  text-align: right;
  margin-left: auto;
}

.info:hover .extra-info {
  display: block;
}

input[type="radio"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid white; 
  border-radius: 50%;
  background-color: transparent;
  display: inline-block;
  position: relative;
  cursor: pointer;
}

input[type="radio"]:checked {
  background-color: #229628; 
  border-color: #1ba72d;
}

input[type="radio"]:checked::before {
  content: "";
  width: 8px;
  height: 8px;
  background-color: white;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

input[type="radio"]:hover {
  border-color: #229628;
}
