/* static/css/home.css */

/* ---------------- BODY ---------------- */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #ffffff;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  background-image: url("../images/saden_background_image.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow-x: hidden;
}

/* Dark overlay for readability */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
}

/* ---------------- HOME CONTAINER ---------------- */
.home-container {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 150px;
  color: white;
}

.home-container h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: white;
}

.home-container p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: white;
}

.home-container a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.home-container a:hover {
  text-decoration: underline;
  color: #dddddd;
}

/* ---------------- PLAN CARDS ---------------- */
.plan-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 2rem;
  z-index: 2;
  position: relative;
}

/* Card base */
.plan-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 30px 25px;
  border-radius: 18px;
  text-align: center;
  text-decoration: none;
  width: 240px;
  min-height: 220px;

  color: #ffffff;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

/* Gradient backgrounds */
.plan-card:nth-child(1) {
  background: linear-gradient(135deg, #6dd5ed, #2193b0);
}
.plan-card:nth-child(2) {
  background: linear-gradient(135deg, #f7971e, #ffd200);
}
.plan-card:nth-child(3) {
  background: linear-gradient(135deg, #667eea, #764ba2);
}
.plan-card:nth-child(4) {
  background: linear-gradient(135deg, #11998e, #38ef7d);
}

/* Hover effect */
.plan-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

.plan-card h3 {
  margin: 0 0 10px;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
}

.plan-card p {
  margin: 5px 0;
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.95;
  color: #ffffff;
}

.plan-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(45deg, #ffffff, transparent, #ffffff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, 
                 linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.plan-card:hover::after {
  opacity: 0.6;
}

/* ---------------- FOOTER ---------------- */
.footer {
  position: fixed;
  bottom: 20px;
  width: 100%;
  text-align: center;
  z-index: 2;
  color: white;
  font-size: 0.95rem;
}

.footer a {
  color: white;
  text-decoration: none;
  margin: 0 8px;
  transition: opacity 0.3s ease;
}

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