/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Helvetica Neue", Arial, sans-serif;
  scroll-behavior: smooth;
}

/* Global Variables */
b, strong {
  color: #00c3ff;
}

/* CSS Transitions and Animations */
@keyframes reveal {
  from { transform: translateX(0); }
  to   { transform: translateX(100%); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  z-index: 1000;
  animation: fadeIn 1.2s ease-in-out;
}

.navbar .logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: 2px;
  text-decoration:none;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #bbb;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 4px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #00c3ff;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(135deg, #0f0f0f, #1a1a1a, #000000);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 3rem;
}

.hero-content {
  max-width: 900px;
  animation: fadeIn 1.2s ease-in-out;
}

.hero h1 {
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.hero h1::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: white; /* same as background color */
  animation: reveal 1.5s ease forwards;
}

.hero .tagline {
  font-size: 1.4rem;
  font-weight: 300;
  color: #ccc;
}

/* Placeholder PH logo */
.ph-logo {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

.ph-logo img {
  width: 20%;
  height: auto;
  fill: white;
  opacity: 0.9;
}

/* Hero Buttons */
.hero-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
  border-radius: 9999px; /* pill shape */
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Sections */
.section {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  font-size: 1.3rem;
  text-align: center;
  color: #000;
}

.section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
} 

.section-header { 
  position: relative;
  display: inline-block;
  color: white;
}

.section-header::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 100%;
  height: 3px;
  background-color: #00c3ff;
  transform: translateX(-50%) scaleX(1);
  transform-origin: center;
  transition: transform 0.4s ease;
}

.section-header:hover::after {
  transform: translateX(-50%) scaleX(0);
}

#section1 {
  background: #111;
  color: white;
}

#section2 {
  background: #181818;
  color: white;
  justify-content: flex-start;
}

#section3 {
  background: #111;
  color: white;
}

#section4 {
  background: #181818;
  color: white;
  padding: 2em;
  text-align: justify;
}

#section5 {
  background: linear-gradient(135deg, #0f0f0f, #1a1a1a, #000000);
  color: white;
}

/* Outline Button */
.btn-outline {
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: #000;
}

.btn-outline .arrow {
  margin-left: 0.5rem;
  font-size: 1.2rem;
}

/* Solid Button */
.btn-solid {
  background: #fff;
  color: #000;
  font-weight: 600;
}

.btn-solid:hover {
  background: #ddd;
}

/* Overview text */
.overview-text {
  max-width: 900px;
  margin: 1rem auto 3rem;
  text-align: center;
}
.overview-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ccc;
  margin-bottom: 1.2rem;
}
.overview-text p:last-child {
  margin-bottom: 0;
}

/* Tiles grid */
.overview-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  width: 100%;
}

/* Main tiles */
.tile {
  background: #1c1c1c;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,195,255,0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}
.tile h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #00c3ff;
}
.tile ul {
  list-style: none; /* remove bullets */
  padding-left: 0;
}
.tile li {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
}

/* Sub-tiles (for hypotheses) */
.sub-tiles {
  display: grid;
  gap: 15px;
}
.sub-tile {
  background: rgba(255,255,255,0.08);
  padding: 15px;
  border-radius: 10px;
  text-align: center;
}
.sub-tile h4 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #00c3ff;
}
.sub-tile ul {
  list-style: none;
  padding-left: 0;
}
.sub-tile li {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
}

/* Vertically centered tile */
.tile.centered {
  display: flex;
  flex-direction: column;
  justify-content: center; /* centers vertically */
  align-items: center;     /* centers horizontally */
  text-align: center;
}

/* Team Section configurations */
.team-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 2rem auto 0;
}

.team-tile {
  background: #1c1c1c;
  padding: 2rem 1.5rem;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(0,195,255,0.3);
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

/* Number Circle */
.team-number {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #00c3ff;
  color: #000;
  font-size: 1.6rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0,195,255,0.4);
}

/* Profile Image */
.team-image {
  width: 150px;
  height: 150px;
  margin: 0 auto 1rem;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Description */
.team-desc {
  margin-top: 1rem;
  background: rgba(255,255,255,0.05);
  padding: 1rem;
  border-radius: 12px;
}

.team-desc h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #00c3ff;
}

.team-desc p {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.5;
}

/* Dataset Styles */
/* Dataset Tiles */
.s2-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
}

.unified {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  margin-top: 1rem;
  width: 100%;
}

.dataset-card {
  background: #1c1c1c;
  padding: 2rem 1.5rem;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(0,195,255,0.3);
  max-height: 128px;
  transition: max-height 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.dataset-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.dataset-collapsible {
  max-height: 0px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.dataset-collapsible.expanded, .dataset-card.expanded {
  max-height: 100%;
  transition: max-height 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.dataset-card-title {
  color: #00c3ff;
}

.dataset-card-desc {
  font-size: small;
  text-align: justify;
}

.dataset-resources {
  display: flex;
}
.dataset-resources h4 {
  font-size: small;
}

.dataset-card-downloads, .dataset-card-sources{
  list-style-type: none;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.dataset-card-download, .dataset-card-source {
  font-size: small;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
  width: 50%;
  text-align: left;
}

.dataset-card-download:hover, .dataset-card-source:hover {
  color: #00c3ff;
}

.dataset-downloads-collapsible, .dataset-sources-collapsible {
  background: #fff;
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  border-radius: 9999px;
  border: solid 2px white;
  cursor: pointer;
  font-size: small;
  font-weight: 500;
  text-decoration: none;
  margin-top: 12px;
  margin-bottom: 12px;
  width: 108px;
  transition: all 0.3s ease;
}

.dataset-downloads-collapsible:hover, .dataset-sources-collapsible:hover {
  background: transparent;
  color: white;
}

.dataset-card-downloads, .dataset-card-sources {
  /* margin-top: 0.6rem; */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.dataset-card-downloads.open, .dataset-card-sources.open {
  max-height: 500px;
  transition: max-height 0.4s ease,
}

.dataset-downloads, .dataset-sources {
  flex: 1;
  transition: max-height 0.4s ease,
}

.dataset-bold {
  color: #00c3ff;
  font-weight: 700;
}

/* Web Responsive Stuff (Mobile & Tablets) */

/* Tablets */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.6rem;
  }
  .hero .tagline {
    font-size: 1.1rem;
  }
}

/* Mobile phones */
@media (max-width: 768px) {
  /* Navbar */
  .navbar {
    padding: 1rem 1.5rem;
  }

  /* Hero */
  .hero {
    padding: 2rem 1rem;
  }
  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  .hero .tagline {
    font-size: 0.95rem;
  }

  .menu-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: rgba(0,0,0,0.9);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 2rem;
    gap: 1rem;
    display: none;
  }

  .nav-links.show {
    display: flex;
  }

  .ph-logo .ph-map {
    width: 80px;
  }

  /* Overview tiles stack */
  .overview-tiles {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .tile {
    padding: 1.5rem;
  }

  /* Team section stacks vertically */
  .team-tiles {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .team-tile {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }
  .team-image {
    width: 120px;
    height: 120px;
  }
  .team-number {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  .team-desc {
    padding: 0.8rem;
  }
  .team-desc h3 {
    font-size: 1.1rem;
  }
  .team-desc p {
    font-size: 0.85rem;
  }

  /* Dataset */
  /* Dataset Tiles */
  .s2-grid {
    grid-template-columns: 1fr;
  }
}

/* Wrap subsections to typical content width */
.overview-subsections, .methodology-subsections {
  max-width: 900px; /* same as overview-text */
  margin: 2rem auto; /* center it with top/bottom spacing */
  text-align: left;  /* left-align inside box */
}

.section h3 {
  font-size: 2.5rem;
}

/* Subsection headers */
.subsection-header {
  font-size: 2.5rem;
  font-weight: 600;
  color: #00c3ff;
  cursor: pointer;
  position: relative;
  padding: 0.6rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 4px rgba(0,195,255,0.3);
  background: rgba(0,195,255,0.1);
  transition: all 0.3s ease;
}


.subsection-header:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.subsection-header::after {
  content: '+';
  position: absolute;
  right: 1rem;
  font-size: 2.5rem;
  transition: transform 0.3s ease;
  transform: translateY(-7%);
}

.subsection-header.active::after {
  content: '-';
}

/* Collapsible content */
.subsection-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
  padding-left: 0.5rem;
}

.subsection-content.open {
  max-height: 100%;
  opacity: 1;
  margin-bottom: 1.5rem; /* space below each subsection */
}

/* Highlighted paragraph */
.subsection-content p.highlighted {
  color: #00c3ff;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(0,195,255,0.6), 0 0 15px rgba(0,195,255,0.4);
  border-left: 4px solid #00c3ff;
  padding-left: 0.8rem;
  margin-bottom: 0.8rem;
}

/* Normal paragraph */
.subsection-content p {
  color: #ccc;
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

/* Collapsed spacing */
.subsection:not(.expanded) {
  margin-bottom: 1.0rem; /* extra space only when collapsed */
}

/* When open, remove extra margin (content handles spacing) */
.subsection .subsection-content.open {
  margin-bottom: 0; 
}

/* Highlighted paragraph - bedazzling vibes */
.tile p.highlighted {
  color: #00c3ff;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.5;
  text-shadow: 0 0 8px rgba(0,195,255,0.6), 0 0 15px rgba(0,195,255,0.4);
  border-left: 4px solid #00c3ff;
  padding-left: 0.8rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.tile p.highlighted:hover {
  text-shadow: 0 0 12px rgba(0,195,255,0.8), 0 0 20px rgba(0,195,255,0.6);
}

/* Normal paragraph inside tile */
.tile p {
  color: #ccc;
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

a {
  color: #a09f9f;
  text-decoration: none;
}

.tile-header {
  min-height: 7rem;          /* consistent vertical space */
  display: flex;
  align-items: center;        /* vertical centering */
  justify-content: center;    /* horizontal centering */
  text-align: center;         /* fallback for wrapped text */
}

.subsection-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #00c3ff;
  position: relative;
  padding: 0.6rem 1rem;
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 4px rgba(0,195,255,0.3);
  background: rgba(0,195,255,0.1);
  transition: all 0.3s ease;
}

.skibidi p.highlighted {
  color: #00c3ff;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.5;
  text-shadow: 0 0 8px rgba(0,195,255,0.6), 0 0 15px rgba(0,195,255,0.4);
  border-left: 4px solid #00c3ff;
  padding-left: 0.8rem;
  margin-bottom: 2.5rem;
  transition: all 0.3s ease;
}

.footer-note {
  margin-top: 0.75rem;
  font-size: 0.65rem;
  color: #b8b4b4;
  font-style: italic;
  text-align: right;
  align-items: center;
  text-align: center;
}

.footer-note:hover {
  text-decoration: underline;
}

.hypothesis-results {
  list-style-type: none;
  padding-left: 0;
  align-items: center;
  text-align: center;
}

.landscape-figure {
  color: #00c3ff;
  text-align: center;
  margin: 2.5rem auto;
}

.landscape-figure-summary {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 0 auto 0.75rem auto; /* space between image and caption */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}

.landscape-figure-caption {
  font-size: 0.9rem;
  color: #00c3ff;
  margin: 0;
  font-style: italic;
}

.container {
  max-width: 100%;
  margin-top: 1rem;
}

.graphs {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: 20px;

}

.graph {
  flex: 1;
  width: 30%;
}

.corr2 {
  display: flex;
  justify-content: center;
}

.graph_2 {
  flex: 2;
  width: 50%;
  margin-top: 20px;
}

.code-text {
    font-family: 'Courier New', monospace;
}

/* Main subsubsection title */
.subsubsection-title {
  font-size: 1.4rem;
  color: white;
  font-weight: 700;
  margin-bottom: 0.8rem;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
  display: inline-block;
}

/* Nested subsubsubsection title */
.subsubsubsection-title {
  font-size: 1.15rem;
  color: #00c3ff;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-left: 3px solid #00c3ff;
  background: rgba(0,195,255,0.03);
  border-radius: 6px;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 3px rgba(0,195,255,0.4);
  display: inline-block;
}

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

.blue-border {
  border: 1px solid #00c3ff;
  border-radius: 6px;
  padding: 0.8rem;
  box-shadow: 0 0 6px rgba(0, 195, 255, 0.4);
}

img {
  border-radius: 6px;
}