body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  background: white;
}

/* Navbar */
.navbar-custom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0rem;
  background: white;
}

/* Logo */
.logo {
  font-size: 22px;
  font-weight: bold;
  font-family: "Poppins", sans-serif;
  color: #575757;
}

/* Navigation Menu */
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 17px;
}

.nav-menu li {
  padding: 0.5rem 1rem;
}

.nav-menu a {
  text-decoration: none;
  color: #666666;
  font-size: 12px;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  white-space: nowrap;
}

/* Social Icons */
#socials {
  display: flex;
  padding: 0rem 0.5rem;
  gap: 15px;
  align-items: center;
}

#socials a{
  text-decoration: none;
  margin: 0 2px;
}

#socials img {
  height: 21px;
  width: 21px;
  transition: 0.15s ease-in-out;
}

#socials img:hover {
  transform: scale(1.1);
}

/* Mobile Menu */
.hamburger {
  font-size: 28px;
  cursor: pointer;
  display: none;
}

.nav-wrapper {
  display: flex;
}

/* Navigation Header */
.nav-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0rem;
  width: 100%;
}

/* Icon Size Fix */
.icon {
  font-size: 14px;
  height: 15px;
  width: 15px;
}

/* Mobile Styles */
@media screen and (max-width: 990px) {
  .hamburger {
    display: block;
  }

  .navbar-custom {
    padding: 1rem 0rem;
  }

  .logo {
    font-size: 20px;
  }

  .nav-wrapper {
    position: fixed;
    top: 0;
    right: -100%;
    width: 190px;
    height: 100vh;
    background: white;
    transition: right 0.4s ease-in-out;
    box-shadow: -1px 0 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 0rem 1rem 1.5rem 1rem;
  }

  .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0.5rem;
    gap: 17px;
  }

  #socials {
    position: absolute;
    bottom: 6rem;
  }

  .nav-menu li {
    padding: 12px 0;
  }

  .nav-menu a {
    font-size: 12px;
  }

  #darkModeToggleWrapper{
    margin-top: 1rem;
  }
}

/* Desktop Mode */
@media screen and (min-width: 990px) {
  .nav-header .logo {
    display: none;
  }

  .close-btn {
    display: none !important;
  }
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 70px;
  height: 25px;
}

#darkModeToggleWrapper {
  display: flex;
  align-items: center;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #868686;
  transition: 0.4s;
  border-radius: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
}

.slider::before {
  content: "Light";
  position: absolute;
  right: 12px;
  transition: 0.4s;
}

.slider::after {
  content: "";
  position: absolute;
  height: 15px;
  width: 15px;
  left: 5px;
  bottom: 5px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #333;
  justify-content: flex-end;
}

input:checked + .slider::before {
  content: "Dark";
  right: auto;
  left: 12px;
  color: #d9d9d9;
}

input:checked + .slider::after {
  transform: translateX(45px);
}

/* Download Resume Button */
.download-resume-btn {
  background-color: #666666;
  color: white;
  padding: 8px 18px;
  border-radius: 25px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  border: 2px solid #666666;
  font-weight: 500;
}

.download-resume-btn span {
  color: white !important;
}

.download-resume-btn:hover {
  background-color: #666666;
  border-color: #666666;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(66, 68, 110, 0.3);
}

.download-resume-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.download-resume-btn .spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.download-resume-btn.loading .spinner {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
