/* Reset & base */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: #ddd;
  background-color: #121212;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 2rem;
  background: #1e1e1e;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  position: relative;
  z-index: 1;
}

/* Header */
header {
  text-align: center;
  padding-bottom: 1.5rem;
}

.subheading {
  font-size: 1.2rem;
  font-weight: 400;
  color: #aaa;
}

/* Sections */
section {
  margin-bottom: 3rem;
}

h2 {
  color: #eee;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-align: center;
}

/* Paragraphs */
p {
  margin: 0.5rem 0 1.25rem;
  line-height: 1.6;
  color: #bbb;
}

/* Buttons */
.buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  background-color: #4169e1;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(65, 105, 225, 0.7);
}

.btn:hover,
.btn:focus {
  background-color: #274bbf;
  transform: translateY(-2px);
  outline: none;
}

/* Employment */
.employment h2 {
  text-align: center;
}

.employment-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.employment-links a {
  color: #6994ff;
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.employment-links a:hover {
  color: #ff5964;
}

/* Note */
.note {
  font-size: 0.9rem;
  color: #777;
  text-align: center;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid #333;
  color: #888;
  font-size: 0.9rem;
}

footer .links {
  margin-top: 0.5rem;
}

footer .links a {
  margin: 0 0.6rem;
  color: #6994ff;
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.3s ease;
}

footer .links a:hover {
  color: #ff5964;
}

/* Fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #2c2f4a, #1b1e38);
  border-radius: 1rem;
  margin-bottom: 3rem;
  box-shadow: 0 8px 30px rgba(65, 105, 225, 0.5);
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  color: #8aa0ff;
  margin-bottom: 0.5rem;
}

.hero .subheading {
  font-size: 1.25rem;
  color: #aab4ff;
  margin-bottom: 2rem;
  font-weight: 500;
}

/* User Review Form Section */
.reviews {
  background: #274bbf;
  padding: 2rem 2.5rem;
  border-radius: 1rem;
  color: #fff;
  max-width: 800px;
  margin: 3rem auto;
  box-shadow: 0 8px 30px rgba(65, 105, 225, 0.7);
}

.reviews h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 700;
  font-size: 2rem;
}

.reviews form label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.3rem;
  color: #e0e0e0;
}

.reviews form input,
.reviews form select,
.reviews form textarea {
  width: 100%;
  margin-bottom: 1.2rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  background-color: #3c4bb1;
  color: #eee;
  transition: background-color 0.3s ease;
}

.reviews form input:focus,
.reviews form select:focus,
.reviews form textarea:focus {
  outline: none;
  background-color: #556cd6;
  color: #fff;
}

.reviews form button {
  background-color: #1b2e7a;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  width: 100%;
  max-width: 220px;
  display: block;
  margin: 0 auto;
}

.reviews form button:hover {
  background-color: #0f1a4a;
}

/* Firebase Review Display */
.review-item {
  background: #2a2a2a;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.7);
  color: #ddd;
}

.review-item h4 {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.review-item h4 em {
  font-style: italic;
  color: #888;
  font-weight: 400;
  margin-left: 0.5rem;
  font-size: 0.9rem;
}

.review-item .rating {
  color: gold;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* Hardcoded Review Gallery */
.review-gallery {
  background-color: #1e1e1e;
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.7);
  text-align: center;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.review-gallery h2 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: #ddd;
  font-weight: 700;
}

.review-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  justify-content: center;  /* centers grid within container */
  max-width: 600px;          /* restrict overall width to about 2 cards wide */
  margin: 0 auto;            /* center horizontally */
}

.review-card {
  background: #292929;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s ease;
  text-align: left;
  color: #ccc;
}

.review-card:hover {
  transform: translateY(-5px);
}

.review-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
  object-fit: contain;
  display: block;
}


.review-card p {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: #bbb;
}

.review-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #999;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
}
