/* MB Sports Trading - Stylesheet */

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

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa; /* Light grey */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background-color: #000; /* Black */
  color: #fff;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #4ceb37; /* Green */
}

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

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

nav ul {
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #000;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
  }
  
  nav ul.mobile-menu {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  nav ul li {
    margin: 0.5rem 0;
    width: 100%;
    text-align: center;
  }
  
  nav ul li a {
    display: block;
    padding: 0.5rem 0;
  }
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #4ceb37;
}

/* Hero Section */
.hero {
  background: radial-gradient(1200px 600px at 10% 10%, rgba(25, 135, 84, 0.35), transparent 60%), linear-gradient(to bottom, rgba(11, 23, 38, 0.65), rgba(11, 23, 38, 0.65)), url('https://mb.com.sg/banner.jpg') center / cover no-repeat;  
  color: #fff;
  text-align: center;
  padding: 150px 0 100px;
  margin-top: 80px; /* Account for fixed header */
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.cta {
  display: inline-block;
  background: #4ceb37;
  color: #fff;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 5px;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(76,235,55,0.4);
}

/* Sections */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #000;
}

.section-title i {
  color: #4ceb37;
  margin-right: 10px;
}

/* Why Choose Us */
.why-us {
  background: #fff;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  text-align: center;
}

.why-item {
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  animation: fadeIn 1s ease-out;
}

.why-item:hover {
  transform: translateY(-5px);
}

.why-item i {
  font-size: 3rem;
  color: #4ceb37;
  margin-bottom: 1rem;
}

/* Products */
.products {
  background: #f8f9fa;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.product-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  animation: fadeIn 1s ease-out;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-info {
  padding: 1.5rem;
}

.product-info h3 {
  color: #000;
  margin-bottom: 0.5rem;
}

.product-price {
  color: #4ceb37;
  font-size: 1.2rem;
  font-weight: bold;
}

/* Testing and Community */
.testing, .community {
  background: #fff;
}

.bullets {
  list-style: none;
  padding-left: 0;
}

.bullets li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 2rem;
}

.bullets li::before {
  content: '✨';
  position: absolute;
  left: 0;
  color: #4ceb37;
}

/* Newsletter */
.newsletter {
  background: #000;
  color: #fff;
  text-align: center;
}

.newsletter form {
  max-width: 500px;
  margin: 2rem auto;
}

.newsletter input {
  width: 70%;
  padding: 10px;
  border: none;
  border-radius: 5px 0 0 5px;
}

.newsletter button {
  padding: 10px 20px;
  background: #4ceb37;
  color: #fff;
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}

/* Footer */
footer {
  background: #000;
  color: #fff;
  padding: 2rem 0;
  text-align: center;
}

.map-container {
  margin: 2rem 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Testimonials */
.testimonials {
  background: #fff;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}

.testimonial-card {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.stars {
  color: #4ceb37;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: bold;
  color: #000;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: block;
  font-size: 3rem;
  color: #4ceb37;
}

.testimonial-avatar img {
  object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  
  .products-grid, .why-us-grid, .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter input { width: 60%; }
}
