body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
  font-family: "Libre Baskerville", serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom, #0a0f1a 30%, #0f324e 100%); /* Adjusted gradient */
  color: #d1d5db;
}




.nav-logo, .footer-cinzel {
  font-family: 'Cinzel', serif;
}

h1, h2, h3 { font-family: "Libre Baskerville", serif; font-weight: 400; }


nav.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0a0f1a;
  padding: 1rem 2rem;
  position: relative;
  top: 0;
  z-index: 1000;
}

.nav-logo {
  font-size: 1.5rem;
  
  color: #d1d5db;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-menu li a {
  color: #d1d5db;
  text-decoration: none;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle .hamburger,
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  display: block;
  background: #d1d5db;
  height: 3px;
  width: 25px;
  border-radius: 2px;
  position: relative;
  transition: all 0.3s ease-in-out;
}

.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle .hamburger::before {
  top: -8px;
}

.nav-toggle .hamburger::after {
  top: 8px;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: #101522;
    display: none;
    text-align: center;
    padding: 1rem 0;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    margin: 0.5rem 0;
  }
}



main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
  box-sizing: border-box;
}





.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  height: 90vh;
  text-align: center;
  padding: 2rem;
}

.hero-content {
  color: #d1d5db;
}

.tagline-line {
  font-size: 1.5rem;
  font-weight: 400;
  opacity: 0;
  animation: fadeIn 2s ease-in-out forwards;
}

.tagline-line.delay {
  animation-delay: 1s;
}
.tagline-line.delay-2 {
  animation-delay: 2s;
}

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

footer {
  text-align: center;
  padding: 2rem;
  background: transparent;
  color: #d1d5db;
}




/* Twinkling Stars */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('stars.png') repeat top center;
  background-position: center -100px;
  background-size: cover;
  animation: twinkle 8s ease-in-out infinite, moveStars 100s linear infinite; /* Add movement */
  opacity: 0.4;
  z-index: 0;
}

/* Twinkle overlay */
.twinkling {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('stars.png') repeat;
  background-position: center -100px;
  background-size: cover;
  animation: twinkle 4s ease-in-out infinite, moveTwinkling 50s linear infinite; /* Add movement */
  opacity: 0.2;
  z-index: 1;
  pointer-events: none;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}





/* clouds */
.clouds2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto; /* Allow the height to adjust dynamically */
  min-height: 300px; /* Ensure a minimum height */
  background: url('clouds2.png') no-repeat bottom; /* No repeat */
  background-size: 100% auto;  /* Scale the clouds to fit horizontally */
  opacity: 0.65;
  animation: cloudDrift 15s ease-in-out infinite;
  border-top: none; /* Remove any visible border */
}

@keyframes cloudDrift {
  0% {
    transform: scale(1) translateY(0px);
    filter: blur(0.5px);
  }
  50% {
    transform: scale(1.05) translateY(-2px);
    filter: blur(3px);
  }
  100% {
    transform: scale(1) translateY(0px);
    filter: blur(0.5px);
  }
}
/* ================================
   Devlog Media Styles
   ================================ */
.entry figure {
  margin: 1rem 0 1.25rem;
}

.entry img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.entry figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #aab2bd;
  text-align: center;
}

/* Side-by-side on wider screens */
.figure-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .figure-grid {
    grid-template-columns: 1fr 1fr;
  }
}



/* Game Showcase Grid */
/* Desktop: Large cards, responsive grid */
.game-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
  gap: 2rem;
  padding: 3rem 2rem;
  justify-items: center;
}
/* Flip Card Styles */
.game-card {
  width: 100%;
  max-width: 550px;
  height: 720px;
  perspective: 1200px;
}

/* Mobile: Stack cards, shrink size */
@media (max-width: 700px) {
  .game-showcase {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 1rem 0.5rem;
  }
  .game-card {
    max-width: 98vw;
    height: 60vw;
    min-height: 260px;
    margin-bottom: 1.5rem; /* Extra space if needed */
  }
  .card-front img {
    height: 220px;         /* Set a reasonable image height for mobile */
    object-fit: cover;
    position: relative;
  }
  .card-back, .card-front {
    padding: 1rem 0.5rem;
  }
}


.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(.4,2,.6,1);
  transform-style: preserve-3d;
  cursor: pointer;
}

.game-card:hover .card-inner,
.game-card:focus-within .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  background: #101522;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0; left: 0;
  z-index: 1;
}

.card-front .game-title {
  position: relative;
  z-index: 2;
  background: rgba(10,15,26,0.7);
  color: #e2e8f0;
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  text-align: center;
  padding: 1rem 0.5rem;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.card-back {
  background: #0a0f1a;
  color: #d1d5db;
  transform: rotateY(180deg);
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card-back h3 {
  font-family: 'Cinzel', serif;
  margin-bottom: 1rem;
  color: #e2e8f0;
}

.card-back p {
  font-size: 1rem;
  text-align: center;
}

.game-card:hover .card-inner,
.game-card:focus-within .card-inner,
.card-inner.flipped {
  transform: rotateY(180deg);
}


