/* ===== Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== Base ===== */
body {
  font-family: "Roboto", sans-serif;
  background: #f5f5f5;
  color: #333;
  transition: background 0.3s, color 0.3s;
}

/* ===== Banner ===== */
.banner img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  display: block;
  border-bottom: 4px solid #6200ea;
}

/* ===== Header ===== */
header {
  background: #6200ea;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ===== Navigation ===== */
nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  background: #3700b3;
  padding: 10px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background 0.3s, color 0.3s;
}

nav a:hover {
  background: #6200ea;
  color: #fff;
}

/* ===== Main ===== */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
}

/* ===== Card + Right Icon Container ===== */

/* ===== Card + Right Icon Container ===== */
.card-container {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  justify-content: center; /* center horizontally */
  /* remove flex-wrap to keep icon beside card */
}

/* ===== Card ===== */
.card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  width: 500px; /* fixed width smaller than container */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

/* ===== Card Icon ===== */
.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; /* prevent shrinking */
}

.card-icon img {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.card-icon img:hover {
  transform: scale(1.05);
}
.download-btn {
  display: inline-block;
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  margin: 12px 0;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  font-size: 16px;
  text-align: center;
  transition: background-color 0.3s ease;
}

.download-btn:hover {
  background-color: #45a049;
}

/* ===== Responsive Design ===== */
@media (max-width: 900px) {
  .card-container {
    flex-direction: column; /* stack on smaller screens */
    align-items: center;
    gap: 20px;
  }

  .card {
    width: 100%;
    max-width: 500px;
  }

  .card-icon img {
    width: 120px;
    height: 120px;
  }

  .screenshots img {
    width: 150px;
  }
}

@media (max-width: 500px) {
  .card-icon img {
    width: 80px;
    height: 80px;
  }
}

/* ===== App Preview ===== */
.app-preview {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.screenshots {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.screenshots img {
  width: 180px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.screenshots img:hover {
  transform: scale(1.05);
}

/* ===== Card Icon ===== */
.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon img {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.card-icon img:hover {
  transform: scale(1.05);
}

/* ===== Button ===== */
.btn {
  background: #6200ea;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.3s;
}

.btn:hover {
  background: #3700b3;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 15px;
  background: #6200ea;
  color: white;
  margin-top: 40px;
}

/* ===== Dark Mode ===== */
body.dark {
  background: #121212;
  color: #e0e0e0;
}

body.dark header {
  background: #1f1f1f;
}

body.dark nav {
  background: #333;
}

body.dark nav a {
  color: #bb86fc;
}

body.dark .card {
  background: #1e1e1e;
  color: #e0e0e0;
}

body.dark .card h2 {
  color: #bb86fc;
}

body.dark .btn {
  background: #bb86fc;
}

body.dark .btn:hover {
  background: #985eff;
}

/* ===== Responsive Design ===== */
@media (max-width: 900px) {
  .card-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .card-icon img {
    width: 100px;
    height: 100px;
  }

  .screenshots img {
    width: 150px;
  }
}
.download-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 16px 0;
  flex-wrap: wrap;
}
@media (min-width: 768px) {
  .playstore-link img {
    height: 52px;
  }
}

.playstore-link img {
  height: 48px;
  display: block;
}

@media (max-width: 500px) {
  .card-icon img {
    width: 80px;
    height: 80px;
  }
}
