@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;
  white-space: nowrap;
}

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

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

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

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

/* "EN" marker on links that lead to English-only pages from a localized page */
.lang-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #475569;
  background: #eef2f7;
  border: 1px solid #dbe2ea;
  border-radius: 4px;
  vertical-align: 2px;
}

/* Notice explaining that a linked section is only available in English */
.lang-notice {
  margin: 0 auto 10px;
  padding: 10px 14px;
  max-width: 760px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #93b4f5;
  border-radius: 6px;
  text-align: left;
}

/* Language switcher — desktop: dropdown; mobile: inline row (see .mobile-nav below) */
.lang-switch {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin-left: 25px;
  text-align: left;
  white-space: nowrap;
}

.lang-flag {
  width: 21px;
  height: 14px;
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  color: #1e40af;
  background: #fff;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  cursor: pointer;
}

.lang-current:hover,
.lang-switch:focus-within .lang-current {
  border-color: #93b4f5;
}

.lang-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #64748b;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 170px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 1000;
}

/* keeps hover alive across the gap between button and menu */
.lang-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 6px;
}

.lang-switch:hover .lang-menu,
.lang-switch:focus-within .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav .lang-menu a {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
}

.main-nav .lang-menu a:hover {
  background: #f1f5f9;
  color: #1e40af;
}

.main-nav .lang-menu a.active {
  color: #1e3a8a;
  font-weight: 700;
}

/* Mobile: unchanged inline row, now with flags */
.mobile-nav .lang-switch {
  display: flex;
  gap: 14px;
  margin-left: 0;
  margin-top: 6px;
  padding: 12px 0 4px;
  border-top: 1px solid #eee;
}

.mobile-nav .lang-switch a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 0;
  padding: 4px 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #64748b;
}

.mobile-nav .lang-switch a.active {
  color: #1e3a8a;
  text-decoration: underline;
}

.mobile-nav .lang-switch .lang-flag {
  width: 18px;
  height: 12px;
}

/* Hide hamburger on desktop */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #1e3a8a;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
  font-family: inherit;
}

/* 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-top: 20px;
  margin-bottom: 40px;
}

.app-item-page:last-child {
  margin-bottom: 0;
}

.app-item-page ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.app-item-page ol li {
  margin-bottom: 12px;
}

.app-item-page ul {
  margin: 0 0 16px;
  padding-left: 22px;
  list-style: disc;
}

.app-item-page li {
  margin-bottom: 8px;
}

.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: 40px;
  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-top: 0;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

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

.intro .app-item-page p {
  margin-bottom: 1rem;
}

.intro-app-item {
  padding: 0;
}

.intro-app-item h1 {
  color: #1e40af;
}

.intro-app-item h2 {
  margin-top: 20px;
}

.hero {
    padding: 20px 0;
}

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

footer a {
  color: #1e40af;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-bottom: 14px;
}

.footer-nav a {
  text-decoration: none;
  font-weight: 500;
}

.footer-nav a:hover {
  text-decoration: underline;
}

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;
}

.wallpaper-section {
  display: grid;
  gap: 30px;
  width: 90%;
  max-width: 1200px;
  padding-bottom: 50px;
}

.wallpaper-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.wallpaper-img {
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;

  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.wallpaper-img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.image-modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);

  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.modal-close {
  position: absolute;
  top: 25px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  font-weight: bold;
}

.faq-section {
  padding: 20px;
}

.faq-section .faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.faq-section .faq-item {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.faq-section .faq-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.faq-section .faq-item h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.faq-section .faq-item p {
  line-height: 1.6;
  font-size: 15px;
}

/* Blog Styles */
.blog-article {
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

.blog-article h1 {
  font-size: 2rem;
  color: #1e40af;
  margin-bottom: 10px;
  text-align: center;
}

.blog-article h2 {
  font-size: 1.4rem;
  color: #1e3a8a;
  margin-top: 30px;
  margin-bottom: 15px;
}

.blog-article h3 {
  font-size: 1.2rem;
  color: #1e3a8a;
  margin-top: 25px;
  margin-bottom: 10px;
}

.blog-article p {
  margin-bottom: 20px;
  color: #555;
}

.blog-article ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.blog-article li {
  margin-bottom: 8px;
}

.blog-meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 30px;
  text-align: center;
}

.related-posts {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.related-posts h2 {
  font-size: 1.4rem;
  color: #1e3a8a;
  margin-bottom: 20px;
}

.related-posts ul {
  list-style: none;
  padding: 0;
}

.related-posts li {
  margin-bottom: 10px;
}

.related-posts a {
  color: #1e40af;
  text-decoration: none;
}

.related-posts a:hover {
  text-decoration: underline;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  width: 90%;
  max-width: 1200px;
  margin-bottom: 40px;
  text-align: left;
}

.blog-post {
  background: #fff;
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.blog-post:hover {
  box-shadow: 0 12px 25px rgba(0,0,0,0.10);
}

.blog-post h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.blog-post h2 a {
  color: #1e40af;
  text-decoration: none;
}

.blog-post h2 a:hover {
  color: #0288d1;
}

.blog-post .blog-meta {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 15px;
}

.blog-post p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
  flex-grow: 1;
}

.read-more {
  display: inline-block;
  color: #1e40af;
  text-decoration: none;
  font-weight: 600;
  margin-top: auto;
}

.read-more: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: 1080px) {
  .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);
    }
}
