/* === BODY & FONT === */
body {
  background-size: 64px 64px;
  color: #F5EBD9; /* Soft off-white for readability */
  font-family: 'Press Start 2P', cursive;
  text-align: center;
  margin: 0;
  padding: 30px;
  user-select: none;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* overflow-y: hidden;  <-- Removed to allow vertical scrolling */
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  pointer-events: none;
  z-index: -2;
}

/* PIXEL SNOW ANIMATION */
@keyframes snowFall {
  0% {
    transform: translateY(-10px);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

.snowflake {
  position: fixed;
  top: -10px;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 1.5px;
  opacity: 0.8;
  filter: drop-shadow(0 0 1px #fff);
  animation-name: snowFall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  pointer-events: none;
  z-index: -1;
}

/* ... Snowflake nth-child styles unchanged ... */

/* Subtle glow animation for titles and links */
@keyframes glow-soft {
  0%, 100% {
    text-shadow:
      2px 2px 0 #C18E3E,
      -2px -2px 0 #C18E3E,
      2px -2px 0 #C18E3E,
      -2px 2px 0 #C18E3E;
    color: #FFD966;
  }
  50% {
    text-shadow:
      2px 2px 0 #F0C44D,
      -2px -2px 0 #F0C44D,
      2px -2px 0 #F0C44D,
      -2px 2px 0 #F0C44D;
    color: #FFDD55;
  }
}

/* Links & menu */
a, .menu-link {
  color: #76C7FF; /* Soft retro blue */
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
  text-shadow:
    2px 2px 0 #1E3D59;
  animation: glow-soft 4s ease-in-out infinite alternate;
}

a:hover, .menu-link:hover {
  color: #FFE066; /* Warm yellow highlight on hover */
  text-shadow:
    2px 2px 0 #A57C00,
    -2px -2px 0 #A57C00,
    2px -2px 0 #A57C00,
    -2px 2px 0 #A57C00;
}

/* SCREEN WRAPPER */
.screen {
  max-width: 720px;
  margin: 50px auto;
  background: #121212; /* Slightly lighter dark for better contrast */
  border: 4px solid #C18E3E;
  padding: 40px 50px;
  box-shadow: inset 0 0 0 #C18E3E;
  border-radius: 10px;
  text-align: center;
  position: relative;
  overflow: hidden;

  /* Option 2: Make .screen scrollable if content is too tall */
  /* Uncomment below if you want this behavior */
  /*
  max-height: 90vh;
  overflow-y: auto;
  */
}

/* PAGE TITLES */
.title {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: #FFD966;
  animation: glow-soft 5s ease-in-out infinite alternate;
  letter-spacing: 2px;
  user-select: none;
  text-shadow:
    2px 2px 0 #8B6B1B,
    -2px -2px 0 #8B6B1B;
}

/* MENU LIST */
.menu {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px auto;
  max-width: 320px;
  text-align: left;
}

.menu li {
  margin: 14px 0;
}

.menu li a {
  display: block;
  background: #C18E3E;
  padding: 14px 22px;
  border: 3px solid #FFD966;
  border-radius: 8px;
  font-size: 0.9rem;
  box-shadow: inset 0 0 0 #FFD966;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  text-shadow: 2px 2px 0 #5B4500;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  position: relative;
  overflow: hidden;
  color: #FFF8D1;
}

.menu li a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 40%;
  height: 100%;
  background: rgba(255, 255, 255, 0.25);
  transform: skewX(-25deg);
  transition: left 0.7s ease;
  pointer-events: none;
  filter: none;
  mix-blend-mode: screen;
}

.menu li a:hover::before {
  left: 125%;
  transition: left 0.7s ease;
}

.menu li a:hover {
  background: #FFE066;
  box-shadow: 0 0 0 #FFE066;
  color: #3A2F00;
  text-shadow: none;
}

/* “Back to Main” link */
#backToMain {
  display: inline-block;
  margin-top: 32px;
  background-color: #FFE066;
  color: #3A2F00;
  padding: 14px 24px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 2px 2px 0 #A57C00;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
  font-family: 'Press Start 2P', cursive;

  /* Option 3: fixed position to always show at bottom center */
  /*
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  margin-top: 0;
  */
}

#backToMain:hover {
  background-color: #FFF3A3;
  box-shadow: 3px 3px 0 #BFA531;
  color: #3A2F00;
}

/* ABOUT PAGE TEXT */
.screen p {
  font-size: 1rem;
  line-height: 1.9;
  color: #FFECB3; /* soft pale yellow */
  text-shadow: 2px 2px 0 #7A6E2D;
  max-width: 620px;
  margin: 0 auto 40px auto;
  font-weight: 700;
  user-select: none;
  letter-spacing: 0.5px;
}

/* CONTACT FORM */
form {
  display: flex;
  flex-direction: column;
  max-width: 440px;
  margin: 0 auto 40px auto;
  color: #FFECB3;
  font-size: 0.9rem;
  font-weight: 700;
}

label {
  margin-bottom: 8px;
  text-align: left;
  text-shadow: 2px 2px 0 #7A6E2D;
  font-weight: 700;
}

input[type="text"],
input[type="email"],
textarea {
  background: #1a1509;
  border: 3px solid #C18E3E;
  color: #FFECB3;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.85rem;
  padding: 10px 14px;
  margin-bottom: 28px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 #A57C00;
  resize: vertical;
  outline: none;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: #FFE066;
  background: #3A2F00;
  color: #FFF9D6;
  box-shadow: 0 0 0 #FFE066;
}

button {
  background: #C18E3E;
  color: #3A2F00;
  font-family: 'Press Start 2P', cursive;
  font-size: 1rem;
  padding: 14px 0;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-shadow: none;
  transition: background-color 0.3s ease;
  font-weight: 700;
  user-select: none;
}

button:hover {
  background-color: #FFE066;
  color: #3A2F00;
}

/* === PROJECT CARDS (UNCHANGED) === */
.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.project-card {
  background: #FF3B2E;
  border: 4px solid #FFD166;
  box-shadow:
    0 0 0 #FFD166;
  width: 240px;
  padding: 25px 20px;
  border-radius: 12px;
  cursor: pointer;
  color: #FFFBE6;
  font-weight: 700;
  text-shadow: 2px 2px 0 #b38f00;
  user-select: none;
  position: relative;
  transition: transform 0.3s ease;
  outline: none;
}

.project-card:focus,
.project-card:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 10px #FFD166;
}

.project-title {
  font-size: 1.15rem;
  margin-bottom: 12px;
  user-select: none;
  text-shadow: 2px 2px 0 #b38f00;
}

.project-description {
  font-size: 0.9rem;
  font-weight: 400;
  user-select: none;
  color: #FFFBE6;
  text-shadow: 2px 2px 0 #b38f00;
}
