* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #fefefe;
  color: #2e2e2e;
  line-height: 1.7;
  font-size: 1rem;
}

/* Header */
header {
  background: #b3e5cc;
  color: #2b2b2b;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

header h1 a {
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
  color: #2e2e2e;
  transition: color 0.3s ease;
}

header h1 a:hover {
  color: #4da99c;
}

nav {
  display: flex;
  gap: 0.5rem;
}

nav a {
  color: #2e2e2e;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 8px;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #ff9776;
}

/* Section */
.section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.section h2 {
  font-weight: 700;
  font-size: 2.5rem;
  color: #2b2b2b;
  margin-bottom: 1rem;
  text-align: center;
}

.section-intro {
  text-align: center;
  font-size: 1.15rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.subsection-title {
  font-weight: 700;
  font-size: 2rem;
  color: #2b2b2b;
  margin: 3rem 0 1rem;
  text-align: center;
}

.subsection-intro {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.8;
}

/* Meta Info */
  .slide-arrow.prev {
    left: 10px;
  }

  .slide-arrow.next {
    right: 10px;
  }

  .slide-arrow {
    padding: 0.8rem 1rem;
    font-size: 1.2rem;
  }

.meta-info {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 2rem auto 3rem;
  flex-wrap: wrap;
  padding: 2rem;
  background: #f8fcfa;
  border-radius: 12px;
  max-width: 900px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.meta-label {
  font-size: 0.85rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.meta-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #4da99c;
}

/* Content Blocks */
.content-block {
  max-width: 900px;
  margin: 0 auto;
}

.content-block p {
  text-align: left;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.9;
  color: #444;
}

.content-block p:last-child {
  margin-bottom: 0;
}

/* Methodology Section */
.methodology-content {
  max-width: 900px;
  margin: 3rem auto 0;
}

.method-step {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 2px solid #e0f2eb;
}

.method-step:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.method-step h4 {
  font-size: 1.4rem;
  color: #2b2b2b;
  margin-bottom: 1rem;
  font-weight: 700;
}

.step-num {
  display: inline-block;
  width: 35px;
  height: 35px;
  background: #4da99c;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 35px;
  margin-right: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.method-step p {
  color: #666;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Results Section */
.results-content {
  max-width: 900px;
  margin: 3rem auto 0;
}

/* Code Reference Section */
.code-reference {
  max-width: 900px;
  margin: 0 auto;
}

.code-reference p {
  text-align: left;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.9;
  color: #444;
}

.repo-link {
  background: #f8fcfa;
  padding: 2.5rem;
  border-radius: 16px;
  border: 2px solid #e0f2eb;
  text-align: center;
  transition: all 0.3s ease;
}

.repo-link:hover {
  border-color: #b3e5cc;
  box-shadow: 0 8px 20px rgba(77, 169, 156, 0.15);
}

.btn-code {
  display: inline-block;
  padding: 1.2rem 2.5rem;
  background: #4da99c;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(77, 169, 156, 0.3);
}

.btn-code:hover {
  background: #3d8f84;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(77, 169, 156, 0.4);
}

.repo-description {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: #666;
  font-style: italic;
}

/* Results Section Continued */

.result-block {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 2px solid #e0f2eb;
}

.result-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.result-block h4 {
  font-size: 1.4rem;
  color: #2b2b2b;
  margin-bottom: 1rem;
  font-weight: 700;
}

.result-block p {
  color: #666;
  font-size: 1.05rem;
  line-height: 1.8;
}

.result-block ul {
  list-style: none;
  margin-top: 1rem;
  padding-left: 0;
}

.result-block li {
  padding: 0.7rem 0 0.7rem 1.5rem;
  color: #444;
  font-size: 1.05rem;
  line-height: 1.7;
  position: relative;
}

.result-block li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #4da99c;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
}

/* Metrics Section */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

/* Visuals Section - Vertical Layout */
.visuals-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* Slideshow Container */
.slideshow-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.slide {
  display: none;
  width: 100%;
}

.slide.active {
  display: block;
}

.slide-label {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #4da99c;
  margin-bottom: 1.5rem;
  padding: 0.8rem;
  background: #f8fcfa;
  border-radius: 8px;
  border: 2px solid #e0f2eb;
}

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(77, 169, 156, 0.9);
  color: white;
  border: none;
  padding: 1rem 1.2rem;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  z-index: 10;
}

.slide-arrow:hover {
  background: #4da99c;
  transform: translateY(-50%) scale(1.1);
}

.slide-arrow.prev {
  left: -60px;
}

.slide-arrow.next {
  right: -60px;
}

.slide-dots {
  text-align: center;
  margin-top: 1.5rem;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  background: #d0e8dc;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #4da99c;
  transform: scale(1.3);
}

.dot:hover {
  background: #b3e5cc;
}

/* Visuals Section Continued */

.visual-section {
  margin: 4rem 0;
  padding-bottom: 3rem;
  border-bottom: 2px solid #e0f2eb;
}

.visual-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.visual-title {
  font-size: 1.6rem;
  color: #2b2b2b;
  margin-bottom: 2rem;
  font-weight: 700;
  text-align: left;
}

.visual-item-full {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Video Containers */
.video-container {
  width: 100%;
  background: #e0f2eb;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #d0e8dc;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.video-container:hover {
  border-color: #b3e5cc;
  box-shadow: 0 8px 24px rgba(77, 169, 156, 0.2);
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}

/* Large Image Containers */
.visual-container-large {
  width: 100%;
  background: #e0f2eb;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #d0e8dc;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.visual-container-large:hover {
  border-color: #b3e5cc;
  box-shadow: 0 8px 24px rgba(77, 169, 156, 0.2);
  transform: translateY(-2px);
}

.visual-container-large img {
  width: 100%;
  height: auto;
  display: block;
}

.visual-container-large:empty {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-container-large:empty::after {
  content: "Image Placeholder";
  color: #4da99c;
  font-size: 1.2rem;
  font-weight: 600;
}

.visual-caption {
  margin-top: 1.2rem;
  font-size: 1rem;
  color: #666;
  text-align: left;
  line-height: 1.7;
  font-style: italic;
}

/* Metrics Section */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.metric-card {
  background: #f8fcfa;
  padding: 2.5rem;
  border-radius: 16px;
  border: 2px solid #e0f2eb;
  transition: all 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(77, 169, 156, 0.15);
  border-color: #b3e5cc;
}

.metric-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #4da99c;
  font-weight: 700;
}

.formula {
  background: #e0f2eb;
  padding: 1.5rem;
  border-radius: 10px;
  font-family: 'Courier New', monospace;
  margin: 1.5rem 0;
  overflow-x: auto;
  border-left: 4px solid #4da99c;
  color: #2b2b2b;
  font-size: 1.1rem;
}

.metric-card h4 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #2b2b2b;
  font-weight: 700;
}

.metric-card p {
  color: #666;
  line-height: 1.7;
  font-size: 1rem;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.team-member {
  text-align: center;
  padding: 2rem;
  background: #f8fcfa;
  border-radius: 16px;
  border: 2px solid #e0f2eb;
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(77, 169, 156, 0.15);
  border-color: #b3e5cc;
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #4da99c;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 12px rgba(77, 169, 156, 0.3);
}

.team-avatar.avatar-2 {
  background: #ff9776;
}

.team-avatar.avatar-3 {
  background: #6ba3d9;
}

.team-member h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #2b2b2b;
  font-weight: 700;
}

.team-member p {
  color: #666;
  font-size: 0.95rem;
}

.team-email {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #4da99c;
  font-weight: 600;
}

.team-subtitle {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #888;
}

/* Footer */
footer {
  background: #b3e5cc;
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 4rem;
}

footer p {
  color: #2b2b2b;
  font-size: 1rem;
}

footer a {
  color: #2b2b2b;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #4da99c;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.social-links a {
  font-size: 1.1rem;
}

.footer-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #555;
}

/* Reveal Animation - Content visible by default for accessibility */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* This ensures content is always visible even if JavaScript doesn't load */

/* Responsive */
@media (max-width: 768px) {
  .section h2 {
    font-size: 2rem;
  }

  .subsection-title {
    font-size: 1.6rem;
  }

  .visual-title {
    font-size: 1.3rem;
  }

  .visuals-container {
    padding: 0 0.5rem;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  header {
    flex-direction: column;
    gap: 1rem;
  }

  header h1 a {
    font-size: 1.5rem;
  }

  nav {
    gap: 0.3rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  .slide-arrow.prev {
    left: 10px;
  }

  .slide-arrow.next {
    right: 10px;
  }

  .slide-arrow {
    padding: 0.8rem 1rem;
    font-size: 1.2rem;
  }

  .meta-info {
    gap: 1.5rem;
    padding: 1.5rem;
  }
}