@font-face {
  font-family: 'SiteFont';
  src: url('../fonts/site.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --container-bg: rgba(255, 255, 255, 0.05);
  --text-color: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  min-height: 100vh;
  width: 100vw;
  position: relative;
  font-family: 'SiteFont', sans-serif;
  color: var(--text-color);
}

.bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
}
@media (max-width: 480px) {
  .bg-layer {
    background-attachment: scroll;
  }
}

.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  z-index: -2;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.container {
  width: 90%;
  max-width: 600px;
  padding: 50px 40px;
  margin: 40px auto;
  border-radius: 20px;
  background: var(--container-bg);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  box-shadow: 0 15px 40px rgba(255,255,255,0.7);
  text-align: center;
}
@media (max-width: 480px) {
  .container {
    padding: 20px 15px;
    margin: 40px auto;
  }
}

.profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 30px;
}
.profile img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(255,255,255,0.7);
}
@media (max-width: 480px) {
  .profile img {
    width: 150px;
    height: 150px;
  }
}

h1 {
  font-size: 47px;
  margin: 15px 0 8px;
  letter-spacing: 0px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(255,255,255,0.5);
}
@media (max-width: 480px) {
  h1 {
    font-size: 36px;
  }
}

.bio {
  font-size: 24px;
  margin-bottom: 15px;
  letter-spacing: normal;
  line-height: 1.4;
  text-shadow: 1px 1px 3px rgba(255,255,255,0.5);
}
@media (max-width: 480px) {
  .bio {
    font-size: 21px;
  }
}

/* reintroduced for the footer */
.contact {
  font-size: 18px;
  margin-top: 20px;
  letter-spacing: normal;
  line-height: 1.4;
  text-shadow: 1px 1px 3px rgba(255,255,255,0.5);
}
@media (max-width: 480px) {
  .contact {
    font-size: 16px;
  }
}

.links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-bottom: 30px;
}
.links a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  font-size: 26px;
  padding: 16px 24px;
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
  color: var(--text-color);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 5px 5px 15px rgba(0,0,0,0.2), -5px -5px 15px rgba(255,255,255,0.1);
}
.links a:hover {
  transform: translateY(-3px);
  box-shadow: 8px 8px 20px rgba(0,0,0,0.25), -8px -8px 20px rgba(255,255,255,0.15);
}

.links a.featured {
  font-size: 28px;
  padding: 20px 28px;
  background: linear-gradient(145deg, var(--featured-color1, #0D47A1), var(--featured-color2, #1E88E5));
  box-shadow: 0 4px 15px rgba(13,71,161,0.5);
  animation: flash-color var(--flash-duration, 2s) infinite, subtle-press var(--press-duration, 3s) infinite;
}
.links a.featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(13,71,161,0.7);
  animation: flash-color var(--flash-duration, 2s) infinite, glitch var(--glitch-duration, 0.5s) linear, subtle-press var(--press-duration, 3s) infinite;
}

.links a .left {
  display: flex;
  align-items: center;
  flex: 1;
  overflow: hidden;
}
.links a .logo {
  height: 35px;
  width: auto;
  margin-right: 8px;
  flex-shrink: 0;
}
.btn-text-container {
  flex: 1;
  overflow: hidden;
}
.btn-text {
  display: inline-block;
  white-space: nowrap;
}
.btn-text.auto-scroll {
  animation: scroll-text 10s linear infinite alternate;
}
@keyframes scroll-text {
  from { transform: translateX(0); }
  to { transform: translateX(var(--scroll-distance)); }
}
.links a .arrow {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.links a .arrow svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 480px) {
  .links a {
    font-size: 23px;
    padding: 12px 20px;
  }
  .links a .logo {
    height: 30px;
    margin-right: 5px;
  }
  .links a .arrow svg {
    width: 20px;
    height: 20px;
  }
}
@media (max-height: 600px) {
  .container { padding: 10px 15px; }
  .profile img { width: 120px; height: 120px; }
  h1 { font-size: 32px; }
  .bio { font-size: 18px; }
  .links a { font-size: 20px; padding: 8px 12px; }
  .links a .arrow svg { width: 18px; height: 18px; }
}

@keyframes flash-color {
  0% {
    background: linear-gradient(145deg, var(--featured-color1), var(--featured-color2));
    box-shadow: 0 0 20px var(--featured-color1), 0 0 30px var(--featured-color2);
  }
  25% {
    background: linear-gradient(145deg, var(--featured-color2), var(--featured-color3));
    box-shadow: 0 0 20px var(--featured-color2), 0 0 30px var(--featured-color3);
  }
  50% {
    background: linear-gradient(145deg, var(--featured-color3), var(--featured-color4));
    box-shadow: 0 0 20px var(--featured-color3), 0 0 30px var(--featured-color4);
  }
  75% {
    background: linear-gradient(145deg, var(--featured-color4), var(--featured-color1));
    box-shadow: 0 0 20px var(--featured-color4), 0 0 30px var(--featured-color1);
  }
  100% {
    background: linear-gradient(145deg, var(--featured-color1), var(--featured-color2));
    box-shadow: 0 0 20px var(--featured-color1), 0 0 30px var(--featured-color2);
  }
}

@keyframes subtle-press {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

@keyframes glitch {
  0% { transform: translate(0); }
  10% { transform: translate(2px, -2px); }
  20% { transform: translate(-2px, 2px); }
  30% { transform: translate(2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  50% { transform: translate(0); }
  100% { transform: translate(0); }
}

.snowfall {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.snowflake {
  --size: 1vw;
  width: var(--size);
  height: var(--size);
  background: white;
  border-radius: 50%;
  position: absolute;
  top: -5vh;
  animation-name: snowfall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
@keyframes snowfall {
  0% {
    transform: translate3d(var(--left-ini), 0, 0);
  }
  100% {
    transform: translate3d(var(--left-end), 110vh, 0);
  }
}
.snowflake:nth-child(6n) {
  filter: blur(1px);
}