/* --- Root variables --- */
:root {
  --light-blue: #e9f7ff;
  --deep-blue: #012a4a;
  --accent: #5bc0f8;
  --muted-pink: #ff4d6d;
  --purple: #7b4cff;
  --card-bg: rgba(255, 255, 255, 0.65);
  --shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* --- Page background with animated gradient & bokeh --- */
html, body {
  height: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #e9f7ff, #d9ecff, #f5eaff, #e8ddff);
  background-size: 400% 400%;
  animation: gradientShift 18s ease infinite;
  color: var(--deep-blue);
  padding-top: 90px;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  z-index: 0;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Soft bokeh orbs */
body::before {
  content: "";
  position: fixed; /* fixed to viewport */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* full viewport coverage */
  background: radial-gradient(circle at 20% 30%, rgba(91,192,248,0.2), transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(123,76,255,0.2), transparent 50%),
              radial-gradient(circle at 50% 90%, rgba(255,77,109,0.15), transparent 50%);
  z-index: -1; /* keep behind content */
  pointer-events: none;
}

/* --- Floating modern navbar --- */
.custom-navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  height: 56px;
  padding: 0 1.5rem;
  background: linear-gradient(135deg, rgba(91,192,248,0.9), rgba(123,76,255,0.9));
  backdrop-filter: blur(16px) saturate(120%);
  border-radius: 40px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  z-index: 1000;
  width: min(980px, 92%);
}

/* Navbar brand */
.custom-navbar .navbar-brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}
.custom-navbar .navbar-brand:hover {
  color: #ffe066;
}

/* Navbar links */
.custom-navbar .nav-link {
  color: #fff;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}
.custom-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #ffe066;
  transition: width 0.3s ease;
}
.custom-navbar .nav-link:hover::after,
.custom-navbar .nav-link.active::after {
  width: 100%;
}
.custom-navbar .nav-link.active {
  color: #ffe066;
}

/* Hero text */
header h1 {
  font-size: 2.6rem;
  background: linear-gradient(90deg, var(--purple), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* --- Modern glassy card style --- */
.card {
  border-radius: 18px;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}
.card h5 {
  font-weight: 600;
}
.card .text-muted {
  font-size: 0.9rem;
}

/* Heart button */
.heart-btn {
  font-size: 1.6rem;
  line-height: 1;
  border-radius: 50%;
  transition: transform 0.3s ease;
  background: transparent;
  border: none;
}
.heart-btn:hover {
  transform: scale(1.2) rotate(8deg);
}

/* Hidden message animation */
.hidden-message {
  display: none;
  margin-top: 10px;
  font-style: italic;
  color: var(--muted-pink);
  animation: fadeIn 0.6s ease forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive tweaks */
@media (max-width: 576px) {
  header h1 {
    font-size: 2rem;
  }
  .custom-navbar {
    padding: 0 1rem;
  }
}
