/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-bg-dark), var(--color-secondary-dark));
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/public/backround-img-here.png');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.1;
  position: relative;
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
  font-weight: 300;
  animation: fadeInUp 1s ease 0.2s forwards;
  opacity: 0;
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-md);
  animation: fadeInUp 1s ease 0.4s forwards;
  opacity: 0;
}

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

.hero-visual {
  flex: 1;
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pixel-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(var(--color-bg-main) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-bg-main) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.2;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 20px 20px;
  }
}

.ai-avatar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: float 6s ease-in-out infinite;
}

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

.avatar-container {
  width: 150px;
  height: 150px;
  position: relative;
  margin-bottom: var(--spacing-md);
}

.avatar-glow {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
  opacity: 0.4;
  animation: pulse 3s infinite alternate;
}

.avatar-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="45" fill="%239d4edd" /></svg>');
  background-size: contain;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: white;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.avatar-face:after {
  content: "Z";
  font-family: var(--font-heading);
}

.avatar-message {
  background: rgba(58, 12, 163, 0.6);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  max-width: 250px;
  position: relative;
  animation: typeMessage 3s steps(40, end);
  white-space: nowrap;
  overflow: hidden;
}

.avatar-message:before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid rgba(58, 12, 163, 0.6);
}

@keyframes typeMessage {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* About Section */
.about-section {
  padding: var(--spacing-xxl) 0;
  background: var(--color-bg-light);
  position: relative;
  overflow: hidden;
}

.about-section .container {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.about-image {
  flex: 1;
}

.image-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.image-container img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}

.image-container:hover img {
  transform: scale(1.05);
}

.glitch-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(157, 78, 221, 0.2), rgba(247, 37, 133, 0.2));
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.image-container:hover .glitch-effect {
  opacity: 1;
  animation: glitch 0.5s ease infinite;
}

@keyframes glitch {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-5px, 5px);
  }
  40% {
    transform: translate(-5px, -5px);
  }
  60% {
    transform: translate(5px, 5px);
  }
  80% {
    transform: translate(5px, -5px);
  }
  100% {
    transform: translate(0);
  }
}

.about-content {
  flex: 1;
}

.about-features {
  display: flex;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.feature {
  flex: 1;
  background: rgba(14, 11, 22, 0.5);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: var(--spacing-md);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.future-icon {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%239d4edd"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13h2v6h-2zm0 8h2v2h-2z"/></svg>');
}

.social-icon {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%239d4edd"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"/></svg>');
}

.feature h3 {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-sm);
}

.feature p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* Games Preview Section */
.games-preview {
  padding: var(--spacing-xxl) 0;
  background: var(--color-bg-main);
}

.games-preview h2 {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.game-card {
  background: var(--color-bg-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  height: 100%;
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.game-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.game-image {
  position: relative;
  overflow: hidden;
  padding-bottom: 60%;
}

.game-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.game-info {
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.game-info h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.game-info p {
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
}

.view-all {
  text-align: center;
  margin-top: var(--spacing-lg);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-section .container {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  
  .hero-content {
    margin-bottom: var(--spacing-xl);
  }
  
  .cta-buttons {
    justify-content: center;
  }
  
  .about-section .container {
    flex-direction: column;
  }
  
  .about-image, .about-content {
    width: 100%;
  }
  
  .about-features {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  
  .about-section {
    padding: var(--spacing-xl) 0;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .btn {
    width: 100%;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
  }
}