/* styles.css */

/* Fonts and Base Styles */
body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  color: #333;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3, h4 {
  margin-top: 0;
}

p {
  margin-bottom: 1em;
}

/* Header Styles */
header {
  background-color: #800000;
  color: #fff;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1em 0;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo {
  height: 50px;
  width: 50px;
  object-fit: cover;
  margin-right: 0.5em;
}

nav {
  position: relative;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle .hamburger,
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  width: 25px;
  height: 3px;
  background-color: #fff;
  display: block;
  position: relative;
}

.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle .hamburger::before {
  top: -8px;
}

.nav-toggle .hamburger::after {
  top: 8px;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
}

.nav-menu li {
  margin-left: 1.5em;
}

.nav-menu a {
  color: #fff;
  font-weight: 600;
}

.nav-menu a.active,
.nav-menu a:hover {
  text-decoration: underline;
}

.nav-btn {
  background-color: #ffcc00;
  color: #800000;
  padding: 0.5em 1em;
  border-radius: 5px;
}

.nav-btn:hover {
  background-color: #e6b800;
}

/* Hero Section */
.hero {
  background-image: url('../assets/hero.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 6em 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5em;
  margin-bottom: 0.5em;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 1em;
}

.hero .btn-primary {
  background-color: #ffcc00;
  color: #800000;
  padding: 0.75em 1.5em;
  border-radius: 5px;
  font-weight: bold;
}

.hero .btn-primary:hover {
  background-color: #e6b800;
}

/* How It Works Section */
.how-it-works {
  padding: 4em 0;
  background-color: #f9f9f9;
}

.how-it-works h2 {
  text-align: center;
  margin-bottom: 2em;
}

.steps-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  text-align: center;
}

.step-item {
  flex: 1 1 30%;
  margin-bottom: 2em;
  padding: 0 1em;
}

.step-item i {
  color: #800000;
  margin-bottom: 0.5em;
}

.step-item h3 {
  margin-bottom: 0.5em;
}

.step-item p {
  color: #666;
}

/* Features Section */
.features {
  padding: 4em 0;
}

.features h2 {
  text-align: center;
  margin-bottom: 2em;
}

.feature-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.feature-item {
  flex: 1 1 30%;
  text-align: center;
  margin-bottom: 2em;
  padding: 0 1em;
}

.icon-container {
  background-color: #ffcc00; /* Example background color */
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1em auto; /* Center the icon and add spacing */
}

.icon-container i {
  color: #800000; /* Icon color matching the theme */
}

.feature-item h3 {
  margin-top: 1em;
  margin-bottom: 0.5em;
}

.feature-item p {
  color: #666;
}

/* Testimonials Section */
.testimonials {
  padding: 4em 0;
  background-color: #f9f9f9;
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 2em;
}

.testimonial-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  text-align: center;
}

.testimonial-item {
  flex: 1 1 30%;
  margin-bottom: 2em;
  padding: 0 1em;
}

.testimonial-item p {
  font-style: italic;
  color: #555;
}

.testimonial-item h4 {
  margin-top: 1em;
  color: #800000;
}

/* Call to Action Section */
.cta {
  background-color: #800000;
  color: #fff;
  padding: 4em 0;
  text-align: center;
}

.cta h2 {
  font-size: 2em;
  margin-bottom: 1em;
}

.cta .btn-primary {
  background-color: #ffcc00;
  color: #800000;
  padding: 0.75em 1.5em;
  border-radius: 5px;
  font-weight: bold;
}

.cta .btn-primary:hover {
  background-color: #e6b800;
}

/* Footer Styles */
footer {
  background-color: #333;
  color: #fff;
  padding: 2em 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
}

.footer-left p {
  margin-left: 1em;
  margin-bottom: 0;
}

.footer-right {
  margin-top: 1em;
}

.social-links {
  list-style: none;
  display: flex;
  margin: 0;
}

.social-links li {
  margin-left: 1em;
}

.social-links a {
  color: #fff;
  font-size: 1.2em;
}

.social-links a:hover {
  color: #ffcc00;
}

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: bold;
  border: none;
  cursor: pointer;
  font-size: 1em;
}

.btn:hover {
  opacity: 0.9;
}

/* Circular Image Class */
.circular-image {
  border-radius: 50%;
  object-fit: cover;
}

/* Icon Container for Circular Background */
.icon-container {
  background-color: #ffcc00; /* Example background color */
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1em auto; /* Center the icon and add spacing */
}

.icon-container i {
  color: #800000; /* Icon color matching the theme */
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
      flex-direction: row;
      justify-content: space-between;
  }

  .nav-toggle {
      display: block;
  }

  .nav-menu {
      position: absolute;
      top: 100%;
      right: 0;
      background-color: #800000;
      flex-direction: column;
      align-items: flex-start;
      width: 100%;
      display: none;
  }

  .nav-menu li {
      margin: 1em 0;
      width: 100%;
      text-align: center;
  }

  .nav-menu a {
      display: block;
      width: 100%;
      padding: 0.5em 0;
  }

  .nav-menu.active {
      display: flex;
  }

  .feature-item,
  .step-item,
  .testimonial-item {
      flex: 1 1 100%;
  }

  .footer-container {
      flex-direction: column;
      align-items: center;
  }

  .footer-left {
      flex-direction: column;
      align-items: center;
  }

  .footer-left p {
      margin: 1em 0 0 0;
      text-align: center;
  }

  .footer-right {
      margin-top: 1em;
  }

  /* Adjust Icon Container for Smaller Screens */
  .icon-container {
    width: 80px;
    height: 80px;
  }

  .icon-container i {
    font-size: 2em; /* Adjust icon size for smaller screens */
  }
}

/* Spacing between login and sign-up buttons */
.btn {
    margin-right: 15px;
}

/* Add hover and focus effects for accessibility and UX */
.btn:hover, .btn:focus {
    background-color: #007bff; /* Change button color on hover */
    color: #fff;
    border-color: #0056b3; /* Optional: change border color on hover */
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* Optional: add subtle shadow for focus */
}

/* Responsive typography for improved readability */
h1, h2, h3 {
    font-size: 2em;
    line-height: 1.2;
}

p {
    font-size: 1.1em;
    line-height: 1.5;
}

/* Mobile-first responsive layout enhancements */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px; /* Stack buttons on mobile */
    }
}

/* Accessibility: ensuring sufficient color contrast */
body {
    color: #333; /* Ensure high contrast text color */
}

a:focus {
    outline: 2px dashed #0056b3;
    outline-offset: 2px;
}

/* Lazy loading for images */
img {
    width: 100%;
    height: auto;
    object-fit: cover;
    loading: lazy; /* Lazy loading */
}

/* Spinner alignment */
.spinner-border {
  margin-left: 0.5em;
}

/* Positioning for password visibility toggle */
.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}
