@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
  --background: #0f1115;
  --foreground: #f8fafc;
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.4);
  --secondary: #1e293b;
  --card-bg: rgba(30, 41, 59, 0.7);
  --card-border: rgba(255, 255, 255, 0.1);
  --accent: #8b5cf6;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
  font-family: 'Outfit', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  scroll-behavior: smooth;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, var(--primary-glow) 0%, transparent 50%),
              radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.2) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(15, 17, 21, 0.8);
  border-bottom: 1px solid var(--card-border);
  z-index: 100;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand i {
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  transition: color 0.2s ease;
  color: #94a3b8;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Header */
.header {
  margin-top: 100px;
  padding: 6rem 2rem;
  text-align: center;
}

.header-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.header-title span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-subtitle {
  font-size: 1.25rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto;
}

/* Grid */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.apps-status,
.apps-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: #94a3b8;
  font-size: 1.05rem;
}

.apps-error {
  color: #f87171;
}

/* Cards */
.app-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  backdrop-filter: blur(10px);
  overflow: hidden;
  position: relative;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.app-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.app-card:hover::before {
  opacity: 1;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.app-info {
  flex: 1;
}

.app-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.app-dev {
  font-size: 0.9rem;
  color: #94a3b8;
}

.app-desc {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.app-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #fbbf24;
  font-weight: 600;
}

.app-price {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.2s;
  margin-top: 1rem;
}

.btn-download:hover {
  background: var(--accent);
  transform: scale(1.02);
}

/* Privacy Page */
.privacy-container {
  max-width: 800px;
  margin: 120px auto 4rem;
  padding: 3rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  backdrop-filter: blur(10px);
}

.privacy-container h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  background: linear-gradient(135deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.privacy-content h2 {
  font-size: 1.5rem;
  color: #fff;
  margin: 2rem 0 1rem;
}

.privacy-content p {
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.privacy-content ul {
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

/* Footer */
.footer {
  text-align: center;
  padding: 3rem;
  border-top: 1px solid var(--card-border);
  color: #94a3b8;
  margin-top: 4rem;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeUp 0.8s ease-out forwards;
}

/* Add staggered animation delays for cards */
.app-card:nth-child(1) { animation: fadeUp 0.6s ease-out 0.1s both; }
.app-card:nth-child(2) { animation: fadeUp 0.6s ease-out 0.2s both; }
.app-card:nth-child(3) { animation: fadeUp 0.6s ease-out 0.3s both; }
.app-card:nth-child(4) { animation: fadeUp 0.6s ease-out 0.4s both; }
.app-card:nth-child(5) { animation: fadeUp 0.6s ease-out 0.5s both; }
.app-card:nth-child(6) { animation: fadeUp 0.6s ease-out 0.6s both; }
.app-card:nth-child(7) { animation: fadeUp 0.6s ease-out 0.7s both; }
.app-card:nth-child(8) { animation: fadeUp 0.6s ease-out 0.8s both; }
.app-card:nth-child(9) { animation: fadeUp 0.6s ease-out 0.9s both; }
.app-card:nth-child(n+10) { animation: fadeUp 0.6s ease-out 1s both; }

@media (max-width: 768px) {
  .header-title { font-size: 2.5rem; }
  .nav-links { gap: 1rem; }
  .privacy-container { padding: 1.5rem; margin: 100px 1rem 2rem; }
}
