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

:root {
  --blue: #00a8ff;
  --black: #444;
  --light-color: #777;
  --bg-color: #e6e6e6;
  --border: 0.1rem solid rgba(0, 0, 0, 0.2);
  --box-shadow: 0.4rem 0.4rem 1rem #ccc, -0.4rem -0.4rem 1rem #fff;
  --box-dark-shadow: 0.4rem 0.4rem 1rem #111, -0.4rem -0.4rem 1rem #333;
  --box-shadow-inset: 0.4rem 0.4rem 1rem #ccc inset,
    -0.4rem -0.4rem 1rem #fff inset;
  --red: #ff0000;
  --green: #00ff00;
  --white: rgb(241, 240, 240);
  --header-height: 75px;
  --none: "none";
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

* {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
  text-transform: capitalize;
  transition: 0.2s linear;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  -webkit-border-radius: 10px;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  -webkit-border-radius: 10px;
  border-radius: 10px;
  background: #6d6d6d;
}

body {
  background: var(--bg-color);
  padding-left: 30rem;
}

body.active {
  --black: #fff;
  --light-color: #ddd;
  --bg-color: #222;
  --border: 0.1rem solid rgba(0, 0, 0, 0.4);
  --box-shadow: 0.4rem 0.4rem 1rem #111, -0.4rem -0.4rem 1rem #333;
  --box-shadow-inset: 0.4rem 0.4rem 1rem #111 inset,
    -0.4rem -0.4rem 1rem #333 inset;
  --box-shadow-outset: 0.4rem 0.4rem 1rem #111, -0.4rem -0.4rem 1rem #333;
  --header-height: 75px;
}

#facebook:hover {
  color: #3b5998;
}

#email:hover {
  color: #4f9df7;
}

#instagram:hover {
  color: #e1306c;
}
#line:hover {
  color: #00c300;
}
#phone:hover {
  color: #10ac84;
}
#github:hover {
  color: #000000;
}
#gitlab:hover {
  color: #e24329;
}
#sandbox:hover {
  color: #2225f0;
}

section {
  min-height: 100%;
  padding: 2rem 2rem 2rem 2rem;
  margin: 0 0 20rem 0;
}

section.home {
  min-height: 100vh;
}
section.about {
  margin: 0 auto 40rem auto;
}
section.activities {
  margin: 0 auto 20rem auto;
}
section.skill {
  margin: 0 auto 20rem auto;
}
section.portfolio {
  margin: 0 auto 20rem auto;
}

.btn {
  margin-top: 1rem;
  display: inline-block;
  padding: 1rem 3.5rem;
  border-radius: 0.5rem;
  font-size: 1.7rem;
  cursor: pointer;
  background: none;
  color: var(--black);
  box-shadow: var(--box-shadow);
}

.btn:hover {
  box-shadow: var(--box-shadow-inset);
  color: var(--blue);
}

#submit-button {
  margin-top: 1rem;
  display: inline-block;
  text-align: center;
  padding: 1rem 3.5rem;
  border-radius: 0.5rem;
  font-size: 1.7rem;
  cursor: pointer;
  background: none;
  color: var(--black);
  box-shadow: var(--box-shadow);
  width: 20rem;
}

#submit-button:hover {
  box-shadow: var(--box-shadow-inset);
  color: var(--blue);
}

.heading {
  text-align: center;
  font-size: 5rem;
  color: var(--black);
  text-transform: uppercase;
  padding-bottom: 0;
}

.heading span {
  color: var(--blue);
  text-transform: uppercase;
}

.header {
  position: fixed;
  top: 0;
  left: -110%;
  z-index: 999;
  background: var(--bg-color);
  width: 30rem;
  height: 100%;
  padding: 1.5rem;
  text-align: center;
  opacity: 1;
  transition: all 0.3s ease-in-out;
}

/* ปรับปรุง active state */
.header.active {
  left: 0;
  transition: all 0.3s ease-in-out;
}

/* เพิ่ม class สำหรับ animation ปิด */
.header.closing {
  left: -110%;
  transition: all 0.3s ease-in-out;
}

@media screen and (min-width: 1281px) {
  body {
    padding: 0;
  }
  .header {
    position: fixed;
    width: 100%;
    max-height: fit-content;
    left: 0;
    padding: 5px 0;
    background: var(--bg-color);
    border-bottom: var(--border);
    transition: 0.2s linear;
    opacity: 1;
    visibility: visible;
  }

  .header.active {
    left: 0;
  }

  .header-sticky {
    position: fixed;
    top: 0;
    z-index: 999;
  }

  .header-hidden {
    transform: translateY(calc(-1 * var(--header-height)));
  }

  .header .menu {
    max-width: 1270px;
    margin: auto;
    padding: 0 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .header .menu .user {
    display: flex;
    align-items: center;
  }

  .header .menu .user img {
    margin: 0.2rem 0;
    border: 0.3rem solid transparent;
    border-radius: 50%;
    height: 6rem;
    width: 6rem;
    box-shadow: var(--box-shadow);
  }

  .header .menu .user h3 {
    margin: auto 0 auto 10px;
    font-size: 28px;
    font-weight: 600;
    text-decoration: none;
    color: var(--black);
  }

  .header .menu .user p {
    display: none;
  }

  .header .menu ul {
    list-style: none;
    display: flex;
  }

  .header .menu ul a {
    margin: 0 8px;
    text-decoration: none;
    font-size: 18px;
    color: #31344b;
    font-weight: 400;
    display: inline-flex;
    padding: 0.7rem 1.5rem;
    border-radius: 5rem;
    font-size: 2rem;
    box-shadow: var(--box-shadow);
    color: var(--black);
  }

  .header .menu .navbar ul li a:hover {
    box-shadow: var(--box-shadow-inset);
    color: var(--blue);
  }
  .header .menu .navbar ul li .active {
    box-shadow: var(--box-shadow-inset);
    color: var(--blue);
  }
  section {
    max-width: 1270px !important;
    margin: auto;
  }
}

@media screen and (min-width: 1281px) and (max-width: 1389px) {
  #theme-toggler {
    top: 9rem;
    right: 1.1rem;
  }
  .theme-toggler-up {
    transform: translateY(calc(-1 * var(--header-height))) !important;
  }
}

@media screen and (min-width: 1390px) and (max-width: 1400px) {
  #theme-toggler {
    top: 1.5rem;
    right: 1.1rem;
  }
}

@media screen and (min-width: 1401px) {
  #theme-toggler {
    top: 1.5rem;
    right: 1.1rem;
  }
}

@media screen and (min-width: 376px) and (max-width: 1280px) {
  .header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    background: var(--bg-color);
    width: 30rem;
    border-radius: 0 2rem 2rem 0;
    border-right: var(--border);
    height: 100%;
    padding: 1.5rem;
    text-align: center;
    opacity: 1;
  }

  .header .menu .user {
    margin: 1.3rem;
    padding: 1rem 0 1rem 0;
    border-radius: 2.5rem;
  }

  .header .menu .user img {
    margin: 1rem;
    border: 1rem solid transparent;
    border-radius: 50%;
    height: 18rem;
    width: 18rem;
    box-shadow: var(--box-shadow);
  }

  .header .menu .user h3 {
    color: var(--black);
    font-size: 2.5rem;
  }

  .header .menu .user p {
    color: var(--blue);
    font-size: 1.5rem;
  }

  .header .menu .navbar {
    padding: 1rem;
  }

  .header .menu .navbar ul li {
    list-style: none;
  }

  .header .menu .navbar ul li a {
    display: block;
    margin: 1.5rem 1.1rem;
    padding: 0.7rem;
    border-radius: 5rem;
    font-size: 2rem;
    box-shadow: var(--box-shadow);
    color: var(--black);
    background: var(--bg-color);
  }

  .header .menu .navbar ul li a:hover {
    box-shadow: var(--box-shadow-inset);
    color: var(--blue);
  }
  .header .menu .navbar ul li .active {
    box-shadow: var(--box-shadow-inset);
    color: var(--blue);
  }
  #theme-toggler {
    top: 1.5rem;
    right: 1.1rem;
  }
}

@media screen and (max-width: 375px) {
  .header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    background: var(--bg-color);
    width: 30rem;
    border-radius: 0 2rem 2rem 0;
    border-right: var(--border);
    height: 100%;
    padding: 1.5rem;
    text-align: center;
    justify-content: center;
    opacity: 1;
  }

  .header .menu .user {
    width: 30rem;
    margin: auto;
    padding: 0 0 1.1rem 0;
    border-radius: 2.5rem;
    box-shadow: none;
  }

  .header .menu .user img {
    margin: 1rem;
    border: 1rem solid transparent;
    border-radius: 50%;
    height: 18rem;
    width: 18rem;
    box-shadow: var(--box-shadow);
  }

  .header .menu .user h3 {
    color: var(--black);
    font-size: 2.5rem;
  }

  .header .menu .user p {
    color: var(--blue);
    font-size: 1.5rem;
  }

  .header .menu .navbar {
    padding: 1rem;
  }

  .header .menu .navbar ul li {
    list-style: none;
  }

  .header .menu .navbar ul li a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25rem;
    margin: 1.5rem auto;
    padding: 0.7rem 1.4rem;
    border-radius: 5rem;
    font-size: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    color: var(--black);
    background: var(--bg-color);
  }

  .header .menu .navbar ul li a:hover {
    box-shadow: var(--box-shadow-inset);
    color: var(--blue);
  }
  .header .menu .navbar ul li .active {
    box-shadow: var(--box-shadow-inset);
    color: var(--blue);
  }
  #theme-toggler {
    top: 1.5rem;
    right: 1.1rem;
  }
}

@media screen and (min-width: 1451px) {
  #open-more-arrow-btn.open-more-arrow-btn,
  #open-more-plus-btn.open-more-plus-btn {
    display: none;
  }
  .home .media-bar {
    display: flex;
    flex-direction: column;
    position: fixed;
    right: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--box-shadow);
    background: var(--bg-color);
    padding: 0;
    opacity: 1;
    z-index: 1000;
    visibility: hidden;
  }

  .home .media-bar a {
    height: 5rem;
    width: 5rem;
    line-height: 5rem;
    box-shadow: var(--box-shadow);
    margin: 0.5rem;
    font-size: 2rem;
    color: var(--black);
    border-radius: 0.5rem;
    opacity: 1;
    visibility: visible;
  }

  .home .media-bar a:hover {
    box-shadow: var(--box-shadow-inset);
    color: var(--blue);
  }
  .contact form {
    box-shadow: var(--box-shadow);
  }
}

@media screen and (min-width: 1391px) and (max-width: 1450px) {
  #open-more-arrow-btn.open-more-arrow-btn,
  #open-more-plus-btn.open-more-plus-btn {
    display: none;
  }
  .home .media-bar {
    display: flex;
    flex-direction: column;
    position: fixed;
    right: 0.5rem;
    opacity: 1;
    z-index: 1000;
  }
  .home .media-bar a {
    height: 5rem;
    width: 5rem;
    line-height: 5rem;
    background: var(--bg-color);
    box-shadow: var(--box-shadow);
    margin: 0.5rem;
    font-size: 2rem;
    color: var(--black);
    border-radius: 0.5rem;
    opacity: 1;
  }

  .home .media-bar a:hover {
    box-shadow: var(--box-shadow-inset);
    color: var(--blue);
  }
}

@media screen and (max-width: 1390px) {
  .home .media-bar {
    box-sizing: border-box;
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    width: auto;
    right: -20px;
  }
  #open-more-arrow-btn.open-more-arrow-btn {
    position: fixed;
    align-items: center;
    justify-content: center;
    top: 47vh;
    right: 1.1rem;
    z-index: 1000;
    height: 5rem;
    width: 5rem;
    line-height: 5rem;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: var(--box-shadow);
    text-align: center;
    color: var(--black);
    background: var(--bg-color);
    transition: 0.9s all ease-in;
  }
  #open-more-arrow-btn.open-more-arrow-btn:hover {
    color: var(--blue);
    box-shadow: var(--box-shadow-inset);
  }
  #open-more-arrow-btn #open-more-icon:hover {
    color: var(--blue);
  }
  #open-more-arrow-btn.open-more-arrow-btn.move-left {
    transform: translateX(-55px);
    transition: all 0.1s ease-in-out;
  }
  #open-more-arrow-btn.open-more-arrow-btn.move-right {
    transform: translateX(5px);
    transition: all 0.9s ease-in-out;
  }

  .move-icons-list {
    transform: translateX(70px);
    transition: all 1s ease-in-out;
  }

  .home .media-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    right: 0.5rem;
    opacity: 1;
    z-index: 1000;
  }
  .home .media-bar a {
    height: 5rem;
    width: 5rem;
    line-height: 5rem;
    background: var(--bg-color);
    box-shadow: var(--box-shadow);
    margin: 0.5rem;
    font-size: 2rem;
    color: var(--black);
    border-radius: 0.5rem;
    opacity: 1;
  }
  .home .media-bar a:hover {
    box-shadow: var(--box-shadow-inset);
    color: var(--blue);
  }
}

#menu-btn {
  position: fixed;
  top: 1.5rem;
  left: 2rem;
  z-index: 1000;
  height: 5rem;
  width: 5rem;
  line-height: 5rem;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: var(--box-shadow);
  text-align: center;
  color: var(--black);
  background: var(--bg-color);
  display: none;
}

#menu-btn:hover {
  color: var(--blue);
  box-shadow: var(--box-shadow-inset);
}

#menu-btn.menu-btn-active {
  color: var(--blue);
  box-shadow: var(--box-shadow-inset);
}

#menu-btn.menu-btn-deactive {
  color: var(--black);
  box-shadow: var(--box-shadow);
}

#theme-toggler {
  position: fixed;
  z-index: 1000;
  height: 5rem;
  width: 5rem;
  line-height: 5rem;
  border-radius: 50%;
  font-size: 2.5rem;
  cursor: pointer;
  box-shadow: var(--box-shadow);
  text-align: center;
  color: var(--black);
  background: var(--bg-color);
}

#theme-toggler:hover {
  color: var(--blue);
  box-shadow: var(--box-shadow-inset);
}

.scrollToTopBtn {
  /* place it at the bottom right corner */
  position: fixed;
  bottom: 1.5rem;
  right: 1.1rem;
  /* keep it at the top of everything else */
  z-index: 999;
  height: 5rem;
  width: 5rem;
  line-height: 5rem;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: var(--box-shadow);
  text-align: center;
  color: var(--black);
  background: var(--bg-color);
  /* hide with opacity */
  opacity: 0;
  /* also add a translate effect */
  transform: translateY(100px);
  /* and a transition */
  transition: all 0.5s ease;
}
.scrollToTopBtn:hover {
  color: var(--blue);
  box-shadow: var(--box-shadow-inset);
}

.showBtn {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.home {
  display: flex;
  /* flex-flow: column; */
  align-items: center;
  justify-content: center;
  text-align: center;
}

.home .media-bar ul li {
  list-style: none;
}

.home .content h3 {
  font-size: 7rem;
  color: var(--black);
  line-height: 1.1;
  text-transform: uppercase;
}

.home .content p {
  font-size: 2rem;
  color: var(--blue);
  padding-bottom: 0.5rem;
}
section.about {
  margin-bottom: 10rem;
}
.about .row {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap-reverse;
  gap: 2rem;
}

.about .row .box-container {
  flex: 1 1 40rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.about .row .box-container .box {
  flex: 1 1 18rem;
  text-align: center;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--box-shadow);
  cursor: pointer;
}

.about .row .box-container .box h3 {
  font-size: 5rem;
  color: var(--black);
  line-height: 1.1;
}

.about .row .box-container .box p {
  font-size: 1.7rem;
  color: var(--light-color);
  padding: 0.5rem 0;
}

.about .row .content {
  flex: 1 1 40rem;
}

.about .row .content h3 {
  font-size: 3.5rem;
  color: var(--black);
  line-height: 1.8;
}

.about .row .content h3 span {
  color: var(--blue);
}

.about .row .content p {
  font-size: 1.7rem;
  color: var(--light-color);
  line-height: 1.8;
  padding: 1rem 0;
}

.about .row:nth-child(3) {
  margin-top: 2rem;
}

.about .row .box-experiance {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 0;
  width: 100%;
  margin: auto;
}

.about .row .box-experiance .box {
  flex: 1 1 18rem;
  text-align: start;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--box-shadow);
  cursor: pointer;
}

.about .row .box-experiance .box .timeline ul li .current-time {
  font-size: 1.5rem;
  color: var(--black);
  line-height: 1.1;
  color: #44bd32;
}

.about .row .box-experiance .box .timeline ul li .pass-time {
  font-size: 1.5rem;
  color: var(--black);
  line-height: 1.1;
  color: #ff9f43;
}

.about .row .box-experiance .box h3 {
  font-size: 3.5rem;
  color: var(--black);
  line-height: 1.1;
}

.about .row .box-experiance .box p {
  font-size: 1.7rem;
  color: var(--light-color);
  padding: 0.5rem 0;
}

.about p {
  text-indent: 2.5rem;
}

.timeline {
  width: auto;
  color: #111;
  padding: 30px 20px;
}
.timeline ul {
  list-style-type: none;
  border-left: 2px solid #094a68;
  padding: 10px 5px;
}
.timeline ul li {
  padding: 20px 20px;
  position: relative;
  cursor: pointer;
  transition: 0.5s;
}
.timeline ul li span {
  display: inline-block;
  border-radius: 25px;
  padding: 2px 5px;
  font-size: 15px;
  text-align: center;
}
.timeline ul li .content h3 {
  font-size: 17px;
  padding-top: 5px;
}
.timeline ul li .content p {
  padding: 5px 0px 15px 0px;
  font-size: 15px;
}
.timeline ul li:before {
  position: absolute;
  content: "";
  width: 15px;
  height: 15px;
  border: 1px solid #094a68;
  box-shadow: var(--box-shadow);
  color: var(--black);
  background: var(--bg-color);
  border-radius: 50%;
  left: -15px;
  top: 28px;
  transition: 0.5s;
}
.timeline ul li:hover {
  background-color: inherit;
}
.timeline ul li.current-li:hover:before {
  background-color: #44bd32;
  box-shadow: 0px 0px 10px 2px #00a8ff;
}

.timeline ul li.pass-li:hover:before {
  background-color: #ff9f43;
  box-shadow: 0px 0px 10px 2px #00a8ff;
}

.skill .box-container {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(27rem, 1fr));
  gap: 2rem;
}

.skill .box-container .box {
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--box-shadow);
  position: relative;
  z-index: 0;
  overflow: hidden;
  cursor: pointer;
}

.skill .box-container .box i {
  font-size: 4rem;
  padding-bottom: 5rem;
  color: #fff;
}

.skill .box-container .box h3 {
  font-size: 2rem;
  padding-bottom: 1rem;
  color: var(--black);
}

.skill .box-container .box p {
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--light-color);
}

.skill .box-container .box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: var(--blue);
  z-index: -1;
  clip-path: circle(9rem at 5% 0%);
  transition: 0.3s linear;
}

.skill .box-container .box:hover::before {
  clip-path: circle(100%);
}

.skill .box-container .box:hover > * {
  color: #fff;
}

/* activity section */
.activities .box-container {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(27rem, 1fr));
  gap: 2rem;
}

.activities .box-container .box {
  height: 30rem;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  position: relative;
  border: 1rem solid transparent;
  cursor: pointer;
}

.activities .box-container .box img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.activities .box-container .box .content {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: var(--bg-color);
  display: grid;
  place-items: center;
  transform: scale(0);
}

.activities .box-container .box:hover .content {
  transform: scale(1);
}

.activities .box-container .box .content h3 {
  font-size: 2.5rem;
  color: var(--black);
  text-transform: capitalize;
  transform: translateY(-10rem);
  opacity: 0;
  transition-delay: 0.3s;
}

.activities .box-container .box:hover .content h3 {
  transform: translateY(0rem);
  opacity: 1;
}

.activities .activities-popup-image {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 30px;
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
}
.activities .activities-popup-image span {
  position: absolute;
  top: 0;
  right: 2rem;
  font-size: 60px;
  font-weight: normal;
  color: #fff;
  cursor: pointer;
  z-index: inherit;
}
.activities .activities-popup-image img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: auto;
  max-height: 80%;
  width: auto;
  max-width: 90%;
  border: 5px solid #fff;
}
#activities-popup-image {
  -webkit-animation-name: display-activities-image;
  -webkit-animation-duration: 0.6s;
  animation-name: display-activities-image;
  animation-duration: 0.6s;
}

@-webkit-keyframes display-activities-image {
  from {
    -webkit-transform: scale(2);
  }
  to {
    -webkit-transform: scale(1);
  }
}

@keyframes display-activities-image {
  from {
    transform: scale(2);
  }
  to {
    transform: scale(1);
  }
}
@media (max-width: 768px) {
  .portfolio .activities-popup-image img {
    max-width: 90%;
  }
}

.activities-caption {
  margin: auto auto 2rem auto;
  display: block;
  font-size: 5rem;
  width: auto;
  text-align: center;
  color: var(--black);
  text-shadow: 2px 2px 2px rgb(255, 255, 255);
  z-index: 1000;
  cursor: pointer;
  text-decoration: none;
}
@media screen and (max-width: 1080px) {
  .activities-caption {
    display: none;
  }
}
.activities-caption:hover {
  color: var(--blue);
  text-decoration: none;
}
#activities-caption {
  -webkit-animation-name: display-activities-caption;
  -webkit-animation-duration: 1s;
  animation-name: display-activities-caption;
  animation-duration: 1s;
  animation-delay: 3;
}
@-webkit-keyframes display-activities-caption {
  from {
    -webkit-transform: scale(0);
  }
  to {
    -webkit-transform: scale(1);
  }
}

@keyframes display-activities-caption {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.activities-content {
  text-align: center;
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and(max-width: 700px) {
  .modal-content {
    width: 100%;
  }
}

/* portfolio section */

.portfolio .box-container {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(27rem, 1fr));
  gap: 2rem;
}

.portfolio .box-container .box {
  height: 30rem;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  position: relative;
  border: 1rem solid transparent;
  cursor: pointer;
}

.portfolio .box-container .box img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.portfolio .box-container .box .content {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: var(--bg-color);
  display: grid;
  place-items: center;
  transform: scale(0);
}

.portfolio .box-container .box:hover .content {
  transform: scale(1);
}

.portfolio .box-container .box .content h3 {
  font-size: 2.5rem;
  color: var(--black);
  text-transform: capitalize;
  transform: translateY(-10rem);
  opacity: 0;
  transition-delay: 0.3s;
}

.portfolio .box-container .box:hover .content h3 {
  transform: translateY(0rem);
  opacity: 1;
}

.portfolio .portfolio-popup-image {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 30px;
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
}
.portfolio .portfolio-popup-image span {
  position: absolute;
  top: 0;
  right: 2rem;
  font-size: 60px;
  font-weight: normal;
  color: #fff;
  cursor: pointer;
  z-index: inherit;
}
.portfolio .portfolio-popup-image img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: auto;
  max-height: 90%;
  width: auto;
  max-width: 90%;
  border: 5px solid #fff;
}
#portfolio-popup-image {
  -webkit-animation-name: display-portfolio-image;
  -webkit-animation-duration: 0.6s;
  animation-name: display-portfolio-image;
  animation-duration: 0.6s;
}

@media screen and (min-width: 781) {
  @-webkit-keyframes display-portfolio-image {
    from {
      -webkit-transform: scale(2);
    }
    to {
      -webkit-transform: scale(1);
    }
  }

  @keyframes display-portfolio-image {
    from {
      transform: scale(2);
    }
    to {
      transform: scale(1);
    }
  }
}

@media screen and (max-width: 780) {
  @-webkit-keyframes display-portfolio-image {
    from {
      -webkit-transform: scale(2);
    }
    to {
      -webkit-transform: scale(1);
    }
  }

  @keyframes display-portfolio-image {
    from {
      transform: scale(2);
    }
    to {
      transform: scale(1);
    }
  }
}
@media (max-width: 768px) {
  .portfolio .portfolio-popup-image img {
    max-width: 90%;
  }
}

.caption {
  margin: auto;
  display: block;
  font-size: 6rem;
  width: auto;
  text-align: center;
  color: var(--black);
  text-shadow: 2px 2px 2px rgb(255, 255, 255);
  z-index: 1000;
  cursor: pointer;
  text-decoration: none;
}
@media screen and (max-width: 480px) {
  .caption {
    font-size: 3rem;
    margin: auto auto auto auto;
    color: var(--blue);
  }
}
.caption:hover {
  color: var(--blue);
  text-decoration: none;
}
#caption {
  -webkit-animation-name: display-caption;
  -webkit-animation-duration: 1s;
  animation-name: display-caption;
  animation-duration: 1s;
  animation-delay: 3;
}
@-webkit-keyframes display-portfolio-caption {
  from {
    -webkit-transform: scale(0);
  }
  to {
    -webkit-transform: scale(1);
  }
}

@keyframes display-portfolio-caption {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.contact form {
  margin: 1rem auto;
  max-width: 70rem;
  border-radius: 0.5rem;
  padding: 2rem;
}

.contact form .box {
  padding: 1rem 1.5rem;
  width: 100%;
  background: none;
  color: var(--black);
  font-size: 1.6rem;
  text-transform: none;
  margin: 0.7rem 0;
  box-shadow: var(--box-shadow);
  border-radius: 0.5rem;
}

.contact form textarea {
  min-height: 20rem;
  resize: vertical;
}

.contact form .box:focus {
  box-shadow: var(--box-shadow-inset);
}

.footer {
  font-size: 2rem;
  text-align: center;
  padding: 2.5rem 1rem;
  margin-top: 1rem;
  border-top: var(--border);
  color: var(--black);
}

.footer span {
  color: var(--blue);
}

@media (max-width: 991px) {
  html {
    font-size: 55%;
  }

  body {
    padding-left: 0;
  }

  .header {
    left: -110%;
  }

  .header.active {
    left: 0%;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
    overflow-y: scroll;
    color: var(--black);
  }

  #menu-btn {
    display: initial;
  }

  #theme-toggler {
    top: 1.5rem;
  }
}

@media (min-width: 376px) {
  .touch-area {
    display: none;
  }
}

@media (max-width: 375px) {
  html {
    font-size: 50%;
  }
  .header {
    width: 100%;
    border-right: 0;
    z-index: 1000;
  }
  #theme-toggler {
    top: 1.5rem;
  }
  .home .content {
    z-index: 999;
    position: absolute;
  }
}
