body {
  margin: 0;
  font-family: 'Segoe UI', Arial;
  background: #0b1220;
  color: white;
}

/* NAVBAR */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 40px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid #1f2937;
  flex-wrap: wrap; /* IMPORTANT */
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 30px;
}

.logo span {
  font-size: 18px;
  font-weight: bold;
  color: white;
}

/* MENU */
.menu a {
  margin: 0 10px;
  color: #cbd5e1;
  text-decoration: none;
}

.menu a:hover {
  color: #1aa8c7;
}

/* SEARCH */
.search {
  display: flex;
  gap: 5px;
}

.search input {
  padding: 8px;
  background: #0f172a;
  border: 1px solid #1f2937;
  color: white;
  border-radius: 6px;
}

.search button {
  background: #1aa8c7;
  border: none;
  padding: 8px 12px;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

/* HERO */
.hero {
  text-align: center;
  padding: 80px 20px;
}

.hero h1 {
  font-size: 42px;
}

.hero span {
  color: #1aa8c7;
}

.hero p {
  color: #94a3b8;
}

/* SEARCH BIG */
.hero-search {
  margin-top: 20px;
}

.hero-search input {
  width: 100%;
  max-width: 400px;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: #0f172a;
  color: white;
}

.hero-search button {
  padding: 12px 20px;
  background: #1aa8c7;
  border: none;
  border-radius: 8px;
  color: white;
}

/* STATS */
.stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
  color: #cbd5e1;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px;
}

/* CARD */
.card {
  background: #0f172a;
  border: 1px solid #1f2937;
  padding: 20px;
  border-radius: 12px;
  transition: 0.3s;
}

.card:hover {
  border-color: #1aa8c7;
  transform: translateY(-5px);
}

/* BUTTON */
.card a {
  display: inline-block;
  margin-top: 10px;
  color: #1aa8c7;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 30px;
  border-top: 1px solid #1f2937;
  margin-top: 50px;
}

/* ICON */
.icon {
  font-size: 30px;
  margin-bottom: 10px;
  color: #1aa8c7;
}

/* BADGE */
.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #1aa8c7;
  color: black;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
}

/* CARD POSITION */
.card {
  position: relative;
  overflow: hidden;
}

/* GLOW EFFECT */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, #1aa8c733, transparent);
  opacity: 0;
  transition: 0.4s;
}

.card:hover::before {
  
}

/* HOVER SCALE */
.card:hover {
  transform: translateY(-6px) scale(1.02);
}
/* FADE IN */
.card {
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {

  .topnav {
    flex-direction: column;
    gap: 10px;
  }

  .menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-search input {
    width: 100%;
  }

  .grid {
    padding: 20px;
  }

}

.subscribe {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px;
  margin: 40px;
  background: #0f172a;
  border: 1px solid #1f2937;
  border-radius: 12px;
  flex-wrap: wrap;
}

.subscribe-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.mail-icon {
  background: #1aa8c7;
  padding: 12px;
  border-radius: 50%;
}

.subscribe-form {
  display: flex;
  gap: 10px;
}

.subscribe-form input {
  padding: 10px;
  border-radius: 6px;
  border: none;
  background: #020617;
  color: white;
}

.subscribe-form button {
  background: #1aa8c7;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  color: white;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon {
  background: #1aa8c7;
  padding: 10px;
  border-radius: 10px;
  font-size: 18px;
}

.stat p {
  margin: 0;
  color: #94a3b8;
  font-size: 12px;
}

.footer {
  background: #020617;
  padding: 40px;
  border-top: 1px solid #1f2937;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.footer h4 {
  margin-bottom: 10px;
}

.footer a {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  margin-bottom: 5px;
}

.footer a:hover {
  color: #1aa8c7;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  color: #64748b;
}
.card::before {
  pointer-events: none;
}

@media (max-width: 768px) {

  .subscribe {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .subscribe-form {
    width: 100%;
    flex-direction: column;
  }

  .subscribe-form input {
    width: 100%;
  }

  .subscribe-form button {
    width: 100%;
  }

}

@media (max-width: 768px) {

  .topnav {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .menu {
    justify-content: center;
    flex-wrap: wrap;
  }

  .auth-bar {
    justify-content: center;
    width: 100%;
  }

}

@media (max-width: 768px) {

  .hero h1 {
    font-size: 26px;
  }

  .hero p {
    font-size: 14px;
  }

}

@media (max-width: 768px) {

  .stats {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

}

.container {
  padding: 0 15px;
}

.filters {
  padding: 20px 40px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filters a {
  padding: 8px 14px;
  border: 1px solid #1f2937;
  border-radius: 20px;
  text-decoration: none;
  color: #cbd5e1;
  font-size: 14px;
}

.filters a:hover {
  background: #1aa8c7;
  color: black;
}

.filters a.active {
  background: #1aa8c7;
  color: black;
}

/* MODERN BUTTON STYLE */
.btn {
  padding: 12px 18px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-right: 8px;
  color: white;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
}

/* hover effect */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(59, 130, 246, 0.35);
}

/* active click effect */
.btn:active {
  transform: scale(0.96);
}

/* DOWNLOAD BUTTON SPECIAL STYLE */
.btn-download {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.25);
}

.btn-download:hover {
  box-shadow: 0 12px 25px rgba(34, 197, 94, 0.35);
}

/* MODERN BUTTON STYLE */
.btn {
  padding: 12px 18px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-right: 8px;
  color: white;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
}

/* hover effect */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(59, 130, 246, 0.35);
}

/* active click effect */
.btn:active {
  transform: scale(0.96);
}
/* HEADER LAYOUT FIX */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* CENTER MENU */
.menu {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* AUTH BUTTON (BRAND COLOR) */
.btn-auth {
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  color: white;
  background: #1aa8c7;
  box-shadow: 0 8px 20px rgba(26, 168, 199, 0.25);
  transition: all 0.25s ease;
}

/* hover */
.btn-auth:hover {
  background: #1593ad; /* slightly darker */
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(26, 168, 199, 0.35);
}

/* click */
.btn-auth:active {
  transform: scale(0.96);
}

.card {
  position: relative;
}

.pin-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;

  width: 32px;
  height: 32px;
  border-radius: 8px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  font-size: 16px;

  background: rgba(255,255,255,0.05);
  transition: 0.2s;
}

/* hover */
.pin-btn:hover {
  transform: scale(1.1);
  background: rgba(26,168,199,0.2);
}

/* ACTIVE (PINNED) */
.pin-btn.active {
  background: #1aa8c7;
  color: white;
  opacity: 1;
}

.recommended-row {
  display: flex !important;
  gap: 20px;
  padding: 20px 40px;
  overflow-x: auto;
  align-items: stretch;
}

/* IMPORTANT: override grid behavior */
.recommended-row .card {
  width: 280px !important;
  flex: 0 0 280px !important;
}

