@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

:root{
   
    --primary-bg-color: #ffffff;
    --secondary-bg-color: #437fc7;
    --tertiary-bg-color: #336bae;

    --primary-font-color: #000000;
    --secondary-font-color: #2b5a93;
    --tertiary-font-color: #ffffff;
    --quarternary-font-color: #ffffff;

    --primary-link-color: #6daffe;
    --secondary-link-color: #ffffff;

    --primary-button-color: #336bae;
    
    --primary-hover-color: #2b5a93;

}

.dark-mode {
    --primary-bg-color: #212121;
    --secondary-bg-color: #2c2c2c;
    --tertiary-bg-color: #212121;

    --primary-font-color: #fffcf7;
    --secondary-font-color: #738290;
    --tertiary-font-color: #fffcf7;
    --quarternary-font-color: #fffcf7;

    --primary-link-color: #738290;
    --secondary-link-color: #738290;

    --primary-button-color: #373737;

    --primary-hover-color: #738290;
}

body {
    font-family: 'Roboto', sans-serif;
    padding-top: 6rem;
    background-color: var(--primary-bg-color);
}

p {
    font-size: 2rem;
    line-height: 2.4rem;
}

/*------------------------------NAV BAR-------------------------------------*/

header{
    background-color: var(--primary-bg-color);
    padding: 20px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    height: 90px;
    border-bottom: 2px solid rgba(161, 181, 216,0.3);
}

nav {
    text-align: center;
}
nav a {
    text-decoration: none;
    color: var(--primary-font-color);
    font-size: 2rem;
    line-height: 2.4rem;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 10px;
    margin: 0 10px;
}

#icon {
    display: none;
    color: var(--primary-font-color)
}

.fa-moon {
    position:fixed !important;
    float:right;
    top: 25px; /*25px*/
    right: 50px;
    font-size: 2rem;
    cursor: pointer;
}

.fa-solid.fa-moon {
    color: #ddac13;
}

/*--------------------PULSE ANIM--------------------------------------*/

.pulsate {
    animation: pulsate 3s ease-out;
    animation-iteration-count: infinite; 
}

.pulsate:hover {
    color: var(--primary-link-color) !important;
}
@keyframes pulsate {
    0% { 
        color: var(--primary-button-color);
        font-weight: bold;
    }
    50% { 
        color: var(--primary-font-color );
        font-weight: bolder;
    }
    100% { 
        color: var(--primary-button-color);
        font-weight: bold;
    }
}

/*--------------------------BACK TO THE TOP---------------------------------*/

#btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background-color: var(--primary-button-color);
    color: var(--tertiary-font-color);
    border-radius: 50%;
    border: 3px solid var(--tertiary-font-color);
    width: 60px;
    height: 60px;
    font-size: 3rem;
    z-index: 666;
}


/*--------------------------MAIN CONTENT-------------------------------------*/

#content {
    min-height: 100vh;
    background-color: var(--primary-bg-color);
    color: var(--primary-font-color)
}

h2 {
    font-size: 3.5rem;
    line-height: 4.2rem;
    letter-spacing: -2%;
    font-weight: bold;
}
.wrapper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /*grid-template-rows: repeat(5, 1fr);*/
    grid-template-rows: repeat(auto-fit, minmax(450px, 1fr));
    grid-column-gap: 10px;
    grid-row-gap: 10px;
    }
    .div1 { grid-area: 1 / 1 / 2 / 6; }
    .div2 { grid-area: 2 / 1 / 3 / 6; }
    .div3 { grid-area: 3 / 1 / 4 / 6; }
    .div4 { grid-area: 4 / 1 / 5 / 6; }

.hidden {
    opacity: 0;
    filter: blur(14px);
    transform: translateX(-40%);
    transition: transform 1s, opacity 1s ease;
    /*transition: opacity 1s ease 0.5s;*/
}
.show {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}    
    
/*-------------------------1ST BLOCK-------------------------------------*/

.div1{
    padding-top: 4rem;
    text-align: center;
    min-height: 100vh;
    margin: auto;
}

.div1 h3 {
    font-size:  3.5rem;
    line-height: 4.2rem;
    color: var(--secondary-font-color);
    letter-spacing: -2%;
}

#multilines {
    text-align: center;
    font-size: 3.5rem;
    line-height: 4.2rem;
    margin-left: auto;
    margin-right: auto;
    width: 60%;
}

/*-----------------------------WAVE ANIM-------------------------------------*/

.wave {
    animation-name: wave-animation;  /* Refers to the name of your @keyframes element below */
    animation-duration: 2.5s;        /* Change to speed up or slow down */
    animation-iteration-count: infinite;  
    transform-origin: 70% 70%;       /* Pivot around the bottom-left palm */
    display: inline-block;
  }
  
  @keyframes wave-animation {
      0% { transform: rotate( 0.0deg) }
     10% { transform: rotate(14.0deg) }  /* The following five values can be played with to make the waving more or less extreme */
     20% { transform: rotate(-8.0deg) }
     30% { transform: rotate(14.0deg) }
     40% { transform: rotate(-4.0deg) }
     50% { transform: rotate(10.0deg) }
     60% { transform: rotate( 0.0deg) }  /* Reset for the last half to pause */
    100% { transform: rotate( 0.0deg) }
  }

/*----------------------------PROFILE PIC---------------------------------*/

#img-container{
    display: flex;
    justify-content: center;
    padding: 2rem;
}
.img-wrapper{
    position: relative; 
    width: 400px; height: 400px; 
    overflow: hidden; 
    border-radius: 50%;
    border: 5px solid var(--secondary-font-color); 
    z-index: -1;
}
.img-wrapper img {
    width: 100%;
    height: auto;
}

/*-------------------------2ND BLOCK-------------------------------------*/

.projects {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(auto-fit, minmax(1fr, 1fr));
    grid-column-gap: 0px;
    grid-row-gap: 0px;
}
    
.div5 { grid-area: 1 / 1 / 3 / 3; }
.div6 { grid-area: 1 / 3 / 3 / 5; }
.div7 { grid-area: 1 / 5 / 3 / 7; }

.div2 section {
    padding-bottom: 2rem;
    color: var(--tertiary-font-color);
}

.div2 h2 {
    padding-bottom: 2rem;
}
.div2 ul li {
    color: var(--primary-font-color);
}

.div2 a {
    text-decoration: none;
    color: var(--primary-font-color);
} 


.div2, .div4 {
    background-color: var(--secondary-bg-color);
    text-align: center;
    padding: 120px;
}

/*----------------------EDUCATION & EXPERIENCE----------------------------*/

.education-grid {
    display: grid;
    /*grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);*/
    grid-template-columns: repeat(9, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    font-size: 2rem;
    line-height: 2.4rem;
    text-align: left;
    }
    
.edu-div1 { 
    /*grid-area: 1 / 1 / 2 / 2; */
    grid-area: 1 / 2 / 2 / 5;
    justify-self: right; 
    padding-right: 2rem; 
    padding-bottom: 1.5rem; 
    height: fit-content;
}
.edu-div2 { 
    /*grid-area: 1 / 2 / 2 / 3; */
    grid-area: 1 / 5 / 2 / 9;
    padding-bottom: 1.5rem; 
    width: 70%; 
    height: fit-content;
}
.edu-div3 { 
    /*grid-area: 2 / 1 / 3 / 2;*/
    grid-area: 2 / 2 / 3 / 5;
    justify-self: right; 
    padding-right: 2rem;
    padding-bottom: 1.5rem; 
    height: fit-content;
}
.edu-div4 { 
    /*grid-area: 2 / 2 / 3 / 3; */
    grid-area: 2 / 5 / 3 / 9;
    padding-bottom: 1.5rem;
    width: 70%;
    height: fit-content;
}
.edu-div5 { 
    /*grid-area: 3 / 1 / 4 / 2; */
    grid-area: 3 / 2 / 4 / 5;
    justify-self: right; 
    padding-right: 2rem;
    padding-bottom: 1.5rem; 
    height: fit-content;
}
.edu-div6 { 
    /*grid-area: 3 / 2 / 4 / 3; */
    grid-area: 3 / 5 / 4 / 9; 
    padding-bottom: 1.5rem;
    width: 70%;
    height: fit-content;
}
    
.exp-grid {
    display: grid;
    /*grid-template-columns: repeat(2, 1fr);*/
    grid-template-columns: repeat(9, 1fr);
    grid-template-rows: repeat(auto-fit, minmax(1fr, 1fr));
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    font-size: 2rem;
    line-height: 2.4rem;
}
.exp-div1 { 
    /*grid-area: 1 / 1 / 2 / 2; */
    grid-area: 1 / 2 / 2 / 5;
    padding-bottom: 1.5rem; 
    justify-self: right; 
    padding-right: 2rem;
}
.exp-div2 { 
    /*grid-area: 1 / 2 / 2 / 3; */
    grid-area: 1 / 5 / 2 / 9; 
    padding-bottom: 1.5rem; 
    justify-self: left; 
    padding-bottom: 2rem;
    text-align: left;
}
.exp-cat {
    text-align: left;
}

/*-------------------------PROJECT BTN-----------------------------------*/

.div5, .div6, .div7 {
    padding: 10px;
}

#project-btn {
    position: relative;
    width: 100% !important;
    background-color: var(--primary-button-color);
    color: var(--tertiary-font-color);
    height: fit-content;
    padding-top: 2rem;
    padding-bottom: 2rem;
    border:0;
    font-size: 2rem;
    line-height: 2.4rem;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    border: 2px solid var(--tertiary-font-color);
}

#project-btn:active {
    position: relative;
    top: 2px;
}

.collapsible:after {
    content: '▼'; 
    font-size: 2rem;
    line-height: 2.4rem;
    color: var(--quarternary-font-color);
    float: right;
}
  
.active:after {
    content: '▲'; 
}

/*-------------------------PROJECT LIST-------------------------------------*/

.project-list{
    display: flex;
    justify-content: center;
    background-color: var(--primary-bg-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    width: 100% !important;
    font-size: 2rem;
    line-height: 3.5rem;
    justify-content: left;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.project-list ul {
    list-style-type: square;
    text-align: left;
    margin-left: 20px;
}

/*------------------------PROGRESS BARS---------------------------------------*/

#skills{
    display: inline;
    width: 80%; 
}
.progress {
    background-color: var(--primary-bg-color);
    max-width: 90vw;
    height: fit-content;
    font-size: 2rem;
    line-height: 2.4rem;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 2px solid var(--tertiary-font-color);
}

.progress-bar {
    background-color: var(--primary-button-color);
    color: var(--tertiary-font-color);
    width: 0%;
    text-align: left;
    padding-left: 20px;
    padding-right: 20px;
    display: inline;
}

.skill, .percent {
    position: relative;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.percent {
    float: right;
    display: none;
}
.skill {
    float: left;
    display: none;
}

/*-------------------------3RD BLOCK-------------------------------------*/

.div3 img {
    padding: 20px;
    height: fit-content;
    max-width: 100%;
}

.div3 {
    text-align: center;
    padding: 120px;
}

.story-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(auto-fit, minmax(1fr, 1fr));
    grid-column-gap: 0px;
    grid-row-gap: 0px;
}
   
.div8 { 
    grid-area: 1 / 1 / 2 / 4; 
    padding-right: 3rem;
}
.div9 { grid-area: 1 / 4 / 2 / 6; }
.div9 img {
    width: fit-content !important;
    height: auto !important;
    align-self: flex-start;
}
.div10 { 
    grid-area: 2 / 1 / 3 / 3;
    padding-right: 3rem;
}
.div10 img {
    width: fit-content !important;
    height: auto !important;
    align-self: flex-start;
}
.div11 { grid-area: 2 / 3 / 3 / 6; }
.div12 { 
    grid-area: 3 / 1 / 4 / 4; 
    padding-right: 3rem;
}
.div13 { grid-area: 3 / 4 / 4 / 6; }
.div13 img {
    width: fit-content !important;
    height: auto !important;
    align-self: flex-start;
}
.div14 { grid-area: 4 / 1 / 5 / 6; }
    
.div8, .div9, .div10, .div11, .div12, .div13, .div14 {
    text-align: justify !important;
    padding-bottom: 2rem;
}
    
.div14 {
    text-align: justify;
}
.story-container {
    padding-top: 2rem;
}
    
.story-container img {
    border-radius: 5px;
    padding: 0 !important;
    width: 800px;
    height: fit-content;
}

/*-------------------------4TH BLOCK-------------------------------------*/

.div4 {
    color: var(--tertiary-font-color);
}
.div4 li {
    padding: 20px;
    font-size: 2rem;
    line-height: 2.4rem;
}

.div4 li a {
    text-decoration: none;
    color: var(--tertiary-font-color);
}



/*--------------------------------FOOTER------------------------------------*/

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(auto-fit, minmax(1fr, 1fr));
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    background-color: var(--tertiary-bg-color);
    font-size: 2rem;
    line-height: 2.4rem;
    padding: 50px 0;
    text-align: center;
    color: var(--primary-font-color)
}
   .footer-grid p {
        font-weight: bold;
    }
    .footer-grid ul {
        padding-left: 10px;
    }
     
    .footer-grid li a {
        text-decoration: none;
        color: var(--primary-font-color);
    }
 
        
    .footer-div1 { grid-area: 1 / 1 / 2 / 2; }
    .footer-div2 { grid-area: 1 / 2 / 2 / 3; }
    .footer-div3 { grid-area: 1 / 3 / 2 / 4; }

/*-----------------------RESPONSIVITY-----------------------------------------*/

@media (hover:hover){
    .fa-moon:hover {
        color: var(--primary-link-color)
    }

    #icon:hover {
        color: var(--primary-link-color)
    }

    nav a:hover {
        color: var(--primary-link-color);
    }

    #btn-back-to-top:hover {
        width: 65px;
        height: 65px;
    }

    .div2 a:hover {
        color: var(--primary-link-color);
    }
    
    #project-btn:hover {
        background-color: var(--primary-hover-color) !important;
    }
    
    .div4 li a:hover {
        color: var(--primary-link-color);
    }
    
    .footer-grid li a:hover {
        color: var(--secondary-link-color);
    }
}
@media (hover:none){

}

@media screen and (max-width: 700px) {
   
    * {
        padding-left: 0 !important;
        padding-right: 0 !important;
        line-height: normal !important;
    }
    .hidden {
        transition: opacity 1.5s ease 0.5s;
    }
    h2 {
        font-size: 2.5rem !important;
    }
    h3 {
        font-size: 2.5rem !important;
    }
    #multilines {
        font-size: 2.5rem !important;
        padding: 0 !important;
        width: 80% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    p {
        font-size: 1.6rem;
    }

    .education-grid, .exp-grid {
        font-size: 1.6rem;
    }

    #btn-back-to-top {
        padding-top: 5px !important;
        font-size: 3rem !important;
    }


    #icon {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .img-wrapper {
        width: 300px; height: 300px; 
    }

    #content {
        width: 100vw !important;
    }
    #project-btn {
        min-width: 60vw;
        font-size: 1.6rem;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .collapsible:after {
        font-size: 1.6rem !important;
        padding-right: 20px;
    }
    .div2, .div3, .div4 {
        min-width: 100vw !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        margin: 0 !important;
    }
    .project-list {
        font-size: 1.6rem;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .project-list ul li {
        line-height: 3.5rem !important;
    }
    .progress {
        font-size: 1.6rem;
    }
    .skill {
        padding-left: 20px !important;
    }
    .percent {
        padding-right: 20px !important;
    }
    .footer-grid {
        display: block;
        font-size: 1.6rem;
        width: 100vw !important;
    }
}
   
@media screen and (max-width: 960px) {

    body {
        padding-top: 5rem;
    }
   
    header {
        width: 100%;
    }
    header.clicked {
        height:fit-content;
    }

    nav a {
        display: none;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    #icon {
        display: block;
        cursor: pointer;
        font-size: 2.5rem;
        position: relative;
        top: 10px;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
   
    .fa-moon {
        top: 2rem;
    }

    .responsive {
        position: relative;
    }
    
    .responsive a {
        display: block !important;
    }
    .education-grid {
        display: block !important;
        text-align: center !important;
    }
    .edu-div1, .edu-div2, .edu-div3, .edu-div4, .edu-div5, .edu-div6 {
        margin-left: 0 !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .edu-div1, .edu-div3, .edu-div5 {
        width: 100% !important;
    }
    .exp-grid {
        display: block !important;
        text-align: center !important;
    }
    .exp-div1, .exp-div2 {
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: center !important;
    }
    .year {
        border-bottom: 2px solid var(--tertiary-font-color);
    }
    .exp-cat {
        text-align: center !important;
    }
}

@media screen and (max-width: 1130px) {

    .story-container {
        display: block !important;
        justify-content: center !important;
    }
    .div8, .div9, .div10, .div11, .div12, .div13, .div14 {
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 2rem;
    }
}
@media screen and (max-width: 1230px) {
    .projects {
            display: block !important;
    }
}