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

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

@keyframes textIn {
  0% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(0%);
  }
}
@keyframes textOut {
  0% {
    transform: translateY(0%);
  }
  100% {
    transform: translateY(-100%);
  }
}

@keyframes fillBars {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

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

/* Body and Background */

body,
html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Poppins", sans-serif;
  background-image: linear-gradient(
    to bottom,
    #2d528e,
    #5b7dae,
    #d782d4,
    #f98125
  );
  mix-blend-mode: transparent;
}

html {
  scroll-behavior: smooth;
}

p {
  font-family: "Dank Mono", ui-monospace, monospace;
  color: black;
}

/* Transition */
a,
.btn {
  transition: all 300ms ease;
}

/* Desktop Nav */

nav,
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh;
  width: 100%;
}

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

a {
  color: white;
  text-decoration: none;
  text-decoration-color: white;
}

a:hover {
  color: gray;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: rgb(181, 181, 181);
}

.nav-links {
  color: white;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  color: white;
}

.logo:hover {
  cursor: default;
}

/* Hamburger 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;
  background-color: black;
  transition: all 0.3 ease-in-out;
}

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

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

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

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

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span:first-child {
  transform: none;
}

/* Container */

.container {
  background: #ffffff;
  text-align: justify;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: auto;
  transition: all 0.3s ease;
}

/* Section */

section {
  display: flex;
  padding: 2rem;
  justify-content: center;
  height: auto;
  width: 100%;
}

#about-content {
  display: flex;
  padding: 2rem;
  justify-content: center;
  height: auto;
  width: 100%;
}

/* Profile Section */
#profile {
  display: flex;
  justify-content: space-around;
  height: auto;
  width: 100%;
}

.section__pic-container {
  display: flex;
  height: 400px;
  width: 200px;
  margin: auto 0;
  justify-content: right;
}

.pro-pic {
  border-radius: 50%;
  height: 450px;
  width: 450px;
  border: 10px solid rgb(182, 171, 117);
}

.section__text__p {
  padding-top: 40px;
  text-align: center;
  font-size: 20px;
  color: white;
  font-weight: 600;
}

.section__text__p1 {
  font-size: 30px;
  text-align: center;
  color: black;
}

.section__text__p2 {
  display: flex;
  margin-bottom: 1rem;
  width: 30ch;
  animation: typing 3s steps(30), blink 0.5s step-end infinite alternate;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid;
  font-family: monospace;
  font-size: 2em;
  justify-content: center;
  text-align: center;
}

.name {
  text-align: center;
  font-size: 50px;
  color: aliceblue;
}

.title {
  font-size: 120px;
  text-transform: uppercase;
  font-family: "wght" 311;
  margin-bottom: "Gambetta", serif;
  letter-spacing: -3px;
  transition: 700ms ease;
  font-variation-settings: "wght" 311;
  color: PaleGoldenRod;
  outline: none;
  text-align: center;
}

.title:hover {
  font-variation-settings: "wght" 582;
  letter-spacing: 1px;
}

/*Icon*/

.icon-column {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.icon-column i,
.icon-column iconify-icon {
  font-size: 40px; /* for Font Awesome */
  width: 40px; /* for Iconify */
  height: 40px; /* for Iconify */
  color: #000000;
  cursor: pointer;
}

/* Buttons */
.btn-container {
  display: flex;
  justify-self: center;
  gap: 1rem;
  margin: 0 auto;
  padding-bottom: 10%;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
}
.btn-color-1,
.btn-color-2 {
  border: rgb(53, 53, 53) 0.1rem solid;
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}

.btn-color-1:hover,
.btn-color-2:hover {
  background: rgb(0, 0, 0);
  color: white;
}

.btn-color-1,
.btn-color-2 {
  background: none;
}

.btn-color-1:hover,
.btn-color-2:hover {
  border: rgb(255, 255, 255) 0.1rem solid;
}
.btn-container {
  gap: 1rem;
  justify-content: center;
}

/* About Section */

.about-containers {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.section-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  height: 100%;
  width: 100%;
}

.section__pic-container {
  width: 400px;
  height: 400px;
  margin: auto 0;
}

.about-pic {
  width: 100%;
  max-width: 300px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.text-container {
  background: #ffffff;
  text-align: justify;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 1000px;
  transition: all 0.3s ease;
  justify-content: center;
}

.text {
  text-align: justify;
  line-height: 1.6;
  color: #000000;
}

/* Skills Section */

.Myskills {
  justify-content: center;
  padding: 5rem;
}

.skill-name {
  font-size: 18px;
  font-weight: 700;
  color: #f1f1f1;
  text-transform: uppercase;
  margin: 20px 0;
}

.skill-bar {
  height: 14px;
  background: #282828;
  border-radius: 3px;
}

.skill-per {
  height: 14px;
  background: #f7c30a;
  border-radius: 3px;
  position: relative;
  animation: fillBars 2.5s 1;
}

.skill-per::before {
  content: attr(per);
  position: absolute;
  padding: 4px 4px;
  background: #f1f1f1;
  border-radius: 4px;
  font-size: 12px;
  right: 0;
  transform: translateX(50%);
}

.skill-per::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: #f1f1f1;
  top: -20px;
  right: 0;
  transform: translateX(50%) rotate(45deg);
  border-radius: 2px;
}

/* Experience Section */

#experience {
  display: flex;
  padding: 2rem;
  flex-wrap: wrap;
  flex-direction: row;
  height: auto;
  width: 100%;
}

.experience-details-container {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  gap: 2rem;
  justify-content: center; /* Center align the containers in the row */
}

.experience-sub-title {
  font-size: 1.5rem;
  margin-bottom: 1rem; /* Space below the title */
  color: #333; /* Set a color to make the title stand out */
}

.article-container {
  display: flex;
  flex-direction: column;
}

.article-container article {
  display: flex;

  margin-bottom: 1rem;
}

.article-container i {
  font-size: 20px; /* Adjust icon size */
  margin-right: 10px; /* Space between icon and text */
}

.article-container div {
  font-size: 1rem;
}

/* Projects Section */
#projects {
  position: relative;
  padding: 2rem 1rem;
}

.projects-details-container {
  display: flex;
  justify-content: space-between; /* Distributes space between the containers */
  flex-wrap: wrap; /* Allows wrapping if the containers don’t fit in a single row */
  gap: 2rem;
  padding-bottom: 2rem;
}

.small-container {
  background: rgb(250, 250, 250);
  border-radius: 1rem;
  padding: 4rem;
  border: 1px solid rgb(163, 163, 163);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 350px;
  flex: 1; /* Ensures that items grow evenly */
  max-width: auto; /* Limits the width of each container */
  height: auto; /* Allows the height to adjust based on content */
  margin: 2rem;
}

.project-img {
  border-radius: 1rem;
  width: 100%;
  max-width: 400px;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s, opacity 0.3s;
  margin-bottom: 1rem;
}

.project-img-port {
  border-radius: 1rem;
  width: 80%;
  max-width: 100px;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s, opacity 0.3s;
  margin-bottom: 1rem;
}

.project-img:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.project-title {
  margin: 1rem 0;
  font-size: 1.2rem;
  color: #333;
}

.project-btn {
  color: white;
  background-color: #4caf50;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: auto;
}

.project-btn:hover {
  background-color: #45a049;
}

.column-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: auto;
}
/* Contact Section */

#contact,
#skills {
  display: flex;
  justify-content: center;
  flex-direction: column;
  color: black;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: rgb(94, 36, 36) 0.1rem solid;
  background: transparent;
  margin: 1rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

p a {
  color: black;
}
.contact-info-container p {
  font-size: larger;
}

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}

/* Footer */

footer {
  height: 20vh;
  margin: 0 1 rem;
}

footer p {
  text-align: center;
}

footer a {
  text-align: center;
  color: black;
}

/*Text Animation*/

.animate-text {
  padding-top: 2rem;
}

.animate-text p {
  margin: 0;
  overflow: hidden;
}
.animate-text span {
  font-size: 40px;
  color: PaleGoldenRod;
  font-weight: 700;
  display: inline-block;
  line-height: 46px;
  display: none;
}

.animate-text span.text-in {
  display: block;
  animation: textIn 0.5s ease;
}
.animate-text span.text-out {
  animation: textOut 0.5s ease;
}

.container__text {
  align-self: center;
  text-align: center;
  padding-top: 10%;
  place-items: center;
}
