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

:root {
    --primaryTextColor: #526D82;
    --secondaryTextColor: #9DB2BF;

    --borderColor: #f1f1f1;
    --lineColor: #d9d9d9;

    --primaryBackgroundColor: #fff;
    --secondaryBackgroundColor: #DDE6ED;
    --thirdBackgroundColor: #F5F7F8;

    --primaryIconColor: #ADC4CE;
    --primaryIconColorHover: #96B6C5;

    --sectionPadding: 6rem 0;

    --itemBorderRadius: 0.7rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong{
    color: var(--primaryTextColor);
    font-family: "Poppins", sans-serif;
}

h5{
    color: var(--primaryIconColorHover);
}

p{
    font-size: 1rem; 
    line-height: 1.9rem;
    text-align: justify;
}
q{
    font-size: 1rem; 
    line-height: 1.9rem;
    text-align: justify;
}

p, 
q,
span, 
label, 
input, 
textarea, 
li {
    color: var(--secondaryTextColor);
}

a {
    text-decoration: none;
}

.main-container {
    width: 1200px;
    margin: 0 auto;
}

@media screen and (max-width: 1200px) {
    .main-container {
        width: 90%;
    }  
}
/* Buttons */
.btn {
    padding: .5rem 1.5rem;
    background: white;
    border: 1.5px solid var(--borderColor) ;
    cursor: pointer;
    transition: .2s ease-in-out;
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    border-radius: 10px;
}

.btn:hover {
    box-shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px;
}
/* Logo and Navigation Menu */

/* titles */
.section-title {
    margin: 1rem 0 4rem;
    font-size: 2rem;
}

.pre-title {
    text-transform: uppercase;
    letter-spacing: 1.5 rem;
    color: var(--secondaryTextColor);
    position: relative;
    padding-left: 40px;
    width:fit-content;
    font-weight: 400;
    font-size: 1.5rem;
}

.pre-title::before {
    content: "";
    width: 30px;
    height: 1px;
    background: var(--lineColor);
    position: absolute;
    display: block;
    left: 0;
    top: 50%;
}
/* layout */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.grid-6 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 5rem;
}

/* logo and nav */
.nav {
    display: flex;
    justify-content: space-between;
    padding: 2rem 0;
}

.nav li:hover {
    border-bottom: 2px solid var(--primaryTextColor);
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 3rem;

}
.logo{
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo a:hover{
    transform: scale(1.1)
}

.logo a{
    color: var(--primaryTextColor);
    
}

nav ul li {
    display: flex;
    align-items: center;
}

nav ul li a{
    color: var(--primaryTextColor);
}

/* Burger */
.burger div{
    height: 2px;
    width: 25px;
    background-color: black;
    margin: 7px;
    transition: all 0.3s ;
    z-index: 99;
}

.burger {
    display: none;
    z-index: 99;
    position: fixed;
    top: 33px;
    right: 35px;
}

  
/* Hero Section */
#hero {
  height: 720px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background-image: url('./images/portfolio/Background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 80%;
  overflow: hidden;
  margin-bottom: 0;
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin-bottom: 0; /* Menghilangkan margin di bawah background */
}

.hero-right img {
  width: 20%;
  margin-bottom: .2rem;
}

.hero-left {
  padding-bottom: 8rem;
}

.hero-left p{
  text-align: center;
}
.hero-left .pre-title {
  margin: 0 auto;
}

.hero-name {
  font-size: 4rem;
  font-weight: 400;
}

.hero-name span {
  color: var(--primaryIconColor);
}

.typing-animation {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  animation: typing 5s steps(40, end);
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

  
/* Services Section */
#services {
    background-color: var(--secondaryBackgroundColor);
    padding: var(--sectionPadding);
}

.services .pre-title{
    margin: 0 auto;
}

.services-title {
    text-align: center;
}

.service {
    padding: 3rem 2rem;
    text-align: center;
    background: var(--primaryBackgroundColor);
    border-radius: var(--itemBorderRadius);
}

.service h4{
    margin: 1.5rem 0;
    font-weight: 500;
    font-size: 1.05rem;
}

.service-icon{
    background: var(--thirdBackgroundColor);
    width: fit-content;
    margin: 0 auto;
    padding: 1rem 1.3rem;
    border-radius: 0.5rem;
}

.service-icon svg {
    fill: var(--primaryIconColor);
}

/* Portfolio Section */
#portfolios {
    padding: var(--sectionPadding);
}

.portfolio {
    border-radius: var(--itemBorderRadius);
    overflow: hidden;
    border: 1px solid var(--borderColor);
}

.portfolio-cover {
    height: 250px;
}

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

.portfolio-info{
    padding: 2rem 1.5rem;
}

.portfolio-title{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.portfolio h4 {
    font-weight: 500;
    font-size: 1.05rem;
}

.portfolio-title a svg:hover {
    fill: var(--primaryIconColor);
}

.portfolio-link svg {
    fill: var(--primaryTextColor);
}

.portfolio-title a svg {
    transition: .2s ease-in-out;
}

.portfolio-tags{
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}
.portfolio-tags {
    text-align: center;
  }
  
.portfolio-tags div{
    font-size: 0.9rem;
    border: 1px solid  var(--borderColor);
    padding: .4rem 1rem;
    color: var(--secondaryTextColor);
}

.portfolio-link a svg:hover {
    fill: var(--primaryTextColor);
}
/* Skills and Edu */
#skills {
    padding: var(--sectionPadding);
    background: var(--secondaryBackgroundColor);
}

.skills-grid{
    display: grid;
    grid-template-columns: 40% 60%;
    grid-template-columns: repeat(auto-fit, minmax(350px 1fr));
    gap: 3rem;
}

.education {
    display: flex;
    gap: 1rem;
  }
  
.education .line {
    padding: 0 0.7rem;
  }
  
.education .line div {
    width: 2px;
    height: 100%;
    background: var(--borderColor);
    position: relative;
  }
  
.education-info p {
    margin-bottom: .2rem;
    margin-left: 0;
  }

.education-info h4 {
    margin-top: 0rem;
}
  
  /* The dot on the line */
.education .line div:before {
    content: "";
    width: 15px;
    height: 15px;
    background: var(--borderColor);
    border-radius: 50%;
    position: absolute;
    left: -6px;
  }
  
  /* Right side of Skills */
.skills-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 1.5rem;
  }
  
.skills-right ul {
    line-height: 2rem;
    padding: 0 1rem;
  }

  /* Achievments Section */
#achievments {
    padding: var(--sectionPadding);
}

.achievment {
    border-radius: var(--itemBorderRadius);
    overflow: hidden;
    border: 1px solid var(--borderColor);
}

.achievment-cover {
    height: 250px;
}

.achievment img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.achievment-info{
    padding: 2rem 1.5rem;
}

.achievment-title{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.achievment h4 {
    font-weight: 500;
    font-size: 1.05rem;
}

.achievment-title a svg:hover {
    fill: var(--primaryIconColor);
}

.achievment.title a svg {
    transition: .2s ease-in-out;
}

.achievment-tags{
    justify-content: center;
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    
}

.achievment-tags div{
    font-size: 0.9rem;
    border: 1px solid  var(--borderColor);
    padding: .35rem 1rem;
    color: white;
    border-radius: 10px;
    background: var(--primaryTextColor);
}

/* Experience */
#experience {
    padding: var(--sectionPadding);
    background: var(--secondaryBackgroundColor);
}

.experience-grid{
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-columns: repeat(auto-fit, minmax(350px 1fr));
    gap: 3rem;
}
.experience-left h4.section-title,
.experience-right h4.section-title {
  font-size: 1.3rem; /* Atur ukuran font sesuai kebutuhan */
  margin-bottom: 1rem; /* Berikan jarak antara judul dan konten */
}
.organisasi {
    display: flex;
    gap: 1rem;
  }
  
.organisasi .line {
    padding: 0 0.7rem;
  }
  
.organisasi .line div {
    width: 2px;
    height: 100%;
    background: var(--borderColor);
    position: relative;
  }
  
.organisasi-info p {
    margin: 0.1rem 0 1.4rem;
    /* margin-bottom: .5rem; */
  }
.organisasi-info h4 {
    text-align: justify;
  }
  
.organisasi-years {
    margin-bottom: 3rem;
  }
  
  /* The dot on the line */
.organisasi .line div:before {
    content: "";
    width: 15px;
    height: 15px;
    background: var(--borderColor);
    border-radius: 50%;
    position: absolute;
    left: -6px;
  }
  
  /* Right side of Skills */
.experience-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 1.5rem;
  }
  
.experience-right ul {
    line-height: 2rem;
    padding: 0 1rem;
  }

/* Contact Section */
#contact {
  padding: var(--sectionPadding);
}

.contact {
  display: grid;
  /* grid-template-columns: 1fr 1fr; */
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
}

.contact-form div {
  margin-bottom: 1.4rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1.3rem;
  font-family: "Poppins", sans-serif;
  border: 1px solid var(--borderColor);
  border-radius: 3px;
  resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9d9fa1;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border: 1px solid #7d7d7d;
}

.btn-submit {
  width: 100%;
  padding: 0.75rem 1.3rem;
  background-color: var(--primaryIconColor);
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: 0.2s ease-in-out;
  font-family: "Poppins", sans-serif;
}

.btn-submit:hover {
  background-color: var(--primaryIconColorHover);
}

/* Contact Section - Right Side */
.contact-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-item-icon {
  /* background: var(--thirdBackgroundColor); */
  padding: 0.8rem 1rem;
  width: 53px;
  height: 53px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item-icon svg {
  fill: var(--primaryIconColor);
}

.contact-item-detail h4 {
  margin-bottom: 0.6rem;
}

/* Footer Section */
footer {
  padding: 4rem 0;
  background: var(--secondaryBackgroundColor);
  text-align: center;
}

.footer-icons {
  margin-bottom: 1rem;
}

.footer-icons a {
  margin: 0 0.5rem;
}

.footer-icons svg {
  fill: #3e3f40;
}

.footer-icons a:hover svg {
  fill: #000;
}

/* Button Selengkapnya */
/* Style untuk tombol "Selengkapnya" */
/* Style untuk tombol "Selengkapnya" */
.button-container {
  justify-content: right;
  margin-top: 5px; /* Mengatur jarak dari atas */
  display: grid;
}

.show-more {
  background-color: white; /* Warna latar belakang tombol */
  border-style: solid;
  border-radius: 10px;
  border-color: var(--primaryTextColor); /* Warna border */
  color: var(--primaryTextColor); /* Warna teks putih */
  cursor: pointer;
  font-size: 14px;
  padding: 5px 10px; /* Padding untuk meningkatkan ukuran tombol */
  transition: background-color 0.3s, color 0.3s; /* Efek transisi saat hover */
  font-family: "Poppins", sans-serif;
}

.show-more:hover {
  background-color: var(--primaryTextColor); /* Warna latar belakang tombol yang lebih tua saat dihover */
  color: white;
}

.detail {
  background-color: var(--primaryTextColor); /* Warna latar belakang tombol yang lebih tua saat dihover */
  color: white;
  margin-top: 8px;
  margin-bottom: 15px;
  border-style: solid;
  border-radius: 10px;
  border-color: var(--primaryTextColor); /* Warna border */
  
  cursor: pointer;
  font-size: 14px;
  padding: 5px 10px; /* Padding untuk meningkatkan ukuran tombol */
  transition: background-color 0.3s, color 0.3s; /* Efek transisi saat hover */
  font-family: "Poppins", sans-serif;
}

.detail:hover {
  background-color: var(--secondaryBackgroundColor); /* Warna latar belakang tombol yang lebih tua saat dihover */
  color: var(--primaryTextColor); /* Warna teks putih */
}


