body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #19191c;
  color: white;
  overflow: hidden;
}

main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
}

h1 {
  margin-bottom: 0px;
}

h2 {
  margin-top: 20px;
  margin-bottom: 25px;
  color: #00aaff;
  min-height: 2em;
  overflow: hidden;
  white-space: nowrap;
}

h1 .name {
  color: #fff;
}

a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s;
}

a:hover {
  color: #00aaff;
}

#preloader {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #000;
  filter: blur(10px);
  z-index: 999;
  animation: fadeOut 0.6s ease-in-out forwards;
}

@keyframes fadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

body.blurred {
  filter: blur(10px);
  transition: filter 0.6s ease;
}

.icon {
  width: 22px;
  height: 22px;
  margin: 0 12px;
  filter: brightness(0) saturate(100%) invert(46%) sepia(0%) hue-rotate(184deg) brightness(94%) contrast(93%);
  transition: filter 0.3s ease;
}

.icon:hover {
  filter: brightness(0) saturate(100%) invert(34%) sepia(92%) saturate(1941%) hue-rotate(179deg) brightness(96%) contrast(99%);
}

.email {
  color: #737373;
  text-decoration: none;
}

.email:hover {
  text-decoration: none;
}

/* Popups */
#popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: none;
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background-color: white;
  color: #000;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 0 30px rgba(0,0,0,0.2);
  z-index: 1001;
  display: none;
  animation: popupScale 0.4s ease forwards;
  font-size: 1rem;
}

@keyframes popupScale {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

#popup-action {
  margin-top: 1.5rem;
  text-align: right;
}

#countdown {
  color: #007bff;
  font-weight: bold;
}

#close-btn {
  color: #007bff;
  cursor: pointer;
  margin-left: 1rem;
}

.hidden {
  display: none;
}
