/* styles.css */

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

/* Body and Fonts */
body {
  font-family: 'Montserrat', sans-serif;
  background: #F5F7FA;
  color: #333;
  line-height: 1.6;
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #222;
  padding: 1rem 2rem;
}

.logo {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #6ee7b7;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  /* If you have too many links for small screens, you can allow wrapping: */
  flex-wrap: wrap; 
  margin: 0; /* ensure no default ul margins cause horizontal scrolling */
}

.nav-links li {
  display: inline-block;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #6ee7b7;
}

.nav-links a.active {
  color: #6ee7b7;
  font-weight: 700;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* or be sure nothing else is overflowing horizontally */
}

/* Page Header / Hero */
.page-header {
  background: linear-gradient(135deg, rgba(46, 204, 255, 0.8), rgba(255, 46, 204, 0.5));
  color: #fff;
  text-align: center;
  padding: 5rem 1rem;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: #6ee7b7;
  color: #333;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

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

/* Main Content Layout */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}
/* Card Section Styling */
.card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
}
/* Card Container */
.card-container {
  display: flex;
  flex-direction: column;
  gap: 2rem; /* Space between cards */
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto; /* Center the container */
}


/* Product Cards */
.products-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
}

/* Careers, Contact, Demos etc. can have their own classes */
.careers-section,
.contact-section,
.demo-section {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  padding: 1.5rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  background: #222;
  color: #fff;
  margin-top: 2rem;
}

/* Iconography */
/* Feature Icons */
.feature-icon {
  width: 48px;
  height: 48px;
  margin-right: 1rem;
  display: inline-block;
  vertical-align: middle;
}

/* Features Section Styling */
.feature {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
}

.feature h3 {
  margin: 0 0 0.5rem 0;
}

.feature p {
  margin: 0;
  line-height: 1.6;
  padding: 0.5rem 0 0 0;
}


/* Responsive Adjustments */
@media (max-width: 1080px) {
  .page-header h1 {
    font-size: 2rem;
  }
  .page-header p {
    font-size: 1rem;
  }
  .products-container {
    grid-template-columns: 1fr;
  }
  nav {
    flex-direction: column;        /* Stack logo & nav links vertically */
    align-items: flex-start;       /* or center, if you prefer centered nav */
    padding: 1rem;                 /* reduce horizontal padding if needed */
  }

  .logo {
    margin-bottom: 0.5rem;         /* add spacing between logo and nav links */
  }

  .nav-links {
    flex-direction: column;        /* stack links vertically */
    align-items: flex-start;       /* align to left (or center) */
    gap: 0.75rem;                  /* slightly smaller gap for vertical spacing */
    width: 100%;                   /* so it doesn't cause horizontal scroll */
  }

  .nav-links li {
    display: block;                /* ensure each link is on its own line */
  }
}
