/* Global styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  transition: background 0.3s, color 0.3s;
}

h1, h2, h3, p{
    margin-left: 5%;
    margin-right: 5%;
}

body.dark {
  background: #121212;
  color: #f0f0f0;
}

body.light {
  background: #ffffff;
  color: #222222;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: #1f1f1f;
  align-items: center;
}

.navbar a {
  margin-right: 1rem;
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

.navbar a:hover {
  color: #ff9800;
}

#theme-toggle {
  cursor: pointer;
  background: transparent;
  border: none;
  font-size: 1.2rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 2rem;
}

.hero img {
  width: 100%;
  border-radius: 10px;
  margin-top: 1rem;
}

/* Content */
.content {
  padding: 2rem;
  text-align: center;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem;
}

.product {
  background: #1f1f1f;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.2s;
}

.product img {
  max-width: 100%;
  border-radius: 10px;
}

.product:hover {
  transform: scale(1.05);
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem;
}

.team-member {
  text-align: center;
}

.team-member img {
  border-radius: 50%;
  width: 150px;
  height: 150px;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: auto;
  gap: 1rem;
  padding: 2rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border-radius: 5px;
  border: 1px solid #555;
  background: #1f1f1f;
  color: inherit;
}

.contact-form button {
  padding: 0.8rem;
  background: #ff9800;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  color: white;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #e68900;
}

/* Light mode adjustments */
body.light .navbar {
  background: #eeeeee;
}

body.light .product {
  background: #f4f4f4;
}

body.light .contact-form input,
body.light .contact-form textarea {
  background: #fff;
  border: 1px solid #ccc;
}
