/* CSS Variables */
:root {
  --bg-color: #0d0d12;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover-bg: rgba(255, 255, 255, 0.06);
  --card-hover-border: rgba(255, 255, 255, 0.2);
  --text-main: #ffffff;
  --text-muted: #a0a0b0;
  --primary-gradient: linear-gradient(135deg, #6ae8fa 0%, #4a8eff 100%);
  --glow-color: rgba(74, 142, 255, 0.15);
  --font-family: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

a {
  color: var(--text-main);
  text-decoration: none;
}


/* Background Effect */
.background-glob {
  position: fixed;
  top: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(74, 142, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
  animation: float 10s infinite ease-in-out alternate;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(50px, 30px);
  }
}

/* Layout */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem;
  flex: 1;
  width: 100%;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 3rem;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 400;
}


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

/* Cards */
.app-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  height: 100%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* Prepare for spotlight */
  z-index: 1;
}

/* Spotlight Effect */
.app-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: radial-gradient(600px circle at var(--x, 50%) var(--y, 50%),
      rgba(255, 255, 255, 0.04),
      transparent 40%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

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

.app-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-hover-border);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.app-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  filter: grayscale(0.2);
  transition: var(--transition);
  position: relative;
  z-index: 2;
}

.app-card:hover .app-icon {
  transform: scale(1.1);
  filter: grayscale(0);
}

.app-info {
  position: relative;
  z-index: 2;
}

.app-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.app-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Tags/Status */
.app-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(106, 232, 250, 0.1);
  color: #6ae8fa;
  border: 1px solid rgba(106, 232, 250, 0.2);
}

.app-status.dev {
  background: rgba(255, 171, 0, 0.1);
  color: #ffab00;
  border-color: rgba(255, 171, 0, 0.2);
}

.app-status.beta {
  background: rgba(71, 86, 155, 0.1);
  color: rgb(135, 155, 240);
  ;
  border-color: rgba(71, 86, 155, 0.2);
}

.app-status.new {
  background: rgba(63, 131, 68, 0.1);
  color: rgb(58, 179, 66);
  border-color: rgba(63, 131, 68, 0.2);
}

.app-status.deprecated {
  background: rgb(179, 58, 88, 0.1);
  color: rgb(179, 58, 88);
  border-color: rgb(179, 58, 88, 0.2);
}

.icon-bg {
  background-color: white;
  border-radius: 10%;
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Featured Card */
.app-card.featured {
  border-color: rgba(106, 232, 250, 0.5);
  background: radial-gradient(circle at top right, rgba(106, 232, 250, 0.1), transparent 40%), var(--card-bg);
  animation: glow-pulse 3s infinite ease-in-out;
}

@keyframes glow-pulse {

  0%,
  100% {
    box-shadow: 0 0 5px rgba(106, 232, 250, 0.1);
    border-color: rgba(106, 232, 250, 0.5);
  }

  50% {
    box-shadow: 0 0 20px rgba(106, 232, 250, 0.3);
    border-color: rgba(106, 232, 250, 0.8);
  }
}

.app-card.featured:hover {
  animation: none;
  border-color: #6ae8fa;
  box-shadow: 0 0 30px rgba(106, 232, 250, 0.4);
  transform: translateY(-4px) scale(1.02);
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.875rem;
  margin-top: auto;
}

.footer a {
  color: var(--text-main);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 3rem 1.5rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }
}