/* ============================================================
   EVAN SPREEN — style.css
   8-bit SNES aesthetic | Press Start 2P | Dark glass panels
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: url('https://i.imgur.com/7zH3uLx.png'), auto;
}

html, body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  font-family: 'Press Start 2P', monospace;
  /* 8-bit sunset background — local file with imgur fallback */
  background:
    url('8bitSunset.jpg') center / cover fixed,
    url('https://i.imgur.com/tjwIhbZ.jpeg') center / cover fixed;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Home wrapper: perfectly centred ---------- */
.home-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px 16px;
}

/* ---------- Glass card ---------- */
.home-card {
  background: rgba(20, 20, 35, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 3px solid #c5a3ff;
  border-radius: 14px;
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(197, 163, 255, 0.15) inset;
  padding: 52px 44px 44px;
  width: 100%;
  max-width: 500px;
  text-align: center;
  /* subtle pulse glow on the border */
  animation: cardGlow 4s ease-in-out infinite alternate;
}

@keyframes cardGlow {
  from { box-shadow: 0 12px 48px rgba(0,0,0,0.75), 0 0 20px rgba(139,92,246,0.15); }
  to   { box-shadow: 0 12px 48px rgba(0,0,0,0.75), 0 0 42px rgba(139,92,246,0.45); }
}

/* ---------- Name heading ---------- */
.site-name {
  color: #ffe600;
  font-size: clamp(18px, 4vw, 26px);
  line-height: 1.35;
  letter-spacing: 1px;
  text-shadow:
    2px 2px 0 rgba(0, 0, 0, 0.85),
    0 0 20px rgba(255, 230, 0, 0.35);
  margin-bottom: 18px;
  word-break: break-word;
}

/* ---------- Subtitle ---------- */
.site-subtitle {
  color: #c5a3ff;
  font-size: clamp(9px, 2vw, 11px);
  letter-spacing: 1.5px;
  line-height: 1.8;
  margin-bottom: 32px;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.7);
}

/* ---------- Email copy button ---------- */
.btn-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(139, 92, 246, 0.25);
  color: #ffe600;
  border: 2px solid #a78bfa;
  border-radius: 8px;
  padding: 12px 20px;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(9px, 1.8vw, 11px);
  letter-spacing: 0.5px;
  cursor: url('https://i.imgur.com/7zH3uLx.png'), pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
  width: 100%;
  justify-content: center;
  max-width: 100%;
  margin-bottom: 8px;
  touch-action: manipulation;
}

/* Only apply hover effects on pointer devices — prevents iOS double-tap issue */
@media (hover: hover) {
  .btn-email:hover {
    background: rgba(139, 92, 246, 0.5);
    border-color: #ffe600;
    transform: translateY(-2px);
    box-shadow:
      0 0 18px rgba(255, 230, 0, 0.45),
      2px 3px 0 #1e1b4b;
  }
}

.btn-email:active,
.btn-email.copied {
  transform: scale(0.97) translateY(1px);
  background: #8b5cf6;
  border-color: #ffe600;
  color: #fff;
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.8);
}

.btn-email-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.email-feedback {
  font-size: 9px;
  color: #86efac;
  min-height: 18px;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
  transition: opacity 0.3s;
}

/* ---------- Navigation grid ---------- */
.site-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 4px;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  background: #8b5cf6;
  color: #fff;
  text-decoration: none;
  border: 2px solid #a78bfa;
  border-radius: 8px;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(10px, 2.2vw, 12px);
  letter-spacing: 0.5px;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
  position: relative;
  overflow: hidden;
  cursor: url('https://i.imgur.com/7zH3uLx.png'), pointer;
  touch-action: manipulation;
}

/* subtle shimmer sweep on hover */
.nav-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.18),
    transparent
  );
  transition: left 0.35s ease;
  pointer-events: none;
}

/* Only apply hover effects on pointer devices — prevents iOS double-tap issue */
@media (hover: hover) {
  .nav-btn:hover::after {
    left: 160%;
  }

  .nav-btn:hover {
    background: #a78bfa;
    border-color: #ffe600;
    transform: translateY(-3px);
    box-shadow:
      0 0 14px rgba(167, 139, 250, 0.8),
      2px 4px 0 #1e1b4b;
    color: #ffe600;
  }
}

.nav-btn:active {
  transform: scale(0.96) translateY(2px);
  background: #c5a3ff;
  border-color: #ffe600;
  color: #1e1b4b;
  box-shadow: 0 0 12px rgba(255, 230, 0, 0.7);
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .home-card {
    padding: 36px 22px 30px;
  }

  .site-nav {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .nav-btn {
    min-height: 44px;
  }

  .btn-email {
    padding: 10px 14px;
  }
}

@media (max-width: 360px) {
  .home-card {
    padding: 28px 14px 24px;
  }
}
