@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

:root {
  --bg-gradient: linear-gradient(135deg, #f6d1e7, #d1e8f6);
  --container-bg: rgba(255, 255, 255, 0.85);
  --text-color: #333;
  --subtitle-color: #666;
  --card-bg: #fff;
  --shadow: rgba(0, 0, 0, 0.1);
}

body.dark {
  --bg-gradient: linear-gradient(135deg, #1e1e2f, #2a2a3d);
  --container-bg: rgba(40, 40, 55, 0.9);
  --text-color: #eee;
  --subtitle-color: #bbb;
  --card-bg: #2d2d42;
  --shadow: rgba(0, 0, 0, 0.4);
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--bg-gradient);
  color: var(--text-color);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s, color 0.3s;
}

.container {
  text-align: center;
  background: var(--container-bg);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 8px 20px var(--shadow);
  width: 90%;
  max-width: 600px;
  transition: background 0.3s;
}

header {
  position: relative;
}

h1 {
  font-weight: 700;
  margin-bottom: 10px;
}

.subtitle {
  font-weight: 300;
  color: var(--subtitle-color);
  margin-bottom: 30px;
}

#theme-toggle {
  position: absolute;
  right: 0;
  top: 0;
  background: none;
  border: none;
  font-size: 1.6em;
  cursor: pointer;
  transition: transform 0.3s;
  color: var(--text-color);
}

#theme-toggle:hover {
  transform: scale(1.2);
}

.app-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.app-card {
  background: var(--card-bg);
  border-radius: 15px;
  box-shadow: 0 4px 12px var(--shadow);
  padding: 20px;
  width: 130px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px var(--shadow);
}

.app-card img {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
}

.app-card img {
  width: 100%;
  height: auto;
  max-width: 420px; /* optional, keeps it tidy */
}

.app-card span {
  display: block;
  font-weight: 500;
  color: var(--text-color);
}

footer {
  margin-top: 40px;
  font-size: 0.9em;
  color: var(--subtitle-color);
}
