/* ================= GLOBAL ================= */
body {
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

/* ================= HEADER (HOME SAME) ================= */
header {
  backdrop-filter: blur(10px);
  background: rgba(37, 99, 235, 0.9);
  transition: 0.4s;
}

header a {
  transition: 0.3s;
  position: relative;
  font-size: 16px;
}

/* underline hover effect */
header a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -3px;
  left: 0;
  background: #facc15;
  transition: 0.3s;
}

header a:hover::after {
  width: 100%;
}

header a:hover {
  color: #facc15;
}

/* ================= DASHBOARD CARDS ================= */
.dash-card {
  background: white;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  transition: 0.4s;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* glow hover */
.dash-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  opacity: 0;
  transition: 0.5s;
}

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

.dash-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0px 20px 40px rgba(0,0,0,0.2);
}

.dash-card p {
  font-size: 30px;
  color: #2563eb;
  transition: 0.3s;
}

.dash-card:hover p {
  color: #facc15;
}

/* ================= CHART / BOX ================= */
.chart-box {
  background: white;
  padding: 20px;
  border-radius: 15px;
  transition: 0.3s;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.chart-box:hover {
  transform: scale(1.03);
}

/* ================= TASK LIST ================= */
#taskList li,
#goalList li {
  background: #e5e7eb;
  padding: 10px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  transition: 0.3s;
  gap: 10px;
  flex-wrap: wrap;
}

#taskList li:hover,
#goalList li:hover {
  background: #d1d5db;
  transform: translateX(5px);
}

/* ================= BUTTON ================= */
button {
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  padding: 10px 18px;
  font-size: 15px;
  border-radius: 8px;
}

/* ripple effect */
button::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  transition: 0.5s;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

button:hover::after {
  width: 200%;
  height: 400%;
}

button:hover {
  transform: scale(1.08);
}

/* ================= PROGRESS BAR ================= */
#mathBar,
#codeBar,
#sciBar {
  width: 0%;
  transition: width 1.5s ease-in-out;
}


footer a:hover {
  color: #facc15;
  transform: translateX(5px);
}

footer .flex a:hover {
  transform: scale(1.2) rotate(5deg);
}

footer p {
  line-height: 1.6;
}

/* ================= FOOTER (HOME SAME) ================= */
footer a {
  transition: 0.3s;
  display: inline-block;
}
footer div p {
  text-align: left;
}

/* FIX overflow on small devices */
#footerText {
  text-align: center;
  white-space: normal;
  display: block;
  word-break: break-word;
}

/* ================= ANIMATION ================= */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= RESPONSIVE ================= */

/* Large Screens */
@media (max-width: 1200px) {
  .dash-card p {
    font-size: 26px;
  }
}

/* Tablets */
@media (max-width: 992px) {
  .dash-card {
    padding: 18px;
  }

  .dash-card p {
    font-size: 24px;
  }

  button {
    font-size: 14px;
  }
}

/* Mobile */
@media (max-width: 768px) {

  header {
    padding: 15px;
  }

  header nav {
    font-size: 14px;
    flex-direction: column;
    gap: 10px;
  }

  .dash-card {
    padding: 15px;
  }

  .dash-card p {
    font-size: 22px;
  }

  .chart-box {
    padding: 15px;
  }

  button {
    width: 100%;
    font-size: 14px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {

  .dash-card p {
    font-size: 20px;
  }

  .chart-box {
    padding: 12px;
  }

  #taskList li,
  #goalList li {
    flex-direction: column;
    align-items: flex-start;
  }

  button {
    font-size: 13px;
    padding: 8px 14px;
  }
}