/* Aesthetic Decorations for Header & Footer */

/* --- HEADER GLASSMORPHISM & ANIMATIONS --- */
.header {
  background-color: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
}

html.dark-mode .header {
  background-color: rgba(26, 26, 26, 0.85) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(68, 68, 68, 0.3);
}

/* Header Nav Links Hover Animation (Top Level Only) */
.navbar > ul > li > a {
  position: relative;
  transition: color 0.3s ease;
}

.navbar > ul > li > a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  display: block;
  bottom: -2px;
  right: 0;
  background: var(--color-link, #4154f1);
  transition: width 0.3s ease, right 0.3s ease;
  border-radius: 2px;
}

.navbar > ul > li > a:hover::after,
.navbar > ul > li > a.active::after,
.navbar > ul > li:hover > a::after {
  width: 100%;
  left: 0;
  right: auto;
}

/* Dropdown Sub-menu Hover */
.navbar .dropdown ul li a {
  transition: background-color 0.3s ease, color 0.3s ease, padding-left 0.3s ease;
}

.navbar .dropdown ul li a:hover {
  padding-left: 25px;
  background-color: rgba(65, 84, 241, 0.05);
  color: var(--color-link, #4154f1);
}
html.dark-mode .navbar .dropdown ul li a:hover {
  background-color: rgba(138, 154, 255, 0.05);
}

/* Header Logo Hover */
.header .logo img {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header .logo:hover img {
  transform: scale(1.1) rotate(-3deg);
}


/* --- FOOTER DECORATIONS --- */
#footer {
  background: linear-gradient(135deg, #ffffff 0%, #f1f4f9 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

html.dark-mode #footer {
  background: linear-gradient(135deg, #1f1f1f 0%, #121212 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Subtle glow at the top of the footer */
#footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-link, #4154f1), transparent);
  opacity: 0.5;
}

/* Social Links Animation */
#footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(65, 84, 241, 0.1);
  color: var(--color-link, #4154f1);
  margin-right: 8px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 18px;
}

html.dark-mode #footer .social-links a {
  background: rgba(138, 154, 255, 0.1);
}

#footer .social-links a:hover {
  background: var(--color-link, #4154f1);
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(65, 84, 241, 0.4);
}

/* Footer Links Hover */
#footer .footer-links ul li {
  transition: transform 0.3s ease;
}

#footer .footer-links ul li:hover {
  transform: translateX(8px);
}

#footer .footer-links ul li a {
  transition: color 0.3s ease;
}

#footer .footer-links ul li a:hover {
  color: var(--color-link, #4154f1);
}
