html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #fff0f5, #ffe4e1);
  color: #222;
  position: relative;
  z-index: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("images/Photo1.jpg") center/cover no-repeat;
  filter: blur(12px) brightness(0.9);
  z-index: -1;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(250, 92, 92, 0.9);
  backdrop-filter: saturate(120%) blur(4px);
  padding: 5px 20px;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .logo {
  font-weight: 700;
  font-size: 1.1em;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0.5em;
}

.nav-group {
  display: flex;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 9999px;
  padding: 4px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}

.seg-btn {
  color: #2d1b0f;
  background: rgba(255,255,255,0.25);
  padding: 8px 14px;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95em;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 0 rgba(0,0,0,0.1);
}

.seg-btn:hover {
  background: rgba(255,255,255,0.45);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.download-btn {
  background: #ffd166;
  color: #6e241f;
  padding: 9px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.2px;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 2px 0 rgba(0,0,0,0.08), 0 6px 18px rgba(0,0,0,0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.2s ease;
}

.download-btn:hover {
  background: #ffca3a;
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

.hero {
  background: #fa5c5c;
  color: #fff;
  text-align: center;
  padding: 10px 10px;
}

.hero h1 {
  margin: 0;
  font-size: 1.8em;
}

.hero p {
  margin-top: 15px;
  font-size: 1.5em;
}

.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.content {
  flex: 2;
  min-width: 300px;
}

.sidebar {
  flex: 1;
  min-width: 250px;
}

.img-box {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 15px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-box:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.img-box img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: inherit;
  clip-path: inset(0 round 16px);
}

.card {
  background: #f2f2f2;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

#about.card {
  margin-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

#about.card h2 {
  text-align: center;
}

#gameplay.card {
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.card h2 {
  color: #fa5c5c;
}

.btn {
  display: inline-block;
  background: #fa5c5c;
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: 0.3s;
}

.btn:hover {
  background: #e24c4c;
}

.center {
  text-align: center;
}

.note {
  margin-top: 10px;
  font-size: 0.9em;
  color: #555;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background-color: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
}

.modal-content {
  width: 75%;
  max-height: 75%;
  border-radius: 16px;
  clip-path: inset(0 round 16px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  object-fit: contain;
  cursor: pointer;
}

#modalImage {
  border-radius: 16px;
  clip-path: inset(0 round 16px);
  display: block;
}

.close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close:hover {
  color: #fa5c5c;
}

footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 6px 12px;
  font-size: 0.9em;
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 10px;
  }
  .container {
    flex-direction: column;
  }
  .sidebar {
    order: -1;
  }
}

.sidebar h2 {
  text-align: center;
  color: #f5f5f5;
  font-weight: 600;
}

#whyplay.card h2 {
  text-align: center;
}

.logo {
  flex: 0 0 auto;
  height: auto;
}

.logo a {
  display: inline-block;
  text-decoration: none;
  line-height: 0;
}

.logo {
  position: relative;
  height: 10px;
  display: flex;
  padding: 40px 30px;


}

.logo img {
  position: relative;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 175px;
  width: 290px;
}

@media (max-width: 768px) {
  .logo {
    height: auto;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .logo img {
    position: static;
    transform: none;
    height: auto;
    width: auto;
    max-width: 70vw;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0 10px 10px;
  }

  .nav-group {
    flex-wrap: wrap;
    justify-content: center;
  }

  .download-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 16px;
  }

  .container {
    flex-direction: column;
    gap: 16px;
    margin: 20px auto;
    padding: 0 12px;
  }
  .content, .sidebar {
    min-width: 0;
  }
  .sidebar { order: -1; }

  .card {
    padding: 16px;
  }
  .card h2 {
    font-size: 1.15rem;
  }

  .modal-content {
    width: 95%;
    max-height: 80vh;
  }

  body::before {
    filter: blur(8px) brightness(0.9);
  }
}

img, video, canvas {
  max-width: 100%;
  height: auto;
}




