/* Universal Carnival - Main Stylesheet */
:root {
  --primary: #FF5722;
  --secondary: #FF9800;
  --accent: #FFEB3B;
  --dark: #263238;
  --light: #ECEFF1;
  --white: #FFFFFF;
  --text: #212121;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* Header Styles */
header {
  background-color: var(--primary);
  color: var(--white);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo img {
  height: 50px;
  width: auto;
  margin-right: 0.5rem;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

nav ul li a:hover {
  color: var(--accent);
}

.mobile-menu-btn {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: var(--white);
  padding: 6rem 0;
  text-align: center;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--accent);
  color: var(--dark);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* About Section */
.about {
  padding: 5rem 0;
  background-color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--secondary);
}

/* Services Section */
.services {
  padding: 5rem 0;
  background-color: var(--light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.service-content {
  padding: 1.5rem;
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

/* Games Section */
.games {
  padding: 5rem 0;
  background-color: var(--white);
}

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

.game-card {
  background-color: var(--light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  padding: 1.5rem;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.game-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--primary);
}

.game-card p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.game-card a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  margin-top: 0.5rem;
  transition: all 0.3s ease;
}

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

/* News Section */
.news {
  padding: 5rem 0;
  background-color: var(--light);
}

.news-card {
  background-color: var(--white);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.news-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--primary);
}

.news-card .source {
  font-style: italic;
  color: var(--dark);
  opacity: 0.8;
  margin-bottom: 1rem;
  display: block;
}

.news-card a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  margin-top: 0.5rem;
}

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

/* Footer */
footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-logo {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
}

.footer-logo img {
  height: 40px;
  margin-right: 0.8rem;
}

.footer-links {
  flex: 1;
  min-width: 200px;
}

.footer-links h3 {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  color: var(--accent);
}

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

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul li a {
  color: var(--light);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--accent);
}

.footer-newsletter {
  flex: 2;
  min-width: 300px;
}

.footer-newsletter h3 {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  color: var(--accent);
}

.footer-newsletter p {
  margin-bottom: 1.2rem;
}

.newsletter-form {
  display: flex;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
}

.newsletter-form button {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  padding: 0 1.5rem;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background-color: var(--secondary);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Mobile Responsive Styles */
@media (max-width: 992px) {
  .hero h2 {
    font-size: 2.5rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
  }
  
  .logo {
    margin-bottom: 1rem;
    justify-content: center;
  }
  
  nav ul {
    justify-content: center;
  }
  
  nav ul li {
    margin: 0 0.75rem;
  }
  
  .hero {
    padding: 4rem 0;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .about-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-logo {
    justify-content: center;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 576px) {
  .mobile-menu-btn {
    display: block;
  }
  
  nav {
    display: none;
  }
  
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    border-radius: 4px;
    margin-bottom: 0.5rem;
  }
  
  .newsletter-form button {
    border-radius: 4px;
    padding: 0.75rem;
  }
}
