/*--------------------------------------------------------------
# Light Mode
--------------------------------------------------------------*/
body {
    background-color: #fff;
    color: #121212;
    transition: background-color 0.3s, color 0.3s;
  }
  
  .toggle-container {
    position: relative;
    align-items: center;
  }

  #toggle-text {
    position: relative;
    top: 10px;
    color: #161B40;
  }
  
  .switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
  }
  
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #161B40;
    transition: 0.5s;
    border-radius: 34px;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.5s;
    border-radius: 50%;
  }
  
  input:checked + .slider {
    background-color: #121212;
  }
  
  input:checked + .slider:before {
    transform: translateX(26px);
  }

  #sun-icon, #moon-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    transition: opacity 0.4s;
}

#sun-icon {
    left: 7.3px;
    color: #f39c12;
    opacity: 1;
}

#moon-icon {
    right: 6px;
    color: #f1c40f;
    opacity: 0;
}

input:checked + .slider #sun-icon {
    opacity: 0;
}

input:checked + .slider #moon-icon {
    opacity: 1;
}

/*--------------------------------------------------------------
# Dark Mode
--------------------------------------------------------------*/
  body.dark-mode {
    background-color: #121212;
    color: #fff;
  }

  body.dark-mode #toggle-text {
    color: #fff;
  }

  body.dark-mode .slider:before {
    background-color: #121212;
  }

  body.dark-mode input:checked + .slider {
    background-color: #fff;
  }

  /*--------------------------------------------------------------
  # Stars
  --------------------------------------------------------------*/
  .stars {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1000;
    pointer-events: none;
  }

  body.dark-mode .stars {
      display: block;
  }

  .stars::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 200%;
      height: 200%;
      background: transparent url('https://www.transparenttextures.com/patterns/stardust.png') repeat top left;
      animation: moveStars 120s linear infinite;
      filter: saturate(0%) brightness(1000%);
  }

  @keyframes moveStars {
      from {
          transform: translate3d(0, 0, 0);
      }
      to {
          transform: translate3d(-50%, -50%, 0);
      }
  }

/*--------------------------------------------------------------
# Scroll Bar
--------------------------------------------------------------*/
body.dark-mode ::selection {
  color: #121212;
  background: #fff;
}
  
body.dark-mode ::-webkit-scrollbar {
    width: 5px;
    height: 5px;
  }

  body.dark-mode ::-webkit-scrollbar-track {
    background: #5A5A5A;
  }

  body.dark-mode ::-webkit-scrollbar-thumb {
    background: #f2f2f2;
    border-radius: 6px;
  }

  body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #161B40;
  }

  body.dark-mode * {
    scrollbar-width: thin;
    scrollbar-color: #f2f2f2 #161B40;
  }
  
  body.dark-mode body {
    scrollbar-width: thin;
    scrollbar-color: #f2f2f2 #161B40;
  }

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
  body.dark-mode .progress-circle circle {
    stroke: #fff;
  }

  body.dark-mode .back-to-top {
    background: transparent;
  }

  body.dark-mode .back-to-top:hover,
  body.dark-mode .back-to-top:active {
      background: transparent;
      color: #121212;
    }
  
  body.dark-mode .back-to-top i {
    color: #fff;
  }
  
  body.dark-mode .back-to-top:hover i {
    color: #5A5A5A;
  }

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
  body.dark-mode #preloader {
    background: #121212;
  }

  body.dark-mode #preloader img{
    filter: saturate(0%) brightness(1000%);
  }

  body.dark-mode #loading-counter {
    color: #fff;
  }

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
  body.dark-mode  .nav-menu a:hover,
  body.dark-mode .nav-menu .active,
  body.dark-mode .nav-menu .active:focus,
  body.dark-mode .nav-menu li:hover>a {
    color: #fff;
    background: #5A5A5A;
  }

  body.dark-mode .mobile-nav-toggle {
    color: #fff;
    background-color: transparent;
  }
  
/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/  
  body.dark-mode #hero {
    filter: grayscale(10%);
  }

  body.dark-mode #hero p {
    color: #5A5A5A;
  }

  body.dark-mode #hero h1 {
    color: #121212;
  }

  body.dark-mode #hero p span {
    color: #121212;
  }

  body.dark-mode #hero .social-links a {
    color: #121212;
  }

  body.dark-mode #hero .social-links a:hover {
    color: #fff;
  }

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/  
  body.dark-mode .section-title h2 {
    color: #fff;
  }
  
  body.dark-mode .section-title h2::after {
    background: #fff;
  }

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
  body.dark-mode .about .content h3 {
    color: #fff;
  }

  body.dark-mode .about .content ul i {
    color: #fff;
  }
  
/*--------------------------------------------------------------
# Facts
--------------------------------------------------------------*/
  body.dark-mode .facts .count-box {
    background: transparent;
  }

  body.dark-mode .facts .count-box i {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
  }

  body.dark-mode .facts .count-box span {
    color: #fff;
  }

/*--------------------------------------------------------------
# Skills
--------------------------------------------------------------*/  
  body.dark-mode .skills .progress .skill  {
    color: #fff;
  }

  body.dark-mode .skills .progress-bar-wrap {
    background: #5A5A5A;
  }

  body.dark-mode .skills .progress-bar {
    background-color: #fff;
  }
  
/*--------------------------------------------------------------
# Resume
--------------------------------------------------------------*/  
  body.dark-mode .resume .resume-title {
    color: #fff;
  }

  body.dark-mode .btn-download {
    background: transparent;
    color: #fff;
    border: 2px solid #5A5A5A;
  }
  
  body.dark-mode .btn-download:hover,
  body.dark-mode .btn-download:active {
    background: #5A5A5A !important;
    border-color: #fff !important;
    color: #fff;
  }

  body.dark-mode .resume .resume-item h5 {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
  }

  body.dark-mode .resume-item h4 {
    color: #fff;
  }

  body.dark-mode .resume .resume-item {
    border-left: 2px solid #fff;
  }
  
  body.dark-mode .resume .resume-item::before {
    background: #121212;
    border: 2px solid #fff;
  }

/*--------------------------------------------------------------
# Certification
--------------------------------------------------------------*/
  body.dark-mode .cert-item {
    background-color: transparent;
    border: 1px solid #fff;
  }

  body.dark-mode .cert-content h3 {
    color: #fff;
  }
  
  body.dark-mode .cert-content p {
    color: #5A5A5A;
  }
  
  body.dark-mode .cert-content a {
    color: #fff;
  }
  
  body.dark-mode .cert-content a:hover {
    color: #5A5A5A;
  }

  body.dark-mode .btn-view-more {
    background: transparent;
    color: #fff;
  }
  
/*--------------------------------------------------------------
# Portfolio
--------------------------------------------------------------*/
  body.dark-mode #portfolio-flters {
    background: transparent;
  }

  body.dark-mode #portfolio-flters li {
    color: #fff;
  }

  body.dark-mode .portfolio #portfolio-flters li:hover,
  body.dark-mode .portfolio #portfolio-flters li.filter-active {
    color: #121212;
    background-color: #fff;
  }

/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/
  body.dark-mode .services .icon-box {
    background: transparent;
    border: 1px solid #fff;
  }

  body.dark-mode .services .icon-box h4 a {
    color: #fff;
  }

/*--------------------------------------------------------------
# Testimonials
--------------------------------------------------------------*/
  body.dark-mode .testimonials .testimonial-item h3 {
    color: #fff;
  }

  body.dark-mode .testimonials .testimonial-item h4 {
    color: #fff;
  }

  body.dark-mode .testimonials .testimonial-item .quote-icon-left,
  body.dark-mode .testimonials .testimonial-item .quote-icon-right {
    color: #5A5A5A;
  }

  body.dark-mode .testimonials .swiper-pagination .swiper-pagination-bullet {
    background-color: #121212;
    border: 1px solid #fff;
  }

  body.dark-mode .testimonials .swiper-pagination .swiper-pagination-bullet-active {
    background-color: #fff;
  }

  /*--------------------------------------------------------------
  # Payment Methods
  --------------------------------------------------------------*/
  body.dark-mode .payment .payment-methods svg:hover {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity));
  }

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
  body.dark-mode .contact .info {
    background: transparent;
  }

  body.dark-mode .contact .info i {
    color: #fff;
  }

  body.dark-mode .contact .info i {
    color: #fff;
    background-color: #5A5A5A;
  }

  body.dark-mode .contact .info h4 {
    color: #fff;
  }

  body.dark-mode .contact .info p {
    color: #fff;
  }

  body.dark-mode .contact .info .email:hover i,
  body.dark-mode .contact .info .address:hover i,
  body.dark-mode .contact .info .phone:hover i {
    background: transparent;
    color: #fff;
  }

  body.dark-mode input::placeholder,
  body.dark-mode textarea::placeholder {
    color: #fff;
  }
  
  body.dark-mode .form-control {
    background-color: transparent;
    border-color: #5A5A5A;
  }

  body.dark-mode .form-control:active, body.dark-mode .form-control:focus {
    border-color: #fff;
  }

  body.dark-mode .contact .contact-form textarea {
    color: #fff;
  }

  body.dark-mode input[type="text"] {
    color: #fff;
  }

  body.dark-mode input[type="email"] {
    color: #fff;
  }
  
  body.dark-mode .btn-primary {
    background: transparent;
    color: #fff;
    border: 2px solid #5A5A5A;
  }

  body.dark-mode .btn-primary:hover:active {
    background: #5A5A5A !important;
    border-color: #fff !important;
    color: #fff;
  }

  body.dark-mode .btn-primary:hover:not(:active) {
    background: #5A5A5A !important;
    border-color: #fff !important;
    color: #fff;
  }

  body.dark-mode #footer {
    background: #5A5A5A;
    color: #121212;
  }

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
  body.dark-mode .footer-logo img {
    filter: saturate(0%) brightness(1000%);
  }

  body.dark-mode #footer h3 {
    color: #fff;
  }

  body.dark-mode #footer p {
    color: #fff;
  }

  body.dark-mode #footer .social-links a {
    background: transparent;
    color: #fff;
  }

  body.dark-mode #footer a {
    color: #fff;
  }

  body.dark-mode #footer a:hover {
    color: #121212;
  }

  body.dark-mode #footer .social-links a:hover {
    background: #121212;
    color: #fff;
  }

  body.dark-mode #footer .copyright {
    color: #fff;
  }

  body.dark-mode #footer .credits {
    color: #fff;
  }