/* FLOATING GRADIENT EFFECT */
.floating-gradient {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(
      circle at 30% 30%,
      rgba(87, 217, 255, 0.15),
      transparent 40%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(27, 117, 209, 0.15),
      transparent 40%
    );
  animation: floatMove 20s linear infinite;
  z-index: -2;
}

@keyframes floatMove {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* TESTIMONIALS */
.testimonials {
  padding: 100px 20px;
  text-align: center;
}

.testimonial-container {
  max-width: 700px;
  margin: auto;
  position: relative;
}

.testimonial {
  display: none;
  background: rgba(0, 40, 60, 0.8);
  padding: 40px;
  border-radius: 20px;
  transition: 0.5s ease;
}

.testimonial.active {
  display: block;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: url("image/catdog.jpg") no-repeat center center/cover;
  height: 100vh;
  color: white;
  overflow-x: hidden;
}

/* Overlay dark tint */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 60, 80, 0.55);
  z-index: -1;
}

/* =========================
   FIXED NAVBAR (FINAL VERSION)
   ========================= */

nav {
  position: fixed; /* Stays at top */
  top: 0;
  left: 0;
  width: 100%;
  height: 85px; /* Fixed height for consistency */

  padding: 0 60px; /* Equal spacing left & right */

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: rgba(0, 40, 60, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);

  z-index: 1000; /* Always above everything */
}

/* Logo section */
nav .logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

nav .logo img {
  width: 55px;
  height: 55px;
  border-radius: 10px;
}

.nav-title {
  font-size: 24px;
  font-weight: 600;
}

/* Navbar links */
nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 35px;
  font-size: 17px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: 0.3s ease;
}

nav ul li a:hover {
  opacity: 0.75;
}

/* Button style inside navbar */
nav .provider-btn {
  background: white;
  color: #0077a7;
  padding: 8px 22px;
  border-radius: 20px;
  font-weight: 600;
  transition: 0.3s ease;
}

nav .provider-btn:hover {
  background: #d8f3ff;
}

.hero {
  text-align: center;
  margin-top: 180px; /* moved lower because navbar is fixed */
}

.hero h1 {
  font-family: "Pacifico", cursive;
  font-size: 80px;
  margin-bottom: 10px;
}

.hero span {
  font-size: 55px;
  color: #57d9ff;
  font-weight: 600;
}

.hero button {
  margin-top: 40px;
  background: #1b75d1;
  color: white;
  padding: 12px 35px;
  border-radius: 25px;
  border: none;
  font-size: 18px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s ease;
}

.hero button:hover {
  background: #4aa3ff;
  transform: scale(1.05);
}

/* ANIMATIONS */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s forwards;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1.5s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 55px;
  }
  .hero span {
    font-size: 40px;
  }
}

/* Tagline for homepage */

.tagline {
  margin-top: 15px;
  font-size: 20px;
  color: #e6f6ff;
  font-weight: 400;
}

/* Service Cards*/
.services {
  padding: 80px 40px;
  text-align: center;
}

.section-title {
  font-size: 42px;
  margin-bottom: 50px;
  font-family: "Pacifico", cursive;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: auto;
}

.service-card {
  background: rgba(0, 40, 60, 0.7);
  padding: 30px 20px;
  border-radius: 20px;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.service-card h3 {
  margin-top: 15px;
  font-size: 22px;
}

.service-card p {
  font-size: 14px;
  margin-top: 10px;
  color: #dcefff;
}

.service-card:hover {
  transform: translateY(-10px);
  background: rgba(0, 60, 90, 0.85);
}
/* Service cards until here */

/* Login Page & Signup Page CSS */

.login-section {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 24px; /* adds breathing room */
  color: white;
}

.login-box {
  background: rgba(0, 40, 60, 0.7);
  padding: 40px;
  border-radius: 15px;
  text-align: center;
}

.login-box h2 {
  font-family: "Pacifico", cursive;
  font-size: 36px;
  margin-bottom: 25px;
}

.login-box input {
  display: block;
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 10px;
  border: none;
  font-size: 16px;
}

/* Floating Home button (safe placement) */
.home-btn {
  position: fixed;
  top: 25px;
  left: 25px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  z-index: 1000;
  backdrop-filter: blur(6px);
  transition: 0.3s ease;
}

.home-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateX(-4px);
}

.login-box button {
  width: 100%;
  padding: 12px;
  border-radius: 25px;
  border: none;
  background: #1b75d1;
  color: white;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.login-box button:hover {
  background: #4aa3ff;
  transform: scale(1.05);
}

.remember-me {
  display: flex;
  align-items: center; /* fixes vertical alignment */
  gap: 8px; /* even spacing between box and text */
  font-size: 14px;
  margin-bottom: 20px;
  cursor: pointer;
}

.remember-me input[type="checkbox"] {
  width: 16px;
  height: 16px; /* ensures consistent size */
  margin: 0; /* removes default browser offset */
}

.signup-text {
  margin-top: 15px;
  font-size: 14px;
}

.signup-text a {
  color: #4aa3ff;
  font-weight: bold;
  text-decoration: none;
}

.signup-text a:hover {
  text-decoration: underline;
}

/* Provider sign up css */
/* For the description box in provider signup page */
/* card styling (slightly larger and airy) */
.login-box.form-card {
  background: rgba(0, 40, 60, 0.85);
  padding: 36px;
  border-radius: 16px;
  text-align: left;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* title centered inside card */
.login-box.form-card h2 {
  text-align: center;
  margin-bottom: 20px;
  font-family: "Pacifico", cursive;
  font-size: 34px;
}

/* upload area (top) */
.upload-container {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.upload-box {
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px dashed #4aa3ff;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #dce6f9;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease;
  text-align: center;
  padding: 8px;
}

.upload-box:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.09);
}

.preview-img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

/* form grid: 2 equal columns */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  align-items: start;
  margin-bottom: 18px;
}

/* each column container helps group left/right elements */
.form-grid .col {
  display: flex;
  flex-direction: column;
}

/* inputs & textarea */
.login-box input[type="text"],
.login-box input[type="email"],
.login-box input[type="password"],
.login-box textarea {
  display: block;
  width: 100%;
  padding: 12px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  outline: none;
}

/* textarea sizing */
.desc-box {
  min-height: 120px;
  resize: vertical;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* checkbox group inside left column */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 6px;
}

/* nice aligned checkbox labels */
.check-label {
  display: flex;
  align-items: center;
  font-size: 14px;
  gap: 10px;
  cursor: pointer;
  color: #e6f0ff;
}

.check-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #1b75d1; /* modern colored checkbox in supporting browsers */
}

/* submit button full width underneath grid */
.full-btn {
  width: 100%;
  padding: 14px;
  border-radius: 28px;
  border: none;
  background: #1b75d1;
  color: white;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
  margin-top: 8px;
}

.full-btn:hover {
  transform: translateY(-3px);
  background: #2a8be6;
}

/* small signup text center */
.signup-text {
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
}

.signup-text a {
  color: #4aa3ff;
  text-decoration: none;
  font-weight: 600;
}
.signup-text a:hover {
  text-decoration: underline;
}

/* responsive: stack columns on narrow screens */
@media (max-width: 820px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .upload-box {
    width: 140px;
    height: 140px;
  }
  .login-box.form-card {
    padding: 28px;
  }
}

/* HERO BUTTONS */
.hero-buttons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.primary-btn {
  background: #1b75d1;
  color: white;
}

.primary-btn:hover {
  background: #4aa3ff;
  transform: translateY(-4px);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid white;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* FEATURES */
.features {
  padding: 100px 40px;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  max-width: 1100px;
  margin: auto;
}

.feature-card {
  background: rgba(0, 40, 60, 0.75);
  padding: 40px;
  border-radius: 20px;
  transition: 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
}

/* STATS */
.stats {
  display: flex;
  justify-content: center;
  gap: 80px;
  padding: 80px 20px;
  background: rgba(0, 30, 50, 0.8);
  text-align: center;
}

.stat h2 {
  font-size: 48px;
  color: #57d9ff;
}

.stat p {
  font-size: 16px;
}

/* CTA */
.cta {
  padding: 100px 20px;
  text-align: center;
}

.cta h2 {
  margin-bottom: 30px;
  font-size: 36px;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 30px;
  background: rgba(0, 20, 35, 0.9);
  font-size: 14px;
}
