@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #f9f9f9;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-header {
  width: 100%;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 15px 5%;
  position: sticky;
  top: 0;
  z-index: 999;
  text-align: center;
  margin-bottom: 40px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #1e3a8a;
  font-weight: 700;
  font-size: 1.3rem;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  margin-right: 10px;
}

.main-nav a {
  margin-left: 25px;
  text-decoration: none;
  color: #1e40af;
  font-weight: 500;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: #0288d1;
}

/* Hide hamburger on desktop */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #1e3a8a;
}

/* Mobile nav hidden by default */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  padding: 15px 5%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  border-top: 1px solid #eee;
}

.mobile-nav a {
  padding: 10px 0;
  text-decoration: none;
  color: #1e40af;
  font-weight: 500;
}

.mobile-nav a:hover {
  color: #0288d1;
}

.app-item-page {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  text-align:justify;
  margin:20px auto 40px;
}

.app-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px;
  width: 90%;
  max-width: 1200px;
  padding-bottom: 60px;
}

.app-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  text-align: center;
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.app-card img {
  width: 100px;
  height: 100px;
  border-radius: 25%;
  object-fit: cover;
  margin-bottom: 15px;
  transition: transform 0.3s;
}

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

.app-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #1e40af;
}

.app-description {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 12px;
}

.app-description-purple {
  background: linear-gradient(90deg, #ff00cc, #3333ff);
  -webkit-background-clip: text;
  color: transparent;
}

.app-description-blur {
  background: linear-gradient(90deg, #009ffd, #2a2a72);
  -webkit-background-clip: text;
  color: transparent;
}

.intro {
  width: 90%;
  max-width: 1200px;
  margin-bottom: 40px;
  padding: 30px 20px 60px 20px;
  text-align: center;
  background-color: #ffffff;
  border-left: 4px solid #1e40af;
}

.intro h1, .intro h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.intro p {
  font-size: 1.05rem;
  color: #4a4a4a;
  line-height: 1.75;
  max-width: 920px;
  margin: 0 auto;
}

.hero {
    padding: 20px 0;
}

footer {
  text-align: center;
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 40px;
}

footer a {
  color: #1e40af;
}

main {
  width: 90%;
  max-width: 1200px;
  background: #fff;
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 40px;
  text-align: center;
  margin-bottom: 50px;
}

main .app-image {
  width: 200px;
  height: 200px;
  border-radius: 25%;
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

main h1 {
  color: #1e40af;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

main p.description {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 25px;
  text-align: justify;
}

main p.description a, main ul.description a {
  color: #1e40af;
}

main ul.description {
  text-align: start;
}

main .play-btn {
  background: #03a9f4;
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

main .play-btn:hover {
  background: #0288d1;
}

main .back-link {
  display: inline-block;
  margin-top: 30px;
  color: #1e3a8a;
  text-decoration: none;
  font-weight: 600;
}

main .back-link:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  header h1 {
	font-size: 2rem;
  }
  
  .app-card img {
	width: 80px; height: 80px;
  }
  
  main {
	padding: 25px;
  }
  
  main .app-image {
	width: 150px;
	height: 150px;
  }
  
  main h2 {
	font-size: 1.5rem;
  }

  .intro h2 {
    font-size: 1.8rem;
  }

  .intro p {
    font-size: 1rem;
    line-height: 1.6;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-nav.show {
    display: flex;
    animation: slideDown 0.3s ease;
    position: absolute;
    top: 40px;
    right: 0;
  }
}

/* Smooth dropdown animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
