body {
  font-family: 'Merriweather', serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  background-color: #4a005a;
  margin:0 auto;
  padding-top: 0px;
}

/*Hero Section*/
.hero {
  padding: 210px 20px;
  background: linear-gradient(120deg, #6d2480, #6a93d9);
  text-align: center;
  justify-content: center; 
  max-width: 100%;
  color: white;
  margin-bottom: 20px;
  margin-top: 0;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
  color: white;
  max-width:100%;
  text-align: center;
  justify-content: center; 
  display: block;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 30px;  
  font-family: 'Poppins', sans-serif;
  color: white;
  max-width:100%;
  text-align: center;
  justify-content: center; 
  display: block;
}


/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: #333;
  margin-top: 24px;
  margin-bottom: 16px;
  font-weight: 600;
  max-width: 800px;
  font-family: 'Poppins', sans-serif;
  display: block;
  width: 100%;
  text-align: center;
  justify-content: center; 
}

/* Navigation bar */
.navbar {
    display: flex;
    position: relative;
    justify-content: space-between;
    align-items: center;
    background-color: #4a005a;
    font-family: 'Poppins', sans-serif;
    color: white;
    margin-bottom: 0;
    margin-top: 0;
}

.page-title {
    font-size: 1.9rem;
    margin-left: 1rem;
    margin: 0.5rem;
}

.navbar-links {
    height: 100%;
}

.navbar-links ul {
    display: flex;
    margin: 0;
    padding: 0;
}

.navbar-links li {
    list-style: none;
}

.navbar-links li a {
    display: block;
    text-decoration: none;
    color: white;
    padding: 1rem;
    font-size: 1.3rem;
    font-family: 'Poppins', sans-serif;
}

.navbar-links li:hover {
    background-color: #da84b1;
}

.toggle-button {
    position: absolute;
    top: .75rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    margin-bottom: 0;
}

.toggle-button .bar {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 10px;
    margin-bottom: 1em;
}

/* Headings bigger than paragraph */
h2 {
  font-size: 1.75em;
  max-width: 800px;
  text-align: center;
  justify-content: center; 
}

.small {
  font-size: 12px;
  font-style: italic;
  font-weight: 250;
}

/* Paragraph */
p {
  margin-bottom: 1em;
  font-weight: 300;
  max-width: 650px;
  text-align: center;
  display:block;
}


/* Links */
/* We want the links to be a little more visible  and a different color */
a {
  color: #530a63;
  text-decoration: none;
  max-width:100%;
  padding: 0;
}

a:hover {
  text-decoration: underline;
}

/*section settings*/
.chart-section {
  display: flex;
  max-width: 1000px;
  width: 100%;
  gap: 20px;
  border-radius: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 40px 20px;
  background-color: #c5d7fe;
  padding: 20px;
  margin:0 auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 2.5em;
}

/* Card styles */
.card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 10px;
  text-align: center;
  align-items: center;
  /*display: inline-block;*/
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  max-width: 850px;
  /*overflow: hidden;overflow: auto;*/
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--surface-glow);
}


.chart-container {
  max-width: 800px;
  object-fit: contain; 
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: center; 
}

.card p {
  /*object-fit: contain;*/
  max-width: 550px;
  text-align: center;
  align-items: center;
}

.card figure {
  object-fit: contain; 
  width: auto; 
  height: auto; 
}

/* Card 2 section for Project Page*/
.card2 {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 60px;
  text-align: center;
  display:block;
  max-width: 800px;
  overflow: hidden;
}
.card2:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--surface-glow);
}
.card2 figure {
  width: 90%; /* 100% width, but will maintain aspect ratio */
  height: auto; /* Keep the aspect ratio, will adjust to card size */
  max-width: 90%; /* Make sure chart doesn't overflow horizontally */
  max-height: 90%; /* Make sure chart doesn't overflow vertically */
  object-fit: contain; /* Ensure chart scales to fit inside container */
}

.card2 p {
  /*object-fit: contain;*/
  max-width: 100%;
}

.card2 img {
  width: 350px; /* 100% width, but will maintain aspect ratio */
  height: auto; /* Keep the aspect ratio, will adjust to card size */
  max-width: 90%; /* Make sure chart doesn't overflow horizontally */
  max-height: 90%; /* Make sure chart doesn't overflow vertically */
  object-fit: contain; /* Ensure chart scales to fit inside container */
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px;
}
  
/* Images */
img {
  max-width: 100%;
  height: auto;
}


/* animations and interactivity */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .chart-section {
    flex-direction: column;
    align-items: center;
  }
  .card {
    flex: 1 1 100%;
  }
  .card2 {
    flex: 1 1 100%;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  animation: fadeIn 1s ease-in-out;
}
