/* Shared Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInCard {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(2px, -2px); }
  60% { transform: translate(-1px, 1px); }
  80% { transform: translate(1px, -1px); }
  100% { transform: translate(0); }
}

/* Global Styles */
body {
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  margin-bottom: 0; /* Remove bottom margin to prevent white space */
  padding-bottom: 0; /* Remove bottom padding to prevent white space */
}

/* Global Footer Styles */
footer {
  background: #515E75;
  color: #fff;
  text-align: center;
  padding: 1.5rem 0; /* Increased padding for better spacing */
  width: 100%;
  margin-top: auto; /* Push footer to bottom of content */
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
  border-top: 1px solid rgba(113, 165, 255, 0.3); /* Subtle blue border */
}

footer .container {
  max-width: 1200px; /* Constrain width to center content */
  margin: 0 auto; /* Center horizontally */
  padding: 0 1rem; /* Add minimal padding for content */
  background: transparent; /* Ensure no grey/white box */
}

footer p {
  margin: 0;
  font-size: 1.1rem; /* Slightly larger font for elegance */
  font-weight: 500; /* Modern, polished weight */
  color: #ddd;
  opacity: 0;
  animation: fadeIn 1s ease-in forwards; /* Smooth entrance animation */
}

/* 404 Page Styles */
.page-404 main {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  min-height: 100vh;
  padding: 4rem 0;
}

.page-404 .jumbotron {
  color: #fff;
  padding: 4rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-404 .error-code {
  font-size: 6rem;
  font-weight: 900;
  color: #71A5FF;
  text-shadow: 0 0 10px #71A5FF, 0 0 20px #95B8F5, 0 0 30px #515E75;
  animation: glitch 2s linear infinite alternate;
  margin-bottom: 1rem;
}

.page-404 .lead-message {
  font-size: 1.5rem;
  color: #ddd;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
  animation-delay: 0.5s;
}

.page-404 .btn-custom {
  background: linear-gradient(45deg, #71A5FF, #95B8F5);
  color: #fff;
  font-size: 1.2rem;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.page-404 .btn-custom:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
  color: #fff;
}

.page-404 .btn-custom:active {
  transform: scale(0.98);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .page-404 .error-code { font-size: 4rem; }
  .page-404 .lead-message { font-size: 1.2rem; }
  .page-404 .btn-custom { font-size: 1rem; padding: 0.5rem 1.5rem; }
}

/* About Me Page Styles */
.page-aboutme main {
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  min-height: 100vh;
  padding: 4rem 0;
}

.page-aboutme .about-container {
  background: #2a2e35;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  padding: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  color: #fff;
  animation: fadeIn 1s ease-in;
}

.page-aboutme .about-container h1 {
  font-size: 3rem;
  font-weight: 900;
  color: #71A5FF;
  text-shadow: 0 0 5px rgba(113, 165, 255, 0.3);
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeIn 1s ease-in;
}

.page-aboutme .about-container .lead {
  font-size: 1.2rem;
  color: #ddd;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
  animation-delay: 0.3s;
}

.page-aboutme .ratio iframe {
  border-radius: 8px;
  border: 2px solid #515E75;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  animation: slideIn 1s ease-in;
}

.page-aboutme .btn-custom {
  background: linear-gradient(45deg, #71A5FF, #95B8F5);
  color: #fff;
  font-size: 1.2rem;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem auto;
  text-align: center;
}

.page-aboutme .btn-custom:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
  color: #fff;
}

.page-aboutme .btn-custom:active {
  transform: scale(0.98);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .page-aboutme .about-container { padding: 2rem; }
  .page-aboutme .about-container h1 { font-size: 2rem; }
  .page-aboutme .about-container .lead { font-size: 1rem; }
  .page-aboutme .btn-custom { font-size: 1rem; padding: 0.5rem 1.5rem; }
}

@media (max-width: 480px) {
  .page-aboutme .about-container { padding: 1.5rem; }
  .page-aboutme .about-container h1 { font-size: 1.8rem; }
}

/* Games Page Styles */
.page-games main {
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  min-height: 100vh;
  padding: 4rem 0;
}

.page-games .intro-section {
  padding: 2rem 0;
  text-align: center;
  color: #fff;
  animation: popIn 0.8s ease-out;
}

.page-games .intro-section h1 {
  font-size: 2.5rem;
  color: #71A5FF;
  text-shadow: 0 0 5px rgba(113, 165, 255, 0.3);
  margin-bottom: 1rem;
}

.page-games .intro-section p.lead {
  font-size: 1.25rem;
  color: #ddd;
  margin: 0 auto;
  max-width: 800px;
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
  animation-delay: 0.3s;
}

.page-games .btn-custom {
  background: linear-gradient(45deg, #71A5FF, #95B8F5);
  color: #fff;
  font-size: 1rem;
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.page-games .btn-custom:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
  color: #fff;
}

.page-games .btn-custom:active {
  transform: scale(0.98);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
}

.page-games .btn-custom.disabled {
  background: linear-gradient(45deg, #666, #888);
  cursor: not-allowed;
  box-shadow: none;
}

.page-games .card {
  background: #40444B;
  color: #fff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  opacity: 0;
  animation: fadeInCard 0.5s ease-in forwards;
}

.page-games .card:nth-child(1) { animation-delay: 0.1s; }
.page-games .card:nth-child(2) { animation-delay: 0.2s; }
.page-games .card:nth-child(3) { animation-delay: 0.3s; }
.page-games .card:nth-child(4) { animation-delay: 0.4s; }
.page-games .card:nth-child(5) { animation-delay: 0.5s; }
.page-games .card:nth-child(6) { animation-delay: 0.6s; }
.page-games .card:nth-child(7) { animation-delay: 0.7s; }
.page-games .card:nth-child(8) { animation-delay: 0.8s; }
.page-games .card:nth-child(9) { animation-delay: 0.9s; }
.page-games .card:nth-child(10) { animation-delay: 1.0s; }

.page-games .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.page-games .card-img-top {
  width: 100%;
  height: 314px;
  object-fit: cover;
  border-radius: 4px 4px 0 0;
  border-bottom: 2px solid #515E75;
}

.page-games .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}

.page-games .card-title {
  color: #fff;
  font-size: 1.5rem;
  text-shadow: 0 0 5px rgba(113, 165, 255, 0.3);
}

.page-games .card-text {
  color: #ddd;
  font-size: 1rem;
  flex: 1;
}

@media (max-width: 768px) {
  .page-games .intro-section h1 { font-size: 2rem; }
  .page-games .intro-section p.lead { font-size: 1rem; }
  .page-games .btn-custom { font-size: 0.9rem; padding: 0.4rem 1rem; }
  .page-games .card-title { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .page-games .intro-section h1 { font-size: 1.8rem; }
  .page-games .card-title { font-size: 1.2rem; }
}

/* Index Page Styles */
.page-index main {
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  min-height: 100vh;
  padding: 4rem 0;
}

.page-index .section-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 3rem 0;
}

.page-index .btn-custom {
  background: linear-gradient(45deg, #71A5FF, #95B8F5);
  color: #fff;
  font-size: 1.1rem;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index .btn-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  background: linear-gradient(45deg, #95B8F5, #71A5FF);
}

.page-index .btn-custom:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.page-index .recent-update {
  background: #40444B;
  color: #fff;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  margin-bottom: 4rem;
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
}

.page-index .recent-update h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #71A5FF;
  text-shadow: 0 0 5px rgba(113, 165, 255, 0.3);
  animation: popIn 0.8s ease-out;
}

.page-index .recent-update p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #ddd;
}

.page-index .recent-update img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: slideIn 1s ease-in;
}

.page-index .recent-update .post-date {
  font-size: 0.95rem;
  color: #ccc;
  font-style: italic;
}

.page-index .reactions {
  display: flex;
  justify-content: start;
  gap: 0.8rem;
  margin-top: 1rem;
  flex-wrap: wrap; /* Allow reactions to wrap to next line on small screens */
}

.page-index .reaction-btn {
  background: linear-gradient(45deg, #515E75, #6B7280);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-index .reaction-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.page-index .reaction-btn .count {
  margin-left: 0.5rem;
  font-size: 1rem;
}

.page-index .game-section {
  text-align: center;
  margin: 4rem 0;
}

.page-index .game-section h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #71A5FF;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 5px rgba(113, 165, 255, 0.3);
  animation: popIn 0.8s ease-out;
}

.page-index .game-section p {
  font-size: 1.2rem;
  color: #ddd;
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.8;
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
  animation-delay: 0.3s;
}

.page-index .coming-soon-card {
  background: #40444B;
  color: #fff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0;
  animation: slideIn 1s ease-in forwards;
}

.page-index .coming-soon-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0 0 12px rgba(113, 165, 255, 0.6);
  border: 2px solid #71A5FF;
}

.page-index .coming-soon-card-img {
  width: 100%;
  height: 300px;
  object-fit: none;
  object-position: center top;
  border-radius: 12px 12px 0 0;
  border-bottom: 2px solid #515E75;
}

.page-index .coming-soon-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 2rem;
}

.page-index .coming-soon-card-title {
  color: #fff;
  font-size: 1.8rem;
  text-shadow: 0 0 5px rgba(113, 165, 255, 0.3);
  margin-bottom: 1rem;
}

.page-index .coming-soon-card-text {
  color: #ddd;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.page-index .progress {
  height: 1.5rem;
  background-color: #2a2e35;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.page-index .progress-bar {
  background: linear-gradient(45deg, #71A5FF, #95B8F5);
  font-size: 0.9rem;
  font-weight: 500;
  transition: width 0.5s ease-in-out;
}

@media (max-width: 768px) {
  .page-index .recent-update { padding: 2rem; }
  .page-index .recent-update h2 { font-size: 1.6rem; }
  .page-index .recent-update p { font-size: 1rem; }
  .page-index .game-section h2 { font-size: 1.8rem; }
  .page-index .game-section p { font-size: 1rem; }
  .page-index .coming-soon-card-title { font-size: 1.6rem; }
  .page-index .btn-custom { font-size: 1rem; padding: 0.5rem 1.5rem; }
  .page-index .reaction-btn { 
    font-size: 1.2rem; 
    padding: 0.4rem 0.8rem; 
  }
  .page-index .reaction-btn .count { 
    font-size: 0.8rem; 
  }
}

@media (max-width: 480px) {
  .page-index .recent-update { padding: 1.5rem; }
  .page-index .recent-update h2 { font-size: 1.4rem; }
  .page-index .game-section h2 { font-size: 1.6rem; }
  .page-index .coming-soon-card-title { font-size: 1.4rem; }
  .page-index .reaction-btn { 
    font-size: 1rem; 
    padding: 0.3rem 0.6rem; 
  }
  .page-index .reaction-btn .count { 
    font-size: 0.7rem; 
  }
}

/* Post Archive Page Styles */
.page-postarchive main {
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  min-height: 100vh;
  padding: 4rem 0;
}

.page-postarchive .jumbotron {
  color: #fff;
  padding: 2rem 0;
  margin-bottom: 2rem;
  text-align: center;
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
}

.page-postarchive .jumbotron .lead {
  font-size: 1.25rem;
  color: #ddd;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeIn 1s ease-in forwards;
  animation-delay: 0.3s;
}

.page-postarchive .archive-title h2 {
  font-size: 2rem;
  color: #71A5FF;
  text-shadow: 0 0 5px rgba(113, 165, 255, 0.3);
  animation: popIn 0.8s ease-out;
}

.page-postarchive .post-card {
  background-color: #40444B;
  color: #fff;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
  opacity: 0;
  animation: fadeInCard 0.5s ease-in forwards;
}

.page-postarchive .post-card:nth-child(1) { animation-delay: 0.1s; }
.page-postarchive .post-card:nth-child(2) { animation-delay: 0.2s; }
.page-postarchive .post-card:nth-child(3) { animation-delay: 0.3s; }
.page-postarchive .post-card:nth-child(4) { animation-delay: 0.4s; }
.page-postarchive .post-card:nth-child(5) { animation-delay: 0.5s; }

.page-postarchive .post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0 0 12px rgba(113, 165, 255, 0.6);
  border: 2px solid #71A5FF;
}

.page-postarchive .post-card h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #71A5FF;
  text-shadow: 0 0 5px rgba(113, 165, 255, 0.3);
}

.page-postarchive .post-card p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #ddd;
}

.page-postarchive .post-card img {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  border-radius: 8px;
  animation: slideIn 1s ease-in;
}

.page-postarchive .post-card .post-date {
  font-size: 0.95rem;
  color: #ccc;
  font-style: italic;
}

.page-postarchive .reaction-display {
  font-size: 1rem;
  color: #ddd;
  margin-top: 1rem;
}

.page-postarchive .btn-custom {
  background: linear-gradient(45deg, #71A5FF, #95B8F5);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-postarchive .btn-custom:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
}

.page-postarchive .btn-custom:active {
  transform: scale(0.98);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .page-postarchive .jumbotron { padding: 1.5rem 0; }
  .page-postarchive .archive-title h2 { font-size: 1.8rem; }
  .page-postarchive .post-card { padding: 1.2rem; }
  .page-postarchive .post-card h2 { font-size: 1.6rem; }
  .page-postarchive .post-card p { font-size: 1rem; }
  .page-postarchive .btn-custom { font-size: 0.9rem; padding: 0.4rem 0.8rem; }
}

@media (max-width: 480px) {
  .page-postarchive .archive-title h2 { font-size: 1.6rem; }
  .page-postarchive .post-card h2 { font-size: 1.4rem; }
}

/* Subscribe Page Styles */
.page-subscribe main {
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  min-height: 100vh;
  padding: 4rem 0;
}

.page-subscribe .jumbotron {
  padding: 4rem 2rem;
  margin: 2rem auto;
  text-align: center;
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
}

.page-subscribe .container {
  max-width: 600px;
  margin: 0 auto;
  background: #2a2e35;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 2rem;
  animation: fadeIn 1s ease-in forwards;
  animation-delay: 0.2s;
}

.page-subscribe h2 {
  font-size: 2rem;
  color: #71A5FF;
  text-shadow: 0 0 5px rgba(113, 165, 255, 0.3);
  margin-bottom: 1rem;
  animation: popIn 0.8s ease-out;
}

.page-subscribe p {
  font-size: 1.2rem;
  color: #ddd;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
  animation-delay: 0.3s;
}

.page-subscribe form {
  display: block;
  text-align: left;
}

.page-subscribe label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: #ddd;
}

.page-subscribe input[type="email"] {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #555;
  border-radius: 4px;
  background-color: #333;
  color: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  animation: slideIn 1s ease-in;
}

.page-subscribe input[type="email"]:focus {
  border-color: #71A5FF;
  box-shadow: 0 0 8px rgba(113, 165, 255, 0.5);
  outline: none;
}

.page-subscribe input[type="email"]::placeholder {
  color: #aaa;
}

.page-subscribe .btn-custom {
  background: linear-gradient(45deg, #71A5FF, #95B8F5);
  color: #fff;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  cursor: pointer;
}

.page-subscribe .btn-custom:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
}

.page-subscribe .btn-custom:active {
  transform: scale(0.98);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
}

.page-subscribe .feedback {
  font-size: 1rem;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
  animation-delay: 0.4s;
}

.page-subscribe .feedback.success {
  color: #4CAF50;
}

.page-subscribe .feedback.error {
  color: #FF5555;
}

@media (max-width: 768px) {
  .page-subscribe .jumbotron { padding: 2rem 1rem; }
  .page-subscribe .container { padding: 1.5rem; }
  .page-subscribe h2 { font-size: 1.8rem; }
  .page-subscribe p { font-size: 1rem; }
  .page-subscribe .btn-custom { font-size: 0.9rem; padding: 0.6rem; }
}

@media (max-width: 480px) {
  .page-subscribe .container { padding: 1rem; }
  .page-subscribe h2 { font-size: 1.6rem; }
}

/* Header Styling */
header {
  background: linear-gradient(180deg, #515E75 0%, #4A566B 100%);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

header.scrolled {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.header-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.responsive-logo {
  width: 20rem;
  transition: width 0.3s ease;
}

/* Navbar Styling */
.navbar {
  margin: 0;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 400;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
  color: #fff !important;
  background-color: rgba(113, 165, 255, 0.2);
  transform: scale(1.05);
}

.nav-link.active {
  color: #71A5FF !important;
  background-color: rgba(113, 165, 255, 0.3);
}

.nav-link.subscribe {
  color: #f59c2f !important;
}

.nav-link.subscribe:hover {
  color: #ffac4a !important;
  background-color: rgba(245, 156, 47, 0.2);
}

/* Divider Styling */
.nav-divider {
  color: #aaa;
  font-size: 0.95rem;
  line-height: 1.5rem; /* Matches nav-link line height for vertical centering */
  opacity: 0.5;
  pointer-events: none; /* Non-interactive */
  display: flex;
  align-items: center;
}

/* Social Links */
.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-links a {
  color: #fff;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.social-links a:hover {
  color: #95B8F5;
  transform: scale(1.1);
}

.social-links .x-logo {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.social-links .fa-youtube {
  font-size: 1.1rem;
}

/* Mobile Navbar Adjustments */
@media screen and (max-width: 768px) {
  .header-container {
    flex-direction: column; /* Stack logo and navbar vertically */
    align-items: center;
    gap: 0.5rem;
  }
  .responsive-logo {
    width: 350px; /* Larger logo on mobile */
    margin-bottom: 0.5rem; /* Space between logo and hamburger menu */
  }
  .navbar {
    width: 100%; /* Ensure navbar takes full width */
  }
  .navbar-toggler {
    display: flex;
    justify-content: center; /* Center the hamburger button horizontally */
    margin: 0 auto; /* Ensure horizontal centering */
    width: auto; /* Prevent over-stretching */
  }
  .social-links {
    margin-top: 0.5rem;
  }
  .navbar-nav {
    text-align: center;
    padding: 0.5rem 0;
  }
  .nav-divider {
    display: none;
  }
}

/* Lightbox Enhancements for Global Use (Add to styles.css) */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.lightbox-modal.show {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1051;
  transition: color 0.2s ease;
}

.close-lightbox:hover,
.close-lightbox:focus {
  color: #ccc;
}

/* Ensure images on game pages are clickable globally if needed */
.hero-image,
.screenshot-item img {
  cursor: pointer;
  transition: transform 0.2s ease;
    
}

.hero-image:hover,
.screenshot-item:hover img {
  transform: scale(1.02);
}

@media screen and (max-width: 480px) {
  .responsive-logo {
    width: 250px; /* Slightly smaller for very small screens */
  }
}