/* rubik-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Rubik";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/rubik-v30-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* rubik-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Rubik";
  font-style: normal;
  font-weight: 600;
  src: url("../fonts/rubik-v30-latin-600.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

body {
  margin: 0;
  padding: 0;
  font-family: "Rubik", sans-serif;
  background: linear-gradient(135deg, #1e1e1e 0%, #2f2f2f 50%, #1b1b1b 100%);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 1.2s ease-out;
}

h1 {
  font-size: 4.5em;
  font-weight: 600;
  margin-bottom: 0em;
}

.subheading {
  font-size: 2.8em;
  margin-bottom: 40px;
}

.link-triangle {
  display: grid;
  grid-template-areas:
    ". top ."
    "left . right";
  gap: 40px;
  justify-items: center;
  align-items: center;
}

.hex-wrapper {
  position: relative;
  width: 220px;
  height: 190px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hex-wrapper:hover {
  transform: scale(1.05);
}

.hexagon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background: #333;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: background 0.3s ease;
}

.hexagon span {
  font-weight: 400;
  font-size: 0.9em;
  margin-top: 5px;
}

.hex-wrapper.blog:hover {
  box-shadow: 0 0 15px #2ecc71aa;
}
.hex-wrapper.youtube:hover {
  box-shadow: 0 0 15px #e74c3caa;
}
.hex-wrapper.it:hover {
  box-shadow: 0 0 15px #1cc7ffaa;
}

.hexagon.blog:hover {
  background: #2ecc71;
}

.hexagon.youtube:hover {
  background: #e74c3c;
}

.hexagon.it:hover {
  background: #1cc7ff;
}

footer {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
  font-size: 0.8em;
  color: #888;
  font-family: "Rubik", sans-serif;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.2em;
  }

  .subheading {
    font-size: 1.4em;
  }

  .link-triangle {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .hex-wrapper {
    width: 90vw;
    height: auto;
  }

  .hexagon {
    clip-path: none;
    border-radius: 12px;
    padding: 30px 0;
    background: #333;
  }

  .hex-wrapper:hover {
    transform: none;
  }
}
