
:root {
    --bs-primary: #f2149d;
    --bs-secondary: #f77175;
    --bs-accent: #f45440;
}
#portofolio{
  width: 100vw;
}
/* left side*/

#portofolio #left{
    padding-top: 4.5rem;
    position: fixed;
    left: 0;
    height: 100vh;
    background-color: var(--bs-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#portofolio #left img{
  width: 30vh;
  height: 30vh;
  border-radius: 50%;
  margin-bottom: 20px;
  object-fit: cover;
}

#portofolio nav{
  display: flex;
  justify-content: center;
   
}
  
#portofolio nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    position: fixed;
  }

#portofolio nav ul li{
  margin: 20px 0;
}
  
#portofolio li a {
  color: #000;
  text-decoration: none;
}
  
#portofolio li.active a{
  color: white;
}
  
#portofolio li a:hover:not(.active) {
  color: white;
}


  /* right side*/

  #portofolio section h3{
    font-family: "Prata", serif;
    text-transform: uppercase;
  }

  #portofolio #right{
    padding: 4.5rem 4.5rem;
    height: 100%;
  }

  #portofolio .row{
    --bs-gutter-x: 0;
  }

  /* Education */

  #portofolio #right #education .accordion {
    background-color: #eee;
    color: #444;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
    transition: 0.4s;
    text-transform: uppercase;
  }
  
  #portofolio #right #education .accordion.active, .accordion:hover {
    background-color: var(--bs-secondary);
  }
  
  #portofolio #right #education .accordion:after {
    content: '\002B'; /* Unicode character for "plus" sign (+) */
    color: #777;
    font-weight: bold;
    float: right;
    margin-left: 5px;
  }
  
  #portofolio #right #education .accordion.active:after {
    content: "\2212"; /* Unicode character for "minus" sign (-) */
  }
  
  #portofolio #right #education .panel {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
  }
  #portofolio #right #education .panel p{
    padding-top: 20px;
    padding-bottom: 20px;
  }


  #portofolio section#home{
      background-image: url(../assets/img/portfolio/buisness.png);
      background-repeat: no-repeat; /* Do not repeat the image */
      background-size: contain;
      height: 100vh;
      background-position: top left;
  }

  #portofolio section#home h1{
    text-align: end;
    font-family: "Prata", serif;
    padding-top: 50px;

  }

  /* download button*/

#portofolio .download{
  display: grid;
}

#portofolio .download a{
  padding: 16px 35px;
  width: 200px;
  text-decoration: none;
  border: var(--bs-accent) 1px solid;
  border-radius: 35px;
  letter-spacing: 2px;
  color: black;
  position: absolute;
  justify-self: end;
}

#portofolio .download a:hover{
  background-color: var(--bs-accent);
}


/* progress bars skills*/

#portofolio .section {
  padding: 2rem 0;
}

#skills h2 {
  font-size: 1.7em;
  font-weight: normal;
  padding: 16px 0 16px 0;
  margin: 0 0 30px;
  text-align:center;
  border-radius:10px;
  text-decoration: none;
  border: var(--bs-accent) 1px solid;
  border-radius: 35px;
  letter-spacing: 2px;
  color: black;
}
 
#skills .container {
  padding:5%;
  margin: 0 auto; 
  overflow: hidden;
  padding-bottom: 0;
}

#skills .col {
  width: 23%;
  margin: 0 5%;
  position: relative;
  float: left;
  font-size: 12px;
  line-height: 2em;
  padding: 5% 0;
} 
/*.col { width:101%; }*/
#skills .skill { 
  list-style:none; 
  padding-top:30px;
  padding-left: 0;
}

#skills .skill li { 
  margin-bottom:70px; 
  background: transparent; 
  height:6px; 
  border-radius:3px; 
  border-left:1px solid transparent; 
  border-top:1px solid transparent; 
  border-right:1px solid transparent; 
  border-bottom:1px solid transparent;  
}

#skills .skill li em { 
  position:relative; 
  font-style: normal;
  font-size: 14px;
  text-align: center;
  color: black;
  top:-28px;
}

#skills .blueline { 
  height: 3px; 
  margin: 2px 0; 
  background: #2187e7; 
  border-radius:3px; 
  position: absolute;
}
#skills .greenline { 
  height: 3px; 
  margin: 2px 0; 
  background: #9ACD32; 
  border-radius:3px; 
  position: absolute;
}
#skills .redline { 
  height: 3px; 
  margin: 0 0; 
  background: #FF4500; 
  border-radius:3px; 
  position: absolute;
}

/*languages*/
#skills.section.active .english      { width:90%;  animation:english 2s ease-out; }
#skills.section.active .dutch        { width:90%;  animation:dutch 2s ease-out;   }
#skills.section.active .french       { width:90%;  animation:french 2s ease-out;  }
#skills.section.active .spanish      { width:30%;  animation:spanish 2s ease-out; }

/*programming*/
#skills.section.active .java        { width:80%;  animation:java 2s ease-out;  }
#skills.section.active .python      { width:70%;  animation:python 2s ease-out; }
#skills.section.active .html        { width:60%;  animation:html 2s ease-out;     }
#skills.section.active .swift       { width:40%;  animation:swift 2s ease-out;    }
#skills.section.active .sql         { width:50%;  animation:sql 2s ease-out;     }

/*frameworks*/
#skills.section.active .django      { width:80%;  animation:django 2s ease-out;}
#skills.section.active .vue { width:80%;  animation:vue 2s ease-out;}
#skills.section.active .photoshop   { width:20%;  animation:photoshop 2s ease-out;  }


@keyframes title        { 0% { opacity:0; } 100% { opacity:1; }  }

/*programacion*/
@keyframes english      { 0% { width:0px; } 100% { width:90%; }  }
@keyframes dutch        { 0% { width:0px; } 100% { width:90%; }  }
@keyframes french       { 0% { width:0px; } 100% { width:90%; }  }
@keyframes spanish      { 0% { width:0px; } 100% { width:30%; }  }

/*programming*/
@keyframes java         { 0% { width:0px; } 100% { width:80%; }  }
@keyframes python       { 0% { width:0px; } 100% { width:70%; }  }
@keyframes html         { 0% { width:0px; } 100% { width:60%; }  }
@keyframes swift        { 0% { width:0px; } 100% { width:40%; }  }
@keyframes sql          { 0% { width:0px; } 100% { width:50%; }  }

/*frameworks*/
@keyframes django      { 0% { width:0px; } 100% { width:80%; }  }
@keyframes vue { 0% { width:0px; } 100% { width:80%; }  }
@keyframes photoshop   { 0% { width:0px; } 100% { width:20%; }  }

/*media queries*/
@media (max-width: 1200px){
  h2 {font-size:2.2em;}
}
@media (max-width: 980px){
  h2 {font-size:1.8em;}
}
@media (max-width: 767px){
  h2 {font-size:1.4em;}
}
@media (max-width: 580px){
  h2 {font-size:1.1em; padding:10px 0;}
}
@media (max-width: 480px){ 
  h2 {font-size:2.2em; padding: 10px 0 15px 0;}
  .col {width: 90%;}
}

/* responsive */

/* Use Flexbox for the container */

@media (max-width: 980px){
  #skills .container {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap */
    justify-content: space-between; /* Distribute space between columns */
    padding: 5%;
    margin: 0 auto;
    gap: 20px; /* Add spacing between items */
  }
  
  /* Flex settings for columns */
  #skills .col {
    flex: 1 1 calc(33.333% - 20px); /* Make columns responsive */
    min-width: 250px; /* Prevent columns from shrinking too much */
    box-sizing: border-box;
    font-size: 12px;
    line-height: 2em;
    padding: 5%;
  }

}


/* Stack columns on small screens */
@media (max-width: 767px) {
  #skills .col {
    flex: 1 1 100%; /* Stack columns */
    margin: 0 auto; /* Center the columns */
  }
}

/* Adjust font sizes for headings */
@media (max-width: 480px) {
  h2 {
    font-size: 1.5em;
    padding: 10px 0;
  }
}

/* Adjust padding and margins */
#skills .skill {
  padding-top: 15px;
}

#skills .skill li {
  margin-bottom: 50px; /* Reduce spacing between items */
}

/* Keep progress bars responsive */
#skills .blueline,
#skills .greenline,
#skills .redline {
  width: auto;
}

/* Adjust font sizes for smaller screens */
@media (max-width: 580px) {
  h2 {
    font-size: 1.2em;
    padding: 8px 0;
  }

  #skills .col {
    padding: 4%;
  }

  #skills .skill li em {
    font-size: 12px;
  }
}



/* pop up */

/* The Modal (background) */
.modal {
  display: none; 
  position: fixed; 
  z-index: 1; 
  padding-top: 70px; 
  left: 0 ;
  top: 0;
  justify-self: center;
  width: 100%;
  height: 100%;
  overflow: auto; 
  background-color: rgb(0, 0, 0); 
  background-color: rgba(0, 0, 0, 0.6); 
}

/* Modal Content (Image) */
.modal-content {
  position: fixed;
  left: 50vw;
  top: 50vh;
  transform: translate(-50%, -50%);
  width: 50vw;
  height: 50vh;
  object-fit: cover;
 
}

/* Caption of Modal Image */
#caption {
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  display: flex;
  position: fixed;
  left: 50vw;
  top: 50vh;
  transform: translate(-50%, -50%);
  width: 50vw;
  height: 50vh;
  color: #ffffff;
  z-index: 2;
  text-align: center;
  flex-direction: column;
}

/* Close Button */
.close {
  position: absolute;
  top: 50px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}
.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}




/* for smaller screens */

@media (max-width: 1200px) {
  #portofolio #right {
    padding: 2.5rem 2.5rem;
  }
}

@media (max-width: 880px) {
  #portofolio #left {
    display: none;
  }

  #portofolio #right {
    padding: 1rem 1rem;
  }

  #portofolio section#home{
    background-size: cover;
    background-position: top right;
  }

}