/* GENERAL */

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

* {
    margin: 0;
    padding: 0;
}

hr {
    margin: 1rem 0;
    color: rgb(181, 181, 181);
    background-color: rgb(181, 181, 181);
    opacity: .25;
}

body {
    
    background-color: #28282B;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

p, span {
    color: 	rgb(181, 181, 181);
    text-shadow: 0 0 2px black;
}

/* TRANSITION */

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

.wrapper {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    perspective: 10px;
 }

.parallax {
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    justify-content: center;
    z-index: 2;
}

#parallax-bg1 {
    background-image: url(assets/parallax1.jpg);
    background-size: cover;
}

#parallax-bg2 {
    background-image: url(assets/parallax2.jpg);
    background-size: cover;
}

#parallax-bg3 {
    background-image: url(assets/parallax3.jpg);
    background-size: cover;
}

#parallax-bg4 {
    background-image: url(assets/parallax4.jpg);
    background-size: cover;
}

#parallax-bg5 {
    background-image: url(assets/parallax5.jpg);
    background-size: cover;
}

section {
    z-index: -1;
    transform-style: preserve-3d;
    transform: translateZ(-10px) scale(2);
}

/* HOME NAV */

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

nav {
    background-color: #28282B;
    align-items: center;
    height: 11vh;
    width: 100%;
    z-index: 1000;
    position: sticky;
    top: 0;
}

#desktop-nav {
    gap: 22%;
    justify-content: center;
}

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

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

.home-nav-links a, .logo a {
    color: white;
    text-shadow: 0 0 5px black;
}

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

.logo {
    text-shadow: 0 0 5px black;
    font-size: 3rem;
}

.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: white;
    transition: all 0.3 ease-in-out;
    text-shadow: 0 0 5px black;
}

.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: 500px;
}

.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 {
    opacity: 1;
}

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

/* SECTIONS */

section {
    padding: 4vh;
    box-sizing: border-box;
    min-height: fit-content;
}



/* FIRST PAGE */

#profile {
    display: flex;
    justify-content: center;
    gap: 5rem;
    height: 100%;
}

.profile-container {
    display: flex;
    align-items: center;
    position: relative;
    border-radius: 50%;
}

#profile-img {
    border-radius: 50%;
    height: 400px;
    width: 400px;
}

.profile-text {
    align-self: center;
    text-align: center;
  }

.title{
    text-shadow: 0 0 5px black;
    font-size: 3rem;
}

.quote-by {
    font-size: 1.25rem;
}

.title, .famous-quote, .quote-by {
    color: white;
    text-shadow: 0 0 5px black;
    text-align: center;
}

.profile-text p {
    font-weight: 600;
    text-align: center;
}

.profile-text-p2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.profile-text-p2 span {
    position: relative;
    color: #BD53ED;
}

    .profile-text-p2 span::before {
        content: "";
        right: -8px;
        top: 50%;
        position: absolute;
        height: 30px;
        width: 2px;
        background: #BD53ED;
        transform: translateY(-50%);
        animation: blink 0.7s infinite;
    }

    .profile-text-p2 span.stop-blinking::before {
        animation: none;
    }

    @keyframes blink {
        50% {
            opacity: 0;
        }
    }

.quote {
    color: white;
}

.profile-text-p3 {
    margin-bottom: 0.5rem;
}

/* BUTTONS */

.btn-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 15px 0;
}

.btn {
    font-weight: 600;
    transition: all 300ms ease;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
    cursor: pointer;
}

.btn-color1{
    color: white;
    border-color: white;
    background-color: #28282B;
}

.btn-color2{
    color: black;
    background: white;
    border-color: gray;
}

.btn-color1:hover, .btn-color2:hover {
    color: white;
    background-color: grey;
    border-color: #242424;
}

/* Experience */

#experience {
    margin: 100px 100px;
}

.sub-title {
    color: white;
    text-shadow: 0 0 5px black;
    font-size: 1.2.4rem;
}

.experience-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    border: rgb(163, 163, 163) 0.1rem solid;
    text-align: center;
    padding: 0 20px;
    margin: 8em;
}

.skills-container {
    display: flex;
    gap: 20px;
    width: 100%;
}

#certificate {
    width: 400px;
    height: 300px;
    margin: 10px 25px;
}

.skills {
    width: 100%;
}

.progress {
    color: white;
    text-align: left;
    height: 60px;
}

.val {
    float: right;
    font-style: normal;
    font-size: 0.8rem;
}

.progress-bar-wrap {
    background: grey;
    height: 10px;
}

.progress-bar {
    width: 1px;
    height: 10px;
    transition: width 0.9s;
    background-color: #149ddd;
}

/* Contact */

#contact {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

.contact-container {
    display: flex;
    justify-content: center;
    border-radius: 1rem;
    text-align: center;
}

.social-contact {
    display: flex;
}
 
.icon {
    text-decoration: none;
    color: black;
    padding: 2rem 2rem;
}

.icon i {
    display: flex;
    flex-direction: column;
    background-color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.social-contact a i{
    margin: auto;
}

.social-contact a {
    text-decoration-line: none;
}

/* Footer */

footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem 0;
    margin: 1.5rem 0;
    border-top: 1px solid rgb(181, 181, 181);
}

footer .footer-text {
    color: rgb(181, 181, 181)
}

/* Education */

#education {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 6em;
}

#activities {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 12em;
    padding: 10em 0 6em 0;
}

.school, .activity {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.school, .activity > * {
    flex-shrink: 0;
    width: 100%;
}

.school-img-col, .activity-img-col {
    width: 30%;
    padding: 0 6px;
}

.school-detail-col, .activity-detail-col {
    width: 60%;
    padding: 0 6px;
    background-image: url(assets/);
}

    .school-img-col:first-child {
        background-image: url(assets/PBlogo.gif);
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-position: bottom;
    }

    .school-img-col:nth-child(2) {
        background-image: url(assets/kmitllogo.png);
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-position: bottom;
    }

.school-img {
    max-width: 100%;
    height: auto;
    border-radius: 0.25rem;
}

.activity-img{
    border-radius: 0.25rem;
    max-width: 100%;
}

.mySlides1 .activity-img {
    height: 400px;
}

.mySlides2 .activity-img {
    height: 400px;
}

.mySlides3 .activity-img {
    height: 400px;
}

.school-name, .activity-name {
    color: white;
}

.school-program, .activity-program {
    color: rgb(181, 181, 181);
    text-indent: 10px;
}

.i {
    font-style: italic;
}

.school-description, .activity-description {
    text-indent: 20px;
}

.long-description {
    margin-top: 12px;
}

.activity-description span {
    padding-left: 22px;
}

/* Projects */

#projects {
    display: flex;
    flex-direction: column;
    margin: 12em 4em;
    padding: 10em 2em;
}

.project-row {
    display: flex;
    gap: 20px;
}

.project-card {
    box-shadow: 8px 8px 0 #061724;
    border: 1px solid #061724;
    width: 48%;
    margin: .5rem;
    padding: 0;
    background-color: #0c2233;
}

.project-img {
    border-radius: 5px 5px 0 0;
    width: 100%;
    object-fit: cover;
    object-position: center center;
    margin-bottom: 1.5rem;
}

.project-detail {
    padding: 0 20px 1.5em;
}

.project-description {
    text-indent: 20px;
}

.project-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.project-tags span {
    padding: 5px 15px;
    margin: 5px;
    font-size: .8em;
    border-radius: 30px;
    text-align: center;
    background: #061724;
}

.project-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: large;
    margin-bottom: .5rem;
    color: white;
}

.project-btn-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.project-link-btn {
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.project-link-btn a {
    color: white;
    border: 2px solid #fd9047;
    padding: 1rem 2rem;
    text-transform: uppercase;
    border-radius: 35px;
    font-size: 1rem;
}

.mySlides1, .mySlides2, .mySlides3 {display: none}
img {vertical-align: middle;}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: black;
  background-color: rgba(255, 255, 255, 0.4);
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a grey background color */
.prev:hover, .next:hover {
  background-color: rgba(0, 0, 0, 0.5);
  color: #f1f1f1;
}