
* {
  box-sizing: border-box;
}

html {
  height: 100%;
  width: 100%;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
  margin: 0;
  padding: 0;
  color: #2c3e50;
  min-height: 100vh;
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Dark Mode */
body.dark-mode {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) repeat-y;
  color: #e1e5e9;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 183, 77, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 219, 226, 0.1) 0%, transparent 50%);
  z-index: -1;
  animation: gradientShift 15s ease infinite;
  transition: all 0.4s ease;
}

body.dark-mode::before {
  background: 
    radial-gradient(circle at 20% 80%, rgba(79, 172, 254, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(251, 113, 133, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
}

@keyframes gradientShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

header {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #2c3e50;
  padding: 30px 20px;
  box-shadow: 
    20px 20px 60px rgba(0, 0, 0, 0.1),
    -20px -20px 60px rgba(255, 255, 255, 0.8),
    inset 2px 2px 10px rgba(255, 255, 255, 0.5);
  margin: 20px;
  border-radius: 25px;
  animation: headerFloat 6s ease-in-out infinite;
  transition: all 0.4s ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.header-content img {
  width: 180px;
  height: auto;
  object-fit: contain;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px;
  box-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.1),
    -8px -8px 16px rgba(255, 255, 255, 0.8),
    inset 2px 2px 6px rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  animation: logoFloat 4s ease-in-out infinite;
}

.header-content img:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 
    12px 12px 24px rgba(0, 0, 0, 0.15),
    -12px -12px 24px rgba(255, 255, 255, 0.9),
    inset 3px 3px 8px rgba(255, 255, 255, 0.4);
}

@keyframes logoFloat {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg); 
  }
  25% { 
    transform: translateY(-2px) rotate(1deg); 
  }
  50% { 
    transform: translateY(-4px) rotate(0deg); 
  }
  75% { 
    transform: translateY(-2px) rotate(-1deg); 
  }
}

/* Dark mode logo styling */
body.dark-mode .header-content img {
  background: rgba(51, 65, 85, 0.2);
  box-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.3),
    -8px -8px 16px rgba(51, 65, 85, 0.1),
    inset 2px 2px 6px rgba(148, 163, 184, 0.1);
  filter: brightness(0) invert(1);
}

body.dark-mode .header-content img:hover {
  box-shadow: 
    12px 12px 24px rgba(0, 0, 0, 0.4),
    -12px -12px 24px rgba(51, 65, 85, 0.2),
    inset 3px 3px 8px rgba(148, 163, 184, 0.15);
  filter: brightness(1.2);
}

.header-text {
  text-align: center;
  flex: 1;
}

/* Dark mode header */
body.dark-mode header {
  background: rgba(30, 41, 59, 0.25);
  border: 1px solid rgba(148, 163, 184, 0.1);
  color: #e1e5e9;
  box-shadow: 
    20px 20px 60px rgba(0, 0, 0, 0.3),
    -20px -20px 60px rgba(51, 65, 85, 0.1),
    inset 2px 2px 10px rgba(148, 163, 184, 0.05);
}

/* Theme Toggle Button */
.theme-toggle {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.1),
    -8px -8px 16px rgba(255, 255, 255, 0.8);
  color: #667eea;
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(180deg);
  box-shadow: 
    12px 12px 24px rgba(0, 0, 0, 0.15),
    -12px -12px 24px rgba(255, 255, 255, 0.9);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
  position: absolute;
  transition: all 0.4s ease;
}

.theme-toggle .moon-icon {
  opacity: 0;
  transform: rotate(180deg);
}

body.dark-mode .theme-toggle {
  background: rgba(51, 65, 85, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #fbbf24;
  box-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.3),
    -8px -8px 16px rgba(51, 65, 85, 0.1);
}

body.dark-mode .theme-toggle:hover {
  box-shadow: 
    12px 12px 24px rgba(0, 0, 0, 0.4),
    -12px -12px 24px rgba(51, 65, 85, 0.2);
}

body.dark-mode .theme-toggle .sun-icon {
  opacity: 0;
  transform: rotate(-180deg);
}

body.dark-mode .theme-toggle .moon-icon {
  opacity: 1;
  transform: rotate(0deg);
}

@keyframes headerFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

header h1 {
  margin: 0;
  font-size: 2.2em;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 3s ease-in-out infinite;
}

@keyframes textShimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

header p {
  margin-top: 8px;
  font-size: 1em;
  color: #5a6c7d;
  font-weight: 400;
}

#searchBox {
  width: 90%;
  max-width: 500px;
  margin: 25px auto;
  display: block;
  padding: 15px 20px;
  border-radius: 20px;
  border: none;
  font-size: 1em;
  outline: none;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  box-shadow: 
    inset 8px 8px 16px rgba(0, 0, 0, 0.1),
    inset -8px -8px 16px rgba(255, 255, 255, 0.8),
    4px 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  color: #2c3e50;
}

#searchBox::placeholder {
  color: #7a8ca1;
}

#searchBox:focus {
  transform: scale(1.02);
  box-shadow: 
    inset 6px 6px 12px rgba(0, 0, 0, 0.15),
    inset -6px -6px 12px rgba(255, 255, 255, 0.9),
    0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Dark mode search box */
body.dark-mode #searchBox {
  background: rgba(51, 65, 85, 0.4);
  color: #e1e5e9;
  box-shadow: 
    inset 8px 8px 16px rgba(0, 0, 0, 0.3),
    inset -8px -8px 16px rgba(51, 65, 85, 0.1),
    4px 4px 12px rgba(0, 0, 0, 0.2);
}

body.dark-mode #searchBox::placeholder {
  color: #94a3b8;
}

body.dark-mode #searchBox:focus {
  box-shadow: 
    inset 6px 6px 12px rgba(0, 0, 0, 0.4),
    inset -6px -6px 12px rgba(51, 65, 85, 0.2),
    0 8px 25px rgba(79, 172, 254, 0.3);
}

.category-buttons {
  text-align: center;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.category-buttons button {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px 20px;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 500;
  color: #2c3e50;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.1),
    -8px -8px 16px rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.category-buttons button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.category-buttons button:hover::before {
  left: 100%;
}

.category-buttons button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    12px 12px 24px rgba(0, 0, 0, 0.15),
    -12px -12px 24px rgba(255, 255, 255, 0.9);
}

.category-buttons button.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 
    inset 4px 4px 8px rgba(0, 0, 0, 0.2),
    8px 8px 16px rgba(102, 126, 234, 0.3);
  transform: scale(0.98);
}

/* Dark mode category buttons */
body.dark-mode .category-buttons button {
  background: rgba(51, 65, 85, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #e1e5e9;
  box-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.3),
    -8px -8px 16px rgba(51, 65, 85, 0.1);
}

body.dark-mode .category-buttons button:hover {
  box-shadow: 
    12px 12px 24px rgba(0, 0, 0, 0.4),
    -12px -12px 24px rgba(51, 65, 85, 0.2);
}

body.dark-mode .category-buttons button.active {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  box-shadow: 
    inset 4px 4px 8px rgba(0, 0, 0, 0.3),
    8px 8px 16px rgba(79, 70, 229, 0.4);
}

.category {
  padding: 25px;
  max-width: 1200px;
  margin: auto;
  display: none;
  animation: fadeInUp 0.6s ease-out;
}

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

.category.active {
  display: block;
}

.category h2 {
  margin: 0 0 20px 0;
  font-size: 1.6em;
  font-weight: 600;
  color: #2c3e50;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
  transition: color 0.4s ease;
}

/* Dark mode category titles */
body.dark-mode .category h2 {
  color: #e1e5e9;
}

.category h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

ul li {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 18px;
  border-radius: 18px;
  box-shadow: 
    12px 12px 24px rgba(0, 0, 0, 0.1),
    -12px -12px 24px rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  animation: slideIn 0.6s ease-out;
  animation-fill-mode: both;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

ul li:nth-child(even) {
  animation-delay: 0.1s;
}

ul li:nth-child(3n) {
  animation-delay: 0.2s;
}

ul li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

ul li:hover::before {
  opacity: 1;
}

ul li:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    16px 16px 32px rgba(0, 0, 0, 0.15),
    -16px -16px 32px rgba(255, 255, 255, 0.9),
    0 20px 40px rgba(102, 126, 234, 0.2);
}

/* Dark mode list items */
body.dark-mode ul li {
  background: rgba(51, 65, 85, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: 
    12px 12px 24px rgba(0, 0, 0, 0.3),
    -12px -12px 24px rgba(51, 65, 85, 0.1);
}

body.dark-mode ul li:hover {
  box-shadow: 
    16px 16px 32px rgba(0, 0, 0, 0.4),
    -16px -16px 32px rgba(51, 65, 85, 0.2),
    0 20px 40px rgba(79, 172, 254, 0.2);
}

body.dark-mode ul li a {
  color: #e1e5e9;
}

body.dark-mode ul li:hover a {
  color: #60a5fa;
}

body.dark-mode ul li span {
  color: #94a3b8;
}

ul li a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 600;
  font-size: 1.1em;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

ul li:hover a {
  color: #667eea;
}

ul li span {
  display: block;
  font-size: 0.9em;
  color: #5a6c7d;
  margin-top: 6px;
  position: relative;
  z-index: 2;
  line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    margin: 10px;
    padding: 20px 15px;
  }
  
  .header-content {
    flex-direction: column;
    gap: 15px;
  }
  
  .header-content img {
    order: 1;
    width: 50px;
    height: 50px;
    align-self: center;
  }
  
  .header-text {
    order: 2;
  }
  
  .theme-toggle {
    order: 3;
    align-self: flex-end;
    width: 45px;
    height: 45px;
    position: absolute;
    top: 15px;
    right: 15px;
  }
  
  header h1 {
    font-size: 1.8em;
  }
  
  .category-buttons {
    padding: 15px 10px;
  }
  
  .category-buttons button {
    padding: 10px 16px;
    font-size: 0.9em;
  }
  
  ul {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .category {
    padding: 15px;
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* Footer Styles */
footer {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: 40px 20px 20px 20px;
  border-radius: 25px;
  box-shadow: 
    20px 20px 60px rgba(0, 0, 0, 0.1),
    -20px -20px 60px rgba(255, 255, 255, 0.8),
    inset 2px 2px 10px rgba(255, 255, 255, 0.5);
  animation: footerFloat 8s ease-in-out infinite;
}

@keyframes footerFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-3px); }
}

.footer-content {
  padding: 30px;
  text-align: center;
  color: #2c3e50;
}

.footer-content .creator {
  font-size: 1.1em;
  font-weight: 600;
  margin: 0 0 10px 0;
}

.footer-content .highlight {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.footer-content .highlight:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.footer-content .credits {
  font-size: 0.9em;
  color: #5a6c7d;
  margin: 8px 0 20px 0;
}

.footer-content .credits a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-content .credits a:hover {
  color: #764ba2;
}

.footer-links {
  margin: 20px 0;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px 20px;
  border-radius: 15px;
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.1),
    -8px -8px 16px rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.github-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.github-link:hover::before {
  left: 100%;
}

.github-link:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    12px 12px 24px rgba(0, 0, 0, 0.15),
    -12px -12px 24px rgba(255, 255, 255, 0.9);
  color: #667eea;
}

.github-link svg {
  transition: transform 0.3s ease;
}

.github-link:hover svg {
  transform: rotate(360deg);
}

.kofi-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px 20px;
  border-radius: 15px;
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.1),
    -8px -8px 16px rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
  margin-left: 12px;
}

.kofi-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 183, 77, 0.3), transparent);
  transition: left 0.5s;
}

.kofi-link:hover::before {
  left: 100%;
}

.kofi-link:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    12px 12px 24px rgba(0, 0, 0, 0.15),
    -12px -12px 24px rgba(255, 255, 255, 0.9);
  color: #FF5F5F;
}

.kofi-link svg {
  transition: transform 0.3s ease;
  color: #FF5F5F;
}

.kofi-link:hover svg {
  transform: scale(1.1);
}

/* Dark mode Ko-fi link */
body.dark-mode .kofi-link {
  background: rgba(51, 65, 85, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #e1e5e9;
  box-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.3),
    -8px -8px 16px rgba(51, 65, 85, 0.1);
}

body.dark-mode .kofi-link:hover {
  color: #FF7F7F;
  box-shadow: 
    12px 12px 24px rgba(0, 0, 0, 0.4),
    -12px -12px 24px rgba(51, 65, 85, 0.2);
}

body.dark-mode .kofi-link svg {
  color: #FF7F7F;
}

.footer-content .copyright {
  font-size: 0.8em;
  color: #7a8ca1;
  margin: 20px 0 0 0;
  font-weight: 400;
}

/* Dark mode footer */
body.dark-mode footer {
  background: rgba(30, 41, 59, 0.25);
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: 
    20px 20px 60px rgba(0, 0, 0, 0.3),
    -20px -20px 60px rgba(51, 65, 85, 0.1),
    inset 2px 2px 10px rgba(148, 163, 184, 0.05);
}

body.dark-mode .footer-content {
  color: #e1e5e9;
}

body.dark-mode .footer-content .credits {
  color: #94a3b8;
}

body.dark-mode .footer-content .copyright {
  color: #64748b;
}

body.dark-mode .github-link {
  background: rgba(51, 65, 85, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #e1e5e9;
  box-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.3),
    -8px -8px 16px rgba(51, 65, 85, 0.1);
}

body.dark-mode .github-link:hover {
  color: #60a5fa;
  box-shadow: 
    12px 12px 24px rgba(0, 0, 0, 0.4),
    -12px -12px 24px rgba(51, 65, 85, 0.2);
}

/* Text Selection Styling */
::selection {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
  color: #2c3e50;
  text-shadow: 0 0 8px rgba(102, 126, 234, 0.3);
}

::-moz-selection {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
  color: #2c3e50;
  text-shadow: 0 0 8px rgba(102, 126, 234, 0.3);
}

/* Highlighted Text Elements */
.highlight-text {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid rgba(102, 126, 234, 0.2);
  box-shadow: 
    inset 2px 2px 4px rgba(255, 255, 255, 0.5),
    inset -2px -2px 4px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(102, 126, 234, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.highlight-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.highlight-text:hover::before {
  left: 100%;
}

.highlight-text:hover {
  transform: scale(1.05);
  box-shadow: 
    inset 3px 3px 6px rgba(255, 255, 255, 0.6),
    inset -3px -3px 6px rgba(0, 0, 0, 0.15),
    0 4px 12px rgba(102, 126, 234, 0.2);
}

/* Glowing Text Effect */
.glow-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
  animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
  from {
    filter: brightness(1) drop-shadow(0 0 5px rgba(102, 126, 234, 0.3));
  }
  to {
    filter: brightness(1.2) drop-shadow(0 0 15px rgba(102, 126, 234, 0.6));
  }
}

/* Neumorphic Badge Style */
.neuro-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 600;
  color: #667eea;
  box-shadow: 
    4px 4px 8px rgba(0, 0, 0, 0.1),
    -4px -4px 8px rgba(255, 255, 255, 0.8),
    inset 1px 1px 3px rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  margin: 2px 4px;
}

.neuro-badge:hover {
  transform: translateY(-1px);
  box-shadow: 
    6px 6px 12px rgba(0, 0, 0, 0.15),
    -6px -6px 12px rgba(255, 255, 255, 0.9),
    inset 2px 2px 4px rgba(255, 255, 255, 0.6);
}

/* Gradient Underline Effect */
.gradient-underline {
  position: relative;
  text-decoration: none;
  color: #2c3e50;
  transition: color 0.3s ease;
}

.gradient-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.gradient-underline:hover::after {
  transform: scaleX(1);
}

.gradient-underline:hover {
  color: #667eea;
}

/* Floating Label Effect */
.floating-highlight {
  position: relative;
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.1),
    -8px -8px 16px rgba(255, 255, 255, 0.8);
  transition: all 0.4s ease;
  animation: floatingBounce 3s ease-in-out infinite;
}

@keyframes floatingBounce {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-3px); }
}

.floating-highlight:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 
    12px 12px 24px rgba(0, 0, 0, 0.15),
    -12px -12px 24px rgba(255, 255, 255, 0.9),
    0 10px 30px rgba(102, 126, 234, 0.2);
}

/* Enhanced Link Highlighting for Website Items */
ul li a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 600;
  font-size: 1.1em;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, transparent 0%, transparent 100%);
  padding: 2px 4px;
  border-radius: 6px;
}

/* Dark mode text highlighting */
body.dark-mode .highlight-text {
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  border: 1px solid rgba(79, 172, 254, 0.2);
  box-shadow: 
    inset 2px 2px 4px rgba(51, 65, 85, 0.5),
    inset -2px -2px 4px rgba(0, 0, 0, 0.2),
    0 2px 8px rgba(79, 172, 254, 0.1);
}

body.dark-mode .glow-text {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(79, 172, 254, 0.5);
}

ul li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 6px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: -1;
}

ul li:hover a::before {
  opacity: 1;
  transform: scale(1);
}

ul li:hover a {
  color: #667eea;
  text-shadow: 0 0 8px rgba(102, 126, 234, 0.3);
  transform: translateX(3px);
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #667eea;
  box-shadow: 
    12px 12px 24px rgba(0, 0, 0, 0.1),
    -12px -12px 24px rgba(255, 255, 255, 0.8),
    inset 2px 2px 6px rgba(255, 255, 255, 0.4);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  z-index: 1000;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { 
    box-shadow: 
      12px 12px 24px rgba(0, 0, 0, 0.1),
      -12px -12px 24px rgba(255, 255, 255, 0.8),
      inset 2px 2px 6px rgba(255, 255, 255, 0.4),
      0 0 0 0 rgba(102, 126, 234, 0.4);
  }
  50% { 
    box-shadow: 
      12px 12px 24px rgba(0, 0, 0, 0.1),
      -12px -12px 24px rgba(255, 255, 255, 0.8),
      inset 2px 2px 6px rgba(255, 255, 255, 0.4),
      0 0 0 10px rgba(102, 126, 234, 0.1);
  }
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 
    16px 16px 32px rgba(0, 0, 0, 0.15),
    -16px -16px 32px rgba(255, 255, 255, 0.9),
    inset 3px 3px 8px rgba(255, 255, 255, 0.5),
    0 10px 30px rgba(102, 126, 234, 0.3);
  color: #764ba2;
}

.scroll-to-top:active {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.2),
    -8px -8px 16px rgba(255, 255, 255, 0.7),
    inset 4px 4px 8px rgba(255, 255, 255, 0.3);
}

.scroll-to-top svg {
  transition: transform 0.3s ease;
}

.scroll-to-top:hover svg {
  transform: translateY(-2px);
}

/* Dark mode scroll-to-top button */
body.dark-mode .scroll-to-top {
  background: rgba(51, 65, 85, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #60a5fa;
  box-shadow: 
    12px 12px 24px rgba(0, 0, 0, 0.3),
    -12px -12px 24px rgba(51, 65, 85, 0.1),
    inset 2px 2px 6px rgba(148, 163, 184, 0.1);
}

body.dark-mode .scroll-to-top:hover {
  box-shadow: 
    16px 16px 32px rgba(0, 0, 0, 0.4),
    -16px -16px 32px rgba(51, 65, 85, 0.2),
    inset 3px 3px 8px rgba(148, 163, 184, 0.15),
    0 10px 30px rgba(79, 172, 254, 0.3);
  color: #a78bfa;
}

body.dark-mode .scroll-to-top:active {
  box-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.5),
    -8px -8px 16px rgba(51, 65, 85, 0.1),
    inset 4px 4px 8px rgba(148, 163, 184, 0.08);
}

@keyframes darkPulse {
  0%, 100% { 
    box-shadow: 
      12px 12px 24px rgba(0, 0, 0, 0.3),
      -12px -12px 24px rgba(51, 65, 85, 0.1),
      inset 2px 2px 6px rgba(148, 163, 184, 0.1),
      0 0 0 0 rgba(79, 172, 254, 0.4);
  }
  50% { 
    box-shadow: 
      12px 12px 24px rgba(0, 0, 0, 0.3),
      -12px -12px 24px rgba(51, 65, 85, 0.1),
      inset 2px 2px 6px rgba(148, 163, 184, 0.1),
      0 0 0 10px rgba(79, 172, 254, 0.1);
  }
}

body.dark-mode .scroll-to-top {
  animation: darkPulse 2s ease-in-out infinite;
}

/* Footer responsive design */
@media (max-width: 768px) {
  footer {
    margin: 20px 10px 10px 10px;
  }
  
  .footer-content {
    padding: 20px 15px;
  }
  
  .footer-content .creator {
    font-size: 1em;
  }
  
  .github-link {
    padding: 10px 16px;
    font-size: 0.9em;
  }
  
  .kofi-link {
    padding: 10px 16px;
    font-size: 0.9em;
    margin-left: 8px;
    margin-top: 10px;
  }
  
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  
  .highlight-text {
    padding: 2px 6px;
    font-size: 0.9em;
  }
  
  .floating-highlight {
    padding: 4px 8px;
    font-size: 0.9em;
  }
  
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  
  .scroll-to-top svg {
    width: 20px;
    height: 20px;
  }
}
