/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Raleway', sans-serif;
  color: #333;
}

/* Navbar */
.navbar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #1a1a2e;
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-logo {
  height: 50px;
  width: auto;

}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.nav-links a:hover {
  color: #59a52c;
}

/* Hero */
.hero {
  background-image: url("/assets/space_and_stars-5f5dbc90.png");
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 8rem 2rem;
  margin: 1.5rem;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #ccc;
}

/* Button */
.btn {
  display: inline-block;
  background-color: #303841;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #59a52c;
}

/* About */
.about {
  padding: 5rem 10%;
  text-align: center;
  background-color: #f9f9f9;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about p {
  font-size: 1.1rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
}

/* Products */
.products {
  padding: 5rem 10%;
  text-align: center;
}

.products h2 {
  font-size: 2rem;
  margin-bottom: 3rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.products-card {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.products-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #1a1a2e;
}

.products-card p {
  color: #555;
}

/* Contact */
.contact {
  padding: 5rem 10%;
  text-align: center;
  background-color: #1a1a2e;
  color: white;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact p {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 2rem;
}

.contact-label {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  background-color: rgba(255,255,255,0.1);
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.contact-sub {
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  background-color: rgba(255,255,255,0.1);
  border: none;
  border-radius: 8px;
  padding: 1rem;
  color: white;
  font-size: 1rem;
  width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
}

.contact-form textarea {
  height: 120px;
  resize: vertical;
}

.contact-form input[type="submit"] {
  background-color: #303841;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form input[type="submit"]:hover {
  background-color: #59a52c;
}

/* Mobile styles - applies to screens 768px wide or smaller */
@media (max-width: 768px) {
  /* Navbar */
  .navbar {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .nav-links {
    margin-left: 0;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-logo {
    height: 40px;
  }

  /* Hero */
  .hero {
    padding: 4rem 1.5rem;
    margin: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  /* About / Products / Contact sections */
  .about,
  .products,
  .contact {
    padding: 3rem 1.5rem;
  }

  .about h2,
  .products h2,
  .contact h2 {
    font-size: 1.5rem;
  }

  /* Products grid - stack vertically on mobile */
  .products-grid {
    grid-template-columns: 1fr;
  }

  /* Contact form */
  .contact-form {
    width: 100%;
  }
}