@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

.hidden {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}


* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

p {
  color: rgb(85, 85, 85);
}

a,
.btn {
  transition: all 300ms ease;
}

nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 15vh;
  background-color: var(--nav-bg);
  transition: background-color 0.3s ease;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

a {
  color: var(--text-color);
  text-decoration: none;
  text-decoration-color: white;
  position: relative;
  transition: color 0.3s ease;
}

a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: rgb(181, 181, 181);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

a:hover {
  color: grey;
}

a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.logo {
  font-size: 2rem;
}

.logo:hover {
  cursor: default;
}

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  transition: all 0.3 ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--nav-bg);
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  z-index: 2;
  border-radius: 0 0 1rem 1rem;
  box-shadow: 0 8px 24px var(--shadow-color);
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3 ease-in-out;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 300px;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span:first-child {
  transform: none;
}

section {
  padding-top: 4vh;
  height: 96vh;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
}

#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  height: 80vh;
}

#profile .section__pic-container {
  position: relative;
  width: 350px;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#profile .section__pic-container img {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 1;
  background: #23242A;
  position: relative;
}
#profile .section__pic-container img::before,
#profile .section__pic-container img::after {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}
#profile .section__pic-container img::before {
  border-top: 7px solid #8e2de2;
  border-left: 7px solid #00fff9;
  border-bottom: none;
  border-right: none;
  top: 0;
  left: 0;
  transform: rotate(-15deg);
}
#profile .section__pic-container img::after {
  border-bottom: 7px solid #4a00e0;
  border-right: 7px solid #8e2de2;
  border-top: none;
  border-left: none;
  top: 0;
  left: 0;
  transform: rotate(15deg);
}
[data-theme="dark"] #profile .section__pic-container img {
  background: #23242A;
}

.section__text {
  align-self: center;
  text-align: center;
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.title {
  font-size: 3rem;
  text-align: center;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

.icon {
  cursor: pointer;
  height: 2rem;
  transition: filter 0.3s ease;
}

[data-theme="dark"] .icon {
  filter: brightness(0) invert(1);
}

[data-theme="dark"] .details-container .icon {
  filter: brightness(0) invert(0); 
}

[data-theme="dark"] .color-container h2,
[data-theme="dark"] .color-container p {
  color: #ffffff;
}

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.cssbuttons-io {
  position: relative;
  font-family: inherit;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.05em;
  border-radius: 2em;
  cursor: pointer;
  border: none;
  background: black;
  color: white;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid black;
}

.cssbuttons-io span {
  position: relative;
  z-index: 10;
  transition: color 0.4s;
  display: inline-flex;
  align-items: center;
  padding: 1em 0.8em;
}

.cssbuttons-io::before,
.cssbuttons-io::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.cssbuttons-io::before {
  content: "";
  background: white;
  width: 120%;
  left: -10%;
  transform: translate3d(-105%, 0, 0) skew(30deg);
  transition: transform 0.4s cubic-bezier(0.3, 1, 0.8, 1);
}

.cssbuttons-io:hover::before {
  transform: skew(30deg);
}

.cssbuttons-io:active {
  transform: scale(0.95);
}

.cssbuttons-io:hover span {
  color: black;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
}

.btn-color-1,
.btn-color-2 {
  border: var(--border-color) 0.1rem solid;
  background-color: var(--card-bg);
  color: var(--text-color);
  transition: all 0.3s ease;
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
  background-color: var(--text-color);
  color: var(--bg-color);
}

.btn-color-1,
.btn-color-2:hover {
  background: rgb(53, 53, 53);
  color: white;
}

.btn-color-1:hover {
  background: rgb(0, 0, 0);
}

.btn-color-2 {
  background: none;
}

.btn-color-2:hover {
  border: rgb(255, 255, 255) 0.1rem solid;
}

.btn-container {
  gap: 1rem;
}

#about {
  position: relative;
}

.about-containers {
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.about-details-container {
  justify-content: center;
  flex-direction: column;
}

.about-containers,
.about-details-container {
  display: flex;
}

#about .section__pic-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  margin: 0 auto 2rem auto;
}
.about-pic {
  max-width: 100%;
  height: auto;
  border-radius: 2rem;
  display: block;
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.arrow {
  position: absolute;
  right: -5rem;
  bottom: 2.5rem;
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: white;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  text-align: center;
}

.section-container {
  gap: 4rem;
  height: 80%;
}

.section__pic-container {
  height: 400px;
  width: 400px;
  margin: auto 0;
}

#experience {
  position: relative;
}

.experience-sub-title {
  color: rgb(85, 85, 85);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.experience-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
}
 #learn-more{
  font-weight: 600;
  font-size: 2.75rem;
  color: black;
  text-align: center;
  margin-bottom: 2rem;
}

.article-container {
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2.5rem;
  justify-content: space-around;
}

#projects .article-container {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex-wrap: nowrap;
  gap: 0;
  background-color: rgb(240, 240, 240);
  border-radius: 2rem;
  transition: background-color 0.3s ease;
}

article {
  display: flex;
  width: 10rem;
  justify-content: space-around;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

article .icon {
  cursor: default;
}

#projects {
  position: relative;
}

.color-container {
  background: rgba(217, 217, 217, 0.2); 
  box-shadow: 12px 17px 51px var(--shadow-color);
  backdrop-filter: blur(6px);
  color: white;
  border-radius: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#projects .color-container:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 25px var(--shadow-hover-color);
}

[data-theme="dark"] .color-container {
  background: rgb(35, 35, 35);
  border-color: rgb(85, 85, 85);
}

.project-img {
  border-radius: 2rem;
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.project-title {
  margin: 1rem;
  color: var(--text-color);
}

.project-btn {
  color: black;
  border-color: rgb(163, 163, 163);
}

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 100vh;
  padding: 0 10rem;
  box-sizing: border-box;
}

.contact-container {
  display: flex;
  gap: 4rem;
  margin-top: 2rem;
  align-items: flex-start;
}

.contact-info-section {
  flex: 1;
  max-width: 400px;
}

.contact-subtitle {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.contact-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.contact-form-section {
  flex: 1;
  max-width: 500px;
}

.contact-form {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: all 0.3s ease;
}

.contact-form:hover {
  box-shadow: 0 8px 30px var(--shadow-hover-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
  font-size: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 1rem;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg-color);
  color: var(--text-color);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4a00e0;
  box-shadow: 0 0 0 3px rgba(74, 0, 224, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .cssbuttons-io {
  width: 100%;
  margin-top: 1rem;
}

.contact-info-upper-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  background: var(--card-bg);
  padding: 1.5rem;
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: all 0.3s ease;
}

.contact-info-upper-container:hover {
  box-shadow: 0 8px 30px var(--shadow-hover-color);
}

.contact-info-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.contact-info-container:hover {
  background: var(--shadow-color);
}

.contact-info-container p {
  font-size: 1.1rem;
  margin: 0;
}

.contact-info-container a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-info-container a:hover {
  color: #4a00e0;
}

.contact-icon {
  cursor: pointer;
  height: 2rem;
}

.email-icon {
  height: 2.5rem;
}

@media (max-width: 768px) {
  #contact {
    padding: 10vh 2rem 5vh;
  }
  
  .contact-container {
    flex-direction: column;
    gap: 2rem;
  }
  
  .contact-info-section,
  .contact-form-section {
    max-width: 100%;
  }
  
  .contact-subtitle {
    font-size: 1.5rem;
  }
  
  .contact-description {
    font-size: 1rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 0.7rem 0.8rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  #contact {
    padding: 10vh 1rem 5vh;
  }
  
  .contact-form {
    padding: 1rem;
  }
  
  .contact-info-upper-container {
    padding: 1rem;
  }
  
  .contact-info-container {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

footer {
  background-color: var(--card-bg);
  padding: 3rem 5%;
  border-top: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-top {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-logo {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.footer-logo a {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-color);
  text-decoration: none;
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.footer-socials a {
  font-size: 1.5rem;
  color: var(--text-color);
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-socials a:hover {
  color: #8e2de2; 
  transform: translateY(-3px);
}

.footer-socials a[aria-label="GitHub"]:hover { color: #181717; }
.footer-socials a[aria-label="LinkedIn"]:hover { color: #0A66C2; }
.footer-socials a[aria-label="YouTube"]:hover { color: #FF0000; }
.footer-socials a[aria-label="Facebook"]:hover { color: #1877F2; }
.footer-socials a[aria-label="Instagram"]:hover { color: #E4405F; }
.footer-socials a[aria-label="Discord"]:hover { color: #5865F2; }

.back-to-top {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--text-color);
}

.footer-links {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-bottom p {
  font-size: 0.9rem;
  color: rgb(85, 85, 85);
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px var(--shadow-hover-color);
  z-index: 10000;
  max-width: 400px;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notification.show {
  transform: translateX(0);
}

.notification-success {
  background-color: #2eb67d; 
}

.notification-error {
  background-color: #e01e5a; 
}

.notification-message {
  font-weight: 500;
}

.notification-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  padding-left: 1rem;
  transition: opacity 0.3s ease;
}

.notification-close:hover {
  opacity: 1;
}

.theme-switch {
  --toggle-size: 10px;
  --container-width: 5.625em;
  --container-height: 2.5em;
  --container-radius: 6.25em;
  --container-light-bg: #3D7EAE;
  --container-night-bg: #1D1F2C;
  --circle-container-diameter: 3.375em;
  --sun-moon-diameter: 2.125em;
  --sun-bg: #ECCA2F;
  --moon-bg: #C4C9D1;
  --spot-color: #959DB1;
  --circle-container-offset: calc((var(--circle-container-diameter) - var(--container-height)) / 2 * -1);
  --stars-color: #fff;
  --clouds-color: #F3FDFF;
  --back-clouds-color: #AACADF;
  --transition: .5s cubic-bezier(0, -0.02, 0.4, 1.25);
  --circle-transition: .3s cubic-bezier(0, -0.02, 0.35, 1.17);
}

.theme-switch, .theme-switch *, .theme-switch *::before, .theme-switch *::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-size: var(--toggle-size);
}

.theme-switch__container {
  width: var(--container-width);
  height: var(--container-height);
  background-color: var(--container-light-bg);
  border-radius: var(--container-radius);
  overflow: hidden;
  cursor: pointer;
  -webkit-box-shadow: 0em -0.062em 0.062em rgba(0, 0, 0, 0.25), 0em 0.062em 0.125em rgba(255, 255, 255, 0.94);
  box-shadow: 0em -0.062em 0.062em rgba(0, 0, 0, 0.25), 0em 0.062em 0.125em rgba(255, 255, 255, 0.94);
  -webkit-transition: var(--transition);
  -o-transition: var(--transition);
  transition: var(--transition);
  position: relative;
}

.theme-switch__container::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  -webkit-box-shadow: 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset, 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset;
  box-shadow: 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset, 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset;
  border-radius: var(--container-radius)
}

.theme-switch__checkbox {
  display: none;
}

.theme-switch__circle-container {
  width: var(--circle-container-diameter);
  height: var(--circle-container-diameter);
  background-color: rgba(255, 255, 255, 0.1);
  position: absolute;
  left: var(--circle-container-offset);
  top: var(--circle-container-offset);
  border-radius: var(--container-radius);
  -webkit-box-shadow: inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), 0 0 0 0.625em rgba(255, 255, 255, 0.1), 0 0 0 1.25em rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), 0 0 0 0.625em rgba(255, 255, 255, 0.1), 0 0 0 1.25em rgba(255, 255, 255, 0.1);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-transition: var(--circle-transition);
  -o-transition: var(--circle-transition);
  transition: var(--circle-transition);
  pointer-events: none;
}

.theme-switch__sun-moon-container {
  pointer-events: auto;
  position: relative;
  z-index: 2;
  width: var(--sun-moon-diameter);
  height: var(--sun-moon-diameter);
  margin: auto;
  border-radius: var(--container-radius);
  background-color: var(--sun-bg);
  -webkit-box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #a1872a inset;
  box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #a1872a inset;
  -webkit-filter: drop-shadow(0.062em 0.125em 0.125em rgba(0, 0, 0, 0.25)) drop-shadow(0em 0.062em 0.125em rgba(0, 0, 0, 0.25));
  filter: drop-shadow(0.062em 0.125em 0.125em rgba(0, 0, 0, 0.25)) drop-shadow(0em 0.062em 0.125em rgba(0, 0, 0, 0.25));
  overflow: hidden;
  -webkit-transition: var(--transition);
  -o-transition: var(--transition);
  transition: var(--transition);
}

.theme-switch__moon {
  -webkit-transform: translateX(100%);
  -ms-transform: translateX(100%);
  transform: translateX(100%);
  width: 100%;
  height: 100%;
  background-color: var(--moon-bg);
  border-radius: inherit;
  -webkit-box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #969696 inset;
  box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #969696 inset;
  -webkit-transition: var(--transition);
  -o-transition: var(--transition);
  transition: var(--transition);
  position: relative;
}

.theme-switch__spot {
  position: absolute;
  top: 0.75em;
  left: 0.312em;
  width: 0.75em;
  height: 0.75em;
  border-radius: var(--container-radius);
  background-color: var(--spot-color);
  -webkit-box-shadow: 0em 0.0312em 0.062em rgba(0, 0, 0, 0.25) inset;
  box-shadow: 0em 0.0312em 0.062em rgba(0, 0, 0, 0.25) inset;
}

.theme-switch__spot:nth-of-type(2) {
  width: 0.375em;
  height: 0.375em;
  top: 0.937em;
  left: 1.375em;
}

.theme-switch__spot:nth-last-of-type(3) {
  width: 0.25em;
  height: 0.25em;
  top: 0.312em;
  left: 0.812em;
}

.theme-switch__clouds {
  width: 1.25em;
  height: 1.25em;
  background-color: var(--clouds-color);
  border-radius: var(--container-radius);
  position: absolute;
  bottom: -0.625em;
  left: 0.312em;
  -webkit-box-shadow: 0.937em 0.312em var(--clouds-color), -0.312em -0.312em var(--back-clouds-color), 1.437em 0.375em var(--clouds-color), 0.5em -0.125em var(--back-clouds-color), 2.187em 0 var(--clouds-color), 1.25em -0.062em var(--back-clouds-color), 2.937em 0.312em var(--clouds-color), 2em -0.312em var(--back-clouds-color), 3.625em -0.062em var(--clouds-color), 2.625em 0em var(--back-clouds-color), 4.5em -0.312em var(--clouds-color), 3.375em -0.437em var(--back-clouds-color), 4.625em -1.75em 0 0.437em var(--clouds-color), 4em -0.625em var(--back-clouds-color), 4.125em -2.125em 0 0.437em var(--back-clouds-color);
  box-shadow: 0.937em 0.312em var(--clouds-color), -0.312em -0.312em var(--back-clouds-color), 1.437em 0.375em var(--clouds-color), 0.5em -0.125em var(--back-clouds-color), 2.187em 0 var(--clouds-color), 1.25em -0.062em var(--back-clouds-color), 2.937em 0.312em var(--clouds-color), 2em -0.312em var(--back-clouds-color), 3.625em -0.062em var(--clouds-color), 2.625em 0em var(--back-clouds-color), 4.5em -0.312em var(--clouds-color), 3.375em -0.437em var(--back-clouds-color), 4.625em -1.75em 0 0.437em var(--clouds-color), 4em -0.625em var(--back-clouds-color), 4.125em -2.125em 0 0.437em var(--back-clouds-color);
  -webkit-transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
  -o-transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
  transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
}

.theme-switch__stars-container {
  position: absolute;
  color: var(--stars-color);
  top: -100%;
  left: 0.312em;
  width: 2.75em;
  height: auto;
  -webkit-transition: var(--transition);
  -o-transition: var(--transition);
  transition: var(--transition);
}

.theme-switch__checkbox:checked + .theme-switch__container {
  background-color: var(--container-night-bg);
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__circle-container {
  left: calc(100% - var(--circle-container-offset) - var(--circle-container-diameter));
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__circle-container:hover {
  left: calc(100% - var(--circle-container-offset) - var(--circle-container-diameter) - 0.187em)
}

.theme-switch__circle-container:hover {
  left: calc(var(--circle-container-offset) + 0.187em);
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__moon {
  -webkit-transform: translate(0);
  -ms-transform: translate(0);
  transform: translate(0);
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__clouds {
  bottom: -4.062em;
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__stars-container {
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --nav-bg: #ffffff;
  --section-bg: #ffffff;
  --card-bg: #ffffff;
  --border-color: rgb(53, 53, 53);
  --shadow-color: rgba(0, 0, 0, 0.1);
  --shadow-hover-color: rgba(0, 0, 0, 0.22);
}

[data-theme="dark"] {
  --bg-color: #1a1a1a;
  --text-color: #ffffff;
  --nav-bg: #1a1a1a;
  --section-bg: #1a1a1a;
  --card-bg: #2d2d2d;
  --border-color: #ffffff;
  --shadow-color: rgba(255, 255, 255, 0.1);
  --shadow-hover-color: rgba(255, 255, 255, 0.22);
}

#learn-more {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-color);
  transition: color 0.3s ease;
}

[data-theme="dark"] #about .details-container {
  border-radius: 1.5rem;
  background: #23242a;
  color: #f3f3f3;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  border: 1px solid #333;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

[data-theme="dark"] #about .details-container h3,
[data-theme="dark"] #about .details-container p {
  color: inherit;
  transition: color 0.3s;
}

[data-theme="dark"] #about .details-container .icon {
  filter: brightness(0.9) invert(0.9);
}

[data-theme="dark"] #experience .details-container {
  background: #2D2D2D;
}

.dark-mode-toggle {
  transform: translateY(5px);
}

[data-theme="dark"] #projects .project-btn {
  background-color: #555; 
  color: #ffffff; 
  border-color: #888; 
}

[data-theme="dark"] #projects .project-btn:hover {
  background-color: #777;
  border-color: #aaa;
}

[data-theme="dark"] .btn-color-1:hover {
  background-color: white !important;
  color: black !important;
  border-color: black !important;
}

#about .details-container {
  border-radius: 1.5rem;
  background: #fff;
  color: #222;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

#about .details-container h3, 
#about .details-container p {
  color: inherit;
  transition: color 0.3s;
}

#about .details-container .icon {
  filter: none;
}

[data-theme="dark"] #experience .details-container {
  background: #2D2D2D;
  color: #fff;
}

[data-theme="dark"] #experience .details-container h3,
[data-theme="dark"] #experience .details-container p {
  color: #fff;
}

[data-theme="dark"] #experience .details-container .icon {
  filter: brightness(0) invert(1);
}

[data-theme="dark"] #experience .icon[src*="checkmark-i"] {
  filter: none;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-color);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.wrapper {
  width: 200px;
  height: 60px;
  position: relative;
  z-index: 1;
}

.circle {
  width: 20px;
  height: 20px;
  position: absolute;
  border-radius: 50%;
  background-color: var(--text-color); 
  left: 15%;
  transform-origin: 50%;
  animation: circle7124 .5s alternate infinite ease;
}

@keyframes circle7124 {
  0% {
    top: 60px;
    height: 5px;
    border-radius: 50px 50px 25px 25px;
    transform: scaleX(1.7);
  }

  40% {
    height: 20px;
    border-radius: 50%;
    transform: scaleX(1);
  }

  100% {
    top: 0%;
  }
}

.circle:nth-child(2) {
  left: 45%;
  animation-delay: .2s;
}

.circle:nth-child(3) {
  left: auto;
  right: 15%;
  animation-delay: .3s;
}

.shadow {
  width: 20px;
  height: 4px;
  border-radius: 50%;
  background-color: rgba(0,0,0,0.5); 
  position: absolute;
  top: 62px;
  transform-origin: 50%;
  z-index: -1;
  left: 15%;
  filter: blur(1px);
  animation: shadow046 .5s alternate infinite ease;
}

@keyframes shadow046 {
  0% {
    transform: scaleX(1.5);
  }

  40% {
    transform: scaleX(1);
    opacity: .7;
  }

  100% {
    transform: scaleX(.2);
    opacity: .4;
  }
}

.shadow:nth-child(4) {
  left: 45%;
  animation-delay: .2s
}

.shadow:nth-child(5) {
  left: auto;
  right: 15%;
  animation-delay: .3s;
}

#profile .title {
  position: relative;
}

#profile .title::before,
#profile .title::after {
  content: "Sumit Chapagain";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  overflow: hidden;
}

#profile .title::before {
  left: 2px;
  text-shadow: -2px 0 #ff00c1;
  animation: glitch-1 2s infinite linear reverse;
}

#profile .title::after {
  left: -2px;
  text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1;
  animation: glitch-2 2s infinite linear reverse;
}

@keyframes glitch-1 {
  0% { clip: rect(132px, auto, 101px, 30px); }
  5% { clip: rect(17px, auto, 94px, 30px); }
  10% { clip: rect(40px, auto, 66px, 30px); }
  15% { clip: rect(87px, auto, 82px, 30px); }
  20% { clip: rect(137px, auto, 61px, 30px); }
  25% { clip: rect(34px, auto, 14px, 30px); }
  30% { clip: rect(133px, auto, 74px, 30px); }
  35% { clip: rect(76px, auto, 107px, 30px); }
  40% { clip: rect(56px, auto, 133px, 30px); }
  45% { clip: rect(51px, auto, 97px, 30px); }
  50% { clip: rect(81px, auto, 106px, 30px); }
  55% { clip: rect(2px, auto, 119px, 30px); }
  60% { clip: rect(145px, auto, 98px, 30px); }
  65% { clip: rect(74px, auto, 12px, 30px); }
  70% { clip: rect(138px, auto, 57px, 30px); }
  75% { clip: rect(10px, auto, 45px, 30px); }
  80% { clip: rect(104px, auto, 10px, 30px); }
  85% { clip: rect(44px, auto, 35px, 30px); }
  90% { clip: rect(71px, auto, 109px, 30px); }
  95% { clip: rect(141px, auto, 68px, 30px); }
  100% { clip: rect(3px, auto, 129px, 30px); }
}

@keyframes glitch-2 {
  0% { clip: rect(129px, auto, 5px, 30px); }
  5% { clip: rect(36px, auto, 99px, 30px); }
  10% { clip: rect(5px, auto, 137px, 30px); }
  15% { clip: rect(139px, auto, 12px, 30px); }
  20% { clip: rect(144px, auto, 59px, 30px); }
  25% { clip: rect(44px, auto, 7px, 30px); }
  30% { clip: rect(49px, auto, 136px, 30px); }
  35% { clip: rect(131px, auto, 67px, 30px); }
  40% { clip: rect(73px, auto, 50px, 30px); }
  45% { clip: rect(147px, auto, 95px, 30px); }
  50% { clip: rect(108px, auto, 41px, 30px); }
  55% { clip: rect(13px, auto, 96px, 30px); }
  60% { clip: rect(117px, auto, 148px, 30px); }
  65% { clip: rect(83px, auto, 127px, 30px); }
  70% { clip: rect(54px, auto, 83px, 30px); }
  75% { clip: rect(116px, auto, 54px, 30px); }
  80% { clip: rect(48px, auto, 142px, 30px); }
  85% { clip: rect(143px, auto, 103px, 30px); }
  90% { clip: rect(122px, auto, 65px, 30px); }
  95% { clip: rect(148px, auto, 46px, 30px); }
  100% { clip: rect(10px, auto, 70px, 30px); }
}

@keyframes sparkle {
  0%, 100% { text-shadow: 0 0 10px #ff00c1, 0 0 10px #00fff9; }
  25% { text-shadow: 0 0 20px #ff00c1, 0 0 20px #00fff9; }
  50% { text-shadow: 0 0 10px #ff00c1, 0 0 10px #00fff9; }
  75% { text-shadow: 0 0 30px #ff00c1, 0 0 30px #00fff9; }
}

[data-theme="dark"] .details-container,
[data-theme="dark"] .color-container,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .contact-info-upper-container {
  background: #23242a !important;
  color: #f3f3f3 !important;
  border-radius: 1.5rem !important;
  border: 1px solid #333 !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5) !important;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
[data-theme="dark"] .details-container h3,
[data-theme="dark"] .details-container p,
[data-theme="dark"] .color-container h2,
[data-theme="dark"] .color-container p,
[data-theme="dark"] .contact-form label,
[data-theme="dark"] .contact-info-upper-container p {
  color: #f3f3f3 !important;
}

[data-theme="dark"] #projects .article-container {
  background-color: rgb(45, 45, 45);
}
