/* latin-ext */
@font-face {
    font-family: 'Lato';
    font-style: italic;
    font-weight: 400;
    src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAUi-qNiXg7eU0.woff2) format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  /* latin */
  @font-face {
    font-family: 'Lato';
    font-style: italic;
    font-weight: 400;
    src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAXC-qNiXg7Q.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  /* latin-ext */
  @font-face {
    font-family: 'Lato';
    font-style: italic;
    font-weight: 700;
    src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_FQftx9897sxZ.woff2) format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  /* latin */
  @font-face {
    font-family: 'Lato';
    font-style: italic;
    font-weight: 700;
    src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_Gwftx9897g.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  /* latin-ext */
  @font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2) format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  /* latin */
  @font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjx4wXiWtFCc.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  /* latin-ext */
  @font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.woff2) format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  /* latin */
  @font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  
a {
    color: #1772d0;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}
  
a:hover {
    color: #f09228;
    text-decoration: none;
    transform: translateY(-1px);
}

a:not(.pub-name):not(.navigation > ul > li > a)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, #1772d0, #f09228);
    transition: width 0.3s ease;
}

a:not(.pub-name):not(.navigation > ul > li > a):hover::after {
    width: 100%;
}
  
a.pub-name:hover {
  color: #f09228;
  text-decoration: none;
  transform: translateX(2px);
}
  
body,
  td,
  th,
  tr,
  p,
  a {
    font-family: 'Lato', 'Segoe UI', Verdana, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: #2c3e50;
}
  

strong {
    font-family: 'Lato', Verdana, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 700;
}
  


  /* general style for main page */
  html {
    scroll-behavior: smooth;
  }
  
  body {
    width: 100%;
    max-width: 1000px;
    margin: auto;
    padding: 50px 60px;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    min-height: 100vh;
  }

  .name {
    font-family: 'Lato', Verdana, Helvetica, sans-serif;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #1772d0 0%, #1a8ae6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    animation: fadeInUp 0.8s ease-out;
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .block {
    padding: 18px;
    text-align: justify;
    animation: fadeIn 0.6s ease-out;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

.introduction {
    overflow:hidden;
    background: linear-gradient(135deg, rgba(23, 114, 208, 0.03) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(23, 114, 208, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(23, 114, 208, 0.1);
    transition: all 0.4s ease;
}

.introduction:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(23, 114, 208, 0.12);
}

.introduction img {
    box-shadow: 0 8px 24px rgba(23, 114, 208, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 4px solid rgba(255, 255, 255, 0.9);
}

.introduction img:hover {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 12px 32px rgba(23, 114, 208, 0.3);
}

.navigation {
    font-size: 20px;
    display: block;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    padding: 18px 0;
    margin: -50px -60px 0 -60px;
    padding-left: 60px;
    padding-right: 60px;
    box-shadow: 0 4px 20px rgba(23, 114, 208, 0.08);
    border-bottom: 2px solid rgba(23, 114, 208, 0.1);
    transition: all 0.3s ease;
}

.navigation > ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.navigation > ul > li {
    display: inline;
    font-size: 18px;
    padding-right: 8%;
}

.navigation > ul > li > a {
    padding: 10px 18px;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 2px solid transparent;
    border-radius: 8px;
    position: relative;
    font-weight: 500;
}

.navigation > ul > li > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1772d0, #f09228);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navigation > ul > li > a:hover {
    color: #1772d0;
    background: rgba(23, 114, 208, 0.05);
    transform: translateY(-2px);
}

.navigation > ul > li > a:hover::before {
    width: 80%;
}

.navigation > ul > li > a.active {
    color: #1772d0;
    border-bottom: 2px solid #1772d0;
    font-weight: 600;
}

.divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(23, 114, 208, 0.2) 20%, 
        rgba(23, 114, 208, 0.4) 50%, 
        rgba(23, 114, 208, 0.2) 80%, 
        transparent 100%);
    margin: 50px 0;
    border: none;
    position: relative;
    overflow: hidden;
}

.divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.6), 
        transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.heading {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding-top: 15px;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #1772d0 0%, #1a8ae6 50%, #f09228 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    animation: fadeInLeft 0.8s ease-out;
}

.heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #1772d0, #f09228);
    border-radius: 2px;
    animation: expandWidth 0.8s ease-out 0.3s both;
}

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

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 60px;
    }
}

.research-proj {
  overflow: hidden;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(23, 114, 208, 0.08);
  border: 1px solid rgba(23, 114, 208, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.research-proj::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #1772d0, #f09228);
  transform: scaleY(0);
  transition: transform 0.4s ease;
  transform-origin: top;
}

.research-proj:hover {
  box-shadow: 0 8px 32px rgba(23, 114, 208, 0.15);
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(23, 114, 208, 0.2);
}

.research-proj:hover::before {
  transform: scaleY(1);
}

.research-proj .research-thumbnail {
  width: 25%;
  display: table-cell;
  vertical-align: middle;
}

.research-proj .research-summary {
  display: table-cell;
  vertical-align: middle;
  width: 75%;

}

.research-proj .pub-name {
  color:rgb(22, 91, 170);
  font-size: 16px;
  padding: 0px 0px 8px 0px;
  display: inline-block;
  font-weight: 700;
  transition: all 0.3s ease;
  line-height: 1.4;
  position: relative;
}

.research-proj .pub-name::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #1772d0, #f09228);
  transition: width 0.3s ease;
}

.research-proj .pub-name:hover {
  color: #1772d0;
  transform: translateX(3px);
}

.research-proj .pub-name:hover::after {
  width: 100%;
}

.research-proj .pub-author {
  padding: 0px 0px 5px 0px;
  display: block;
}

.research-proj .pub-venue {
  padding: 0px 0px 5px 0px;
  display: block;
  font-style: italic;
}

.research-proj .pub-info > a {
  padding-right: 10px;
}

.research-proj .pub-intro {
  line-height: 1.9;
  color: #444;
  font-size: 15px;
  margin-top: 8px;
  text-align: justify;
}

.pubs-text {
  line-height: 1.5; /* Increases spacing between lines */
  font-size: 15px; /* Optional: Adjusts font size for readability */

}

.list-group {
  margin-bottom: 15px; /* Adds space between groups of lists */

}

.list-group ul {
  margin-left: 20px; /* Indents nested lists */
  margin-bottom: 10px; /* Adds space between nested lists */
  font-size: 15px; /* Optional: Adjusts font size for readability */

}

.list-group li {
  margin-bottom: 5px; /* Adds space between individual list items */
  
}

.intro-text {
  line-height: 1.5; /* Increases spacing between lines */
  margin-bottom: 20px; /* Optional: Adds space below the paragraph */
  font-size: 14px; /* Optional: Adjusts font size for readability */
}


.pubs-text strong {
  font-size: 14px; /* Set a larger font size for country names */
  font-weight: bold; /* Ensure the text remains bold */
  display: block; /* Make the country name occupy its own line */
  margin-top: 10px; /* Add space above the country name */
}

ol {
  list-style-type: decimal; /* Ensures numbers are shown */
  margin-left: 20px; /* Adds spacing to align with the content */
}

li {
  margin-bottom: 5px; /* Adds spacing between each list item */
}

ul li a {
  font-size: inherit; /* Ensures the font size matches the parent element */
  text-decoration: none; /* Removes underlines (optional) */
}

ul li {
  font-size: 15px; /* Set your desired normal font size */
  line-height: 1.7; /* Improves readability */
}

/* Professional focus states for accessibility */
*:focus {
  outline: 3px solid rgba(23, 114, 208, 0.4);
  outline-offset: 3px;
  border-radius: 4px;
}

a:focus {
  outline: 3px solid rgba(23, 114, 208, 0.4);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Selection color */
::selection {
  background: rgba(23, 114, 208, 0.2);
  color: #1772d0;
}

::-moz-selection {
  background: rgba(23, 114, 208, 0.2);
  color: #1772d0;
}

/* Print-friendly styles */
@media print {
  .navigation {
    position: static;
    box-shadow: none;
  }
  
  .research-proj {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
  
  .introduction img:hover,
  .research-proj:hover {
    transform: none;
    box-shadow: none;
  }
}

/* Responsive Design */

/* Tablet (768px - 1024px) */
@media screen and (max-width: 1024px) {
  body {
    padding: 40px 40px;
  }
  
  .navigation {
    margin: -40px -40px 0 -40px;
    padding-left: 40px;
    padding-right: 40px;
  }
  
  .name {
    font-size: 34px;
  }
  
  .heading {
    font-size: 26px;
  }
}

/* Mobile (< 768px) */
@media screen and (max-width: 768px) {
  body {
    padding: 25px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
  }
  
  .navigation {
    margin: -25px -20px 0 -20px;
    padding: 12px 20px;
    backdrop-filter: blur(15px);
  }
  
  .navigation > ul > li {
    display: block;
    padding: 8px 0;
    text-align: center;
  }
  
  .navigation > ul > li > a {
    display: block;
    padding: 10px;
    border-radius: 8px;
  }
  
  .name {
    font-size: 32px;
  }
  
  .heading {
    font-size: 26px;
  }
  
  .heading::after {
    width: 40px;
  }
  
  body,
  td,
  th,
  tr,
  p,
  a {
    font-size: 14px;
  }
  
  .block {
    padding: 12px;
  }
  
  .divider {
    margin: 30px 0;
  }
  
  .introduction {
    flex-direction: column !important;
    padding: 20px !important;
    border-radius: 16px !important;
  }
  
  .introduction > div {
    width: 100% !important;
    float: none !important;
    text-align: center;
  }
  
  .introduction img {
    position: static !important;
    transform: none !important;
    margin: 0 auto 20px auto;
    width: 180px !important;
    height: 180px !important;
  }
  
  .research {
    padding: 20px !important;
    border-radius: 12px !important;
  }
  
  .research-proj {
    padding: 18px;
    margin-bottom: 20px;
    border-radius: 12px;
  }
  
  .research-proj:hover {
    transform: translateY(-3px) scale(1);
  }
  
  .research-proj .research-thumbnail {
    width: 100%;
    display: block;
    margin-bottom: 15px;
  }
  
  .research-proj .research-summary {
    width: 100%;
    display: block;
  }
}

/* Small Mobile (< 480px) */
@media screen and (max-width: 480px) {
  body {
    padding: 20px 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
  }
  
  .navigation {
    margin: -20px -15px 0 -15px;
    padding: 10px 15px;
    backdrop-filter: blur(15px);
  }
  
  .name {
    font-size: 28px;
  }
  
  .heading {
    font-size: 24px;
  }
  
  .heading::after {
    width: 35px;
  }
  
  .introduction {
    padding: 15px !important;
  }
  
  .research {
    padding: 15px !important;
  }
  
  .research-proj {
    padding: 14px;
    border-radius: 10px;
  }
  
  .research-proj .pub-name {
    font-size: 15px;
  }
  
  .research-proj .pub-intro {
    font-size: 14px;
  }
}

 /****************/

/* Dark Mode Toggle Button */
.dark-mode-toggle-li {
  float: right !important;
  padding-right: 0 !important;
}

.dark-mode-toggle {
  background: none;
  border: 2px solid rgba(23, 114, 208, 0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.dark-mode-toggle:hover {
  background: rgba(23, 114, 208, 0.1);
  border-color: #1772d0;
  transform: rotate(20deg) scale(1.1);
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.site-footer {
  margin-top: 60px;
  padding: 40px 20px 30px;
  text-align: center;
  border-top: 2px solid rgba(23, 114, 208, 0.15);
  position: relative;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-links a {
  font-size: 15px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-links a:hover {
  background: rgba(23, 114, 208, 0.08);
  transform: translateY(-2px);
}

.footer-credit {
  font-size: 13px;
  color: #888;
  margin-bottom: 4px;
}

.footer-copyright {
  font-size: 13px;
  color: #aaa;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1772d0, #1a8ae6);
  color: white;
  border: none;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(23, 114, 208, 0.3);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 24px rgba(23, 114, 208, 0.4);
}

/* ========== DARK MODE ========== */
.dark-mode {
  background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%) !important;
}

.dark-mode,
.dark-mode td,
.dark-mode th,
.dark-mode tr,
.dark-mode p,
.dark-mode a {
  color: #c9d1d9;
}

.dark-mode a {
  color: #58a6ff;
}

.dark-mode a:hover {
  color: #f09228;
}

.dark-mode .name {
  background: linear-gradient(135deg, #58a6ff 0%, #79c0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark-mode .heading {
  background: linear-gradient(135deg, #58a6ff 0%, #79c0ff 50%, #f09228 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark-mode .navigation {
  background: rgba(15, 20, 25, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-bottom: 2px solid rgba(88, 166, 255, 0.15);
}

.dark-mode .navigation > ul > li > a:hover {
  color: #58a6ff;
  background: rgba(88, 166, 255, 0.1);
}

.dark-mode .navigation > ul > li > a.active {
  color: #58a6ff;
  border-bottom-color: #58a6ff;
}

.dark-mode .divider {
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(88, 166, 255, 0.2) 20%, 
    rgba(88, 166, 255, 0.4) 50%, 
    rgba(88, 166, 255, 0.2) 80%, 
    transparent 100%);
}

.dark-mode .introduction {
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.05) 0%, rgba(26, 31, 46, 0.8) 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border-color: rgba(88, 166, 255, 0.15);
}

.dark-mode .introduction:hover {
  box-shadow: 0 12px 40px rgba(88, 166, 255, 0.15);
}

.dark-mode .research-proj {
  background: linear-gradient(135deg, #161b22 0%, #1a1f2e 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(88, 166, 255, 0.1);
}

.dark-mode .research-proj:hover {
  box-shadow: 0 8px 32px rgba(88, 166, 255, 0.15);
  border-color: rgba(88, 166, 255, 0.25);
}

.dark-mode .research-proj .pub-name {
  color: #58a6ff;
}

.dark-mode .research-proj .pub-intro {
  color: #8b949e;
}

.dark-mode strong {
  color: #e6edf3;
}

.dark-mode span {
  color: #c9d1d9 !important;
}

.dark-mode .research-proj span {
  color: #c9d1d9 !important;
}

.dark-mode .research-proj .pub-name {
  color: #58a6ff !important;
}

.dark-mode h3,
.dark-mode h2,
.dark-mode h1,
.dark-mode li,
.dark-mode ol,
.dark-mode ul {
  color: #c9d1d9;
}

.dark-mode .dark-mode-toggle {
  border-color: rgba(88, 166, 255, 0.3);
  color: #f0c040;
}

.dark-mode .dark-mode-toggle:hover {
  background: rgba(88, 166, 255, 0.1);
  border-color: #58a6ff;
}

.dark-mode .site-footer {
  border-top-color: rgba(88, 166, 255, 0.15);
}

.dark-mode .footer-links a:hover {
  background: rgba(88, 166, 255, 0.1);
}

.dark-mode .footer-credit,
.dark-mode .footer-copyright {
  color: #484f58;
}

.dark-mode .back-to-top {
  background: linear-gradient(135deg, #58a6ff, #79c0ff);
  box-shadow: 0 4px 16px rgba(88, 166, 255, 0.3);
}

.dark-mode ::selection {
  background: rgba(88, 166, 255, 0.3);
  color: #58a6ff;
}

/* 404 Page */
.error-page {
  text-align: center;
  padding: 80px 20px;
}

.error-page h1 {
  font-size: 120px;
  font-weight: 700;
  background: linear-gradient(135deg, #1772d0, #f09228);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  line-height: 1;
}

.error-page p {
  font-size: 18px;
  color: #666;
  margin-bottom: 30px;
}

.error-page a {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(135deg, #1772d0, #1a8ae6);
  color: white !important;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.error-page a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(23, 114, 208, 0.3);
}

/* Footer Icons */
.footer-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 6px;
  margin-top: -2px;
  transition: transform 0.3s ease;
}

.footer-links a:hover .footer-icon {
  transform: scale(1.1);
}