/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* ================= ROOT COLORS ================= */
:root {
  --pink: #ff4ecd;
  --purple: #7b5cff;
  --blue: #00eaff;
  --green: #2bff88;
  --yellow: #ffe66d;
  --orange: #ff9f1c;
}

/* ================= BODY ================= */
body {
  min-height: 100vh;
  background: linear-gradient(
    120deg,
    #ff4ecd,
    #7b5cff,
    #00eaff,
    #2bff88
  );
  background-size: 400% 400%;
  animation: gradientFlow 15s ease infinite;
  color: #111;
  overflow-x: hidden;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ================= FLOATING BLOBS ================= */
body::before,
body::after {
  content: "";
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
  z-index: -1;
}

body::before {
  background: var(--pink);
  top: -100px;
  left: -100px;
}

body::after {
  background: var(--blue);
  bottom: -100px;
  right: -100px;
}

/* ================= TITLES ================= */
.title {
  text-align: center;
  font-size: 3.5rem;
  margin-top: 30px;
  color: white;
  text-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.subtitle {
  text-align: center;
  margin-top: 10px;
  font-size: 1.2rem;
  color: #fff;
  opacity: 0.9;
}

/* ================= HOME TILES ================= */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  padding: 60px;
}

.tile {
  backdrop-filter: blur(15px);
  background: rgba(255,255,255,0.25);
  border-radius: 30px;
  padding: 50px 20px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255,255,255,0.6),
    transparent
  );
  opacity: 0;
  transition: 0.4s;
}

.tile:hover::before {
  opacity: 1;
}

.tile:hover {
  transform: translateY(-15px) scale(1.05);
}

.tile span {
  display: block;
  margin-top: 15px;
  font-size: 1.3rem;
  font-weight: bold;
  color: #111;
}

/* ================= PAGE CONTAINER ================= */
.page {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px;
  backdrop-filter: blur(20px);
  background: rgba(255,255,255,0.25);
  border-radius: 30px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.3);
}

/* ================= INPUTS ================= */
input, textarea {
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  border-radius: 14px;
  border: none;
  outline: none;
  font-size: 1rem;
}

/* ================= BUTTONS ================= */
button {
  padding: 14px 25px;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  background: linear-gradient(45deg, var(--purple), var(--pink));
  color: white;
  box-shadow: 0 15px 30px rgba(0,0,0,0.25);
  transition: 0.3s;
}

button:hover {
  transform: scale(1.1);
  box-shadow: 0 25px 50px rgba(0,0,0,0.35);
}

/* ================= TASKS / HABITS ================= */
.task, .habit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-radius: 20px;
  margin-top: 15px;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  animation: pop 0.4s ease;
}

@keyframes pop {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ================= TIMER ================= */
#time {
  font-size: 4rem;
  text-align: center;
  margin: 20px 0;
  color: white;
  text-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

/* ================= FOOTER QUOTES ================= */
footer {
  text-align: center;
  margin-bottom: 30px;
  color: white;
  font-size: 1.1rem;
  opacity: 0.9;
  transition: opacity 0.5s;
}
