@font-face {
  font-family: "Coolvetica";
  src: url("fonts/Coolvetica Rg.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --blue: #1e90ff;
  --blue-glow: rgba(30, 144, 255, 0.4);
  --bg: #050b14;
  --text: #ffffff;
  --muted: #9bb7e0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Coolvetica", sans-serif;
  background: radial-gradient(circle at top, #0b1a33, var(--bg));
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1rem 1rem;
}

.hero {
  text-align: center;
  max-width: 520px;
  width: 100%;
}

/* Centering wrappers */
.profile-wrapper,
.logo-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 1rem;
}

.profile-wrapper {
  margin-bottom: 1.5rem;
}

/* Profile pic */
.profile-pic {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--blue);
  box-shadow: 0 0 25px var(--blue-glow);
  animation: float 4s ease-in-out infinite;
}

/* Logo in center */
.center-logo {
  width: 200px;
  max-width: 70%;
  filter: drop-shadow(0 0 20px var(--blue-glow));
  animation: pulse 2.5s ease-in-out infinite;
}

.tagline {
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  opacity: 0;
  animation: fadeIn 1.5s forwards 0.5s;
}

/* Social links */
.links {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 0.8rem;
  margin-bottom: 2rem;
  justify-content: center;
}

/* Second row (icons 5-8) shifted half icon width for visual centering */
.links a:nth-child(n+5) {
  justify-self: center;
  transform: translateX(14px); /* adjust half icon+gap width */
}

.links a {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.9rem;
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: iconFadeIn 0.6s forwards;
}

/* Animation delays for 8 icons */
.links a:nth-child(1) { animation-delay: 0s; }
.links a:nth-child(2) { animation-delay: 0.1s; }
.links a:nth-child(3) { animation-delay: 0.2s; }
.links a:nth-child(4) { animation-delay: 0.3s; }
.links a:nth-child(5) { animation-delay: 0.4s; }
.links a:nth-child(6) { animation-delay: 0.5s; }
.links a:nth-child(7) { animation-delay: 0.6s; }
.links a:nth-child(8) { animation-delay: 0.7s; }

/* Hover effect */
.links a:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 0 25px var(--blue-glow);
}

/* Images */
.links img {
  width: 28px;
  height: 28px;
}

/* Make Spotify icon green */
.links a:nth-child(1) img {
  filter: invert(43%) sepia(83%) saturate(513%) hue-rotate(84deg) brightness(94%) contrast(90%);
}

/* Email */
.email {
  display: none;
}

/* Footer */
.footer {
  text-align: center;
  padding: 0.6rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(30, 144, 255, 0.2);
  margin-top: auto;
}

.footer-logo {
  width: 60px;
  margin-bottom: 0.5rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-logo:hover {
  opacity: 1;
}

.footer p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.footer-link {
  display: inline-block;
  margin: 0 0.5rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}



.footer-link:hover {
  color: var(--blue);
  text-decoration: underline;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px var(--blue-glow)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 30px var(--blue-glow)); }
}

@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes iconFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .links {
    gap: 0.6rem;
  }
}

@media (min-width: 768px) {
  .profile-pic {
    width: 110px;
    height: 110px;
  }

  .center-logo {
    width: 220px;
  }

  .links img {
    width: 32px;
    height: 32px;
  }
}
