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

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

:root {
  --primary-color: #fff;
  --text-color: #000;
  --box-shadow: rgba(0, 0, 0, 0.75);
}

.dark-theme {
  --primary-color: #242526;
  --text-color: #fff;
  --box-shadow: rgba(255, 255, 255, 0.5);
}

.nav-dark-theme {
  --primary-color: #242526;
  --text-color: #fff;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--primary-color);
  align-items: center;
  color: var(--text-color);
}

html {
  scroll-behavior: smooth;
}

button {
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  border: 1px solid var(--text-color);
  border-radius: 20px;
  padding: 10px;
  margin: 10px 0;
  cursor: pointer;
  background: transparent;
  transition: all 0.8s ease;
}

button:hover {
  box-shadow: var(--text-color) 0px 2px 4px, var(--text-color) 0px 7px 13px -4px,
    var(--text-color) 0px -1px 0px;
}

/* Navigation */
nav,
.nav-links {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 15vh;
  animation: nav 800ms ease;
}

nav i:hover {
  cursor: pointer;
}

.logo {
  font-size: 3rem;
  font-style: italic;
}

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

a {
  color: var(--text-color);
  text-decoration: none;
  transition: all 800ms ease;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.5rem;
}

/* NAVIGATION HAMBUGER MENU */
#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;
  transition: all 0.3 ease-in-out;
  background-color: var(--text-color);
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 50%;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3 ease-in-out;
}

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

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1rem;
  transition: all 0.3 ease-in-out;
}

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

/* Container */
.container {
  width: 80%;
  margin: 0 auto;
}

/* Section 1*/
.about {
  text-align: center;
  width: 100%;
  height: 400px;
  margin: 8vh auto;
  padding-top: 100px;
  animation: about 800ms ease;
}

.about h1 {
  font-size: 3rem;
}

.about h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.about p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* scroldown btn */
.scrolldown {
  text-align: center;
  font-size: 1.5rem;
  animation: scrolldown 800ms ease;
}

/* Section 2 */
.aboutme-section {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 5rem;
  height: 60vh;
  margin: 6rem auto 6rem;
  animation: fade linear both;
  animation-timeline: view();
  animation-range: entry 50% cover 50%;
}

.aboutmeimg img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  box-shadow: -4px -5px 80px 18px var(--box-shadow);
}

.aboutme-section-one-text {
  text-align: justify;
  font-size: 1.2rem;
  line-height: 1.8rem;
}

.aboutme-section-one-text h1 {
  font-size: 3rem;
  padding-bottom: 2rem;
}

/* Sections 3 */
.experience {
  width: 100%;
  height: auto;
  margin: 0 auto;
  animation: fade linear both;
  animation-timeline: view();
  animation-range: entry 50% cover 50%;
}

.experience h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.experience-links {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 5rem;
  margin-top: 2rem;
}

.html-img,
.css-img,
.js-img,
.github-img {
  width: 10rem;
  height: 3rem;
  border: 1px solid var(--text-color);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
}

.html-img img,
.css-img img,
.js-img img,
.github-img img {
  width: 2rem;
  height: 2rem;
}

/* Section 4 */
.projects {
  width: 100%;
  margin-top: 2rem;
  animation: fade linear both;
  animation-timeline: view();
  animation-range: entry 50% cover 50%;
}

.projects h1 {
  font-size: 2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 20rem));
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.projects-details-container {
  border: 1px solid var(--text-color);
  border-radius: 20px;
  text-align: center;
  transition: all 500ms ease;
}

.projects-details-container:hover {
  transform: scale(1.05);
}

.projects-details-container p {
  padding: 1rem;
  font-size: 1.5rem;
}

.projects-img {
  height: 15rem;
}

.projects-img img {
  width: 100%;
  height: 100%;
  border-radius: 20px 20px 0 0;
  object-fit: cover;
}

.tech {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.2rem;
  margin: 1rem 0.5rem;
}

.html,
.css,
.js {
  width: 35%;
  height: 30px;
  /* border: 1px solid var(--text-color); */
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.html img,
.css img,
.js img {
  width: 1rem;
  height: 1rem;
  margin-right: 0.2rem;
}

.html label,
.css label,
.js label {
  font-size: 0.8rem;
}

.project-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Section 5 */
.form-container {
  margin-top: 2rem;
  animation: fade linear both;
  animation-timeline: view();
  animation-range: entry 50% cover 20%;
}

.form-container h1 {
  font-size: 2rem;
}

.contactme {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 2rem auto;
  font-size: 1rem;
}

.contactemail,
.contactlinkedin,
.contactgithub {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.contacticon {
  font-size: 2rem;
}

/* Section 6 */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  height: 100px;
  margin-top: 5rem;
  font-size: 0.8rem;
  font-style: italic;
  border-top: 1px solid var(--text-color);
}

.footericon {
  font-size: 1.5rem;
}

/* ANIMATIONS */

/* navigation */
@keyframes nav {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(0);
  }
}

/* Section 2 */
@keyframes about {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Srolldown */
@keyframes scrolldown {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Scrolling fade content */
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive media */

@media screen and (max-width: 1024px) {
  .container {
    flex-direction: column;
  }

  .aboutme-section-one-text {
    font-size: 1rem;
    line-height: 1.5rem;
  }
}

@media screen and (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  #nav {
    display: none;
  }

  #hamburger-nav {
    display: flex;
  }

  .about h1 {
    font-size: 2.5rem;
  }

  .about h3 {
    font-size: 1.8rem;
  }

  .about p {
    font-size: 1rem;
  }

  .aboutme-section {
    display: block;
    flex-direction: column;
    justify-content: center;
    height: auto;
  }

  .aboutmeimg {
    text-align: center;
  }

  .aboutmeimg img {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
  }

  .aboutme-section-one-text h1 {
    font-size: 2rem;
    margin-top: 1.5rem;
    padding-bottom: 1rem;
  }
  .aboutme-section-one-text {
    font-size: 0.9rem;
    line-height: 1.5rem;
  }

  .projects {
    animation: fade linear both;
    animation-timeline: view();
    animation-range: entry 50% cover 30%;
  }
  .experience-links {
    flex-direction: column;
    gap: 1.5rem;
  }
  .contactme {
    flex-direction: column;
  }
}

@media screen and (max-width: 425px) {
  .container {
    flex-direction: column;
  }
  .about h1 {
    font-size: 1.5rem;
  }

  .about h3 {
    font-size: 1.2rem;
  }

  .about p {
    font-size: 0.8rem;
  }

  .aboutme-section {
    display: block;
    flex-direction: column;
    justify-content: center;
    height: auto;
  }

  .aboutmeimg {
    text-align: center;
  }

  .aboutmeimg img {
    width: 200px;
    height: 200px;
    margin-bottom: 30px;
  }

  .aboutme-section-one-text h1 {
    font-size: 2rem;
    margin-top: 1.5rem;
    padding-bottom: 1rem;
  }
  .aboutme-section-one-text {
    font-size: 0.9rem;
    line-height: 1.5rem;
  }

  .experience-links {
    flex-direction: column;
  }

  .contactme {
    flex-direction: column;
  }
}
