@import url("https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Jost", sans-serif;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
  color: rgba(221, 160, 221, 1);
}
html {
  scroll-behavior: smooth;
}
body {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  height: 100vh;
  cursor: url(cursor.png), auto;
}

a:hover {
  cursor: url(pointer.png), pointer;
}

#header {
  display: flex;
  justify-content: space-between;
  padding: 6px;
  align-items: center;
  background: rgba(138, 43, 226, 1);
}

#logo {
  background-color: rgba(138, 43, 226, 1);
  padding: 1em 0em 1em 4em;
}
#logo img {
  width: 130px;
}

#links {
  width: 60%;
  display: flex;
  flex-direction: row;
  justify-content: start;
  gap: 110px;
}

#links a {
  text-decoration: none;
}

.box {
  font-size: 20px;
  padding: 20px 20px;
  background: rgb(147, 122, 219);
  border-radius: 10px;
  box-shadow: 0 8px 8px -4px rgb(70, 1, 91);
  transition: 0.5s all;
}

.box:hover {
  box-shadow: 0 16px 16px -4px rgb(70, 1, 91);
}

.speech-heading {
  font-size: 2.2rem;
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: rgba(221, 160, 221, 1);
  text-decoration: none;
  font-weight: normal;
  display: block;
  all: unset;
  display: block;
  font-size: 2.2rem;
  color: rgba(221, 160, 221, 1);
  text-align: center;
  margin: 2rem auto 1rem auto;
  font-family: "Jost", sans-serif;
}

#socials {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 4em 2em 0em 2em;
  position: relative; /* isolate the section */
  z-index: 1;
}

#socials a {
  text-decoration: none;
  display: inline-block;
  height: auto;
  width: fit-content;
  line-height: 0; /* remove weird spacing */
  position: relative;
  z-index: 1;
}

.social-icon {
  width: 150px;
  height: auto;
  display: block;
  pointer-events: auto;
  border: none;
}

.social-icon:hover {
  transform: scale(1.05);
}

@media screen and (max-width: 640px) {
  #header {
    flex-direction: column;
    align-items: center;
    padding: 1em;
    text-align: center;
  }

  #logo {
    padding: 0;
    margin-bottom: 0.5em;
  }

  #logo img {
    width: 100px; /* Resize logo for smaller screen */
  }

  #links {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    align-items: center;
  }

  .box {
    font-size: 16px;
    padding: 10px 16px;
  }

  #socials {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2em 1em;
  }

  #speech {
    font-size: 1.2rem; /* 👈 smaller on phones */
    padding: 0 1rem;
  }

  .social-icon {
    width: 90px;
  }
}
