.content {
  padding: 20px 0;
  margin: 0 auto;
  text-align: center;
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-size: 8vmin;
  letter-spacing: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  max-width: 100vw;
  position: relative;
  z-index: 10;
  width: 100%;
  box-sizing: border-box;
}

.title {
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 10px;
}

.title > span {
  display: inline-block;
  animation: breathingGlow 4s ease-in-out infinite alternate;
}

.title-letter {
  display: inline-block;
  opacity: 0;
  background: linear-gradient(45deg, var(--color-purple), var(--color-blue), var(--color-cyan));
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 8s ease infinite, letterReveal 0.6s ease forwards;
}

.shooting-star {
  height: 2px;
  width: 150px;
  background: linear-gradient(-45deg, var(--color-purple), rgba(127, 56, 150, 0));
  border-radius: 999px;
  filter: drop-shadow(0 0 6px #9152ff);
  position: absolute;
  bottom: 0;
  left: -600px;
  opacity: 0;
  transform: rotate(0deg);
  z-index: -1;
  animation: shootingStarTitle 3000ms linear infinite;
  animation-delay: 1s;
}

.shooting-star::before,
.shooting-star::after {
  display: none;
}

.links {
  display: flex;
  flex-direction: column;
  font-size: 5vmin;
  gap: 2rem;
  width: 90%;
  max-width: 800px;
}

@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.section {
  position: relative;
  padding: 1.5rem;
  margin: 3px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  background: rgba(22, 24, 29, 0.6);
  box-shadow: 0 8px 32px 0 rgba(14, 24, 85, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.section::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1.5px;
  background: conic-gradient(from var(--border-angle), transparent 25%, var(--color-purple), var(--color-cyan), transparent 75%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.section:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px 0 rgba(14, 24, 85, 0.15);
}

.section:hover::after {
  opacity: 1;
  animation: borderRotate 4s linear infinite;
}

.section > h2 {
  font-size: 6vmin;
  font-family: "Lato", sans-serif;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: linear-gradient(45deg, var(--color-pink), var(--color-sky));
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(127, 56, 150, 0.5));
  margin-bottom: 30px;
  margin-top: -5px;
  transition: filter 0.3s ease;
  animation: gradientShift 8s ease infinite;
  text-align: left;
}

.section:hover > h2 {
  filter: drop-shadow(0 0 30px rgba(127, 56, 150, 0.8));
}

.links a {
  margin-bottom: 15px;
  color: var(--color-link);
  transition: transform 0.4s ease, filter 0.4s ease;
  display: flex;
  align-items: center;
  position: relative;
  font-weight: 300;
  letter-spacing: 1px;
  font-family: "Lato", sans-serif;
  background: linear-gradient(90deg, var(--color-link-soft), #ffffff);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(139, 168, 255, 0.3));
  text-align: left;
}

.links a i {
  width: 20px;
  margin-right: 10px;
  text-align: center;
  -webkit-text-fill-color: var(--color-link);
  background: none;
}

.links a:link {
  text-decoration: none;
}

.links a:visited {
  text-decoration: none;
}

.links a:hover {
  text-decoration: none;
  background: linear-gradient(90deg, #ffffff, var(--color-link-soft));
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
  transform: translateX(5px);
}

.links a:hover i {
  -webkit-text-fill-color: #ffffff;
}

.links a::before {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background: #ffffff;
  visibility: hidden;
  transition: width 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.links a:hover::before {
  visibility: visible;
  width: 100%;
}

.links a:active {
  text-decoration: none;
}

.links a:focus-visible {
  outline: 2px solid var(--color-link-soft);
  outline-offset: 4px;
  border-radius: 4px;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
  transform: translateX(5px);
}

.links a:focus-visible i {
  -webkit-text-fill-color: #ffffff;
}

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

@keyframes shootingStarTitle {
  0% {
    opacity: 0;
    width: 50px;
    transform: translateX(0);
  }
  5% {
    opacity: 1;
    width: 150px;
  }
  90% {
    opacity: 1;
    width: 150px;
  }
  100% {
    opacity: 0;
    width: 50px;
    transform: translateX(calc(100vw + 200px));
  }
}

@keyframes shootingStar {
  0% {
    opacity: 0;
    transform: rotate(15deg) translateX(0);
  }
  5% {
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(15deg) translateX(calc(100vw + 200px));
  }
}

@keyframes breathingGlow {
  from {
    filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 10px rgba(127, 56, 150, 0.2));
  }
  to {
    filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 35px rgba(67, 95, 189, 0.5)) drop-shadow(0 0 60px rgba(53, 184, 224, 0.25));
  }
}

@keyframes letterReveal {
  to {
    opacity: 1;
  }
}

@keyframes borderRotate {
  to {
    --border-angle: 360deg;
  }
}

.footer {
  margin-top: 3rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer p {
  font-size: 0.9rem;
  color: var(--color-muted);
  letter-spacing: 1px;
  font-weight: 300;
  margin: 0;
}

.footer:hover {
  opacity: 1;
}

.hobbies .subsection {
  margin-bottom: 15px;
  text-align: left;
  padding: 12px 15px;
  border-radius: 15px;
  background: rgba(40, 44, 55, 0.15);
  backdrop-filter: none;
  border: none;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03), inset 0 0 1px rgba(255, 255, 255, 0.15);
}

.hobbies .subsection:hover {
  background: rgba(50, 55, 70, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05), inset 0 0 2px rgba(255, 255, 255, 0.25);
}

.hobbies .subsection h3 {
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 12px;
  letter-spacing: 2px;
  font-weight: 400;
  color: var(--color-heading);
  text-shadow: 0 0 15px rgba(163, 204, 255, 0.6);
  user-select: none;
  text-align: left;
}

.hobbies .subsection a {
  display: flex;
  margin-bottom: 10px;
  margin-left: 10px;
  font-size: 1.1rem;
}

/* Fade-in animation utility */
.fade-hidden {
  opacity: 0;
  transform: translateY(20px);
}

/* Media queries para responsive */
@media screen and (min-width: 768px) {
  .links {
    display: grid;
    grid-template-columns: 3fr 2fr;
    grid-template-rows: auto;
    grid-template-areas:
      "hobbies right";
    gap: 1.5rem;
    width: 100%;
  }

  .hobbies {
    grid-area: hobbies;
  }

  .right-column {
    grid-area: right;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .personal, .gifts {
    height: auto;
    margin-bottom: 0;
  }

  .hobbies .subsection {
    width: 100%;
    margin-bottom: 15px;
  }

  .section > h2 {
    font-size: 2rem;
  }

  .links a {
    font-size: 1.25rem;
  }
}

@media screen and (max-width: 767px) {
  .content {
    font-size: 6vmin;
    letter-spacing: 6px;
    padding: 15px;
    align-items: center;
    width: 100%;
    max-width: 100%;
  }

  .title span {
    font-size: 10vmin;
  }

  .links {
    gap: 0;
  }

  .section {
    margin-bottom: 1.5rem;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .section > h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .links a {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .footer p {
    font-size: 0.8rem;
  }

  .shooting-star {
    animation-duration: 2000ms;
    left: -150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
