@font-face {
  font-family: 'Redaction';
  src: url('Redaction-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Redaction20';
  src: url('Redaction20-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

/* --- 1. Base Setup --- */
body {
  font-family: 'Redaction', sans-serif;
  background-image: url('testbackground.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: #080a0d;
  color: #e0f7fa; /* High-contrast readable off-white/mint */
  
  margin: 0;
  padding: 40px 0;
  box-sizing: border-box;
  position: relative;
  overflow-x: hidden;
}

/* Lightweight Ambient Flares (Zero GPU Lag) */
body::before,
body::after {
  content: "";
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 50vw;
  height: 70vh;
  pointer-events: none;
  z-index: 1;
}

body::before {
  left: -10vw;
  background: radial-gradient(
    ellipse at center,
    rgba(127, 255, 212, 0.18) 0%,
    rgba(46, 204, 113, 0.08) 40%,
    rgba(0, 0, 0, 0) 70%
  );
}

body::after {
  right: -10vw;
  background: radial-gradient(
    ellipse at center,
    rgba(155, 89, 182, 0.18) 0%,
    rgba(138, 43, 226, 0.08) 40%,
    rgba(0, 0, 0, 0) 70%
  );
}

/* --- 3. Main Site Frame & Multi-Color Glow --- */
.site-container {
  width: 90%;
  max-width: 1500px;
  min-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 80px);
  
  border: 1px solid rgba(127, 255, 212, 0.3);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 
    -20px 0 45px -5px rgba(127, 255, 212, 0.25),
    20px 0 45px -5px rgba(155, 89, 182, 0.25),
    0 15px 40px rgba(0, 0, 0, 0.9);

  background-color: rgba(8, 11, 14, 0.95); /* Slightly darker opacity instead of heavy backdrop-filter */
}

/* --- 4. Crystal Cavern Box Design --- */
.crystal-cave-box {
  background: rgba(12, 18, 22, 0.85);
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(46, 204, 113, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(155, 89, 182, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(127, 255, 212, 0.08) 0%, transparent 60%);
  border: 1px solid rgba(127, 255, 212, 0.18);
}

header {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid rgba(127, 255, 212, 0.2);
}

.layout-wrapper {
  display: flex;
  flex: 1;
}

nav {
  width: 170px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  border-right: 1px solid rgba(127, 255, 212, 0.15);
}

main {
  flex: 1;
  padding: 35px;
}

footer {
  padding: 15px;
  text-align: center;
  border-top: 1px solid rgba(127, 255, 212, 0.2);
  font-size: 0.95rem;
}

/* --- 5. Interactive Navigation Buttons --- */
.nav-btn {
  background: rgba(18, 28, 32, 0.7);
  color: #7fffd4;
  border: 1px solid rgba(127, 255, 212, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.nav-btn:hover {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.25), rgba(155, 89, 182, 0.25));
  color: #ffffff;
  border-color: #7fffd4;
  transform: translateX(4px);
  box-shadow: 0 0 12px rgba(127, 255, 212, 0.4);
}

.nav-btn:active {
  transform: translateX(2px) scale(0.98);
}

/* --- 6. Crystal Text & Readable Paragraphs --- */
.crystal-text {
  background: linear-gradient(135deg, #7fffd4 0%, #2ecc71 50%, #9b59b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(127, 255, 212, 0.45));
}

p {
  color: #d1f2eb; /* Crystal mint off-white for perfect reading */
  line-height: 1.65;
  font-size: 1.05rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  overflow-wrap: break-word;
  word-break: break-word;
  margin-bottom: 1.2rem;
}

/* --- 7. Profile Card Styling --- */
.about-container {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  min-width: 280px;
}

.profile-card {
  flex-shrink: 0;
  background: rgba(10, 20, 24, 0.8);
  border: 2px solid #2ecc71;
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  box-shadow: 
    0 0 20px rgba(46, 204, 113, 0.35), 
    inset 0 0 15px rgba(127, 255, 212, 0.15);
  transition: transform 0.3s ease;
}

.profile-card:hover {
  transform: translateY(-4px);
  border-color: #7fffd4;
  box-shadow: 0 0 25px rgba(127, 255, 212, 0.5);
}

.profile-card img {
  width: 210px;
  height: auto;
  border-radius: 10px;
  display: block;
}

.profile-name {
  margin-top: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 1px;
}

/* Dust Overlay Canvas */
#cave-dust {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* --- Favorite Games Section Layout --- */
.sub-heading {
  font-size: 1.15rem;
  margin-bottom: 25px;
  font-weight: normal;
}

.game-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.game-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(10, 18, 22, 0.75);
  border: 1px solid rgba(127, 255, 212, 0.25);
  border-radius: 12px;
  padding: 18px;
}

.game-card:hover {
  border-color: #7fffd4;
  background: rgba(14, 25, 30, 0.85);
}

/* Square Game Icon on the Left */
.game-icon {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid rgba(46, 204, 113, 0.5);
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.2);
}

/* Game Info Stacked on the Right */
.game-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.game-info h3 {
  margin: 0 0 8px 0;
  font-size: 1.35rem;
}

.game-description {
  margin: 0 0 14px 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #d1f2eb;
}

/* Button position at bottom right */
.game-action {
  align-self: flex-end;
}

.game-btn {
  display: inline-block;
  text-decoration: none;
  font-size: 0.85rem;
  padding: 6px 14px;
}