/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  color: #1d1d1f;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  flex-shrink: 0;
}

.logo-text {
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f;
}

.nav {
  display: flex;
  gap: 32px;
  flex: 1;
  justify-content: center;
}

.nav a {
  text-decoration: none;
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s;
}

.nav a:hover {
  color: #0066ff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-btn,
.lang-btn,
.search-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #1d1d1f;
  font-size: 14px;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
}

.btn-download {
  background: #f5f5f5;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-download:hover {
  background: #e8e8e8;
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  background: #f8f9fa;
  overflow: hidden;
}

.hero-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
  gap: 40px;
}

.hero-text {
  flex: 1;
  max-width: 580px;
}

.hero-action {
  flex-shrink: 0;
}

.hero h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #000;
}

.hero-subtitle {
  font-size: 18px;
  color: #5a5a5a;
  line-height: 1.6;
}

.btn-primary {
  background: #0066ff;
  color: #fff;
  border: none;
  padding: 16px 36px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 102, 255, 0.2);
}

.btn-primary:hover {
  background: #0052cc;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
  transform: translateY(-1px);
}

/* App icons showcase */
.app-icons-showcase {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 20px 0;
  margin-top: 40px;
}

.icons-row {
  display: flex;
  gap: 12px;
  animation: slideLeftContinuous linear infinite;
  will-change: transform;
  width: fit-content;
}

.icons-row:hover {
  animation-play-state: paused;
}

/* Updated animation speeds to match reference design */
.icons-row-1 {
  animation-duration: 30s;
}

.icons-row-2 {
  animation-duration: 35s;
}

.icons-row-3 {
  animation-duration: 32s;
}

@keyframes slideLeftContinuous {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.app-icon-link {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.app-icon-link:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation-play-state: paused;
}

.app-icon-link svg {
  width: 32px;
  height: 32px;
  pointer-events: none;
}

/* Features Section */
.features {
  padding: 60px 0 80px;
  background: #fff;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 2;
}

.feature-card {
  padding: 36px 32px;
  border-radius: 24px;
  color: #fff;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
}

/* New structure for content and illustration positioning */
.card-content {
  position: relative;
  z-index: 2;
}

.feature-illustration {
  position: absolute;
  top: -40px;
  right: 20px;
  z-index: 10;
  pointer-events: none;
  opacity: 0.95;
}

.feature-illustration svg {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.feature-card h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 20px;
  opacity: 0.85;
  font-weight: 700;
}

.feature-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.feature-card p:last-child {
  font-size: 15px;
  opacity: 0.9;
  line-height: 1.6;
}

.teal-card {
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
}

.blue-card {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

.purple-card {
  background: linear-gradient(135deg, #9333ea 0%, #a855f7 100%);
}

/* Section row layout */
.section-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
  gap: 40px;
}

.section-row h2 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  color: #000;
  margin: 0;
}

/* Find Apps Section */
.find-apps {
  padding: 80px 0;
  background: #f8f9fa;
}

.find-apps h2 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  color: #000;
}

.search-bar {
 display: flex;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: center;
}

.search-bar input {
  width: 240px;
  padding: 14px 20px;
  border: 1px solid #d1d1d6;
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
}

.search-bar input:focus {
  outline: none;
  border-color: #0066ff;
}

.btn-search {
  background: #0066ff;
  color: #fff;
  border: none;
  padding: 14px 36px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-search:hover {
  background: #0052cc;
}

/* Synchronized Multi-Row Slider */
.multi-row-slider-container {
  position: relative;
  padding: 0 60px;
  margin-top: 36px;
}

.multi-row-slider-wrapper {
  overflow: hidden;
  width: 100%;
}

.multi-row-slider-tracks {
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.4s ease;
}

.slider-row {
  display: flex;
  gap: 20px;
  width: fit-content;
}

.app-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border-radius: 14px;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid #f0f0f0;
  min-width: 420px;
  max-width: 420px;
  flex-shrink: 0;
}

.app-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.app-icon {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 16px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-details {
  flex: 1;
  min-width: 0;
}

.app-details h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-details p {
  font-size: 14px;
  color: #6e6e73;
  margin-bottom: 8px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rating {
  color: #ffb800;
  font-size: 14px;
  font-weight: 600;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #e5e7eb;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  color: #000;
  line-height: 1;
}

.slider-arrow:hover:not(:disabled) {
  background: #f8f9fa;
  border-color: #0066ff;
  color: #0066ff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.slider-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.slider-arrow-left {
  left: 0;
}

.slider-arrow-right {
  right: 0;
}

/* Categories Section */
.categories {
  padding: 80px 0;
  background: #fff;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}

.section-header h2 {
  font-size: 42px;
  font-weight: 700;
  color: #000;
}

.link-all {
  color: #0066ff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s;
}

.link-all:hover {
  color: #0052cc;
}

.pill {
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  padding: 12px 22px;
  border-radius: 24px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.pill:hover {
  background: #fff;
  border-color: #0066ff;
  color: #0066ff;
  transform: translateY(-1px);
}

/* Arrow-controlled slider styles */
.slider-container {
  position: relative;
  padding: 0 60px;
}

.slider-wrapper {
  overflow: hidden;
  width: 100%;
}

.slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
  width: fit-content;
}

.category-slider {
  gap: 12px;
}

/* Games Section */
.games {
  padding: 80px 0;
  background: #f8f9fa;
}

.genre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.game-card {
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  min-width: 280px;
  flex-shrink: 0;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.game-cover {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.game-info {
  background: #fff;
  padding: 18px;
}

.game-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: #000;
}

.games-slider .game-card {
  min-width: 280px;
  flex-shrink: 0;
}

/* Installation Section */
.installation {
  padding: 80px 0;
  background: #fff;
}

.installation h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 48px;
  color: #000;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.install-card {
  padding: 44px 36px;
  border-radius: 24px;
  color: #fff;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.install-icon {
  margin-bottom: 28px;
}

.install-card h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 14px;
}

.install-card p {
  font-size: 15px;
  margin-bottom: 28px;
  opacity: 0.92;
  line-height: 1.6;
}

.install-card a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: opacity 0.2s;
}

.install-card a:hover {
  opacity: 0.8;
}

.blue-install {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

.purple-install {
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
}

.pink-install {
  background: linear-gradient(135deg, #db2777 0%, #ec4899 100%);
}

/* Topics Section */
.topics {
  padding: 80px 0;
  background: #f8f9fa;
}

.topics h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 36px;
  color: #000;
}

.topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Blog Section */
.blog {
  padding: 80px 0;
  background: #fff;
}

.blog-card {
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  min-width: 360px;
  flex-shrink: 0;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.blog-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-card h4 {
  padding: 22px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: #000;
}

.blog-slider .blog-card {
  min-width: 360px;
  flex-shrink: 0;
}

/* Footer */
.footer {
  background: #1a1a1a;
  color: #f5f5f7;
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 28px;
}

.qr-section {
  margin-top: 24px;
}

.qr-code {
  width: 128px;
  height: 128px;
  margin-bottom: 16px;
}

.qr-pattern {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 10px;
  background-image: repeating-linear-gradient(0deg, #000 0px, #000 10px, transparent 10px, transparent 20px),
    repeating-linear-gradient(90deg, #000 0px, #000 10px, transparent 10px, transparent 20px);
}

.qr-section p {
  font-size: 13px;
  color: #999;
  line-height: 1.6;
}

.qr-section a {
  color: #0066ff;
  text-decoration: none;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

.footer-col a {
  display: block;
  color: #999;
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 14px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid #333;
  font-size: 13px;
  color: #999;
}

.footer-bottom a {
  color: #0066ff;
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 20px;
  color: #999;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.back-top {
  background: transparent;
  border: 1px solid #666;
  color: #999;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.back-top:hover {
  border-color: #fff;
  color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
  .multi-row-slider-tracks .slider-row:nth-child(3) {
    display: none;
  }

  .app-card {
    min-width: 380px;
    max-width: 380px;
  }
}

@media (max-width: 768px) {
  .hero-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-action {
    width: 100%;
  }

  .hero-action .btn-primary {
    width: 100%;
  }

  .section-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-bar {
    width: 100%;
  }

  .search-bar input {
    flex: 1;
    width: auto;
  }

  .features-grid,
  .install-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 36px;
  }

  .section-header h2,
  .find-apps h2,
  .topics h2,
  .installation h2 {
    font-size: 32px;
  }

  .slider-arrow {
    display: none;
  }

  .slider-container,
  .multi-row-slider-container {
    padding: 0;
  }

  .slider-wrapper,
  .multi-row-slider-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .slider-wrapper::-webkit-scrollbar,
  .multi-row-slider-wrapper::-webkit-scrollbar {
    display: none;
  }

  .multi-row-slider-tracks .slider-row:nth-child(2),
  .multi-row-slider-tracks .slider-row:nth-child(3) {
    display: none;
  }

  .app-card {
    min-width: 320px;
    max-width: 320px;
  }

  .nav {
    display: none;
  }
}

/* Navbar responsive styles */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #1d1d1f;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .header-content {
    position: relative;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid #e5e5e5;
    z-index: 999;
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    padding: 16px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
    display: block;
  }
}

/* Fix for unwanted horizontal scroll on mobile */
html, body {
  overflow-x: hidden; /* Prevents horizontal scrolling */
}

body {
  position: relative; /* Optional: Helps in some browser cases like Safari */
}