/* ------------------ Global ------------------ */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
}

body {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  min-height: 100vh;
  padding: 20px;
}

/* Navigation Container */
.nav-container {
  position: sticky;
  top: 20px;
  z-index: 1000;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation Bar */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.top-nav:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 1.8rem;
  color: #3b82f6;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(45deg, #fff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-text span {
  color: #3b82f6;
  -webkit-text-fill-color: #3b82f6;
}

/* Search Container */
.search-container {
  flex: 1;
  max-width: 500px;
  margin: 0 30px;
  position: relative;
}

.search-box {
  width: 100%;
  padding: 14px 20px 14px 48px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-box:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-box::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
}

/* Action Button */
.action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.action-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.action-btn:active {
  transform: translateY(0);
}

.btn-icon {
  font-size: 1.1rem;
}

/* Demo Content */
.demo-content {
  max-width: 800px;
  margin: 40px auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-content h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: linear-gradient(45deg, #fff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.demo-content p {
  color: #cbd5e1;
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .top-nav {
    padding: 14px 24px;
  }

  .search-container {
    max-width: 400px;
    margin: 0 20px;
  }
}

@media (max-width: 768px) {
  .top-nav {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .logo {
    width: 100%;
    justify-content: center;
  }

  .search-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .action-btn {
    width: 100%;
    justify-content: center;
  }

  .demo-content {
    padding: 30px 20px;
  }

  .demo-content h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    top: 10px;
  }

  .top-nav {
    padding: 16px;
    border-radius: 12px;
  }

  .logo-text {
    font-size: 1.5rem;
  }

  .search-box {
    padding: 12px 16px 12px 42px;
    font-size: 0.95rem;
  }

  .action-btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .demo-content {
    margin-top: 30px;
    padding: 24px 16px;
  }

  .demo-content h1 {
    font-size: 1.8rem;
  }
}
/* ------------------ App Gallery ------------------ */
#appGallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

/* ------------------ App Card ------------------ */
.app-card {
  width: 250px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 15px;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
}

.app-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

/* Card Image */
.cardimg {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 10px;
}

/* Info Section */
.infomain h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 5px;
}

.infomain p {
  font-size: 0.85rem;
  color: #ccc;
  line-height: 1.3;
}

/* App Details */
.app-info {
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 10px;
}

.app-info span {
  display: block;
  margin-bottom: 5px;
}

/* Download Button */
.Downloadbtn {
  padding: 6px 12px;
  background: #0af;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition:
    background 0.3s,
    transform 0.2s;
}

.Downloadbtn:hover {
  background: #09c;
  transform: scale(1.05);
}

/* Footer (Views & Likes) */
.app-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 0.85rem;
  color: #aaa;
}

.like-btn {
  cursor: pointer;
  transition: color 0.3s;
}

.like-btn.liked {
  color: #0af;
}

/* ------------------ Modal ------------------ */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  z-index: 200;
}

.modal-content {
  width: 90%;
  max-width: 400px;
  padding: 40px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.modal-content input,
.modal-content button {
  padding: 10px;
  border-radius: 10px;
  border: none;
  outline: none;
  width: 100%;
  transition:
    background 0.3s,
    transform 0.2s;
}

.modal-content input {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.modal-content input::placeholder {
  color: #ccc;
}

.modal-content button {
  background: #0af;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.modal-content button:hover {
  background: #09c;
  transform: scale(1.05);
}

.modal .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
}

/* ------------------ Bottom Navigation ------------------ */
.bottom-nav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  background: hsl(0%, 0%, 100%, 0.2);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 10px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 0;
  border: 3px solid rgba(255, 255, 255, 0.447);
  box-shadow: inset 0 0 8px 1px hsl(0%, 0%, 100%, 0.2);
  z-index: 100;
}

.bottom-nav a {
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition:
    color 0.3s,
    transform 0.2s;
}

.bottom-nav a:hover {
  color: #6bffeb;
  transform: translateY(-3px);
}

.bottom-nav i {
  font-size: 22px;
  margin-bottom: 4px;
}

/* ------------------ Responsive ------------------ */

/* Tablet (<= 1024px) */
@media (max-width: 1024px) {
  .app-card {
    width: 220px;
  }
  .top_nav input {
    width: 150px;
  }
  .bottom-nav {
    width: 500px;
  }
}

/* Small Tablets / Large Phones (<= 768px) */
@media (max-width: 768px) {
  .app-card {
    width: 180px;
  }

  .top_nav {
    flex-direction: column;
    gap: 10px;
  }

  .top_nav .options {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .top_nav input {
    width: 80%;
  }

  .bottom-nav {
    width: 90%;
    bottom: 10px;
    border-radius: 15px;
    padding: 10px 0;
  }

  .bottom-nav a i {
    font-size: 20px;
  }

  .bottom-nav a span {
    font-size: 12px;
  }
}

/* Mobile (<= 480px) */
@media (max-width: 480px) {
  .app-card {
    width: 100%;
  }

  .top_nav {
    padding: 10px;
  }

  .top_nav .logo .text {
    font-size: 1.2rem;
  }

  .top_nav input {
    width: 100%;
    font-size: 0.9rem;
  }

  .top_nav button {
    padding: 6px 12px;
    font-size: 0.9rem;
  }

  .bottom-nav {
    width: 95%;
    bottom: 8px;
    padding: 8px 0;
    border-radius: 20px;
  }

  .bottom-nav a {
    font-size: 12px;
  }

  .bottom-nav i {
    font-size: 18px;
  }
}

.overlay {
  transform: rotate3d();
  position: fixed;
  top: 0;
  animation-name: load;
  animation-duration: 10s;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  z-index: 9999;
}

h2 {
  font-size: 30px;
  margin-top: 20px;
  font-family: sans-serif;
  color: #000000;
}
hr {
  margin: 20px;
}
.info {
  color: #717171;
}
.alert-box {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 350px;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  padding: 10px 10px 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  text-align: center;
}
@keyframes load {
  0% {
    background: rgb(250, 71, 71);
  }
  10% {
    background: rgb(106, 106, 237);
  }
  20% {
    background: pink;
  }
  30% {
    background: yellow;
  }
  40% {
    background: cyan;
  }
  50% {
    background: aqua;
  }
  60% {
    background: rgb(130, 238, 130);
  }
  70% {
    background: gray;
  }
  80% {
    background: peru;
  }
  90% {
    background: blanchedalmond;
  }
  100% {
    background: rgb(231, 113, 113);
  }
}

/* @keyframes load {
      from {background-color: cyan;}
      to {background-color: pink;}
    } */
.btnok {
  background-color: #535353;
  color: #fff;
  border: none;
  float: left;
  margin-left: 20px;
  padding: 6px 20px 6px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
}
.btnupdate {
  float: right;
  background-color: #0e9b6c;
  color: #fff;
  border: none;
  letter-spacing: 0.02cm;
  margin-right: 20px;
  padding: 6px 20px 6px;
  border-radius: 5px;
  margin-top: 10px;
  cursor: pointer;
}
.btnupdate:hover {
  float: right;
  background-color: #80bca8;
  color: #fff;
  border: none;
  margin-right: 20px;
  padding: 6px 20px 6px;
  border-radius: 5px;
  transform: scale(1.1);
  cursor: pointer;
}
