/* Universal Styling */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: medium;
}

/* Scroll Bar */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  border-radius: 5px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.25);
  background-color: #f5f5f5;
}

/* Menu Bar hidden for big screens */

.hidden {
  display: none;
}

/* Navbar styling */

.navbar {
  /* border: 2px solid black; */
  width: 100%;
  height: 4rem;
  z-index: 20;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
}

label {
  /* border: 2px solid black; */
  position: fixed;
  bottom: 2%;
  left: 5%;
  width: 40px;
  height: 20px;
  cursor: pointer;
  margin: 20px 0;
}

label input {
  width: 40px; /* Custom checkbox size */
  height: 20px;
  appearance: none; /* Remove default checkbox style */
  background-color: #101010;
  border: 2px solid #444;
  border-radius: 40px; /* Rounded corners */
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 1;
  opacity: 0;
  position: absolute;
}

label .check {
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  border-radius: 40px;
  transition: background 0.5s ease;
}

label .check::before {
  content: "";
  position: absolute;
  top: calc(50% - 2px);
  left: -20px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f00;
  transition: 0.5s ease;
  box-shadow: 0 0 5px #f00, 0 0 10px #f00, 0 0 20px #f00, 0 0 40px #f00,
    0 0 80px #f00;
}

label input:checked ~ .check::before {
  background: #f5f5f5;
  box-shadow: none;
}

label .check::after {
  content: "";
  position: absolute;
  top: calc(50% - 2px);
  right: -20px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #101010;
  box-shadow: none;
  transition: 0.5s ease;
}

label input:checked ~ .check::after {
  background: #0f0;
  box-shadow: 0 0 5px #0f0, 0 0 10px #0f0, 0 0 20px #0f0, 0 0 40px #0f0,
    0 0 80px #0f0;
}

label .botn {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 40px;
  background: #333;
  transition: left 0.5s ease;
  box-shadow: inset 0 -20px 15px #292929, inset 0 20px 15px #292929;
}

label .botn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 20px;
  border-top-left-radius: 80px;
  border-bottom-left-radius: 80px;
  filter: blur(2px);
}

label .botn::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 20px;
  border-top-right-radius: 80px;
  border-bottom-right-radius: 80px;
  filter: blur(2px);
}

label input:checked ~ .botn {
  left: 20px;
}

.navbar .nav-list {
  /* border: 2px solid black; */
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  gap: 3rem;
  list-style-type: none;
  font-size: 1.2rem;
}

.navbar .nav-list .nav-items {
  /* border: 2px solid black; */
}

.navbar .nav-list .nav-items .nav-links {
  /* border: 2px solid black; */
  display: block;
  padding: 10px;
  text-decoration: none;
  font-family: bold;
  transition: 0.5s;
}

.navbar .nav-list .nav-items .nav-links::after {
  content: "";
  height: 2px;
  /* background-color: #112d4e; */
  width: 0;
  display: block;
  position: relative;
  left: 0;
  bottom: 0;
  transition: 0.5s;
}

/* Home Section */

.home {
  /* border: 2px solid black; */
  height: 90vh;
}

.home .home-background {
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 1);
  /* border: 2px solid black; */
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  position: relative;
  overflow: hidden;
}

.home .home-background::before {
  content: "";
  width: 200%;
  height: 200%;
  position: absolute;
  top: -50%;
  left: -50%;
  right: 0;
  bottom: 0;
  animation: rotate-background infinite 6s ease-in-out;
}

@keyframes rotate-background {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.home .home-background .main-heading {
  font-size: 3rem;
  font-family: extrabold;
  texT-shadow: 0 0 10px #000;
}

.home .home-background .intro {
  font-size: 1.2rem;
}

.home .home-background .project-btn {
  border: none;
  border-radius: 40px;
  box-shadow: inset 0 0 10px rgb(0, 0, 0), 0 0 10px rgb(0, 0, 0);
  transition: 0.3s;
  z-index: 1;
}

.home .home-background .project-btn .project-btn-link {
  text-decoration: none;
  /* border: 2px solid black; */
  display: block;
  padding: 20px;
  font-size: 1.2rem;
  border-radius: 40px;
  transition: 0.3;
  font-family: bold;
}

/* About Section */

.about {
  /* border: 2px solid black; */
  height: 180vh;
  width: 100%;
  padding: 20px;
}

.about .about-background {
  /* border: 2px solid black; */
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  padding: 20px;
  border-radius: 20px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 0, 0, 0.5);
}

.about .about-background .about-heading {
  font-family: extrabold;
  font-size: 2.5rem;
  texT-shadow: 0 0 10px #000;
}

.about .about-background .my-picture {
  background: url("../Images/My\ Picture.jpg");
  /* border: 2px solid black; */
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-position: center;
  background-size: cover;
}

.about .about-background .about-me {
  font-size: 1.2rem;
  text-align: center;
}

/* Project Section */

.project {
  /* border: 2px solid black; */
  width: 100%;
  height: 180vh;
  padding: 20px;
}

.project .project-background {
  /* border: 2px solid black; */
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  border-radius: 20px;
  box-shadow: inset 0 0 10px #000,
    0 0 10px #000;
}

.project .project-background .project-heading {
  font-size: 2.5rem;
  font-family: extrabold;
  texT-shadow: 0 0 10px #000;
}

.project .project-background .projects {
  /* border: 2px solid black; */
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

.project .project-background .projects .pro {
  /* border: 2px solid black; */
  display: flex;
  flex-direction: column;
  width: auto;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 10px;
  padding: 10px;
  border-radius: 20px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 0, 0, 0.5);
}

.project .project-background .projects .pro .pro-heading {
  font-size: 1.5rem;
  font-family: bold;
}

.project .project-background .projects .pro .pro-image {
  width: 300px;
  height: 150px;
  border-radius: 20px;
}

.project .project-background .projects .pro .btn {
  /* border: 2px solid black; */
  border-radius: 20px;
  transition: 0.3s;
  box-shadow: inset 0 0 10px rgb(0, 0, 0), 0 0 10px rgb(0, 0, 0);
  border: none;
}

.project .project-background .projects .pro .btn .btn-link {
  /* border: 2px solid black; */
  display: block;
  padding: 10px;
  border-radius: 20px;
  text-decoration: none;
  font-family: bold;
  transition: 0.3s;
}

/* Contact Section */

.contact {
  /* border: 2px solid black; */
  width: 100%;
  height: 60vh;
  padding: 20px;
  padding-bottom: 0;
}

.contact .contact-background {
  width: 100%;
  height: 100%;
  /* padding: 20px; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  box-shadow: inset 0 0 10px #000;
  position: relative;
  overflow: hidden;
}

.contact .contact-background::before {
  content: "";
  background-color: rgba(0, 0, 0, 0.1);
  width: 200%;
  height: 200%;
  position: absolute;
  top: 0%;
  left: -50%;
  right: 0;
  bottom: 0;
  animation: rotate-background-2 infinite 6s ease-in-out;
}

@keyframes rotate-background-2 {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.contact .contact-background .contact-info {
  /* border: 2px solid black; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 10px;
  margin-top: 30px;
}

.contact .contact-background .contact-info .contact-heading {
  font-size: 2.5rem;
  font-family: extrabold;
  texT-shadow: 0 0 10px #000;
}

.contact .contact-background .contact-info .suggestion {
  font-size: 1.2rem;
}

.contact .contact-background .contact-info .email {
  font-size: 1.2rem;
}

.contact .contact-background .contact-info .email a {
  text-decoration: none;
}

.contact .contact-background .contact-info .phone {
  font-size: 1.2rem;
}

.contact .contact-background .contact-info .icons {
  /* border: 2px solid black; */
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  padding: 10px;
  gap: 3rem;
}

.contact .contact-background .contact-info .icons .icon-link .icon {
  font-size: 2.5rem;
  /* border: 2px solid black; */
  padding: 10px;
  display: block;
  border-radius: 40px;
}

.contact .contact-background .contact-info .icons .icon-link {
  /* border: 2px solid black; */
  border-radius: 40px;
  z-index: 1;
  text-decoration: none;
}

.contact .contact-background .copyright {
  /* border: 2px solid black; */
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.contact .contact-background .copyright .copyright-text {
  font-family: bold;
}

/* Universal */

body.light-mode {
  background-color: #f4f4f9;
  color: #112d4e;
  transition: 0.5s;
}

body.dark-mode {
  background-color: #1e1e2f;
  color: #f5f5f5;
  transition: 0.5s;
}

/* Scroll Bar */

::-webkit-scrollbar-thumb:hover {
  background-color: #3f72af; 
}

::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background-color: #3f72af;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

html {
  scrollbar-width: thin;
  scrollbar-color: lightblue #f5f5f5;
}

/* Navbar */

.menu-icon.light-mode {
  color: #f4f4f9;
  background-color: #3f72af;
  transition: 0.5s;
}

.menu-icon.dark-mode {
  color: #f5f5f5;
  background-color: #252836;
  transition: 0.5s;
}

.menu:active {
  transform: scale(0.9);
}

.navbar.light-mode {
  background-color: #3f72af;
  transition: 0.5s;
}

.navbar.dark-mode {
  background-color: #252836;
  transition: 0.5s;
}

label .check.light-mode {
  background: #101010;
  box-shadow: 0 0 0 4px #101010;
  transition: 0.5s;
}

label .check.dark-mode {
  background: #f4f4f4;
  box-shadow: 0 0 0 4px #f4f4f4;
  transition: 0.5s;
}

label .botn.light-mode::before {
  background: #252525;
  transition: 0.5s;
  box-shadow: inset -5px -5px 15px rgba(0, 0, 0, 0.3);
}

label .botn.dark-mode::before {
  background: #5f5f5f;
  transition: 0.5s;
  box-shadow: inset -5px -5px 15px rgb(255, 255, 255);
}

label .botn.light-mode::after {
  background: #252525;
  transition: 0.5s;
  box-shadow: inset -5px -5px 15px rgba(0, 0, 0, 0.3);
}

label .botn.dark-mode::after {
  background: #5f5f5f;
  transition: 0.5s;
  box-shadow: inset -5px -5px 15px rgb(255 ,255 ,255);
}

.navbar .nav-list .nav-items .nav-links.light-mode {
  color: #f4f4f9;
  transition: 0.5s;
}

.navbar .nav-list .nav-items .nav-links.dark-mode {
  color: #f5f5f5;
  transition: 0.5s;
}

.navbar .nav-list .nav-items .nav-links:hover.light-mode {
  color: #112d4e;
  transition: 0.5s;
}

.navbar .nav-list .nav-items .nav-links:hover.dark-mode {
  color: #ffd700;
  transition: 0.5s;
}

.navbar .nav-list .nav-items .nav-links.light-mode::after {
  background-color: #112d4e;
  transition: 0.5s;
}

.navbar .nav-list .nav-items .nav-links.dark-mode::after {
  background-color: #ffd700;
  transition: 0.5s;
}

.navbar .nav-list .nav-items .nav-links:active {
  transform: scale(0.9);
}

.navbar .nav-list .nav-items .nav-links:hover::after {
  width: 100%;
}

/* Home Section */

.home .home-background.light-mode {
  background-color: #00bcfb;
  transition: 0.5s;
}

.home .home-background.dark-mode {
  background-color: #252836;
  transition: 0.5s;
}

.home .home-background.light-mode::before {
  background-color: rgba(0, 0, 0, 0.05);
  transition: 0.5s;
}

.home .home-background.dark-mode::before {
  background-color: rgba(255, 255, 255, 0.05);
  transition: 0.5s;
}

.home .home-background .main-heading .name.light-mode {
  color: #f9a826;
  transition: 0.5s;
}

.home .home-background .main-heading .name.dark-mode {
  color: #ffd700;
  transition: 0.5s;
}

.home .home-background .project-btn.light-mode {
  background-color: #3f72af;
  transition: 0.5s;
}

.home .home-background .project-btn.dark-mode {
  background-color: #ff6363;
  transition: 0.5s;
}

.home .home-background .project-btn.light-mode:hover {
  background-color: #f9a826;
  transition: 0.5s;
}

.home .home-background .project-btn.dark-mode:hover {
  background-color: #ffd700;
  transition: 0.5s;
}

.home .home-background .project-btn:active {
  transform: scale(0.9);
}

.home .home-background .project-btn .project-btn-link.light-mode {
  color: #f4f4f9;
  transition: 0.5s;
}

.home .home-background .project-btn .project-btn-link.dark-mode {
  color: #f5f5f5;
  transition: 0.5s;
}

/* About Section */

.about .about-background.light-mode {
  background-color: #f4f4f9;
  transition: 0.5s;
}

.about .about-background.dark-mode {
  background-color: #252836;
  transition: 0.5s;
}

/* Project Section */

.project .project-background.light-mode {
  background-color: rgba(63, 114, 175, 0.7);
  transition: 0.5s;
}

.project .project-background.dark-mode {
  background-color: rgba(37, 40, 54, 0.7);
  transition: 0.5s;
}

.project .project-background .projects .pro.light-mode {
  background-color: rgba(0, 188, 251, 0.2);
  transition: 0.5s;
}

.project .project-background .projects .pro.dark-mode {
  background-color: rgba(37, 40, 54, 0.2);
  transition: 0.5s;
}

.project .project-background .btn.light-mode {
  background-color: #3f72af;
  transition: 0.5s;
}

.project .project-background .btn.dark-mode {
  background-color: #ff6363;
  transition: 0.5s;
}

.project .project-background .btn.light-mode:hover {
  transition: 0.5s;
  background-color: #f9a826;
}

.project .project-background .btn.dark-mode:hover {
  transition: 0.5s;
  background-color: #ffd700;
}

.project .project-background .btn:active {
  transform: scale(0.9);
}

.project .project-background .btn .btn-link.light-mode {
  transition: 0.5s;
  color: #f4f4f9;
}

.project .project-background .btn .btn-link.dark-mode {
  transition: 0.5s;
  color: #f5f5f5;
}

/* Contact Section */

.contact .contact-background.light-mode {
  transition: 0.5s;
  background-color: #797777;
}

.contact .contact-background.dark-mode {
  transition: 0.5s;
  background-color: #252836;
}

.contact .contact-background .contact-info .icons .icon-link .icon.light-mode {
  color: #112d4e;
  transition: 0.5s;
}

.contact .contact-background .contact-info .icons .icon-link .icon.dark-mode {
  color: #f5f5f5;
  transition: 0.5s;
}

.contact .contact-background .contact-info .icons .icon-link .icon.light-mode:hover {
  transition: 0.5s;
  background-color: #f9a826;
}

.contact .contact-background .contact-info .icons .icon-link .icon.dark-mode:hover {
  transition: 0.5s;
  background-color: #ffd700;
}

.contact .contact-background .contact-info .icons .icon-link .icon:active {
  transform: scale(0.9);
}

.contact .contact-background .copyright.light-mode {
  transition: 0.5s;
  background-color: #000;
}

.contact .contact-background .copyright.dark-mode {
  transition: 0.5s;
  background-color: #1e1e2f;
}
