@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap");

:root {
  --bg-color-1: #0f172a;
  --bg-color-2: #1e1b4b;
  --bg-color-3: #312e81;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --accent-color: #818cf8;
  --accent-hover: #a5b4fc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Outfit", sans-serif;
}

body {
  background: linear-gradient(
    135deg,
    var(--bg-color-1),
    var(--bg-color-2),
    var(--bg-color-3)
  );
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  line-height: 1.6;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

/* Glassmorphism Card styling */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform-origin: center;
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Home Page specific */
.header-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.header-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.app-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.app-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-color);
}

.app-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0)
  );
  transform: skewX(-25deg);
  transition: 0.5s;
}

.app-card:hover::before {
  left: 150%;
}

.app-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.app-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Privacy Policy specific */
.policy-content {
  color: var(--text-primary);
}

.policy-content h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.policy-content .last-updated {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.policy-content h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #e2e8f0;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.5rem;
}

.policy-content p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.policy-content ul {
  margin-bottom: 1rem;
  padding-left: 2rem;
  color: var(--text-secondary);
}

.policy-content ul li {
  margin-bottom: 0.5rem;
}

.policy-content strong {
  color: var(--text-primary);
}

.policy-content hr {
  border: 0;
  height: 1px;
  background: var(--glass-border);
  margin: 2rem 0;
}

.policy-content .copyright {
  text-align: center;
  font-size: 0.9rem;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  border: 1px solid var(--glass-border);
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-5px);
}

/* Background floating elements */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  opacity: 0.6;
  animation: float 20s infinite ease-in-out;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: #4f46e5;
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: #c084fc;
  bottom: -50px;
  right: -50px;
  animation-delay: -5s;
}

@media (max-width: 768px) {
  .glass-panel {
    padding: 1.5rem;
  }
  .header-hero h1 {
    font-size: 2rem;
  }
}
