@font-face {
  font-family: "Poppins";
  font-weight: 700;
  src: url("../Assets/fonts/Poppins-Bold.ttf") format("truetype");
}

@font-face {
  font-family: "Poppins";
  font-weight: 400;
  src: url("../Assets/fonts/Poppins-Regular.ttf") format("truetype");
}

* {
  /*border-box tells the browser to account for borders and padding*/
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins";
  font-size: 18px;
  font-weight: 400;
  justify-content: center;
  align-items: center;
  text-align: center;
}

html {
  scroll-behavior: smooth;
}

nav {
  height: 90px;
  background: #212331;
  overflow: visible;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  border-bottom: 2px solid white;
  position: relative;
  flex-wrap: wrap;
}

nav a {
  color: #fff;
  font-family: Happy Monkey;
  font-weight: 700;
  text-decoration: none;
  padding: 0 1rem;
  border-bottom: 3px solid transparent;
}

#portfolio-site-title{
    color: white;
    font-family: Happy Monkey;
    font-weight: 700;
    padding-left: 20px;
    flex-shrink: 0;
}

.profile-links button{
  font-family: Happy Monkey;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 45px;
  margin-top: 7.5px;
}


/* Dark mode styles */
.dark-mode {
  background-color: #111111;
  color: white;
}

.dark-mode nav {
  background: #111111;
  border-bottom: 3px solid #262626;
}

.dark-mode .hero {
  background: #111111;
}

.dark-mode #widgets-row {
  background: #111111;
}

.dark-mode .description {
  border-top: 3px solid #262626;
  border-bottom: 3px solid #262626;
}

.dark-mode #widgets-row {
  border-top: 1px solid #262626;
  border-bottom: 1px solid #262626;
}

.dark-mode .hobbies-title {
  border-top: 3px solid #262626;
}

.dark-mode .hobbies-one {
  border-bottom: 3px solid #262626;
}

.dark-mode .hobbies-one .box {
  color: white;
  border-color: white;
}

.dark-mode .hobbies-one .box h1 {
  color: white;
}

.dark-mode .hobbies-one .box li {
  color: white;
}

.dark-mode .hobbies-title h1 {
  color: white;
}

.dark-mode #contact-description a {
  color: white;
}

.dark-mode #contact-description img {
  filter: brightness(0) invert(1);
}

.dark-mode .footer {
  background-color: #111111;
  border-top: 3px solid #262626;
}

.main-navigation {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  width: auto;
  z-index: 1000;
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  justify-content: space-around;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background-color: white;
  transition: 0.3s;
}

.main-navigation a:hover {
  border-bottom: 2px solid whitesmoke;
  padding-bottom: 10px;
}

.hero {
  background: #40445f;
  position: relative;
  overflow: hidden;
}

.center-image img {
  display: block;
  margin-left: auto;
  margin-right: 250px;
  width: 382px;
  position: relative;
  top: 65px;
  padding-top: 200px;
  animation: fadeInAnimation ease 1s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
  filter: drop-shadow(0px 5px 15px rgba(0, 0, 0, 0.5));
}

.button-container{
  float: left;
  padding-left: 90px;
}

.button-container button{
  font-family: Happy Monkey;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 45px;
  margin-top: 7.5px;
  cursor: pointer;
}

@keyframes fadeInAnimation {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.hero-container {
  padding-bottom: 280px;
  animation: fadeInAnimation ease 3s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

.column-center h1 {
  color: white;
  text-align: left;
  font-size: 72px;
  font-weight: 600;
  letter-spacing: 1.5px;
  font-family: Happy Monkey;
  margin-top: -300px;
  padding-left: 90px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.column-center p {
  text-align: left;
  padding-left: 90px;
  padding-right: 20px;
  color: silver;
  font-size: 20px;
  padding-top: 25px;
  padding-bottom: 25px;
  max-width: 650px;
}

.github-link img,
.linkedin-link img,
.leetcode-link img {
  padding-top: 10px;
  padding-left: 5px;
  padding-right: 5px;
  width: 55px;
  transition: 0.2s;
}

.github-link img:hover,
.linkedin-link img:hover,
.leetcode-link img:hover,
.profile-links button:hover {
  transform: scale(1.125);
  transition: 0.3s ease-in-out;
}

.profile-links {
  display: flex;
  align-items: center;
  margin-left: auto;
  padding-right: 20px;
  flex-shrink: 0;
}

.description {
  padding-top: 85px;
  padding-left: 350px;
  padding-right: 350px;
  padding-bottom: 125px;
  border-top: 3px solid black;
}

.description h1 {
  text-align: left;
  font-size: 40px;
  font-weight: 600;
  font-family: Happy Monkey;
}

.description p {
  text-align: left;
  padding-top: 10px;
  font-weight: 400;
}

.description button {
  float: left;
  background-color: white;
  color: black;
  border: 4px solid black;
  border-radius: 25px;
  padding: 5px 25px;
  margin-top: 20px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s;
}

#widgets-row {
  background: #40445f;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 20px;
  padding: 45px;
  border-top: 3px solid black;
  border-bottom: 3px solid black;
}

.box {
  padding-top: 45px;
  padding-bottom: 45px;
  text-align: center;
  color: white;
  position: relative;
  border: 3px solid white;
  border-radius: 25px;
}

.box h1 {
  color: #fff;
  font-size: 36px;
  font-weight: 600;
  font-family: Happy Monkey;
  text-decoration: underline;
}

.box h2 {
  color: #fff;
  font-family: Happy Monkey;
  font-size: 24px;
  font-weight: 700;
  text-decoration: underline;
  padding-top: 10px;
  padding-bottom: 15px;
}

.box h3 {
  font-style: italic;
  color: #fff;
}

.box li {
  color: #fff;
  padding: 5px 25px;
  list-style-position: inside;
}

.box li a {
  font-weight: 700;
  color: #fff;
  padding: 5px 25px;
  text-decoration: none;
}

.box p {
  padding-top: 15px;
  padding-bottom: 15px;
}

.box img {
  width: 20%;
  padding-bottom: 15px;
  transition: 0.5s;
}

.box img:hover {
  transform: scale(1.05);
}

.box button {
  background-color: white;
  border: 4px solid black;
  border-radius: 25px;
  color: black;
  font-weight: 700;
}

/* Skills section */
.skills-box {
  padding-top: 45px;
  padding-bottom: 45px;
  text-align: center;
  color: white;
  position: relative;
}

.skills-box h1 {
  color: #fff;
  font-size: 36px;
  font-weight: 600;
  font-family: Happy Monkey;
  text-decoration: underline;
}

.skills-box li {
  color: #fff;
  padding: 5px 25px;
  list-style-position: inside;
}

.skills-box img {
  width: 75px;
  padding-top: 5px;
  padding-left: 20px;
  padding-bottom: 15px;
  vertical-align: middle;
  transition: 0.2s;
}

.skills-box img[alt="css-logo"] {
  width: 55px;
}

.skills-box img:hover {
  transform: scale(1.02);
}

/* Contact section */
#contact-description {
  padding-top: 45px;
  padding-left: 350px;
  padding-right: 350px;
  padding-bottom: 45px;
  text-align: left;
}

#contact-description h1 {
  text-align: left;
  padding-bottom: 10px;
  font-size: 40px;
  font-weight: 600;
  font-family: Happy Monkey;
}

#contact-description h2 {
  text-align: left;
  font-weight: 700;
}

#contact-description a {
  text-decoration: none;
  color: black;
}

#contact-description img {
  width: 15px;
}

/* Hobbies section */
.hobbies-title h1 {
  padding-top: 45px;
  padding-left: 350px;
  text-align: left;
  font-family: Happy Monkey;
  font-size: 36px;
  font-weight: 600;
}

.hobbies-one {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 20px;
  padding-left: 45px;
  padding-right: 45px;
  padding-bottom: 45px;
  border-bottom: 3px solid black;
}

.hobbies-one .box {
  color: black;
  border-color: black;
}

.hobbies-one .box h1 {
  color: black;
  font-size: 22px;
}

.hobbies-one .box img {
  padding-top: 15px;
  width: 100px;
}

.hobbies-one .box li {
  color: black;
}

.footer {
  border-top: 3px solid black;
  background-color: #212331;
  text-align: center;
  padding-bottom: 45px;
  padding-top: 45px;
}

.footer h1 {
  color: white;
  font-family: Happy Monkey;
  font-weight: bold;
}

.footer a {
  color: white;
  text-decoration: none;
  font-family: Happy Monkey;
  font-weight: bold;
}

.footer a:hover {
  text-decoration: underline;
}

#scroll-to-top-btn {
  display: none;
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: white;
  border: 2px solid black;
  border-radius: 25px;
  padding: 5px 15px;
  font-size: 24px;
  text-decoration: none;
  cursor: pointer;
}

#scroll-to-top-btn:hover {
  transform: scale(1.05);
  background-color: #212331;
  color: white;
  border-color: black;
  transition: ease-in-out 0.3s;
}

#dark-mode-btn {
  /* display = none; */
  position: fixed;
  bottom: 25px;
  left: 25px;
  background-color: white;
  border: 2px solid black;
  border-radius: 25px;
  padding: 5px 15px;
  font-size: 24px;
  cursor: pointer;
}

#dark-mode-btn:hover {
  transform: scale(1.05);
  background-color: #212331;
  color: white;
  border-color: black;
  transition: ease-in-out 0.3s;
}

/* Responsive styles */
@media screen and (max-width: 1200px) {
  #portfolio-site-title {
    padding-left: 15px;
    font-size: 16px;
  }
  
  .profile-links {
    padding-right: 15px;
  }
  
  .description {
    padding-left: 120px;
    padding-right: 120px;
  }
  
  #contact-description {
    padding-left: 120px;
    padding-right: 120px;
  }

  #widgets-row {
    padding: 25px;
  }

  .box img {
    width: 25%;
  }
  
  .column-center h1 {
    font-size: 60px;
    padding-left: 60px;
  }
  
  .column-center p {
    padding-left: 60px;
    padding-right: 20px;
    max-width: 500px;
  }
  
  .center-image img {
    margin-right: 150px;
    width: 340px;
  }
  
  .hobbies-title h1 {
    padding-left: 120px;
    font-size: 32px;
  }
}

@media screen and (max-width: 992px) {
  .description {
    padding-left: 80px;
    padding-right: 80px;
  }
  
  #contact-description {
    padding-left: 80px;
    padding-right: 80px;
  }

  .center-image img {
    width: 280px;
    padding-top: 180px;
    margin-right: 100px;
  }

  .column-center h1 {
    font-size: 48px;
    padding-left: 40px;
    margin-top: -260px;
  }
  
  .column-center p {
    padding-left: 40px;
    padding-right: 20px;
    font-size: 18px;
    max-width: 450px;
  }
  
  .hero-container {
    padding-bottom: 180px;
  }
  
  .hobbies-title h1 {
    padding-left: 80px;
    font-size: 30px;
  }
}

@media screen and (max-width: 768px) {
  /* Navigation */
  nav {
    padding: 0 10px;
    height: auto;
    min-height: 70px;
  }

  #portfolio-site-title {
    display: none;
  }

  .hamburger {
    display: flex;
    order: 1;
    margin-right: auto;
  }

  .main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #212331;
    flex-direction: column;
    width: 100%;
    transform: none;
    padding: 20px 0;
    display: none;
    border-top: 1px solid white;
  }

  .main-navigation.active {
    display: flex;
  }

  .main-navigation a {
    padding: 10px 0;
    width: 100%;
  }

  .profile-links {
    order: 3;
    padding-right: 0;
    margin-left: 0;
  }

  .github-link img,
  .linkedin-link img,
  .leetcode-link img {
    width: 35px;
    padding-left: 2px;
    padding-right: 2px;
  }

  .profile-links button {
    font-size: 14px;
    padding: 5px 10px;
  }

  /* Hero section */
  .hero {
    display: flex;
    flex-direction: column;
  }
  
  .center-image {
    display: none;
  }

  .column-center h1 {
    font-size: 40px;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
    margin-top: 50px;
  }
  
  .column-center p {
    font-size: 16px;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
    max-width: none;
  }

  .button-container {
    float: none;
    padding-left: 0;
    text-align: center;
    padding-top: 20px;
  }

  .hero-container {
    padding-bottom: 100px;
  }
  
  .hobbies-title h1 {
    padding-left: 40px;
    padding-right: 40px;
    font-size: 28px;
  }
}

@media screen and (max-width: 480px) {
  nav {
    padding: 0 5px;
    min-height: 60px;
  }

  #portfolio-site-title {
    font-size: 12px;
  }

  .hamburger {
    width: 25px;
    height: 25px;
  }

  .profile-links button {
    font-size: 12px;
    padding: 4px 8px;
  }

  .github-link img,
  .linkedin-link img,
  .leetcode-link img {
    width: 30px;
  }

  .hobbies-title h1 {
    padding-left: 20px;
    padding-right: 20px;
    font-size: 24px;
  }
}

@media screen and (max-width: 380px) {
  #portfolio-site-title {
    font-size: 11px;
  }

  .profile-links button {
    font-size: 11px;
    padding: 3px 6px;
  }

  .hobbies-title h1 {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 22px;
  }
}
