:root {
  --gradient-bg: linear-gradient(135deg, #f1e3d3 0%, #f2d0a9 50%, #d88c9a 100%); 
  --header-bg: #6a5a8c; 
  --footer-bg: #6a5a8c; 
  --button-bg: #4a7c74; 
  --button-hover-bg: #8e7dbe; 
  --button-text-color: #ffffff; 
  --button-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2); 
  --card-bg: #ffffff; 
  --card-shadow: 0 15px 15px rgba(0, 0, 0, 0.1); 
  --text-color: #333333; 
  --accent-color: #f2d0a9; 
}

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


header {
  background-color: var(--header-bg);
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header a {
  text-decoration: none;
  color: white;
  margin: 0 10px;
  font-weight: bold;
  transition: color 0.3s ease;
}

header a:hover {
  color: var(--accent-color); 
}

header .dev-links {
  display: flex;
  gap: 10px;
}

header .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent-color); 
}

header nav {
  display: flex;
  gap: 20px;
}
.section-overline{
  font-family:  "Colonna MT", serif;
}

body {
  font-family: "Rubik", sans-serif;
  background: var(--gradient-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: var(--text-color);
  margin: 0;
  padding: 0;
  animation: gradientAnimation 10s ease infinite;
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


.carousel {
  overflow: hidden;
  width: 90%;
  margin: auto;
  border-radius: 20px;
  padding-top: 5px;
  box-shadow: var(--card-shadow);
}

.carousel-track {
  display: flex;
  animation: scroll 20s linear infinite;
  width: calc(300px * 10);
}

.carousel-slide {
  flex: 0 0 300px;
  height: 200px;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.section-overline {
  font-weight: bold;
  color: var(--header-bg); 
}

main {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.grid-container {
  width: 80%;
  max-width: 1200px;
  padding: 20px;
}

.parent {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 8px;
  width: 100%;
  height: 60vh;
  border: 2px solid rgba(0, 0, 0, 0.1);
  padding: 8px;
  box-sizing: border-box;
  background-color: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.parent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.div1, .div2, .div3, .div4, .div5, .div8 {
  grid-column: span 2;
  grid-row: span 2;
}

.div9 {
  grid-row: span 5 / span 5;
  grid-column-start: 5;
  grid-row-start: 1;
}

.goals-wrapper {
  width: 100%;
  padding: 20px 0;
}

.goals {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
}

.goal-col {
  flex: 1;
  min-width: 250px;
}

.goal {
  text-align: center;
  padding: 20px;
  border-radius: 25px;
  box-shadow: var(--card-shadow);
  background-color: var(--card-bg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.goal:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.goal-image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.goal-title {
  font-size: 1.5rem;
  margin: 15px 0 10px;
  color: var(--header-bg); 
}

.goal-text {
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.5;
}


.modes {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
}

.modes a {
  text-decoration: none;
  justify-content: center;
  align-items: center;
  width: 35%;
  height: 80px;
  color: var(--button-text-color);
  padding: 20px 20px;
  background-color: var(--button-bg);
  border-radius: 10px;
  box-shadow: var(--button-shadow);
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 40px;
  text-align: center;
  font-weight: bolder;
}

.modes a:hover {
  background-color: var(--button-hover-bg);
  transform: scale(1.05);
}


@media (max-width: 768px) {
  .goals {
    flex-direction: column;
    gap: 20px;
  }

  .goal-col {
    width: 100%;
  }

  .modes {
    flex-direction: column;
    gap: 10px;
    height: auto;
    width: 100%;
  }

  header {
    flex-direction: column;
    height: auto;
    padding: 10px;
  }

  header nav {
    flex-direction: column;
    gap: 10px;
  }
}

.section-overline {
  text-align: center;
  font-size: 40px;
}

.section-title {
  text-align: center;
  font-size: 27px;
  font-style: italic;
  padding-left: 4.5rem;
  padding-right: 4.5rem;
  color: var(--button-bg); 
}


footer {
  background-color: var(--footer-bg);
  padding: 20px;
  border-top: 2px solid rgba(0, 0, 0, 0.1);
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.footer-section {
  margin: 10px;
}

.footer-section h3 {
  margin-bottom: 10px;
  color: var(--accent-color); 
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin: 5px 0;
}

.footer-section ul li a {
  text-decoration: none;
  color: #ffffff;
}

.footer-bottom {
  margin-top: 20px;
  color: #ffffff;
}

.footer-social {
  margin-top: 10px;
}

.footer-social a {
  margin: 0 10px;
  text-decoration: none;
  color: #ffffff;
}

.footer-content {
  color: #ffffff;
}