:root {
  --text-color: #1a1c20;
  --link-color: #4a76ee;
  --background-color: #eeeff1;
}

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

html {
  scroll-behavior: smooth;
}

body {
  max-width: 1400px;
  font-family: 'Poppins', sans-serif;
  background-color: var(--background-color);
  margin: 0 auto;
  overflow-x: hidden;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

/* NAV */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  height: 80px;
  position: relative;
}

nav .left a {
  color: var(--text-color);
  font-size: 30px;
  font-weight: 600;
}

nav .left a:hover {
  text-shadow: 0 5px 10px rgb(204, 204, 210);
}

nav .right a {
  color: var(--text-color);
  margin: 0 10px;
  font-size: 22px;
}

nav .right a:last-child {
  color: white;
  background-color: var(--text-color);
  padding: 5px 15px;
  border-radius: 5px;
}

nav .right a span {
  margin-left: 5px;
}

/* section 1:hero */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 50px;
  margin: 150px 50px;
  gap: 40px;
}

.hero h2 {
  font-size: 45px;
  margin-bottom: 10px;
}

.hero .text .links {
  margin-top: 25px;
}

.hero .text .links a {
  display: inline-block;
  padding: 5px 10px;
  border: 2px solid var(--link-color);
  border-radius: 5px;
  margin-right: 10px;
  margin-bottom: 10px;
  transition: 0.5s;
  margin-top: 15px;
}

.hero .text p {
  border-radius: 5px;
  padding-top: 15px;
  font-size: 16px;
  width: 100%;
  max-width: 100%;
}

.hero .text .links a:hover {
  color: var(--text-color);
  border: 2px solid var(--text-color);
  transform: translateY(-10px);
}

/* section 2: skills */

.skills-section {
  padding: 0 50px;
  margin-bottom: 100px;
}

.skills-section h2 {
  text-align: center;
  font-size: 40px;
  padding: 20px;
}

.skills-section .text {
  text-align: center;
  margin-bottom: 20px;
  margin-top: 30px;
}

.skills-section .cells {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.skills-section .cells .cell {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  width: 200px;
  padding: 10px 20px;
  border: 1.5px solid #d3d3d3;
  border-radius: 5px;
  margin: 10px;
  gap: 2px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.5s;
}

.skills-section .cells .cell:hover {
  background-color: #d3d3d3;
  transform: translateY(-10px);
}

.skills-section .cells .cell img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 2px;
  margin-right: 10px;
}

.skills-section .cells .cell span {
  font-size: 15px;
}

.skills-section .softskills {
  text-align: center;
  font-size: 40px;
  margin-top: 20px;
}

.projects .group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.projects h2 {
  text-align: center;
  font-size: 40px;
  margin-bottom: 50px;
  padding: 10px;
}

.projects .group .project-1,
.projects .group .project-2,
.projects .group .project-3 {
  background-color: #d3d3d3;
  align-items: center;
  width: 350px;
  height: 500px;
  padding: 10px 20px;
  border: 1.5px solid #d3d3d3;
  border-radius: 5px;
  margin: 10px;
  gap: 2px;
  transition: 0.3s;
  color: var(--text-color);
}

.projects .group .project-1:hover,
.projects .group .project-2:hover,
.projects .group .project-3:hover {
transform: scale(1.05);
transition: transform 0.3s ease;
}

.paper-button-wrapper {
  margin-top: 12px;
}

.projects .group .project-3 .view-paper {
  margin-right: 100px;
  margin-top: 50px;
  padding: 8px 16px;
  background-color: #000000;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.projects .group h3 {
  margin-bottom: 30px;
}

.github-logo-projects {
  font-size: 35px;
  color: #000;
  text-decoration: none;
  margin-top: 50px;
}

.paper-button-wrapper .paper-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.to-top {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.to-top i {
  padding: 10px 20px;
  background-color: #1a1c20;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.to-top i:hover {
  background-color: #333;
}

/* contact */

.contact {
  padding: 0 50px;
  margin-bottom: 100px;
}

.contact h2 {
  text-align: center;
  font-size: 40px;
  padding-top: 100px;
  margin-bottom: 50px;
}

.contact .group h3 {
  text-align: center;
  font-size: 20px;
  padding-top: 100px;
  margin-bottom: 50px;
}

.contact .group .text {
  margin-top: 50px;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.contact .group a {
  color: var(--text-color);
}

footer {
  text-align: center;
  font-size: 10px;
  padding-top: 100px;
  margin-bottom: 50px;
}

.pg-text {
  margin-left: 94vh;
  margin-top: 50px;
  padding: 8px 16px;
  background-color: #000000;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  height: 45px;
}

/* Media Queries and Fixes */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    margin: 50px 20px;
    padding: 0;
    gap: 20px;
    text-align: center;
  }

  .hero .text {
    align-items: center;
    justify-content: center;
  }

  .hero .text h2 {
    font-size: 28px;
  }
}

@media (max-width: 900px) {
  .hero .text h2 {
    font-size: 24px;
  }

  .contact .group {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    margin: 50px 20px;
    padding: 0;
    gap: 20px;
    text-align: center;
  }

  .hero .text {
    align-items: center;
    justify-content: center;
  }

  .hero .text h2 {
    font-size: 28px;
    margin-top: 50px;
  }

  nav {
    padding: 0px 20px;
  }

  nav .right a span {
    display: none;
  }

  nav .right a {
    font-size: 22px;
  }

  nav .right a:last-child {
    color: var(--text-color);
    background-color: transparent;
    padding: 0;
  }

  nav .left a {
    font-size: 20px;
  }

  .skills-section {
    padding: 0 20px;
  }

  .contact {
    padding: 0 20px;
  }

  .hero .text .links a {
    padding: 5px 10px;
    font-size: 14px;
    margin-right: 5px;
    margin-bottom: 10px;
  }

  .certifications h2 {
    font-size: 20px;
    margin: 100px 0 50px;
  }

  .pg-text {
    margin-left: 41vh;
    margin-top: 50px;
    padding: 8px 16px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    height: 45px;
  }
}

@media (max-width: 600px) {
  .hero .text h2 {
    font-size: 30px;
  }

  .skills-section,
  .contact {
    padding: 0 20px;
  }

  /* .pg-text {
    margin-left: 31vh;
    margin-top: 50px;
    padding: 8px 16px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    height: 45px;
  } */
}

@media (max-width: 480px) {
  .hero .text h2 {
    font-size: 30px;
  }

  .hero .text .links {
    margin-top: 25px;
    margin-bottom: 50px;
  }

  .hero {
    padding: 0 10px;
  }

  .pg-text {
    margin-left: 27vh;
    margin-top: 50px;
    padding: 8px 16px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    height: 45px;
  }
}

@media (max-width: 430px) {
  .hero {
    padding: 0 10px;
  }

  .hero .text h2 {
    font-size: 30px;
  }

  .pg-text {
    margin-left: 27vh;
    margin-top: 50px;
    padding: 8px 16px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    height: 45px;
  }
}

/* Animations */
@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}


@keyframes popIn {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.animate-slide-in {
  animation: slideInLeft 1s ease-out forwards;
}

.section-loader {
  height: 4px;
  width: 100vw;
  --c: no-repeat linear-gradient(#000000 0 0);
  background: var(--c), var(--c), transparent;
  background-size: 20% 100%, 20% 100%, 100% 100%;
  animation: section-bar 12s infinite;
  margin: 60px 0;
  overflow: hidden;
}

@keyframes section-bar {
  0% {
    background-position: -150% 0, -150% 0;
  }

  66% {
    background-position: 250% 0, -150% 0;
  }

  100% {
    background-position: 250% 0, 250% 0;
  }
}
