/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  line-height: 1.6;
  background: #f4f4f9;
  color: #333;
}

/* Language Fonts */
body.lang-ta {
  font-family: "Noto Sans Tamil", "Latha", sans-serif;
}
body.lang-en {
  font-family: "Arial", sans-serif;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #3700B3;
  color: white;
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.logo-container {
  display: flex;
  align-items: center;
}
.logo {
  height: 40px;
  width: auto;
  margin-right: 10px;
}
.site-name {
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

/* Language Toggle Icon */
.lang-toggle img {
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.lang-toggle img:hover {
  transform: scale(1.15);
}

/* Mobile header smaller */
@media (max-width: 600px) {
  .site-header {
    padding: 6px 12px;
  }
  .site-name {
    font-size: 1rem;
  }
  .logo {
    height: 32px;
  }
  .lang-toggle img {
    width: 28px;
    height: 28px;
  }
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(to right, #3700B3, #0059FF 50%, #3700B3);
  color: white;
}
.hero h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}
.hero p {
  font-size: 1.1rem;
}

/* Apps Section */
.apps {
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}
.apps h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: #3700B3;
}
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  justify-items: center;
}
.app-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0px 6px 15px rgba(0,0,0,0.12);
  text-align: center;
  padding: 30px 25px;
  width: 100%;
  max-width: 400px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.app-card:hover {
  transform: translateY(-8px);
  box-shadow: 0px 8px 20px rgba(0,0,0,0.18);
}
.app-card img {
  width: 180px;
  margin-bottom: 18px;
  border-radius: 15px;
  transition: transform 0.3s ease;
}
.app-card img:hover {
  transform: scale(1.08);
}
.app-card h3 {
  font-size: 1.3rem;
  color: #222;
  margin-bottom: 12px;
}
.app-card p {
  font-size: 1rem;
  margin-bottom: 18px;
  color: #555;
}
/* Play Store Button */
.play-btn img {
  width: 180px;
  transition: transform 0.3s ease;
}
.play-btn img:hover {
  transform: scale(1.08);
}

/* Back to Top Button */
    #backToTop {
      position: fixed;
      bottom: 20px;
      right: 20px;
      background: #007bff;
      color: #fff;
      border: none;
      padding: 12px 16px;
      border-radius: 50%;
      font-size: 18px;
      cursor: pointer;
      box-shadow: 0 4px 6px rgba(0,0,0,0.2);
      display: none;
      transition: opacity 0.3s ease;
    }

    #backToTop:hover {
      background: #0056b3;
    }

/* Footer */
footer {
  background: #3700B3;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 30px;
  font-size: 0.95rem;
}

/* Responsive Grid */
@media (min-width: 900px) {
  .apps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 600px) and (max-width: 899px) {
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 599px) {
  .apps-grid {
    grid-template-columns: 1fr;
  }
}
