::-webkit-scrollbar {
  width: 3px;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb,
::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.6);
}

body {
  color: #ffffff99;
  font-family: "Poppins", sans-serif;
  font-family: "Nunito", sans-serif;
  margin: 0;
  background: rgb(18, 18, 25);
}

/* body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(248, 248, 255, 0.05), transparent);
    backdrop-filter: blur(8px);
  } */

body.light-mode {
  background: rgb(213, 213, 220);
  color: black;
}

.dark-bg {
  background: rgba(26, 29, 41, 0.792);
  backdrop-filter: blur(3px);
}

.light-mode .dark-bg {
  background: rgba(235, 238, 250, 0.792);
  backdrop-filter: blur(3px);
}

.light-mode .navbar-dark {
  color: black;
}

nav {
  margin: 20px 8%;
  left: 0;
  right: 0;
  border-radius: 1rem;
  box-shadow: 0 3px 5px rgba(26, 29, 41, 0.5);
  transition: all 0.3s ease-in-out;
  color: inherit !important;
}

nav.scrolled {
  margin: 20px auto;
  margin-top: -5px;
  border-radius: 0 0 1rem 1rem;
  transition: all 0.3s ease-in-out;
}

nav .nav-item .nav-link {
  transition: all 0.2s ease-in-out;
  position: relative;
  text-align: left;
}

nav .active::after {
  content: "";
  border-bottom: 2px solid white;
  width: 30px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
}

.light-mode nav .active::after {
  border-bottom: 2px solid black;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

@media (max-width: 992px) {
  nav .active::after {
    position: absolute;
    left: 5px;
  }
}

nav .active,
#time:hover,
#time-icon:hover {
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
}

.navbar-toggler,
.navbar-toggler:active,
.navbar-toggler:focus,
.navbar-toggler:hover,
.btn-close {
  border-style: none !important;
  outline: none !important;
  box-shadow: none !important;
}

#home buttons::before {
  content: "";
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  width: 20%;
  max-width: 80%;
  display: block;
  margin: 10px auto;
}

.light-mode #home buttons::before {
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

#home button {
  padding: 5px 24px;
  margin: 5px 1px;
  color: inherit;
  border-radius: 0.5rem;
  border: solid 3px transparent;
  outline: none;
  transition: all 0.2s;
  box-shadow: 0 3px 5px rgba(26, 29, 41, 0.5);
}

.light-mode #home button {
  box-shadow: 0 3px 3px rgba(26, 29, 41, 0.2);
}

#home button:hover {
  background: rgba(26, 29, 41, 0.3);
  border-color: #212637;
}

.light-mode #home button:hover {
  background: #dde4ff4d;
  border-color: #ecf0ff;
}

#home .pfp {
  margin-bottom: 20px;
  border-radius: 3rem;
  box-shadow: 0 3px 520px rgba(96, 106, 133, 0.3), 0 3px 5px rgba(0, 0, 0, 0.3);
}

.dropdown-menu,
.dropdown-item {
  color: inherit;
  transition: all 0.15s ease-in-out;
}

.dropdown-item:hover {
  background: rgba(0, 0, 0, 0.1);
  color: inherit;
}

.modal-header,
.modal-body,
.modal-footer {
  border-style: none;
  text-align: center;
}

.modal-content {
  border-color: rgba(255, 255, 255, 0.125);
}

.modal-backdrop {
  /* Customize background color */
  background-color: rgba(0, 0, 0, 0.4) !important;
}

.buton,
.form-text {
  background: transparent;
  border-style: none;
  color: inherit;
}

.disabled {
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

.send {
  background: rgb(34, 38, 56);
  padding: 5px 30px;
  border-radius: 0.5rem;
  transition-duration: 0.2s;
}

.send:hover {
  background: rgba(34, 38, 56, 0.6);
}

.light-mode .send {
  background: rgb(217, 223, 246);
}

.light-mode .send:hover {
  background: rgba(217, 223, 246, 0.6);
}

.form,
.form:focus {
  border-radius: 0;
  width: 95%;
  margin: 0 auto;
  background: transparent;
  border-style: none;
  border-bottom-style: solid;
  border-color: rgba(255, 255, 255, 0.2);
  color: inherit !important;
  box-shadow: none !important;
}

.light-mode .form {
  border-color: rgba(0, 0, 0, 0.2);
}

.form:focus {
  border-color: rgba(255, 255, 255, 0.8);
}

.light-mode .form:focus {
  border-color: rgba(0, 0, 0, 0.8);
}

.required::after {
  content: "*";
  color: rgba(255, 0, 0, 0.8);
  font-style: normal;
}

#time,
#time-icon {
  padding: 8px 16px;
  border-radius: 0.5rem;
  box-shadow: 0 3px 5px rgba(26, 29, 41, 0.5);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  display: inline-block;
  z-index: 99;
}

.time-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99;
}

.toast-containerr {
  position: fixed;
  padding: 10px;
  width: 400px;
  height: 80%;
  bottom: 0;
  right: 0;
  display: flex;
  flex-direction: column-reverse;
  pointer-events: none;
}

#toast {
  visibility: hidden;
  min-width: 225px;
  max-width: 100%;
  border-radius: 0.5rem;
  background-color: #21263750;
  border: 1px solid #21263784;
  padding: 12px;
  position: relative;
  z-index: 2;
  margin: 10px 0;
  padding-right: 40px;
  word-wrap: break-word;
}

.toast-close {
  position: absolute;
  cursor: pointer;
  right: 12px;
  background: transparent;
  color: inherit;
  border-style: none;
  cursor: pointer;
  padding: 0 10px;
}

#toast.show {
  visibility: visible;
  animation: fadein 0.5s;
}

#toast.hide {
  animation: fadeout 0.5s;
}

#toast.success {
  background-color: #2bbb7132;
  border: 1px solid #2bbb7168;
  color: inherit;
}

.success-icon,
.error-icon {
  display: none;
}

#toast.success .success-icon,
#toast.error .error-icon {
  display: inline-block;
  margin: 5px;
}

.spinner-icon {
  display: none;
}

#toast:not(.success):not(.error) .spinner-icon {
  display: inline-block;
  margin: 5px;
}

#toast.error {
  background-color: #bb2b2b32;
  border: 1px solid #bb2b2b68;
  color: inherit;
}

@-webkit-keyframes fadein {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

@-webkit-keyframes fadeout {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100px);
    opacity: 0;
  }
}

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

#about .big-container {
  background: rgba(26, 29, 41, 0.314);
  box-shadow: 0 4px 8px rgb(15, 15, 22), 0 0 12px #1a1d2950;
  width: auto;
  margin: 0 3%;
  padding: 50px 6%;
  border-radius: 1rem;
  display: flex;
}

.light-mode #about .big-container {
  background: rgba(246, 246, 255, 0.314);
  box-shadow: 0 3px 3px #1a1d2950;
}

#about .big-container .small-container {
  float: right;
  margin: 0 32px;
  padding: 10px;
  display: grid;
  align-self: flex-end;
}

#about .big-container .small-container img {
  grid-row: 1;
  padding: 20px 10px;
}
#about .big-container .small-container img,
#about .big-container .small-container a {
  background: #11111a28;
  border-radius: 0.5rem;
  width: 100%;
  margin: 8px 0;
  border: 1px solid #1e2231;
}

.light-mode #about .big-container .small-container img,
.light-mode #about .big-container .small-container a {
  background: #dcdce8;
  border: 1px solid #babad0;
}

#about .big-container .small-container a {
  text-decoration: none;
  text-align: center;
  color: inherit;
  padding: 8px 0;
  grid-row: 2;
}

.pill {
  background: #11111a;
  border-radius: 0.5rem;
  padding: 5px 10px;
  width: auto;
  display: inline-block;
  border: 1px solid #1e2231;
  margin: 4px 2px;
}

.light-mode .pill {
  background: #dcdce8;
  border: 1px solid #babad0;
}

.pill .fa-light {
  background: #1e2231;
  padding: 5px;
  border-radius: 0.3rem;
  margin-right: 5px;
  color: rgba(255, 255, 255, 0.36);
}

.light-mode .pill .fa-light {
  background: #babad0;
  color: rgba(0, 0, 0, 0.7);
}

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1e2231;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

#loading-screen:after {
  content: "";
  width: 60px;
  height: 60px;
  border: 6px dotted #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.card {
  background: #1a1d2950;
  border-radius: 0.8rem;
  box-shadow: 0 4px 8px rgb(15, 15, 22), 0 0 12px #1a1d2950;
  transition: all 0.2s ease-in-out;
  color: inherit;
  text-decoration: none;
}

.light-mode .card {
  background: #f6f7ff50;
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.1);
}

a.card:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: translateY(-5px);
}

.small-image {
  width: auto;
  margin-right: 20px;
}

.sec-title-wrapper {
  display: flex;
  align-items: center;
}

.sec-title-wrapper .heading {
  margin: 20px 0;
}

.sec-title-wrapper .separator {
  flex-grow: 1;
  height: 1px;
  background-color: #ffffff06;
}

.sec-title-wrapper .separator.left {
  margin-right: 32px;
}

.sec-title-wrapper .separator.right {
  margin-left: 32px;
}

.stats-container {
  display: inline-flex;
  flex-direction: row;
  justify-content: space-evenly;
  text-align: center;
  padding: 10px 0;
  width: 100%;
  border-radius: 1rem;
}

.stats {
  margin: 10px 0;
}

.stats h1 {
  font-weight: bold;
  text-shadow: 0 1px 5px rgba(255, 255, 255, 0.3);
}

.sub {
  opacity: 0.6;
}

.footer {
  background: rgba(10, 10, 19, 0.6);
  text-align: center;
  padding: 30px;
  padding-top: 50px;
  margin-top: 100px;
  border-top: rgba(255, 255, 255, 0.1) 1px solid;
}

.light-mode .footer {
  background: rgba(245, 245, 250, 0.6);
  border-top: rgba(0, 0, 0, 0.3) 2px solid;
}

.footer h3 {
  font-size: 24px;
  margin-bottom: 20px;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer ul li {
  display: inline-block;
  padding: 20px auto;
}

.footer .footer-button {
  border-radius: 0.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#scroll-indicator {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

#scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

#scroll-indicator i {
  font-size: 1rem;
  color: inherit;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

#scroll-indicator .label {
  position: absolute;
  bottom: 20px;
  left: -100%;
  transform: translateX(-50%);
}

.blink {
  animation: blink-animation 3s ease-in-out infinite;
}

@keyframes blink-animation {
  0% {
    opacity: 0.2;
    transform: translateY(-5px);
  }
  50% {
    opacity: 0.6;
    transform: translateY(0px);
  }
  100% {
    opacity: 0.2;
    transform: translateY(-5px);
  }
}

#projects .card {
  padding: 20px 6%;
  margin-bottom: 20px;
}

#projects .card .icon {
  padding: 12px;
  background: rgba(190, 190, 255, 0.1);
  border-radius: 1rem;
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
}

#projects .card a {
  color: inherit;
}
