/* ===============================
   1. CSS Variables & Reset
=============================== */
:root {
  --color-bg: #f4f4f4;
  --color-text: #1a1a1a;
  --color-primary: #323045;
  --color-secondary: #5a5a5a;
  --color-hover: #4a4764;
  --hover-list: #9a9a9a;
  --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --transition-speed: 0.3s;
  --cards: #ffffff;
}

.dark-mode {
  --color-bg: #121212;
  --color-text: #ffffff;
  --color-primary: #4a7780;
  --color-secondary: #a0a0a0;
  --color-hover: #696868;
  --hover-list: #292929;
  --cards: #3d3d3d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Inter", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}
img {
  max-width: 100%;
  display: block;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===============================
   2. Header & Navigation
=============================== */
.header {
  background-color: var(--color-primary);
  color: #fff;
  padding: 1rem 0;
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.logo a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.logo a:hover,
.logo a:focus {
  text-decoration: none;
}
.logo img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  transition: all var(--transition-speed);
}
.logo-text {
  z-index: 9999;
  margin-left: 1rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 200;
  font-size: 1.5rem;
  background: linear-gradient(to right, #ff0066 0%, #bcbcc2 50%, #ff0066 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-text.shimmer {
  animation: shimmer 3s linear forwards;
}
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}
.dark-mode .logo-text {
  background: linear-gradient(to right, #58767f 0%, #c2cbd0 50%, #58767f 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.dark-mode .logo-text.shimmer {
  animation: shimmer-dark 3s linear forwards;
}
@keyframes shimmer-dark {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.main-nav .nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  text-transform: uppercase;
  font-weight: 500;
}
.nav-item {
  position: relative;
}
.nav-link {
  color: #fff;
  text-decoration: none;
  transition: color var(--transition-speed);
  padding: 0.5rem;
}
.nav-link:hover,
.nav-link:focus {
  color: var(--color-hover);
}
.has-dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu {
  list-style: none;
  display: block;
  position: absolute;
  margin: 0;
  background-color: var(--color-primary);
  top: 100%;
  left: 0;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition-speed), transform var(--transition-speed), visibility var(--transition-speed);
  box-shadow: var(--box-shadow);
  border-radius: 8px;
  min-width: 180px;
}
.dropdown-menu li a {
  display: block;
  padding: 0.75rem 1rem;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition-speed), text-decoration var(--transition-speed);
}
.dropdown-menu li a:hover {
  background-color: var(--color-hover);
}

/* ===============================
   3. Theme Toggle & Language
=============================== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
#switch-button {
  display: none;
}
.theme-toggle-container {
  display: inline-block;
  position: relative;
}
.toggle-label {
  cursor: pointer;
  border: 2px solid gray;
  border-radius: 30px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.toggle-label:hover {
  border-color: #aaa;
}
.toggle-label .fa-sun,
.toggle-label .fa-moon {
  font-size: 1.25rem;
  transition: transform 0.3s, opacity 0.3s;
  position: relative;
}
.toggle-label .fa-sun {
  color: rgb(255, 212, 132);
  font-size: 25px;
  text-shadow: 0 0 20px rgb(255, 212, 132);
  transform: translateX(0);
  opacity: 1;
}
.toggle-label .fa-moon {
  color: white;
  font-size: 25px;
  text-shadow: 0 0 20px white;
  transform: translateX(-25px);
  opacity: 0;
}
#switch-button:checked ~ .toggle-label .fa-sun {
  opacity: 0;
  transform: translateX(25px);
}
#switch-button:checked ~ .toggle-label .fa-moon {
  opacity: 1;
  transform: translateX(0);
}

.language-dropdown {
  position: relative;
  display: inline-block;
  margin-right: 1rem;
  height: 40px !important;
}
.lang-btn {
  background-color: var(--color-bg);
  color: var(--color-text);
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s;
  height: 40px !important;
}
.lang-btn:hover {
  background-color: var(--hover-list);
}
.lang-btn-arrow {
  font-size: 0.6rem;
}
.lang-list {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-bg);
  border-radius: 8px;
  margin-top: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 0.5rem 0;
  min-width: 160px;
  display: none;
  z-index: 999;
}
.language-dropdown.show .lang-list {
  display: block;
}
.lang-list li {
  color: var(--color-text);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
}
.lang-list li:hover {
  background-color: var(--hover-list);
}
.lang-flag {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

/* ===============================
   4. Global Button & Badge
=============================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
  transition: background-color var(--transition-speed), color var(--transition-speed);
  font-size: 1rem;
  line-height: 1.2;
}
.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--color-hover);
}
.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover {
  background-color: var(--color-primary);
  color: #fff;
}
.btn-success {
  background-color: #28a745;
  color: #fff;
}
.badge {
  display: inline-block;
  background-color: var(--color-primary);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

/* ===============================
   5. Index Page (Featured, Services, Team)
=============================== */
.featured-game {
  padding: 3rem 0;
}
.featured-game-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}
.featured-game-info {
  flex: 1 1 400px;
}
.featured-game-info p {
  margin: 1rem 0;
  line-height: 1.6;
}
.featured-game-image {
  flex: 1 1 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}
.featured-game-image img {
  width: 70%;
  height: auto;
  object-fit: cover;
}
.feature-list {
  margin: 1rem 0;
  padding-left: 1.5rem;
}
.feature-list li {
  margin-bottom: 0.5rem;
}
.services {
  padding: 3rem 0;
  text-align: center;
}
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
}
.service-card {
  flex: 1 1 220px;
  background-color: var(--cards);
  color: var(--color-text);
  padding: 1.5rem;
  border-radius: 8px;
  transition: background-color var(--transition-speed), transform var(--transition-speed);
  box-shadow: var(--box-shadow);
}
.service-card:hover {
  background-color: var(--color-hover);
  color: #fff;
  transform: translateY(-4px);
}
.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.team-preview {
  padding: 4rem 0;
  text-align: center;
}
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  align-items: stretch;
}
.team-card {
  display: flex;
  flex-direction: column;
  background-color: var(--cards);
  color: var(--color-text);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  width: 220px;
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-speed);
}
.team-card:hover {
  transform: translateY(-4px);
}
.team-member-image {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 1rem;
}
.team-member-image img {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  object-fit: cover;
  margin-bottom: 1rem;
}
.team-view-all {
  margin-top: 2rem;
}

/* ===============================
   6. Under Development Page
=============================== */
.development-section {
  padding: 5rem 0;
  min-height: calc(100vh - 400px);
  display: flex;
  align-items: center;
  text-align: center;
}
.development-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
  background-color: var(--cards);
  border-radius: 12px;
  box-shadow: var(--box-shadow);
  transition: background-color var(--transition-speed);
}
.development-icon {
  font-size: 5rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.development-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}
.development-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--color-text);
}
.development-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}
.development-progress,
.development-features {
  flex: 1;
  min-width: 250px;
}
.development-progress h3,
.development-features h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--color-text);
}
.progress-bar {
  height: 20px;
  background-color: var(--hover-list);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.progress-fill {
  height: 100%;
  background-color: var(--color-primary);
  border-radius: 10px;
  transition: width 1s ease-in-out;
}
.progress-text {
  font-weight: 600;
  color: var(--color-primary);
}
.development-features ul {
  list-style: none;
  padding: 0;
  text-align: left;
}
.development-features li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}
.development-features li i {
  color: var(--color-primary);
  margin-right: 0.75rem;
}
.development-cta {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: var(--hover-list);
  border-radius: 8px;
}
.notify-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
.notify-form input {
  flex: 1;
  min-width: 250px;
  padding: 0.75rem;
  border: 1px solid var(--hover-list);
  border-radius: 4px;
  font-size: 1rem;
}
.success-message {
  color: #4caf50;
  font-weight: 600;
  margin: 0;
}

/* ===============================
   7. Ultimate Success Page
=============================== */
.product-hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
}
.product-hero-image {
  position: relative;
  width: 100%;
  height: 100%;
}
.product-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
}
.product-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 3rem;
  color: #fff;
  text-align: center;
}
.product-hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.product-hero-content p {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.badge i {
  margin-right: 0.5rem;
  color: var(--color-primary);
}
.product-description {
  padding: 5rem 0;
}
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.product-info h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}
.product-info h3 {
  font-size: 1.8rem;
  margin: 2.5rem 0 1.5rem;
}
.product-info p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}
.product-specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.spec-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.spec-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.feature-list {
  list-style: none;
  padding: 0;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.feature-icon {
  color: var(--color-primary);
  margin-right: 1rem;
  font-size: 1.2rem;
}
.product-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
}
.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}
.product-gallery {
  position: relative;
}
.gallery-main {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.gallery-controls {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
}
.gallery-prev,
.gallery-next,
.gallery-fullscreen {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.gallery-prev:hover,
.gallery-next:hover,
.gallery-fullscreen:hover {
  background-color: var(--color-primary);
}
.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}
.gallery-thumbnail {
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-thumbnail.active {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--color-primary);
}
.gallery-thumbnail:hover {
  opacity: 1;
}

/* ===============================
   8. CTA Section
=============================== */
.product-cta {
  padding: 5rem 0;
  background-color: var(--color-primary);
  color: #fff;
}
.cta-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}
.cta-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.cta-feature {
  flex: 1;
  min-width: 200px;
  max-width: 250px;
  text-align: center;
}
.cta-feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}
.cta-feature-text h4 {
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.cta-feature-text p {
  font-size: 1rem;
  margin-bottom: 0;
  opacity: 0.8;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.cta-buttons .btn-outline {
  border-color: #fff;
  color: #fff;
}
.cta-buttons .btn-outline:hover {
  background-color: #fff;
  color: var(--color-primary);
}
.cta-platforms {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-platforms span {
  margin-bottom: 1rem;
  font-weight: 500;
}
.platform-icons {
  display: flex;
  gap: 1.5rem;
  font-size: 1.8rem;
}

/* ===============================
   9. Lightbox
=============================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}
.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.lightbox-prev {
  left: -70px;
}
.lightbox-next {
  right: -70px;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: var(--color-primary);
}

/* ===============================
   10. Footer
=============================== */
.footer {
  background-color: var(--color-primary);
  color: #fff;
  padding: 2rem 0;
  margin-top: 0rem;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-column h3 {
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.footer-column ul {
  list-style: none;
}
.footer-column ul li a {
  color: #fff;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color var(--transition-speed);
}
.footer-column ul li a:hover {
  color: var(--color-hover);
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--color-hover);
  padding-top: 1rem;
  font-size: 0.9rem;
}
.social-links a i {
  color: #fff;
  font-size: 1.4rem;
  margin-right: 0.25rem;
  transition: color var(--transition-speed);
}
.social-links a:hover i {
  color: var(--color-hover);
}

/* ===============================
   11. Messages (Wishlist, Forms)
=============================== */
.message {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  text-align: center;
}
.message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
.message.warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

/* ===============================
   12. Dark Mode Adjustments
=============================== */
.dark-mode .header {
  background-color: #2f3840;
}
.dark-mode .nav-list .nav-link {
  color: #ffffff;
  transition: color 0.3s;
}
.dark-mode .nav-list .nav-link:hover {
  color: #b1c6cc;
}
.dark-mode .lang-btn {
  background-color: #1d1d1d;
  color: #ffffff;
}
.dark-mode .lang-btn:hover {
  background-color: #1d1d1d77;
}
.dark-mode .theme-toggle-container .toggle-label {
  border: 2px solid #6c838d;
}
.dark-mode body {
  background-color: #1c1c1c;
  color: #ffffff;
}
.dark-mode .development-content {
  background-color: var(--cards);
}
.dark-mode .development-cta {
  background-color: rgba(255, 255, 255, 0.05);
}
.dark-mode .message.success {
  background-color: rgba(21, 87, 36, 0.2);
  color: #4caf50;
  border-color: rgba(21, 87, 36, 0.3);
}
.dark-mode .message.error {
  background-color: rgba(114, 28, 36, 0.2);
  color: #f44336;
  border-color: rgba(114, 28, 36, 0.3);
}
.dark-mode .message.warning {
  background-color: rgba(133, 100, 4, 0.2);
  color: #ff9800;
  border-color: rgba(133, 100, 4, 0.3);
}

/* CTA Section Styles */
.cta {
  background: linear-gradient(135deg, #323045, #4a7780);
  color: #fff;
  text-align: center;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 70%);
  transform: rotate(45deg);
}

.cta .container {
  position: relative;
  z-index: 2;
}

.cta .cta-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta form {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cta form input[type="email"] {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  border: none;
  width: 300px;
  max-width: 100%;
  font-size: 1rem;
}

.cta form button {
  padding: 0.75rem 2rem;
  border-radius: 4px;
  border: none;
  background-color: #ff0066;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cta form button:hover {
  background-color: #e6005c;
}

.cta .success-message {
  font-size: 1.2rem;
  margin-top: 1rem;
  color: #4caf50;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; 
  right: 0;
  background-color: #222;
  color: #fff;
  padding: 1rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 9999;
}
.cookie-banner p {
  margin: 0;
  padding-right: 1rem;
}
.cookie-banner a {
  color: #66c0f4;
  text-decoration: underline;
}
.cookie-banner button {
  background-color: #555;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background-color 0.3s;
}
.cookie-banner button:hover {
  background-color: #777;
}
.cookie-banner.hidden {
  display: none !important;
}



:root {
  --tap: 48px;
}

@media (max-width: 890px) {
  .container { width: 96%; padding: 0 .5rem; }

  .header { padding: .5rem 0; }
  .header-content { gap: .75rem; flex-wrap: wrap; }
  .logo img { width: 32px; height: 32px; }
  .logo-text { font-size: 1.125rem; margin-left: .5rem; }
  .header-actions { margin-left: auto; gap: .5rem; }
  .toggle-label { padding: 6px 12px; }
  .toggle-label .fa-sun,.toggle-label .fa-moon { font-size: 20px; }
/* Language popover (anchored to the button) */
.language-dropdown {
  position: relative;
  z-index: 1100; /* above drawer (1001) and header (1002) contents if needed */
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  background: var(--color-bg);
  color: var(--color-text);
  margin-top: 3px;
}

.lang-btn:hover {
  background-color: var(--color-bg);
  color: var(--color-text);
}

.lang-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;               /* align to button */
  right: auto;
  min-width: 180px;
  width: max-content;    /* fit content, not full width */
  max-width: 260px;
  background: var(--cards);
  color: var(--color-text);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 8px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  list-style: none;
  margin: 0;
  display: none;
  max-height: 50vh;      /* scroll if long */
  overflow: auto;
}

.language-dropdown.show .lang-list { display: block; }

.lang-list li {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 10px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease;
}

.lang-list li:hover { background: var(--hover-list); }
.lang-flag { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }

/* Dark mode popover surface tweak */
.dark-mode .lang-list {
  background: var(--cards);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

/* Keep mobile layout tidy (no full-width takeover) */
@media (max-width: 890px) {
  .lang-list {
    left: 0;
    right: auto;
  }
}


  .main-nav { width: 100%; order: 3; }
  .main-nav .nav-list { display: flex; gap: .75rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; text-transform: none; padding: .25rem 0; }
  .main-nav .nav-list::-webkit-scrollbar { display: none; }
  .nav-link { padding: .5rem .25rem; display: inline-flex; align-items: center; gap: .35rem; }
  .has-dropdown > .nav-link i { font-size: .75rem; }

  .has-dropdown .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: .25rem 0 0; min-width: 0; }
  .dropdown-menu li a { padding: .5rem 0; color: var(--color-text); background: transparent; }

  .featured-game { padding: 2rem 0; }
  .featured-game-content { gap: 1rem; }
  .featured-game-info,.featured-game-image { flex: 1 1 100%; }
  .featured-game-image .product-gallery { margin-top: .5rem; }
  .featured-game-image img { width: 100%; }

  .gallery-main { height: 260px; }
  .gallery-controls { bottom: .5rem; right: .5rem; gap: .35rem; }
  .gallery-prev,.gallery-next,.gallery-fullscreen { width: 40px; height: 40px; }
  .gallery-thumbnails { grid-template-columns: repeat(4,1fr); gap: .4rem; }
  .gallery-thumbnail { height: 60px; }

  .badge { font-size: .8rem; }
  h1 { font-size: clamp(1.6rem, 4.5vw, 2.25rem); }
  h2 { font-size: clamp(1.35rem, 4vw, 1.9rem); }
  p,li { font-size: 1rem; }

  .services { padding: 2.5rem 0; text-align: left; }
  .services-grid { gap: 1rem; margin-top: 1.25rem; }
  .service-card { flex: 1 1 100%; padding: 1rem; }
  .service-icon { font-size: 2rem; margin-bottom: .5rem; }

  .team-preview { padding: 3rem 0; }
  .team-grid { gap: 1rem; }
  .team-card { width: 100%; padding: 1rem; }
  .team-member-image img { width: 88px; height: 88px; }

  .product-hero { height: 52vh; min-height: 360px; }
  .product-hero-content { padding: 1.25rem; }
  .product-hero-content h1 { font-size: 1.9rem; }
  .product-hero-content p { font-size: 1rem; }

  .product-description { padding: 3rem 0; }
  .product-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .product-specs { grid-template-columns: repeat(2,1fr); gap: 1rem; }
  .spec-item { align-items: center; }
  .spec-icon { width: 44px; height: 44px; font-size: 1.2rem; }

  .product-actions { flex-direction: column; gap: .75rem; }
  .btn,.btn-lg { width: 100%; min-height: var(--tap); }

  .product-cta,.cta { padding: 3.25rem 0; }
  .cta .cta-content { padding: 1rem; }
  .cta h2 { font-size: 1.9rem; }
  .cta p { font-size: 1rem; margin-bottom: 1.25rem; }
  .cta form { gap: .75rem; }
  .cta form input[type="email"] { width: 100%; min-height: var(--tap); }
  .cta form button { width: 100%; min-height: var(--tap); }

  .lightbox-content { max-width: 96%; max-height: 86%; }
  .lightbox-close { top: -32px; width: 32px; height: 32px; }
  .lightbox-prev,.lightbox-next { width: 42px; height: 42px; }
  .lightbox-prev { left: .25rem; }
  .lightbox-next { right: .25rem; }

  .footer { padding: 1.5rem 0; }
  .footer-content { gap: 1rem; }
  .footer-column { flex: 1 1 100%; }
  .footer-bottom { font-size: .9rem; }

  .cookie-banner { padding-bottom: calc(env(safe-area-inset-bottom) + 1rem); flex-direction: column; align-items: stretch; gap: .75rem; }
  .cookie-banner p { padding-right: 0; }
  .cookie-banner button { width: 100%; min-height: var(--tap); }
}

/* ===== Mobile Drawer — Top Dropdown Version ===== */
:root { --tap: 48px; }

html, body { overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }

/* When open */
html.drawer-open .mobile-drawer { 
  max-height: 100dvh;
  opacity: 1;
  visibility: visible;
}
html.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
.no-scroll { overflow: hidden; height: 100dvh; }

/* Burger always above */
.burger { z-index: 1002; }
.burger span { transition: transform .25s ease, opacity .25s ease; }
html.drawer-open .burger span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
html.drawer-open .burger span:nth-child(2){ opacity: 0; }
html.drawer-open .burger span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* Drawer from TOP instead of SIDE */
.mobile-drawer {
  position: fixed;
  top: var(--header-height, 70px); /* ensure starts below navbar */
  left: 0;
  right: 0;
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  z-index: 1001;
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
  overflow-y: auto;
  transition: max-height .3s ease, opacity .25s ease;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  padding: 16px 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}

/* Backdrop covers below navbar only */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  opacity: 0;
  visibility: hidden;
  transition: .25s ease;
  z-index: 1000;
}

/* List styling */
.mobile-drawer ul { list-style: none; margin: 0; padding: 0; }
.mobile-drawer .md-item { margin: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.mobile-drawer .md-item:last-child { border-bottom: none; }

.mobile-drawer .md-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: 0;
  color: #fff;
  font: inherit;
  text-align: left;
  padding: 14px 8px;
  text-decoration: none;
  line-height: 1.25;
}

/* Submenu animation — vertical expansion */
.mobile-drawer .md-sub {
  display: block;
  max-height: 0;
  overflow: hidden;
  margin: 6px 0 10px;
  padding: 0 0 0 14px;
  border-left: 2px solid rgba(255,255,255,.15);
  transition: max-height .25s ease;
  will-change: max-height;
}
.mobile-drawer .md-item.open > .md-sub { max-height: 600px; }

.mobile-drawer .md-sub a {
  display: block;
  padding: 10px 6px;
  color: #fff;
  opacity: .9;
  text-decoration: none;
  line-height: 1.25;
}
.mobile-drawer .md-sub a:hover { background: rgba(255,255,255,.06); }

/* Caret arrow for accordion */
.mobile-drawer .md-has-children > .md-link {
  position: relative;
  padding-right: 28px;
}
.mobile-drawer .md-has-children > .md-link::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-50%) rotate(-45deg);
  transition: transform .25s ease;
}
.mobile-drawer .md-item.open > .md-link::after {
  transform: translateY(-50%) rotate(45deg);
}

/* Responsive */
@media (max-width: 890px) {
  .main-nav { display: none; }
  .burger {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.15);
    cursor: pointer;
  }
  .burger span { width: 22px; height: 2px; background: #fff; }
  .header-actions { margin-left: auto; gap: 8px; }
}

/* Optional motion reduction */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* --- NAVBAR FIX PATCH --- */

/* Give header a predictable height and expose it as a variable */
.header {
  --header-height: 64px;           /* adjust if your header is taller */
  min-height: var(--header-height);
  display: block;                  /* ensure normal flow */
}

/* Use the real header height for the dropdown offset */
.mobile-drawer {
  top: var(--header-height);
}

.nav-toggle {
  display: none;
}

/* Mobile layout: logo left, actions next, burger far right */
@media (max-width: 890px) {
  .header-content {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* Hide the real checkbox completely (the white square you saw) */
  .nav-toggle {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
    appearance: none !important;
  }

  /* Order: logo (1) → actions (2) → burger (3) */
  .logo { order: 1; }
  .header-actions { order: 2; margin-left: auto; display: flex; align-items: center; gap: 8px; }
  .burger { order: 3; margin-left: 8px; }

  /* Keep burger and header above the dropdown/backdrop cleanly */
  .burger { position: relative; z-index: 1002; }
  .header { position: sticky; top: 0; z-index: 1002; }

  /* Tighter actions sizing so they don't collide with the burger */
  .lang-btn { min-height: 20px; max-height: 35px;}
  .toggle-label { padding: 6px 12px; }
}

/* Make sure the backdrop never covers the header */
.drawer-backdrop {
  top: var(--header-height);   /* start below navbar */
}

/* (Optional) Slight header padding tweak so content breathes */
@media (max-width: 890px) {
  .header { padding: 8px 0; }
}

