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

* {
  outline: none;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background-color: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background-color: #888;
}
::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}
main::-webkit-scrollbar {
  display: none;
}

body::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(
    180deg,
    rgb(255, 255, 255, 0.72) 0%,
    rgb(255, 255, 255, 0.45) 100%
  );
  -webkit-backdrop-filter: saturate(3);
  backdrop-filter: saturate(3);
}

body {
  font-family: "Poppins", sans-serif;
  background-image: url(https://4kwallpapers.com/images/wallpapers/macos-big-sur-apple-layers-fluidic-colorful-dark-wwdc-2020-5120x2880-1432.jpg);
  background-size: cover;
  background-position: center;
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  padding: 2em;
  margin: 0;
  width: 100%;
  height: 100vh;
}

@media screen and (max-width: 480px) {
  body {
    padding: 0.8em;
  }
}

main {
  background-color: var(--primary-color);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 1250px;
  width: 100%;
  border-radius: 5px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  font-weight: 500;
  padding: 1rem 1rem 2rem 1rem;
  overflow: auto;
}
:root {
  --primary-color: #ffffff4d;
  --secondary-color: #212121;
}
.dark-theme {
  --primary-color: #000106;
  --secondary-color: #fff;
}

#icon {
  width: 30px;
  cursor: pointer;
}

.NavBar {
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-bottom: 1.5px solid rgb(255 255 255 / 35%);
}

.NavBar > h1,
.NavBar > .Navigation_Menu {
  margin: 10px;
}
.Navigation_Menu {
  flex: 1;
  text-align: right;
}
.NavBar > h1 {
  text-transform: uppercase;
  word-spacing: 8px;
}
.Navigation_Menu > a {
  padding: 5px 10px;
  margin-left: 10px;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--secondary-color);
  display: inline-block;
}

.Navigation_Menu > a:hover {
  cursor: pointer;
  background-color: var(--primary-color);
  transition: ease-in-out;
  border-radius: 50px;
}

.Navigation_Menu:hover > a:not(:hover) {
  opacity: 0.3;
  filter: blur(1px);
}

/* Mobile controls */
.mobile-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-btn {
    display: none;
    border: none;
    background: transparent;
    color: var(--secondary-color);
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
}

@media only screen and (max-width: 760px) {

    .NavBar {
        position: relative;
    }

    /* Show hamburger */
    .menu-btn {
        display: block;
    }

    /* Keep dark mode visible */
    .mobile-controls {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* Hide desktop navigation initially */
    .Navigation_Menu {
        display: none;

        position: absolute;
        top: 100%;
        left: 0;

        width: 100%;

        flex-direction: column;
        align-items: center;

        padding: 15px 0;

        background: var(--primary-color);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);

        border-radius: 0 0 15px 15px;

        z-index: 1000;
    }

    /* Show navigation when hamburger is clicked */
    .Navigation_Menu.active {
        display: flex;
    }

    .Navigation_Menu > a {
        width: 90%;
        text-align: center;

        padding: 12px;
        margin: 3px 0;
    }
}

.Hero_Section {
  margin: 2rem 0;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-evenly;
}
.Profile_Image {
  width: 350px;
  height: 350px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}
.Details {
  color: var(--secondary-color);
  text-align: center;
}
.Details > h1 {
  font-size: 50px;
  margin: 10px;
  word-spacing: 8px;
}
.Details > h4 {
  font-size: 20px;
  word-spacing: 4px;
}

.aboutMe {
  color: var(--secondary-color);
  margin: 1rem;
  text-align: center;
}

.Skills_Projects {
  color: var(--secondary-color);
  margin: 1rem;
  display: grid;
  grid-template-columns: [one] 50% [two] 50%;
  grid-gap: 10px;
  align-items: center;
  justify-content: center;
  width: calc(100% - 2rem);
}

@media only screen and (max-width: 720px) {
  .Skills_Projects {
    grid-template-columns: [one] 100%;
    grid-template-rows: [one] [two];
  }
}

.Skills_Projects > .skills,
.Skills_Projects > .projects {
  min-width: 250px;
  min-height: 250px;
  margin: 1rem;
}
.Skills_Projects > .skills,
.Skills_Projects > .projects {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  justify-content: center;
  background-color: rgb(255 255 255 / 31%);
  border: 1px solid rgb(255 255 255 / 31%);
  border-radius: 5px;
  padding: 1rem;
  margin-bottom: 2rem;
}

.Card_Heading {
  display: block;
  width: 90%;
  margin: 0;
  margin-bottom: 1rem;
}
.Skills_Projects > .skills > a {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
  margin-right: 15px;
}
.Skills_Projects > .skills > a:hover {
  transition: ease-in 300ms;
  transform: scale(0.85);
  cursor: pointer;
}

.project_Container {
  display: flex;
  width: 90%;
}
.project_Container > img {
  width: 60px;
  height: 60px;
  padding-right: 10px;
}

.project_Container > .project_Description > h4 {
  margin: 0;
}

.project_Container > .project_Description > p {
  margin: 0;
  margin-bottom: 1rem;
}


.project-link {
  color: hotpink;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.project-link:hover {
  color: #ff69b4;
  text-decoration: underline;
}


.contactForm {
  color: var(--secondary-color);
  margin: 2rem;
  width: calc(100% - 4rem);
  background-color: rgb(255 255 255 / 31%);
  border: 1px solid rgb(255 255 255 / 31%);
  border-radius: 5px;
  padding: 1rem;
}
.contactForm > .Form_Group {
  margin-bottom: 1rem;
  position: relative;
}

.Form_Group > input,
.Form_Group > textarea {
  width: 100%;
  font-weight: 600;
  border: 4px solid white;
  border-radius: 1rem;
  background: none;
  padding: 1rem;
  font-size: 1rem;
  color: var(--secondary-color);
  transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
label {
  position: absolute;
  left: 16px;
  color: var(--secondary-color);
  pointer-events: none;
  transform: translateY(1rem);
  transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
input:focus,
textarea:focus {
  outline: none;
  border: 2.5px solid rgb(0, 94, 255);
  box-shadow: 0 0 5px #719ece;
  caret-color: rgb(0, 94, 255);
}
input:focus ~ label,
input:valid ~ label,
textarea:focus ~ label,
textarea:valid ~ label {
  transform: translateY(-50%) scale(0.8);
  background-color: #1a73e8;
  padding: 2px 10px 2px 10px;
  border-radius: 50px;
}

.Submit_Button {
  position: relative;
  border: none;
  color: var(--secondary-color);
  width: 9em;
  height: 3em;
  line-height: 2em;
  text-align: center;
  background: linear-gradient(90deg, #03a9f4, #f441a5, #ffeb3b, #03a9f4);
  background-size: 300%;
  border-radius: 30px;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: bolder;
  z-index: 1;
}
.Submit_Button:hover {
  animation: animation 8s linear infinite;
  border: none;
}

@keyframes animation {
  0% {
    background-position: 0%;
  }
  100% {
    background-position: 400%;
  }
}

.Submit_Button:before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  z-index: -1;
  background: linear-gradient(90deg, #03a9f4, #f441a5, #ffeb3b, #03a9f4);
  background-size: 400%;
  border-radius: 35px;
  transition: 1s;
}
.Submit_Button:hover::before {
  filter: blur(20px);
}
span {
  color: hotpink;
}
@media only screen and (max-width: 460px) {

  .Profile_Image {
    width: 250px;
    height: 250px;
  }

  .Details > h1 {
    font-size: 38px;
    line-height: 1.15;
    margin: 15px 0;
  }

  .Details > h4 {
    font-size: 16px;
    line-height: 1.5;
    margin: 10px;
  }

}

#preloader {
  background: #000 url(images/loader.gif) no-repeat center center;
  height: 100vh;
  width: 100%;
  position: fixed;
  z-index: 100;
  background-size: 25%;
}

.Footer {
  color: var(--secondary-color);
  margin: 1rem;
  text-align: center;
}
.contact-buttons{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:20px;
    margin-top:25px;
    flex-wrap:wrap;
}

.Submit_Button,
.meeting-btn{
    width:220px;
    height:50px;

    display:flex;
    justify-content:center;
    align-items:center;
}

.meeting-btn{
    border:none;
    border-radius:30px;
    background:#2ecc71;
    color:#fff;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    transition:.3s ease;
}

.meeting-btn:hover{
    background:#27ae60;
    transform:translateY(-2px);
}

@media (max-width:600px){

    .contact-buttons{
        flex-direction:column;
        align-items:center;
        gap:15px;
    }

    .Submit_Button,
    .meeting-btn{
        width:100%;
        max-width:320px;
    }
}
