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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
}

/* Navbar */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0);
}

.navbar .logo img {
  height: 50px;
  display: block;
}

.navbar nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.navbar nav a {
  color: rgb(0, 0, 0);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
}

.navbar nav .signup-btn {
  background: rgb(0, 0, 0);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-size: 1rem;
  
}

.navbar nav .signup-btn:hover {
  background: #16d5a8;
  color: rgb(0, 0, 0);
}

/* Hero Section */
.hero {
  background: url('../assets/backdrop.jpg') no-repeat center center/cover;
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  color: #fff;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #fff;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #fff;
}

.hero-content button {
  background: #000000;
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-content button:hover {
  background: #16d5a8;
  color: #000000;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Slightly darker overlay */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #ffffff;
  width: 90%;
  max-width: 450px;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

/* Form Titles */
.modal-content h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #333;
}

.modal-content p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #666;
}

/* Form Fields */
.modal-content .field {
  width: 100%;
  margin-top: 20px;
}

.modal-content .field input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  color: #333;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.modal-content .field input:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
}

.modal-content .field input::placeholder {
  color: #999;
}

/* Submit Buttons */
.modal-content .btn {
  display: inline-flex; /* Aligns text properly */
  justify-content: center;
  align-items: center;
  width: 100%; /* Full width */
  margin-top: 1.5rem;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: black;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-align: center;
  transition: background 0.3s ease, transform 0.2s ease;
}

.modal-content .btn:hover {
  background: #16d5a8;
  color: #000;
  transform: translateY(-2px);
}

/* Google Button */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: black;
  border: 1px solid #ddd;
  padding: 0.8rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.google-btn:hover {
  background: #16d5a8;
  color: #000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.google-btn img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

/* Input Fields */
.modal-content .field input {
  width: 100%;
  padding: 0.8rem;
  margin-top: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  color: #333;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.modal-content .field input:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
}

.modal-content .field input::placeholder {
  color: #999;
}

/* Slide Controls */
.modal-content .slide-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem 0 1rem;
  position: relative;
  border: 1px solid lightgray;
  border-radius: 50px;
  overflow: hidden;
}

.modal-content .slide-controls .slide {
  width: 50%;
  text-align: center;
  line-height: 50px;
  font-size: 1rem;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.modal-content .slider-tab {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, #50bfd3, #c0d2e5);
  border-radius: 50px;
  z-index: 0;
  transition: left 0.3s ease;
}

.modal-content .slide-controls label {
  position: relative;
  z-index: 1;
}

input[type="radio"] {
  display: none;
}

#signup:checked ~ .slider-tab {
  left: 50%;
}

#signup:checked ~ label.signup {
  color: #fff;
}

#signup:checked ~ label.login {
  color: #555;
}

#login:checked ~ label.signup {
  color: #555;
}

#login:checked ~ label.login {
  color: #fff;
}

/* Separator */
.separator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}

.separator p {
  font-size: 14px;
  color: #666;
  margin: 0;
  padding: 0 10px;
  background: #fff;
  position: relative;
  z-index: 1;
}

.separator:before,
.separator:after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ddd;
  position: relative;
  top: -1px;
}

/* Links */
.modal-content a {
  display: block;
  margin-top: 1rem;
  color: #007bff;
  text-decoration: none;
  font-size: 0.9rem;
}

.modal-content a:hover {
  text-decoration: underline;
}

.modal-content .terms {
  font-size: 0.8rem;
  color: #666;
  margin-top: 1rem;
}

/* Features Section */
.features {
  padding: 4rem 2rem;
  text-align: center;
  background: #ffffff;
}

.feature-card a {
  text-decoration: none;
  display: block;
  color: inherit;
}

.feature-card a:hover {
  text-decoration: none;
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.features h2 {
  font-size: 1.8rem;
  color: #333;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
}

.features h2 span {
  color: #007bff;
}

.features h3 {
  font-size: 1rem;
  color: #555;
  font-weight: 400;
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.feature-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  background: #f9f9f9;
  border-radius: 10px;
  padding: 2rem 1.5rem;
  width: 100%;
  max-width: 300px;
  height: 300px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-card .icon {
  margin-bottom: 1rem;
}

.feature-card .icon img {
  width: 60px;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin: 1rem 0;
  color: #007bff;
  font-weight: 600;
}

.feature-card p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
  line-height: 1.4;
}

/* Footer */
.footer {
  background: #ffffff;
  color: rgb(0, 0, 0);
  text-align: center;
  padding: 1rem 0;
}

.footer p {
  font-size: 0.9rem;
}

/* Responsive Modal Adjustments */
@media (max-width: 480px) {
  .modal-content {
    padding: 1.5rem;
    width: 90%;
  }

  .modal-content h2 {
    font-size: 1.5rem;
  }

  .modal-content .field input {
    font-size: 0.9rem;
  }

  .modal-content .btn {
    font-size: 0.9rem;
  }

  .modal-content .slide-controls .slide {
    font-size: 0.9rem;
  }

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

  .hero-content p {
    font-size: 0.9rem;
  }

  .hero-content button {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .features {
    padding: 1rem 0.5rem;
  }

  .feature-card {
    padding: 1rem;
    height: auto;
  }
}

/* Additional Media Queries */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 1rem;
  }

  .navbar nav {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

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

  .features {
    padding: 2rem 1rem;
  }

  .feature-card {
    width: 100%;
    max-width: 100%;
  }
}
