/* Base Styles */
:root {
  --primary-color: #4A90E2;
  --secondary-color: #F8F9FA;
  --accent-color: #FF6B6B;
  --dark-color: #2C3E50;
  --light-color: #FFFFFF;
  --text-color: #333333;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --gradient-primary: linear-gradient(135deg, #4A90E2, #5C6BC0);
  --gradient-accent: linear-gradient(135deg, #FF6B6B, #FF8E53);
}

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

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--secondary-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

section {
  padding: 80px 20px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 15px;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.2rem;
  color: var(--dark-color);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 15px;
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 30px;
  max-width: 1440px;
  margin: 0 auto;
}

.logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-size: 16px;
  font-weight: 500;
  color: var(--dark-color);
  padding: 8px 0;
  position: relative;
}

.nav-links a:hover, 
.nav-links a.active {
  color: var(--primary-color);
}

.nav-links a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover:after,
.nav-links a.active:after {
  width: 100%;
}

.burger-menu {
  display: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  background: var(--secondary-color);
  padding-top: 80px;
  overflow: hidden;
}

.hero-content {
  flex: 1;
  padding: 20px;
  max-width: 600px;
  margin-left: 5%;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fadeIn 1s ease-out;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--dark-color);
  animation: fadeIn 1.2s ease-out;
}

.hero-image {
  flex: 1;
  position: relative;
  animation: slideIn 1s ease-out;
}

.hero-image img {
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform: perspective(800px) rotateY(-10deg);
  transition: transform 0.5s ease;
}

.hero-image img:hover {
  transform: perspective(800px) rotateY(0);
}

/* Buttons (continued) */
.btn-primary, 
.btn-secondary,
.btn-load-more,
.btn-subscribe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-load-more {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  margin: 40px auto;
  display: block;
}

.btn-subscribe {
  background: var(--gradient-accent);
  color: white;
  padding: 10px 24px;
}

.btn-primary:hover, 
.btn-subscribe:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.5);
}

.btn-secondary:hover {
  background: rgba(74, 144, 226, 0.1);
}

.btn-primary:active, 
.btn-secondary:active,
.btn-subscribe:active {
  transform: translateY(1px);
}

/* Ripple effect for buttons */
.btn-primary::after,
.btn-secondary::after,
.btn-subscribe::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.btn-primary:focus:not(:active)::after,
.btn-secondary:focus:not(:active)::after,
.btn-subscribe:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 1;
  }
  20% {
    transform: scale(25, 25);
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.section-header p {
  color: var(--dark-color);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Featured Section */
.featured-section {
  background-color: var(--light-color);
  padding-top: 100px;
}

.featured-carousel {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.featured-carousel::-webkit-scrollbar {
  display: none;
}

.game-card {
  min-width: 320px;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  scroll-snap-align: start;
}

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

.game-thumbnail {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.game-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover .game-thumbnail img {
  transform: scale(1.1);
}

.game-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent-color);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.game-info {
  padding: 20px;
}

.game-info h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.game-info p {
  margin-bottom: 15px;
  color: #666;
  font-size: 0.95rem;
}

.game-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.game-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #666;
}

.game-meta i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

/* Game Showcase */
.game-showcase {
  background-color: var(--secondary-color);
  padding: 100px 5%;
}

.game-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  background: transparent;
  border: 1px solid var(--dark-color);
  color: var(--dark-color);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover, 
.filter-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.game-item {
  border-radius: 10px;
  overflow: hidden;
  background: white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.game-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.game-cover {
  position: relative;
  height: 350px;
  overflow: hidden;
}

.game-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-item:hover .game-cover img {
  transform: scale(1.05);
}

.game-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  padding: 15px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.game-item:hover .game-actions {
  opacity: 1;
  transform: translateY(0);
}

.action-btn {
  background: rgba(255,255,255,0.2);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-btn:hover {
  background: var(--accent-color);
  transform: scale(1.1);
}

.game-details {
  padding: 15px;
}

.game-details h3 {
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.game-details p {
  color: #666;
  font-size: 0.9rem;
}

/* Game Spotlight */
.game-spotlight {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  background: var(--gradient-primary);
  color: white;
  padding: 80px 5%;
}

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

.spotlight-content h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.spotlight-features {
  margin: 30px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  padding: 12px 20px;
  border-radius: 8px;
}

.feature i {
  font-size: 1.5rem;
}

.spotlight-media {
  flex: 1;
  min-width: 300px;
}

.video-container {
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.video-placeholder {
  position: relative;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

.video-placeholder img {
  width: 100%;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-button i {
  font-size: 3rem;
  color: white;
}

.play-button:hover {
  background: var(--accent-color);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-placeholder:hover img {
  opacity: 0.5;
}

.screenshots {
  display: flex;
  gap: 15px;
  justify-content: space-between;
}

.screenshots img {
  border-radius: 5px;
  width: calc(33.33% - 10px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.screenshots img:hover {
  transform: scale(1.05);
}

/* Newsletter */
.newsletter {
  text-align: center;
  padding: 80px 20px;
  background-color: var(--light-color);
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter h2 {
  margin-bottom: 20px;
}

.newsletter p {
  margin-bottom: 30px;
}

.subscribe-form {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

.subscribe-form input {
  flex: 1;
  padding: 12px 20px;
  border-radius: 50px;
  border: 1px solid #ddd;
  font-size: 1rem;
  outline: none;
}

.subscribe-form input:focus {
  border-color: var(--primary-color);
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 60px 5% 30px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-logo {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
}

.footer-logo img {
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.link-group h4 {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.link-group ul li {
  margin-bottom: 10px;
}

.link-group ul li a {
  color: rgba(255,255,255,0.7);
  transition: color 0.3s ease;
}

.link-group ul li a:hover {
  color: white;
}

.social-links {
  min-width: 200px;
}

.social-links h4 {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--accent-color);
  transform: translateY(-5px);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { 
    opacity: 0;
    transform: translateX(50px);
  }
  to { 
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .spotlight-content,
  .spotlight-media {
    flex: 100%;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .burger-menu {
    display: block;
  }
  
  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .footer-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .subscribe-form {
    flex-direction: column;
  }
  
  .btn-subscribe {
    width: 100%;
  }
}

/* Responsive Design (continued) */
@media (max-width: 480px) {
  .screenshots {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .screenshots img {
    width: calc(50% - 10px);
    margin-bottom: 10px;
  }
  
  .game-filter {
    gap: 10px;
  }
  
  .filter-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .spotlight-content h2 {
    font-size: 1.8rem;
  }
  
  .hero-content {
    padding: 10px;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .nav-container {
    padding: 0 15px;
    height: 60px;
  }
  
  .logo img {
    height: 30px;
  }
}

/* Additional Loading Animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading.hidden {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(74, 144, 226, 0.2);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Modal for Game Details */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1500;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  width: 90%;
  max-width: 1000px;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal.show .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal-body {
  padding: 30px;
  max-height: 80vh;
  overflow-y: auto;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a7bc8;
}
/* Mobile Navigation Styles */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 300px;
  max-width: 80%;
  background: white;
  z-index: 1001;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-nav.show {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-links {
  padding: 20px;
}

.mobile-nav-links li {
  margin-bottom: 15px;
}

.mobile-nav-links a {
  display: block;
  padding: 10px;
  font-size: 1.1rem;
  font-weight: 500;
}


.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
}
