*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #f0f4f8;
  color: #333;
}

header {
  background: linear-gradient(45deg, #4b6cb7, #182848);
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 2px 0;
  transition: all 0.3s ease;
}

.nav-menu {
  display: flex;
  gap: 1rem;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.hero {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(45deg, #4b6cb7, #182848);
  color: white;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.cta-btn {
  background: #ffd700;
  color: #182848;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
}

.cta-btn:hover {
  background: #e6c200;
}

.stats {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-box {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
}

.stat-box h2 {
  font-size: 1.8rem;
  color: #182848;
  margin-bottom: 0.5rem;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  padding: 2rem 1rem;
}

.card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 300px;
  width: 100%;
  text-align: center;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.5rem;
  color: #182848;
  margin-bottom: 0.5rem;
}

.card p {
  color: #555;
  margin-bottom: 1rem;
}

.action-btn {
  background: linear-gradient(45deg, #4b6cb7, #182848);
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}

.action-btn:hover {
  background: linear-gradient(45deg, #182848, #4b6cb7);
}

.action-btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  max-width: 500px;
  width: 90%;
}

.modal-content h2 {
  font-size: 1.8rem;
  color: #182848;
  margin-bottom: 1rem;
}

.modal-content p {
  color: #555;
  margin-bottom: 1.5rem;
}

.modal-content button {
  margin: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}

#welcomeInstallBtn, #installBtn {
  background: #ffd700;
  color: #182848;
  border: none;
}

#skipWelcomeBtn, #closeInstallBtn, #skipBtn {
  background: #ccc;
  color: #333;
  border: none;
}

#exploreAdBtn {
  background: linear-gradient(45deg, #4b6cb7, #182848);
  color: white;
  border: none;
}

#adPlaceholder {
  width: 100%;
  max-height: 315px;
  overflow: hidden;
  margin-bottom: 1rem;
}

footer {
  background: linear-gradient(135deg, #182848, #4b6cb7);
  color: white;
  padding: 1rem;
  text-align: center;
}

footer p {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #ffd700;
  text-decoration: none;
  margin: 0 0.5rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background: #182848;
    width: 200px;
    padding: 1rem;
  }

  .nav-menu.active {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .hero h1 {
    font-size: 2rem;
  }

  .card {
    max-width: 100%;
  }
}

/* Styles for How It Works page */
.how-it-works {
  padding: 3rem 1rem;
  text-align: center;
  background: #f0f4f8;
}

.how-it-works h1 {
  font-size: 2.5rem;
  color: #182848;
  margin-bottom: 1rem;
}

.video-container {
  max-width: 800px;
  margin: 0 auto 2rem;
}

.video-container video {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.nav-btn {
  background: linear-gradient(45deg, #4b6cb7, #182848);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}

.nav-btn:hover {
  background: linear-gradient(45deg, #182848, #4b6cb7);
}
/* Existing styles in style.css remain unchanged */
/* Add this at the end of style.css */

.back-home-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #4b6cb7;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  margin: 10px;
}

.back-home-btn:hover {
  background-color: #182848;
}

.back-home-btn:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(75, 108, 183, 0.7);
}
/* Logo styles */
/* Ensure logos are responsive and maintain aspect ratio */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  max-width: 50px; /* Maintain 150x150 size */
  max-height: 50px; /* Ensure square aspect ratio */
  width: 150px; /* Explicitly set width */
  height: 150px; /* Explicitly set height */
  object-fit: contain; /* Ensures logo scales properly */
  border-radius: 20px; /* Curved corners like the image */
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3), /* Bottom-right shadow for 3D effect */
              -5px -5px 15px rgba(255, 255, 255, 0.5); /* Top-left highlight */
  background: linear-gradient(135deg, #4a90e2, #63b8ff); /* Gradient for 3D depth */
  padding: 5px; /* Slight padding to enhance 3D look */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effect */
}

.logo-img:hover {
  transform: translateY(-2px); /* Lift effect on hover */
  box-shadow: 7px 7px 20px rgba(0, 0, 0, 0.4), /* Enhanced shadow on hover */
              -7px -7px 20px rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  .logo-img {
    max-width: 50px;
    max-height: 50px;
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 480px) {
  .logo-img {
    max-width: 50px;
    max-height: 50px;
    width: 100px;
    height: 100px;
  }
}