@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --primary-color: #6c5ce7;
  --secondary-color: #a29bfe;
  --dark-text: #2d3436;
  --light-bg: #f8f9fd;
  /* Slightly cooler white */
  --gradient-start: #48c6ef;
  --gradient-end: #6f86d6;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--light-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img {
  max-width: 100%;
}

/* Navbar */
.navbar {
  background-color: #fff;
  box-shadow: 0px 2px 7px rgba(0, 0, 0, 0.17);
  padding: 0 30px;
  border-radius: 10px;
}

.navbar-brand {
  width: 100%;
  max-width: 340px;
  padding: 3px 0;
}

.nav-link {
  font-size: 18px;
  color: #313345;
  font-weight: 500;
  margin: 0 10px;
}
.hero-container {
  padding-top: 70px;
}

.btn-contact {
  background-color: #7d5fff;
  color: white;
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-contact:hover {
  background-color: #6c5ce7;
  color: white;
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  background-image: linear-gradient(
    180deg,
    #9c52ef 0%,
    #4a7ddb 70%,
    #6135e6 100%
  );
  padding: 25px 0 140px;
  text-align: center;
  color: white;
  position: relative;
  /* margin-bottom: 60px; */
}

.hero-title,
.hero-subtitle {
  font-size: 50px;
  line-height: 60px;
  color: #ffffff;
  font-weight: 600;
  font-family: "Poppins";
  text-align: center;
}

/* Download Today's Result Card (Floating) */
.floating-result-card {
  background: white;
  border-radius: 10px;
  padding: 28px 40px;
  box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: -57.5px;
  position: relative;
  z-index: 10;
  flex-wrap: wrap;
}

.floating-result-card .label {
  font-size: 25px;
  color: #2c2e3b;
  font-weight: 500;
  font-family: "Poppins";
  display: flex;
  align-items: center;
  gap: 15px;
}

.floating-result-card .date-badge {
  background-color: #f0ebfe;
  padding: 10px 25px;
  border-radius: 50px;
  border: 1px solid #6135e7;
  font-size: 25px;
  color: #6135e7;
  font-weight: 500;
}

/* Result Cards Section */
.result-cards-container {
  padding: 40px 0 80px;
}

.result-card {
  background: white;
  padding: 40px 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #6135e6 0%, #361d80 100%) border-box;
  position: relative;
  margin-top: 30px;
  transition: transform 0.3s ease;
  border-radius: 15px;
}

.result-card:hover {
  /* transform: translateY(-5px); */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.time-badge {
  font-size: 25px;
  color: #ffffff;
  font-weight: 500;
  background-image: linear-gradient(180deg, #9b51ef 0%, #6035e6 100%);
  border: 1px solid #6135e7;
  padding: 10px 30px;
  border-radius: 100px;
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.card-title-custom {
  font-size: 25px;
  color: #2c2e3b;
  font-weight: 500;
  margin: 30px 0 25px;
}

.btn-group-custom {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn-download,
.btn-view {
  font-size: 18px;
  font-weight: 500;
  color: white;
  border-radius: 50px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
  min-width: 188px;
  justify-content: center;
  background-image: linear-gradient(180deg, #9b51ef 0%, #6035e6 100%);
  border: 1px solid #6135e7;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.5);
  color: white;
}

.btn-view {
  color: #7f43eb;
  background-image: none;
  background-color: #f0ebfe !important;
  border: 1px solid #6135e7;
  min-width: 170px;
}

.btn-view:hover {
  background-color: #e0dcfc;
  border-color: #6c5ce7;
}

/* Footer */
.footer {
  margin-top: auto;
  background-color: #eeeeee;
  padding: 20px 0;
  text-align: center;
  font-size: 16px;
  color: #2c2e3b;
  font-weight: 400;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    padding: 0 15px;
  }

  .navbar-brand {
    max-width: 200px;
  }

  .nav-link {
    font-size: 16px;
    margin: 0 5px;
  }

  .hero-container {
    padding-top: 40px;
  }

  .hero-section {
    padding: 20px 0 100px;
  }

  .hero-title,
  .hero-subtitle {
    font-size: 32px;
    line-height: 40px;
  }

  .floating-result-card {
    flex-direction: column;
    padding: 20px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-top: -50px;
    gap: 10px;
  }

  .floating-result-card .label {
    font-size: 18px;
    gap: 10px;
  }

  .floating-result-card .date-badge {
    font-size: 18px;
    padding: 8px 20px;
  }

  .result-cards-container {
    padding: 30px 0 50px;
  }

  .result-card {
    padding: 30px 15px;
    margin-top: 25px;
  }

  .time-badge {
    font-size: 18px;
    padding: 8px 20px;
    top: -15px;
  }

  .card-title-custom {
    font-size: 20px;
    margin: 25px 0 20px;
  }

  .btn-group-custom {
    flex-direction: column;
    gap: 10px;
  }

  .btn-view,
  .btn-download {
    width: 100%;
    font-size: 16px;
    padding: 12px 20px;
    min-width: auto;
  }

  .btn-contact {
    padding: 8px 20px;
    font-size: 14px;
  }

  .footer {
    font-size: 14px;
    padding: 15px 10px;
  }
}

@media (max-width: 480px) {
  /* .navbar-brand {
    max-width: 160px;
  } */
  .navbar {
    padding: 10px 15px;
  }

  .nav-link {
    font-size: 14px;
    margin: 0 3px;
  }

  .hero-title,
  .hero-subtitle {
    font-size: 24px;
    line-height: 32px;
  }

  .floating-result-card {
    padding: 15px;
  }

  .floating-result-card .label {
    font-size: 16px;
  }

  .floating-result-card .date-badge {
    font-size: 16px;
    padding: 6px 15px;
  }

  .time-badge {
    font-size: 16px;
    padding: 6px 15px;
  }

  .card-title-custom {
    font-size: 18px;
  }

  .btn-view,
  .btn-download {
    font-size: 14px;
    padding: 10px 15px;
  }
}
