body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom, #20b2aa, #e0e0e0); /* Soft teal to light gray */
  color: #333333;
  overflow-x: hidden;
}

.top-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  background: rgba(32, 178, 170, 0.9); /* Semi-transparent teal */
  position: sticky;
  top: 0;
  z-index: 200;
}

.home-button {
  margin: 0 20px;
  padding: 10px 20px;
  background-color: #ffffff;
  color: #20b2aa;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.home-button:hover {
  background-color: #e0e0e0;
}

.pay-rent-button {
  margin: 0 20px;
  padding: 10px 20px;
  background-color: #ff0000; /* Red background */
  color: #000000; /* Bold black text */
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  border: 2px solid #ffffff; /* White border for contrast */
  transition: background-color 0.3s;
}

.pay-rent-button:hover {
  background-color: #cc0000; /* Darker red on hover */
}

header {
  position: relative;
  height: 300px; /* Adjustable height for video */
  overflow: hidden;
}

.header-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

header h1 {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  margin: 0;
  padding-top: 100px; /* Adjust to center vertically */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  text-align: center;
  background: rgba(224, 224, 224, 0.3); /* Semi-transparent light gray */
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.showcase {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  width: 250px;
  height: 250px;
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
  background: linear-gradient(135deg, #40e0d0, #dcdcdc); /* Light cyan to light gray */
}

.card a {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #333333;
}

.card-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }
.card:nth-child(7) { animation-delay: 0.7s; }
.card:nth-child(8) { animation-delay: 0.8s; }

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

h2 {
  text-align: center;
  color: #333333;
}

footer {
  background: #20b2aa;
  color: #ffffff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.calendar {
  margin: 20px auto;
  max-width: 100%;
}

.calendar-month {
  margin-bottom: 20px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(40px, 1fr));
  gap: 2px;
  padding: 10px;
  background-color: #ffffff;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.day-header {
  font-weight: bold;
  background-color: #20b2aa;
  color: #ffffff;
  padding: 5px;
  text-align: center;
}

.day {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  font-size: 14px;
  border-radius: 0; /* Square */
}

.paid {
  background-color: #90ee90; /* Light green for paid */
}

.unpaid {
  background-color: #ff6347; /* Tomato red for unpaid */
}

.paid-blue {
  background-color: #add8e6; /* Light blue for payment days */
}

button {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  background-color: #20b2aa;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background-color: #1a8e88;
}

@media (max-width: 600px) {
  .showcase {
    grid-template-columns: 1fr;
    justify-content: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .card {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }
  .card-img {
    width: 60px;
    height: 60px;
  }
  header {
    height: 200px; /* Reduced height for mobile */
  }
  header h1 {
    padding-top: 60px; /* Adjust for mobile */
  }
  .header-video {
    height: 200px; /* Match mobile header height */
  }
  .top-bar {
    flex-direction: column;
    padding: 5px 10px;
  }
  .home-button, .pay-rent-button {
    margin: 5px 0;
  }
  .calendar-grid {
    grid-template-columns: repeat(7, minmax(30px, 1fr)); /* Smaller cells on mobile */
  }
  .day {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
}