:root {
  /* Brand Colors */
  --color-primary: red;
  --color-secondary: darkorange;
  --color-tertiary: orange;
  --color-dark: black;
  --color-light: white;
  
  /* Transparent Overlays */
  --overlay-light: rgba(255, 255, 255, 0.75);
  --overlay-dark: rgba(0, 0, 0, 0.95);
  --overlay-medium: rgba(0, 0, 0, 0.4);
  --overlay-text: rgba(255, 255, 255, 0.9);
  
  /* Shadows */
  --shadow-dark: rgba(0, 0, 0, 0.5);
  --shadow-text: rgba(0, 0, 0, 0.3);
  
  /* Hamburger */
  --hamburger-color: rgba(0, 0, 0, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-light);
  overflow-x: hidden;
}

/* Page Gradients */
.home-page {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-tertiary) 100%);
  min-height: 100vh;
}

.games-page {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-tertiary) 50%, var(--color-primary) 100%);
  min-height: 100vh;
}

.about-page {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-primary) 50%, var(--color-secondary) 100%);
  min-height: 100vh;
}

/* Navigation */
.navbar {
  padding: 1.5rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--overlay-light);
  backdrop-filter: blur(0.625rem);
  z-index: 1000;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.nav-brand span {
  color: var(--color-primary);
  font-size: 1.75rem;
  font-weight: bold;
  letter-spacing: -0.03125rem;
  flex-grow: 1;
  text-align: center;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-logo {
  height: 3.5rem;
  width: auto;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger span {
  width: 1.5625rem;
  height: 0.1875rem;
  background: var(--color-secondary);
  transition: all 0.3s ease;
  border-radius: 0.125rem;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(0.3125rem, 0.3125rem);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(0.4375rem, -0.4375rem);
}

.nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 18.75rem;
  height: 100vh;
  background: var(--overlay-dark);
  display: flex;
  flex-direction: column;
  padding: 5rem 2rem 2rem;
  gap: 2rem;
  transition: right 0.3s ease;
  backdrop-filter: blur(0.625rem);
}

.nav-menu.active {
  right: 0;
}

.nav-menu a {
  color: var(--color-light);
  text-decoration: none;
  font-size: 1.75rem;
  font-weight: 600;
  transition: color 0.3s ease;
  opacity: 0;
  transform: translateX(3rem);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

.nav-menu.active a {
  opacity: 1;
  transform: translateX(0);
}

.nav-menu.active a:nth-child(1) {
  transition-delay: 0.1s;
}

.nav-menu.active a:nth-child(2) {
  transition-delay: 0.2s;
}

.nav-menu.active a:nth-child(3) {
  transition-delay: 0.3s;
}

.nav-menu a:hover {
  color: var(--color-tertiary);
}

/* Hero Section */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.5rem 2rem;
  max-width: 40rem;
  margin: 0 auto;
}

.hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 1.25rem 3.75rem var(--shadow-dark);
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

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

/* Content Section */
.content {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1.5rem 4rem;
  gap: 2rem;
  max-width: 40rem;
  margin: 0 auto;
}

.content h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  line-height: 1.2;
  font-weight: 900;
  text-shadow: 0.125rem 0.125rem 0.5rem var(--shadow-text);
}

.description {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  line-height: 1.6;
  text-shadow: 0.0625rem 0.0625rem 0.25rem var(--shadow-text);
}

/* Scroll Animations */
.slide-left,
.slide-right {
  opacity: 0;
  transition: all 0.8s ease;
}

.slide-left {
  transform: translateX(-6.25rem);
}

.slide-right {
  transform: translateX(6.25rem);
}

.slide-left.visible,
.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Page Content */
.page-content {
  min-height: 100vh;
  padding: 8rem 1.5rem 4rem;
  max-width: 40rem;
  margin: 0 auto;
}

.page-content h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  margin-bottom: 3rem;
  text-align: center;
  text-shadow: 0.125rem 0.125rem 0.5rem var(--shadow-text);
  white-space: nowrap;
}

/* Games Grid */
.games-grid {
  display: grid;
  gap: 2rem;
  max-width: 40rem;
  margin: 0 auto;
}

.game-card {
  background: var(--overlay-medium);
  backdrop-filter: blur(0.625rem);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: scale(0.9);
  animation: fadeInScale 0.6s ease forwards;
  box-shadow: 0 0.5rem 1.5rem var(--shadow-dark);
}

@keyframes fadeInScale {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.game-card:nth-child(1) {
  animation-delay: 0.1s;
}

.game-card:nth-child(2) {
  animation-delay: 0.2s;
}

.game-card:nth-child(3) {
  animation-delay: 0.3s;
}

.game-card:nth-child(4) {
  animation-delay: 0.4s;
}

.game-card:hover {
  transform: translateY(-0.625rem) scale(1);
  box-shadow: 0 1.5rem 3rem var(--shadow-dark);
}

.game-card img {
  width: 100%;
  height: auto;
  display: block;
}

.game-card h2 {
  font-size: 1.75rem;
  margin: 1.5rem 1.5rem 0.75rem;
  color: var(--color-light);
}

.game-card p {
  font-size: 1.25rem;
  margin: 0 1.5rem 1.5rem;
  color: var(--overlay-text);
}

/* About Content */
.about-content {
  max-width: 40rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.large-text {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  line-height: 1.8;
  text-shadow: 0.0625rem 0.0625rem 0.25rem var(--shadow-text);
}

/* Tablet and Desktop */
@media (min-width: 44rem) {
  .hamburger {
    display: none;
  }
  
  .nav-menu {
    position: static;
    width: auto;
    height: auto;
    background: none;
    backdrop-filter: none;
    flex-direction: row;
    padding: 0;
    gap: 2rem;
  }
  
  .nav-menu a {
    font-size: 1.125rem;
    color: var(--color-dark);
    opacity: 1;
    transform: translateX(0);
  }
  
  .nav-menu a:hover {
    color: var(--color-primary);
  }
  
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero {
    padding: 8rem 1.5rem 3rem;
  }
  
  .content {
    padding: 3rem 1.5rem 4rem;
  }
}

/* Footer */
.footer {
  padding: 1.5rem;
  background: var(--overlay-light);
  backdrop-filter: blur(0.625rem);
  position: relative;
  bottom: 0;
  left: 0;
  right: 0;
}

.footer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  max-width: 40rem;
  margin: 0 auto;
}

.footer p {
  margin: 0;
  color: var(--color-dark);
  font-size: 0.875rem;
}

.footer a {
  color: var(--color-dark);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--color-primary);
}

@media (max-width: 44rem) {
  .footer-container {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Download Button */
.download-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--color-primary);
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-size: 1.25rem;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0.5rem 1.5rem var(--shadow-dark);
}

.download-button:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 0.75rem 2rem var(--shadow-dark);
}
