
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans Georgian', 'Rubik', sans-serif;
  background: linear-gradient(135deg, #0a0f1a 0%, #1b263b 100%);
  color: #e0e6f0;
  overflow-x: hidden;
}

header {
  background: rgba(13, 27, 42, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(78, 168, 222, 0.3);
}

header.scrolled {
  background: rgba(13, 27, 42, 0.98);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: 'Orbitron', monospace;
  font-size: 1.8rem;
  font-weight: 700;
  color: #4ea8de;
  text-shadow: 0 0 20px rgba(78, 168, 222, 0.5);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav ul li a {
  color: #e0e6f0;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

nav ul li a:hover {
  color: #4ea8de;
  background: rgba(78, 168, 222, 0.1);
  transform: translateY(-2px);
}

.burger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
}

.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(78, 168, 222, 0.2);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  color: #4ea8de;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 1000;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: rgba(78, 168, 222, 0.3);
  transform: scale(1.1);
}


.hero {
  text-align: center;
  padding: 120px 20px 80px;
  background: linear-gradient(135deg, #0a0f1a, #1b263b);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
  animation: float 20s infinite linear;
}

@keyframes float {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-100px); }
}

.hero h1 {
  font-family: 'Orbitron', monospace;
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 30px rgba(78, 168, 222, 0.5);
  background: linear-gradient(135deg, #4ea8de, #1b95d1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .btn {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(135deg, #4ea8de, #1b95d1);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(78, 168, 222, 0.3);
}

.hero .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(78, 168, 222, 0.4);
}

.games-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.games-section h2 {
  font-family: 'Orbitron', monospace;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #4ea8de;
  text-shadow: 0 0 20px rgba(78, 168, 222, 0.3);
}


.controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-box input {
  width: 100%;
  padding: 12px 50px 12px 20px;
  border: 2px solid rgba(78, 168, 222, 0.3);
  border-radius: 25px;
  background: rgba(30, 42, 58, 0.8);
  color: #e0e6f0;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: #4ea8de;
  box-shadow: 0 0 20px rgba(78, 168, 222, 0.3);
}

.search-box::after {
  content: '🔍';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
}

.genre-filter {
  position: relative;
}

.genre-filter select {
  padding: 12px 20px;
  border: 2px solid rgba(78, 168, 222, 0.3);
  border-radius: 25px;
  background: rgba(30, 42, 58, 0.8);
  color: #e0e6f0;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.genre-filter select:focus {
  outline: none;
  border-color: #4ea8de;
}


.loading {
  display: none;
  text-align: center;
  padding: 50px;
}

.spinner {
  border: 4px solid rgba(78, 168, 222, 0.3);
  border-top: 4px solid #4ea8de;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.featured-game {
  background: linear-gradient(135deg, rgba(30, 42, 58, 0.9), rgba(17, 33, 50, 0.9));
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 3rem;
  text-align: center;
  border: 1px solid rgba(78, 168, 222, 0.3);
}

.featured-game h3 {
  font-family: 'Orbitron', monospace;
  color: #4ea8de;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.featured-game-card {
  background: rgba(30, 42, 58, 0.5);
  border-radius: 15px;
  padding: 1.5rem;
  margin-top: 1rem;
  border: 1px solid rgba(78, 168, 222, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.featured-game-card:hover {
  transform: translateY(-5px);
  border-color: #4ea8de;
}

.featured-game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.featured-game-card h4 {
  font-family: 'Orbitron', monospace;
  color: #4ea8de;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.featured-game-card p {
  color: #a0a6b0;
  font-size: 0.9rem;
  line-height: 1.4;
}


.games-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 3rem;
}

.game-card {
  background: linear-gradient(135deg, rgba(30, 42, 58, 0.9), rgba(17, 33, 50, 0.9));
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(78, 168, 222, 0.2);
  position: relative;
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: #4ea8de;
}

.game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-card:hover img {
  transform: scale(1.05);
}

.game-card-content {
  padding: 1.5rem;
}

.game-card h3 {
  font-family: 'Orbitron', monospace;
  color: #4ea8de;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.game-card p {
  color: #a0a6b0;
  margin-bottom: 0.5rem;
}

.game-genres {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.genre-tag {
  background: rgba(78, 168, 222, 0.2);
  color: #4ea8de;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  border: 1px solid rgba(78, 168, 222, 0.3);
}

.game-platforms {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.platform-tag {
  background: rgba(27, 149, 209, 0.2);
  color: #1b95d1;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  font-size: 0.7rem;
  border: 1px solid rgba(27, 149, 209, 0.3);
}


.pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.pagination button {
  padding: 12px 20px;
  background: rgba(78, 168, 222, 0.2);
  color: #4ea8de;
  border: 2px solid rgba(78, 168, 222, 0.3);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
}

.pagination button:hover, .pagination button.active {
  background: #4ea8de;
  color: white;
  transform: translateY(-2px);
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}


.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #1e2a3a, #112132);
  border-radius: 20px;
  padding: 2rem;
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  border: 1px solid rgba(78, 168, 222, 0.3);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #4ea8de;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #1b95d1;
}

.modal img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 1rem;
}

.modal h2 {
  font-family: 'Orbitron', monospace;
  color: #4ea8de;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.modal-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

.modal-info div {
  background: rgba(30, 42, 58, 0.5);
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(78, 168, 222, 0.2);
}

.modal-info h4 {
  color: #4ea8de;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.modal-info p {
  color: #a0a6b0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.modal-description {
  background: rgba(30, 42, 58, 0.3);
  padding: 1.5rem;
  border-radius: 15px;
  margin: 1rem 0;
  border: 1px solid rgba(78, 168, 222, 0.2);
}

.modal-description h4 {
  color: #4ea8de;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.modal-description p {
  color: #e0e6f0;
  line-height: 1.6;
}

.modal-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.modal-tag {
  background: rgba(78, 168, 222, 0.2);
  color: #4ea8de;
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  border: 1px solid rgba(78, 168, 222, 0.3);
}


.about, .contact {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.about {
    background: linear-gradient(135deg, rgba(17, 33, 50, 0.9), rgba(30, 42, 58, 0.9));
  border-radius: 20px;
  margin: 40px auto;
  padding: 40px 20px;
  border: 1px solid rgba(78, 168, 222, 0.3);
  max-width: 1400px;
  width: 100%;
  box-sizing: border-box;
}

.about h2, .contact h2 {
  font-family: 'Orbitron', monospace;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #4ea8de;
}

.about p {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
  color: #a0a6b0;
}


form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

input, textarea, button {
  padding: 15px;
  border: 2px solid rgba(78, 168, 222, 0.3);
  border-radius: 10px;
  background: rgba(30, 42, 58, 0.8);
  color: #e0e6f0;
  font-size: 1rem;
  transition: all 0.3s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #4ea8de;
  box-shadow: 0 0 20px rgba(78, 168, 222, 0.3);
}

button[type="submit"], #togglePassword {
  background: linear-gradient(135deg, #4ea8de, #1b95d1);
  color: white;
  cursor: pointer;
  font-weight: 600;
  border: none;
}

button[type="submit"]:hover, #togglePassword:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(78, 168, 222, 0.3);
}

footer {
  background: linear-gradient(135deg, #0d1b2a, #1b263b);
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid rgba(78, 168, 222, 0.3);
}

#scrollTop {
  background: #4ea8de;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

#scrollTop:hover {
  background: #1b95d1;
  transform: translateY(-2px);
}


.cookie-banner {
  background: linear-gradient(135deg, #0d1b2a, #1b263b);
  color: #e0e6f0;
  padding: 20px;
  position: fixed;
  bottom: 0;
  width: 100%;
  display: none;
  justify-content: space-between;
  align-items: center;
  z-index: 200;
  border-top: 1px solid rgba(78, 168, 222, 0.3);
}

.cookie-banner button {
  background: #4ea8de;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie-banner button:hover {
  background: #1b95d1;
  transform: translateY(-2px);
}


body.light-theme {
  background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
  color: #2d3748;
}

body.light-theme header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(78, 168, 222, 0.3);
}

body.light-theme .hero {
  background: linear-gradient(135deg, #f0f4f8, #e2e8f0);
}

body.light-theme .game-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(78, 168, 222, 0.2);
}

body.light-theme .featured-game {
  background: rgba(255, 255, 255, 0.9);
}

body.light-theme .about {
  background: rgba(255, 255, 255, 0.9);
}

body.light-theme .modal-content {
  background: linear-gradient(135deg, #ffffff, #f7fafc);
}

body.light-theme .search-box input,
body.light-theme .genre-filter select,
body.light-theme input,
body.light-theme textarea {
  background: rgba(255, 255, 255, 0.9);
  color: #2d3748;
}


.no-results {
  text-align: center;
  padding: 50px 20px;
  color: #a0a6b0;
}

.no-results h3 {
  font-family: 'Orbitron', monospace;
  color: #4ea8de;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.no-results p {
  font-size: 1.1rem;
  line-height: 1.6;
}


.section {
  padding: 80px 20px;
  background: linear-gradient(135deg, rgba(17, 33, 50, 0.9), rgba(30, 42, 58, 0.9));
  color: #e0e6f0;
  text-align: center;
  max-width: 1400px;
  margin: 40px auto;
  border-radius: 20px;
  border: 1px solid rgba(78, 168, 222, 0.3);
}
.section h2 {
  font-family: 'Orbitron', monospace;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #4ea8de;
}
.section p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #a0a6b0;
  max-width: 800px;
  margin: 1rem auto 0;
}
.section .extra-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 20px auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 1024px) {
  .section {
    padding: 60px 15px;
  }
  .section h2 {
    font-size: 2.2rem;
  }
  .section p {
    font-size: 1rem;
  }
}

@media screen and (max-width: 320px) {
  .section h2 {
    font-size: 1.4rem;
  }
  .section p {
    font-size: 0.9rem;
  }
}


@media screen and (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background: rgba(13, 27, 42, 0.95);
    position: absolute;
    top: 60px;
    right: 0;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 10px;
  }

  nav ul.active {
    display: flex;
  }

  .burger {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .controls {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    max-width: 100%;
  }

  .games-container {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: 95%;
    padding: 1rem;
  }

  .modal-info {
    grid-template-columns: 1fr;
  }

  .modal img {
    height: 200px;
  }

  .pagination {
    flex-wrap: wrap;
  }

  .pagination button {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .games-section h2 {
    font-size: 2rem;
  }

  .about h2, .contact h2 {
    font-size: 2rem;
  }

  .modal-content {
    padding: 1rem;
  }

  .modal h2 {
    font-size: 1.5rem;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.glow {
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 20px rgba(78, 168, 222, 0.5); }
  to { text-shadow: 0 0 30px rgba(78, 168, 222, 0.8), 0 0 40px rgba(78, 168, 222, 0.6); }
}


::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(13, 27, 42, 0.5);
}

::-webkit-scrollbar-thumb {
  background: rgba(78, 168, 222, 0.6);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(78, 168, 222, 0.8);
}


::selection {
  background: rgba(78, 168, 222, 0.3);
  color: #e0e6f0;
}

.favorite-btn {
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(78, 168, 222, 0.2);
  color: #4ea8de;
  border: 1px solid rgba(78, 168, 222, 0.3);
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.favorite-btn:hover {
  background: #4ea8de;
  color: white;
}
