* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans Devanagari', Arial, sans-serif;
  background: linear-gradient(120deg, #f8fafc 0%, #e0eafc 40%, #f3e8ff 100%);
  color: #66d5db;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
}

header {
  background: linear-gradient(90deg, #7f53ac 0%, #03dac6 50%, #657ced 100%);
  color: #fff;
  padding: 1.5rem 2.5rem;
  text-align: center;
  box-shadow: 0 4px 24px rgba(98, 0, 234, 0.13);
  border-bottom: 2px solid #ececec;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  color: #000;
  text-shadow: none;
  font-size: 2.3rem;
  font-weight: bold;
  letter-spacing: 2px;
  font-family: 'Montserrat', 'Noto Sans Devanagari', Arial, sans-serif;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.search-login {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

#searchBar {
  width: 260px;
  padding: 0.6rem 1.2rem;
  border: 2px solid #d1d5db;
  border-radius: 2rem;
  font-size: 1.08rem;
  outline: none;
  transition: 0.3s all ease-in-out;
}

#searchBar:focus {
  border-color: #657ced;
  box-shadow: 0 0 10px rgba(98, 0, 234, 0.25);
}

.login-btn {
  background: #ffffff;
  color: #1e88e5;
  border: 2px solid #1e88e5;
  border-radius: 2rem;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  font-size: 1.08rem;
  cursor: pointer;
  transition: 0.3s all ease-in-out;
}

.login-btn:hover {
  background: #f1f1f1;
  color: #e53935;
  border-color: #e53935;
  box-shadow: 0 6px 20px rgba(98, 0, 234, 0.2);
}

.setting-btn {
  background: #fff;
  border: none;
  border-radius: 50%;
  padding: 0.6rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
  margin-left: 0.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s all ease-in-out;
}

.setting-btn:hover {
  background: #e0eafc;
  box-shadow: 0 4px 16px rgba(98, 0, 234, 0.13);
}

nav {
  background: linear-gradient(to right, #1e88e5, #43a047, #fbc02d);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.8rem;
  box-shadow: 0 2px 12px rgba(30, 136, 229, 0.09);
}

nav a {
  color: #000;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.08rem;
  padding: 0.6rem 1.3rem;
  margin: 0 0.5rem;
  border-radius: 2rem;
  background: #fff;
  border: 2px solid #1e88e5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: 0.3s all ease-in-out;
}

nav a:hover, nav a.active {
  background: #1e88e5;
  color: #fff;
  box-shadow: 0 4px 16px rgba(30, 136, 229, 0.13);
}

main {
  flex: 1;
  padding: 2.5rem 1.5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.ads-section {
  background: linear-gradient(90deg, #e0c3fc, #03dac6, #f3e8ff);
  border-radius: 1.2rem;
  padding: 1.5rem;
  font-size: 1.15rem;
  font-weight: 500;
  text-align: center;
  color: #7c3aed;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.09);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: linear-gradient(135deg, #fff, #1e88e5, #43a047, #fbc02d, #222);
  border: 2px solid #1e88e5;
  border-radius: 1.3rem;
  padding: 1.7rem 1.3rem;
  text-align: center;
  transition: 0.3s ease-in-out;
  box-shadow: 0 8px 32px rgba(98, 0, 234, 0.10);
}

.card:hover {
  transform: translateY(-10px) scale(1.05);
  border-color: #03dac6;
  box-shadow: 0 16px 40px rgba(98, 0, 234, 0.18);
}

.app-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 0.8rem;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, #e0c3fc, #8ec5fc, #03dac6);
  box-shadow: 0 2px 12px rgba(98, 0, 234, 0.10);
}

.card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  background: none;
  color: #000;
}

.go-btn {
  padding: 0.6rem 1.3rem;
  background: #fff;
  color: #1e88e5;
  border: 2px solid #1e88e5;
  border-radius: 2rem;
  font-weight: 600;
  transition: 0.3s ease-in-out;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

.go-btn:hover {
  background: #f1f1f1;
  color: #e53935;
  border-color: #e53935;
  box-shadow: 0 4px 16px rgba(30, 136, 229, 0.13);
}

footer {
  text-align: center;
  padding: 1.2rem 0;
  font-size: 1rem;
  background: linear-gradient(90deg, #fff, #1e88e5, #43a047, #fbc02d, #222);
  border-top: 2px solid #ececec;
  box-shadow: 0 -2px 12px rgba(98, 0, 234, 0.07);
  color: #000;
}

@media (max-width: 900px) {
  .grid {
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }
  .card {
    padding: 1rem;
  }
  main {
    padding: 1.2rem;
  }
}

@media (max-width: 600px) {
  header {
    padding: 1rem;
  }
  .header-row {
    flex-direction: column;
    gap: 1rem;
  }
  .search-login {
    flex-direction: column;
  }
  #searchBar,
  .login-btn {
    width: 100%;
  }
  .grid {
    gap: 0.8rem;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }
  .card {
    padding: 0.8rem;
  }
  footer {
    font-size: 0.9rem;
  }
}
