/* Custom variables for this page's glowing colors based on reference image */
:root {
  --neon-blue: #36d6ff;
  --neon-purple: #c35cff;
  --neon-pink: #ff7aff;
  --text-primary: #ffffff;
}

body.landing-page {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column; /* top bar on top, cards centred below */
  align-items: center;
  /* Complex space-like gradient with pink/purple/blue tones */
  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(22, 54, 91, 0.8) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(95, 27, 74, 0.8) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(70, 35, 88, 0.6) 0%,
      transparent 60%
    ),
    linear-gradient(135deg, #10193b, #190f2b, #2b1130);
  background-attachment: fixed;
  font-family: "Rajdhani", sans-serif;
  color: var(--text-primary);
}

.phases-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  padding: 2rem;
  margin: auto 0; /* centres the cards vertically under the top bar */
}

.phases-title {
  font-family: "Orbitron", sans-serif;
  font-size: 3.6rem;
  font-weight: 500;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #36d6ff, #ff7aff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  margin-bottom: 2rem;
  margin-top: 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
}

.phase-card {
  position: relative;
  background: rgba(30, 20, 55, 0.5); /* Glassmorphism base */
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 380px;
}

.phase-card:hover {
  transform: translateY(-5px);
}

/* Card inner content layer for z-index */
.card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  text-decoration: none;
}

/* Border gradients using ::before */
.phase-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 2px; /* acts as border width */
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Card Specific Colors */
.card-blue::before {
  background: linear-gradient(
    135deg,
    rgba(54, 214, 255, 0.9),
    rgba(54, 214, 255, 0.2)
  );
}
.card-purple::before {
  background: linear-gradient(
    135deg,
    rgba(195, 92, 255, 0.9),
    rgba(195, 92, 255, 0.2)
  );
}
.card-pink::before {
  background: linear-gradient(
    135deg,
    rgba(255, 122, 255, 0.9),
    rgba(255, 122, 255, 0.2)
  );
}

/* Subtle background glow inside the card */
.card-glow {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  border-radius: 12px;
  z-index: 1;
}

.card-blue .card-glow {
  background: radial-gradient(
    circle at 30% top,
    var(--neon-blue),
    transparent 70%
  );
}
.card-purple .card-glow {
  background: radial-gradient(
    circle at 50% top,
    var(--neon-purple),
    transparent 70%
  );
}
.card-pink .card-glow {
  background: radial-gradient(
    circle at 70% top,
    var(--neon-pink),
    transparent 70%
  );
}

/* Icons */
.icon-container {
  margin-bottom: 2rem;
  display: inline-flex;
}

.phase-icon {
  width: 80px;
  height: 80px;
}
.card-blue .phase-icon {
  stroke: var(--neon-blue);
  filter: drop-shadow(0 0 10px rgba(54, 214, 255, 0.6));
}
.card-purple .phase-icon {
  stroke: var(--neon-purple);
  filter: drop-shadow(0 0 10px rgba(195, 92, 255, 0.6));
}
.card-pink .phase-icon {
  stroke: var(--neon-pink);
  filter: drop-shadow(0 0 10px rgba(255, 122, 255, 0.6));
}

/* Typography */
.card-title {
  font-family: "Rajdhani", sans-serif;
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  color: #fff;
  text-transform: uppercase;
}

.card-desc {
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
  font-weight: 400;
  opacity: 0.9;
}

/* Buttons */
.btn-phase {
  display: inline-block;
  padding: 0.7rem 2.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-family: "Rajdhani", sans-serif;
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  color: #fff;
  background: transparent;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.card-blue .btn-phase {
  border-color: rgba(54, 214, 255, 0.6);
  box-shadow:
    inset 0 0 10px rgba(54, 214, 255, 0.1),
    0 0 10px rgba(54, 214, 255, 0.1);
}
.card-blue .btn-phase:hover {
  background: rgba(54, 214, 255, 0.15);
  box-shadow:
    0 0 15px rgba(54, 214, 255, 0.5),
    inset 0 0 15px rgba(54, 214, 255, 0.3);
}

.card-purple .btn-phase {
  border-color: rgba(195, 92, 255, 0.6);
  box-shadow:
    inset 0 0 10px rgba(195, 92, 255, 0.1),
    0 0 10px rgba(195, 92, 255, 0.1);
}
.card-purple .btn-phase:hover {
  background: rgba(195, 92, 255, 0.15);
  box-shadow:
    0 0 15px rgba(195, 92, 255, 0.5),
    inset 0 0 15px rgba(195, 92, 255, 0.3);
}

.card-pink .btn-phase {
  border-color: rgba(255, 122, 255, 0.6);
  box-shadow:
    inset 0 0 10px rgba(255, 122, 255, 0.1),
    0 0 10px rgba(255, 122, 255, 0.1);
}
.card-pink .btn-phase:hover {
  background: rgba(255, 122, 255, 0.15);
  box-shadow:
    0 0 15px rgba(255, 122, 255, 0.5),
    inset 0 0 15px rgba(255, 122, 255, 0.3);
}

/* Responsiveness */
@media (max-width: 992px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
  }
  .phases-title {
    font-size: 1.8rem;
    text-align: center;
  }
}
