:root {
  --primary: #623376;
  --secondary: #8e0db2;
  --white: #ffffff;
  --black: #000000;
  --gray: #f4f4f4;
  --transition: all 0.3s ease;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
  padding: 2rem 0;
}

.hero {
  /* background: linear-gradient(135deg, var(--primary), var(--secondary)); */
  background-image: url('../img/metamorcode.gif');
  color: var(--white);
  padding: 0rem 1rem;
  height: 100vh;
  text-align: center;
  animation: fadeIn 1s ease-in-out;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.hero .container {
  padding-top: 25rem;
}

.hero img {
  height: 300px;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero .cta {
  background: var(--white);
  color: var(--primary);
  padding: 0.8rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: var(--transition);
  display: inline-block;
  margin-top: 1rem;
}
.hero .cta:hover {
  background: var(--secondary);
  color: var(--white);
}

.section {
  padding: 4rem 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.6s ease forwards;
  animation-play-state: paused;
}

.section.highlight {
  background: var(--gray);
}

h2 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

p,
li,
blockquote {
  font-size: 1rem;
}

ul {
  padding-left: 1rem;
  list-style: none;
}

ul li::before {
  content: '✔';
  margin-right: 0.5rem;
  color: var(--primary);
}

.grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-left: 5px solid var(--primary);
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-5px);
  border-left-color: var(--secondary);
}

blockquote {
  background: #ffe;
  border-left: 5px solid var(--secondary);
  padding: 1rem;
  font-style: italic;
}

.numbers {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.metric {
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 8px;
  padding: 1rem 2rem;
  text-align: center;
  transition: var(--transition);
}

.metric:hover {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

.big {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary);
}

.pyramid {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.level {
  background: var(--primary);
  color: var(--white);
  width: 90%;
  text-align: center;
  padding: 0.7rem;
  border-radius: 5px;
  font-weight: bold;
  transition: var(--transition);
}
.level:nth-child(1) {
  width: 90%;
}
.level:nth-child(2) {
  width: 75%;
}
.level:nth-child(3) {
  width: 60%;
}
.level:nth-child(4) {
  width: 45%;
}
.level:nth-child(5) {
  width: 30%;
}
.level:hover {
  background: var(--secondary);
}

.footer {
  background: var(--black);
  color: var(--white);
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  position: relative;
}

#backToTop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--secondary);
  color: var(--white);
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 1000;
}

#backToTop:hover {
  background: var(--primary);
}

@media (min-width: 768px) {
  .grid {
    flex-direction: row;
  }
  .metric {
    flex: 1;
  }
  .numbers {
    flex-direction: row;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
