/* 
* Abdul Alim Website Styles
* Optimized for mobile responsiveness and SEO
*/

:root {
  --primary-color: #228B22; /* Forest Green */
  --secondary-color: #FFD700; /* Gold */
  --accent-color: #FF4500; /* Orange Red */
  --text-color: #333333;
  --light-text: #FFFFFF;
  --background-light: #F8F8F8;
  --background-dark: #1A1A1A;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

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

ul {
  list-style: none;
}

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

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  color: var(--primary-color);
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--border-radius);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.primary-btn {
  background-color: var(--primary-color);
  color: var(--light-text);
}

.primary-btn:hover {
  background-color: var(--accent-color);
  color: var(--light-text);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 0;
}

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

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

.logo {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.logo-container h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--primary-color);
}

.nav-menu ul {
  display: flex;
}

.nav-menu ul li {
  margin-left: 25px;
}

.nav-menu ul li a {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-color);
}

.nav-menu ul li a:hover {
  color: var(--primary-color);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 5px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://source.unsplash.com/random/1600x900/?brazilian,food') no-repeat center center/cover;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--light-text);
  margin-top: 75px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: fadeInDown 1s ease;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.5s;
  animation-fill-mode: backwards;
}

/* About Section */
.about {
  padding: 80px 0;
  background-color: #fff;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-text {
  max-width: 800px;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* Specialties Section */
.specialties {
  padding: 80px 0;
  background-color: var(--background-light);
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.specialty-card {
  background-color: #fff;
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
}

.specialty-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.specialty-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

/* Games Section */
.games {
  padding: 80px 0;
  background-color: #fff;
}

.section-description {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.game-card {
  background-color: var(--background-light);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

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

.news-sources {
  background-color: var(--background-light);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.news-sources h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  text-align: center;
}

.news-sources ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.news-sources ul li {
  background-color: #fff;
  padding: 10px 15px;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background-color: var(--background-light);
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  margin-top: 30px;
}

.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  margin-top: 25px;
}

.contact-info h3:first-child {
  margin-top: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: inherit;
}

.contact-form button {
  align-self: flex-start;
  margin-top: 10px;
}

/* Footer */
.footer {
  background-color: var(--background-dark);
  color: var(--light-text);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo .logo {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

.footer-links h3,
.footer-social h3 {
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.footer-links h3:after,
.footer-social h3:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a,
.footer-social a {
  color: #ccc;
}

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

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

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

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

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Media Queries for Responsiveness */
@media screen and (max-width: 992px) {
  .hero h2 {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
}

@media screen and (max-width: 768px) {
  .hero h2 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: #fff;
    transition: 0.4s;
    overflow-y: auto;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu ul {
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
  }
  
  .nav-menu ul li {
    margin: 15px 0;
  }
  
  .hamburger {
    display: block;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 576px) {
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .specialty-card,
  .game-card {
    padding: 20px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-logo {
    align-items: center;
  }
  
  .footer-links h3:after,
  .footer-social h3:after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .social-icons {
    justify-content: center;
  }
}
