html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: url("../images/background.jpg") no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  text-align: left;  /* left-align text/icons */
  padding: 2rem;
}

h1 {
  margin-bottom: 0.5rem;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 500; /* Medium-ish */
  font-size: 3rem;
}

.tagline {
  margin-top: 0;
  margin-bottom: 2rem; /* spacing before icons */
  font-family: 'Work Sans', Arial, sans-serif;  
  font-size: 1.2rem;
  font-weight: 300;
  color: #ddd;
  display: flex;
  gap: 0.5rem;
}

/* Add separator after each word except the last */
.word::after {
  content: "|";   /* change to " |" if you prefer pipes */
  margin-left: 0.5rem;
}
.word:last-child::after {
  content: "";     /* no separator after the last word */
}

/* Animation */
.word {
  opacity: 0;
  animation: fadeIn 1s forwards;
}

.word:nth-child(1) { animation-delay: 0s; }
.word:nth-child(2) { animation-delay: 1s; }
.word:nth-child(3) { animation-delay: 2s; }

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

.links {
  display: flex;          /* line up icons horizontally */
  gap: 1.5rem;              /* consistent spacing between icons */
}

.links a {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 2rem;
  text-decoration: none;
  opacity: 0;
  transform: scale(0);
  animation: popIn 0.6s forwards ease-out;
}

/* Sequential delays so they pop one after another */
.links a:nth-child(1) {
  animation-delay: 3s; /* after tagline finishes */
}
.links a:nth-child(2) {
  animation-delay: 3.5s;
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }
  70% {
    opacity: 1;
    transform: scale(1.1); /* overshoot for bounce */
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.links a:hover {
  color: #00aced;
}
