/* Home/Landing page styles */

/* Header */
.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.75rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: white;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background-color: rgba(255,255,255,0.1);
  text-decoration: none;
  color: white;
}

/* Hamburger Menu for Mobile */
.hamburger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.hamburger-menu:hover {
  background-color: rgba(255,255,255,0.1);
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.mobile-nav.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-nav .nav-link {
  padding: 12px 16px;
  border-radius: 8px;
  text-align: center;
  background-color: rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.mobile-nav .nav-link:hover {
  background-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* Main content */
.main {
  margin-top: 70px; /* Account for smaller fixed header */
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 100px 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  max-width: 500px;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

.hero-actions .btn {
  padding: 15px 30px;
  font-size: 18px;
  font-weight: 600;
}

/* Game preview */
.hero-preview {
  display: flex;
  justify-content: center;
  align-items: center;
}

.game-preview {
  width: 300px;
  height: 200px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.preview-snake {
  width: 60px;
  height: 8px;
  background: #4CAF50;
  border-radius: 4px;
  position: relative;
  animation: snakeMove 3s infinite;
}

.preview-snake::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: #45a049;
  border-radius: 50%;
  right: -4px;
  top: 0;
}

.preview-food {
  width: 12px;
  height: 12px;
  background: #ff6b6b;
  border-radius: 50%;
  margin-top: 20px;
  animation: foodPulse 2s infinite;
}

.preview-text {
  margin-top: 15px;
  font-weight: 500;
  font-size: 14px;
  opacity: 0.8;
}

@keyframes snakeMove {
  0%, 100% { transform: translateX(-20px); }
  50% { transform: translateX(20px); }
}

@keyframes foodPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}

/* Features section */
.features {
  padding: 80px 0;
  background: white;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: #333;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-card {
  text-align: center;
  padding: 40px 20px;
  border-radius: 12px;
  background: #f8f9fa;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #333;
}

.feature-card p {
  color: #666;
  line-height: 1.6;
}

/* Gameplay section */
.gameplay {
  padding: 80px 0;
  background: #f8f9fa;
}

.gameplay-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.gameplay-rules ul {
  list-style: none;
  padding: 0;
}

.gameplay-rules li {
  padding: 8px 0;
  font-size: 1.1rem;
}

.food-types {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.food-list {
  margin: 20px 0;
}

.food-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.food-item:last-child {
  border-bottom: none;
}

.food-color {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 15px;
  flex-shrink: 0;
}

.food-color.red { background-color: #ff6b6b; }
.food-color.orange { background-color: #ffa500; }
.food-color.silver { background-color: #c0c0c0; }
.food-color.gold { background-color: #ffd700; }

.food-info {
  flex: 1;
}

.food-note {
  background: #e8f5e8;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #4CAF50;
  margin-top: 20px;
  font-style: italic;
}

/* CTA section */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.cta-actions .btn {
  padding: 15px 30px;
  font-size: 18px;
  font-weight: 600;
}

/* Footer */
.footer {
  background: #333;
  color: white;
  padding: 40px 0;
  text-align: center;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #ccc;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

/* Responsive design */
@media (max-width: 768px) {
  .header .container {
    position: relative;
  }
  
  .nav {
    display: none;
  }
  
  .hamburger-menu {
    display: flex;
  }
  
  .main {
    margin-top: 65px;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .gameplay-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .footer .container {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.4rem;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .mobile-nav-content {
    padding: 15px;
  }
  
  .hamburger-line {
    width: 20px;
    height: 2px;
  }
  
  .hamburger-menu {
    padding: 6px;
  }
}