:root {  --primary-color: #6a1b9a;
  --secondary-color: #ff8e53;
  --accent-color: #ff6347;
  --dark-color: #1a1a2e;
  --light-color: #f8f9fa;
  --text-color: #333;
  --card-bg: rgba(255, 255, 255, 0.95);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  caret-color: transparent;
        }
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
  color: var(--text-color);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Header Styles */
.sticky-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 5%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  animation: fadeIn 0.8s ease-out;
}

.sticky-header .logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: all 0.3s ease;
}

.sticky-header .logo:hover {
  transform: scale(1.05);
}

.sticky-header .menu-icon {
  font-size: 1.8rem;
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(106, 27, 154, 0.1);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sticky-header .menu-icon:hover {
  background: rgba(106, 27, 154, 0.2);
  transform: rotate(90deg);
}

/* Main Content */
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 5%;
  animation: fadeIn 0.8s ease-out;
}

/* Welcome Section */
.welcome {
  text-align: center;
  margin: 3rem 0;
}

.welcome h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Sidebar Styles */
.social-links {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 999;
  overflow-y: auto;
}

.social-links.show {
  right: 0;
}

.social-links .close-btn {
  font-size: 1.8rem;
  color: var(--primary-color);
  cursor: pointer;
  text-align: right;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.social-links .close-btn:hover {
  transform: rotate(90deg);
}

.social-links h2 {
  font-size: 1.5rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(106, 27, 154, 0.1);
}

.social-links ul {
  list-style: none;
}

.social-links ul li {
  margin-bottom: 1rem;
}

.social-links ul li a {
  display: flex;
  align-items: center;
  padding: 0.8rem 1.2rem;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-color);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.social-links ul li a:hover {
  transform: translateX(5px);
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  color: white;
  box-shadow: 0 8px 25px rgba(106, 27, 154, 0.3);
}

/* Games Section */
.games {
  margin: 4rem 0;
}

.games h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.search-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.search-container input {
  padding: 0.8rem 1.2rem;
  width: 100%;
  max-width: 500px;
  border: 2px solid rgba(106, 27, 154, 0.2);
  border-radius: 50px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.search-container input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(106, 27, 154, 0.1);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.game-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.05),
    0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 6px 12px rgba(0, 0, 0, 0.1),
    0 12px 24px rgba(0, 0, 0, 0.12);
}

.game-card:hover::before {
  opacity: 1;
}

.game-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 1.2rem;
  transition: all 0.4s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  padding: 0.5rem;
}

.game-card:hover img {
  transform: scale(1.08);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

.game-card p {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-top: 0.5rem;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

.game-card:hover p {
  color: var(--accent-color);
}

/* FAQ Section */
.faq {
  margin: 4rem 0;
}

.faq h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.faq-item {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.faq-item p {
  color: var(--text-color);
  line-height: 1.7;
}

/* Support Section */
.support {
  text-align: center;
  margin: 4rem 0;
}

.support h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.support a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.support a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Subscribe Section */
.subscribe {
  text-align: center;
  margin: 4rem 0;
}

.subscribe h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.subscribe-form {
  display: flex;
  justify-content: center;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.subscribe-form input {
  padding: 0.8rem 1.2rem;
  border: 2px solid rgba(106, 27, 154, 0.2);
  border-radius: 50px;
  font-size: 1rem;
  flex: 1;
  max-width: 400px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
}

.subscribe-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(106, 27, 154, 0.1);
}

.subscribe-form button {
  padding: 0.8rem 2rem;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(106, 27, 154, 0.2);
}

.subscribe-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(106, 27, 154, 0.3);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
  background: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

footer p {
  color: var(--text-color);
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .sticky-header {
    padding: 1rem;
  }
  
  .welcome h1 {
    font-size: 2rem;
  }
  
  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  
  .social-links {
    width: 85%;
  }
  
  .subscribe-form {
    flex-direction: column;
    align-items: center;
  }
  
  .subscribe-form input,
  .subscribe-form button {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .game-card {
    padding: 1rem;
  }
  
  .game-card img {
    height: 100px;
  }
}
