:root {
  --primary-bg: #3a254a;
  --secondary-bg: #6a329f;
  --text-color: #fff;
  --button-hover: #8f5fd1;
}

body {
  font-family: 'Roboto', sans-serif;
  background: var(--primary-bg);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.container {
  width: 90%;
  max-width: 1000px;
  padding: 10px 0;
  text-align: center;
  /* Center-align all text inside the container */
}

header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Center-align header content */
  padding-bottom: 15px;
}

h1 {
  font-family: 'Fredoka One', cursive;
  font-size: 2em;
  margin-bottom: 15px;
  text-align: center;
  /* Center-align the header text */
}

.profile-section {
  display: flex;
  flex-direction: column;
  /* Stack items vertically */
  align-items: center;
  /* Center items horizontally */
  gap: 15px;
  /* Add space between the image and text */
  background: rgba(0, 0, 0, 0.2);
  padding: 15px;
  border-radius: 10px;
  width: 100%;
  box-sizing: border-box;
}

.profile-image img {
  width: 100%;
  /* Make the image responsive */
  max-width: 350px;
  /* Set a maximum width for the image */
  height: auto;
  /* Maintain aspect ratio */
  border-radius: 10px;
  /* Add rounded corners */
  display: block;
}

.profile-text {
  font-size: 1.1em;
  /* Slightly increase text size */
  line-height: 1.6;
  /* Improve readability */
  text-align: center;
  /* Center-align the text */
}

.profile-text p {
  margin: 5px 0;
}

.motto {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Center-align the motto */
  gap: 10px;
  font-style: italic;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  width: 100%;
  justify-content: center;
  /* Center-align the grid items */
}

.grid-item {
  background: var(--secondary-bg);
  border-radius: 15px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Fredoka One', cursive;
  font-size: 1.3em;
  min-height: 120px;
  cursor: pointer;
  transition: background 0.3s;
}

.grid-item:hover {
  background: var(--button-hover);
}

.grid-item.large-text {
  font-size: 2em;
  justify-content: flex-start;
  padding-top: 30px;
}

.grid-item a {
  text-decoration: none;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

@media (max-width: 768px) {
  .profile-section {
    flex-direction: column;
    text-align: center;
  }

  .profile-image img {
    width: 80%;
    max-width: 250px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .grid-item.large-text {
    font-size: 2em;
    padding-top: 20px;
  }
}
