@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

/* 
#9DB2BF
#DDE6ED
#B8B8B8
#3D3D3D
*/


/* CSS CLEAR */

html {
    box-sizing: border-box;
    font-size: 16px;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
    margin: 0;
    padding: 0;
    font-weight: normal;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    /* color: #fff; */
    text-decoration: none;
}


/* CSS STYLE */

body {
    font-family: 'Ubuntu', sans-serif;
    background-color: #DDE6ED;
    color: #000;
    overflow-x: hidden;
}


/* ================= NAVIGATION ================= */

nav {
    position: absolute; /* Changed from sticky to absolute */
    top: 0;
    width: 100%;
    display: flex;
    background: #B8B8B8;
    justify-content: space-between;
    padding: 0 5%;
    height: 50px;
    align-items: center;
    z-index: 10; /* Ensure nav is above other elements */
}

nav .logo {
    font-size: 2rem;
    color: #000;
    letter-spacing: 3px;
}

.logo h4 {
    font-weight: 500;
}

nav ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    width: 40%;
}

nav ul li a {
    color: #000;
    font-size: 1rem;
    padding: 3px 0;
}

nav ul li a:hover {
    border-bottom: 1px solid #3D3D3D;
}

/* Hamburger menu */

.menu-toggle {
    /* display: flex; */
    flex-direction: column;
    height: 20px;
    justify-content: space-between;
    position: relative;
    display: none;
}

.menu-toggle input {
    position: absolute;
    width: 40px;
    height: 28px;
    left: -10px;
    top: -5px;
    opacity: 0;
    cursor: pointer;
    z-index: 9;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #000;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -ms-border-radius: 3px;
    -o-border-radius: 3px;
    transition: all 0.5s;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
}

.menu-toggle span:nth-child(2) {
    transform-origin: 0 0;
}

.menu-toggle span:nth-child(4) {
    transform-origin: 0 100%;
}

.menu-toggle input:checked~span:nth-child(2) {
    transform: rotate(45deg) translate(-1px, -1px);
    -webkit-transform: rotate(45deg) translate(-1px, -1px);
    -moz-transform: rotate(45deg) translate(-1px, -1px);
    -ms-transform: rotate(45deg) translate(-1px, -1px);
    -o-transform: rotate(45deg) translate(-1px, -1px);
}

.menu-toggle input:checked~span:nth-child(3) {
    transform: scale(0);
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    -ms-transform: scale(0);
    -o-transform: scale(0);
    opacity: 0;
}

.menu-toggle input:checked~span:nth-child(4) {
    transform: rotate(-45deg) translate(-1px, 0);
    -webkit-transform: rotate(-45deg) translate(-1px, 0);
    -moz-transform: rotate(-45deg) translate(-1px, 0);
    -ms-transform: rotate(-45deg) translate(-1px, 0);
    -o-transform: rotate(-45deg) translate(-1px, 0);
}


/* ================= MAIN HEADER ================= */

.container {
    width: 90%;
    margin: auto;
    /* display: block; */
    /* background-color: pink; */
}

#main-header {
    /* background: pink; */
    padding: 40px 0;
    height: 100vh;
}

.main-header-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    /*background-color: orange;*/
    border: 2px solid #3D3D3D;
    margin: auto;
    padding: 20px 20px 0 20px;
    display: flex;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
}

.intro {
    flex: 3;
    /* background: rosybrown; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.intro h3 {
    font-size: 35px;
    margin: 20px;
}

.intro h2 {
    font-size: 40px;
}

.intro h2 span {
    font-size: 35px;
}

.intro span {
    font-size: 20px;
}

.intro p {
    font-size: 30px;
    margin: 20px;
}

.mybtn {
    display: flex;
    justify-content: space-around;
    width: 200px;
}

.myworks,
.cv {
    appearance: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-block;
    font-size: 15px;
    font-weight: 500;
    line-height: 20px;
    padding: 6px 16px;
    position: relative;
}

.myworks {
    color: #24292E;
    border: 2px solid #3D3D3D;
}

.cv {
    color: #eee;
    background: #3D3D3D;
}

.cv span {
    font-size: 15px;
}

.download-cv {
    background: url('https://api.iconify.design/ic/round-download.svg') no-repeat center center / contain;
    content: url('https://api.iconify.design/ic/round-download.svg?color=%23eee');
    display: inline-block;
}

.mybtn .cv {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cv:hover {
    background: #202020;
}

.myworks:hover {
    background-color: #3D3D3D;
    color: #eee;
    text-decoration: none;
    transition-duration: 0.2s;
}

.image-header {
    flex: 2;
    /* background: yellow; */
}

.image-header img {
    width: 300px;
    margin: 0 auto;
    display: block;
}

.mysocial {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.social-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.social-link span {
    width: 30px;
}

.linkedin {
    content: url('https://api.iconify.design/mdi/linkedin.svg?color=%233d3d3d');
}

.linkedin:hover {
    content: url('https://api.iconify.design/mdi/linkedin.svg?color=%23202020');
}

.github {
    content: url('https://api.iconify.design/mdi/github.svg?color=%233d3d3d');
}

.github:hover {
    content: url('https://api.iconify.design/mdi/github.svg?color=%23202020');
}

.instagram {
    content: url('https://api.iconify.design/mdi/instagram.svg?color=%233d3d3d');
}

.instagram:hover {
    content: url('https://api.iconify.design/mdi/instagram.svg?color=%23202020');
}

.pdf {
    display: inline-block;
    width: 2em;
    height: 2em;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%233d3d3d' d='M18.53 9L13 3.47a.75.75 0 0 0-.53-.22H8A2.75 2.75 0 0 0 5.25 6v12A2.75 2.75 0 0 0 8 20.75h8A2.75 2.75 0 0 0 18.75 18V9.5a.75.75 0 0 0-.22-.5m-5.28-3.19l2.94 2.94h-2.94ZM16 19.25H8A1.25 1.25 0 0 1 6.75 18V6A1.25 1.25 0 0 1 8 4.75h3.75V9.5a.76.76 0 0 0 .75.75h4.75V18A1.25 1.25 0 0 1 16 19.25'/%3E%3Cpath fill='%233d3d3d' d='M13.49 14.85a3.15 3.15 0 0 1-1.31-1.66a4.44 4.44 0 0 0 .19-2a.8.8 0 0 0-1.52-.19a5 5 0 0 0 .25 2.4A29 29 0 0 1 9.83 16c-.71.4-1.68 1-1.83 1.69c-.12.56.93 2 2.72-1.12a19 19 0 0 1 2.44-.72a4.7 4.7 0 0 0 2 .61a.82.82 0 0 0 .62-1.38c-.42-.43-1.67-.31-2.29-.23m-4.78 3a4.3 4.3 0 0 1 1.09-1.24c-.68 1.08-1.09 1.27-1.09 1.25Zm2.92-6.81c.26 0 .24 1.15.06 1.46a3.1 3.1 0 0 1-.06-1.45Zm-.87 4.88a15 15 0 0 0 .88-1.92a3.9 3.9 0 0 0 1.08 1.26a12.4 12.4 0 0 0-1.96.67Zm4.7-.18s-.18.22-1.33-.28c1.25-.08 1.46.21 1.33.29Z'/%3E%3C/svg%3E");
}



/* ================= HEADER KIRI KANAN ================= */

.header-container {
    display: flex;
    align-items: center;
    /* background: purple; */
}

.kiri {
    justify-content: flex-start;
}

.kanan {
    justify-content: flex-end;
}

.header-container header {
    flex-basis: 50%;
    background: #B8B8B8;
    padding: 10px 5%;
}

.header-container header h2 {
    font-weight: 400;
    text-transform: uppercase;
}


/* ================= ABOUT ME ================= */

#about {
    padding: 40px 0;
}

#about .content {
    /* background-color: purple; */
    width: 80%;
    margin: auto;
    padding: 40px 0;
    font-size: 18px;
}

.paragraf p {
    line-height: 1.6;
    padding: 20px;
}

#about .content .paragraf {
    margin-bottom: 20px;
}

#about .content .more-me {
    display: flex;
    justify-content: space-between;
}

.more-me .myeducation {
    /* background: salmon; */
    flex-basis: 50%;
    /* border-left: 2px dashed #3D3D3D; */
}

.more-me .myskills {
    /* border-left: 2px dashed #3d3d3d; */
    flex-basis: 50%;
}

.full-star {
    content: url('https://api.iconify.design/material-symbols/star.svg');
    width: 20px;
}

.outline-star {
    content: url('https://api.iconify.design/material-symbols/star-outline.svg');
    width: 20px;
}

.more-me .myeducation table,
.more-me .myskills table {
    border-collapse: collapse;
    border: none;
    width: 100%;
    margin-bottom: 20px;
}

.more-me .myeducation,
.more-me .myskills {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.more-me .myskills {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.more-me table td {
    padding: 8px;
}

.more-me .myeducation,
.more-me .myskills {
    /* background: #f7f7f7; */
    padding: 20px;
}

.my-journey>h3{
    text-align: center;
    margin: 20px 0;

}

.my-journey .btn-skip-to-service {
    width: 7rem;
    padding: 5px;
    text-align: center;
    margin: auto;
    border-radius: 5px;
    border: 1px solid #3d3d3d;
    transition: background-color 0.3s ease, transform 0.3s ease;
    animation: bounce 2s infinite;
}
.my-journey .btn-skip-to-service:hover {
    background-color: #3d3d3d;
    transform: scale(1.1);
}
.my-journey .btn-skip-to-service a {
    color: #3d3d3d;
    text-decoration: none;
    transition: color 0.3s ease;
}
.my-journey .btn-skip-to-service:hover a {
    color: #fff;
}

/* TIMELINE */
/* Custom by me */

.timelines-item{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sub-timeline{
    padding: 10px 0;
}

.sub-timeline .timeline-tag{
    padding: 2px 15px;
    border: 1px solid #3d3d3d;
    width: fit-content;
    border-radius: 10px;
}

.sub-timeline h3{  
    margin-top: 10px;
    font-size: 18px;
    font-weight: 500;
}

.sub-timeline p.activity-description{
    font-size: 15px;
    margin: 10px 0;
    line-height: 20px;
}

.sub-timeline .activity-media {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; 
}

.activity-media a {
  position: relative;
  text-decoration: none;
}

.activity-media img {
  display: block;
  width: 100%;
  height: auto;
}

/* Specific styles for pdf-wrap */
.pdf-wrap {
    display: flex;
    align-items: center;
    text-decoration: none; /* Remove underline for .pdf-wrap links */
}

.pdf-wrap .pdf {
    width: 2em;
    height: 2em;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%233d3d3d' d='M18.53 9L13 3.47a.75.75 0 0 0-.53-.22H8A2.75 2.75 0 0 0 5.25 6v12A2.75 2.75 0 0 0 8 20.75h8A2.75 2.75 0 0 0 18.75 18V9.5a.75.75 0 0 0-.22-.5m-5.28-3.19l2.94 2.94h-2.94ZM16 19.25H8A1.25 1.25 0 0 1 6.75 18V6A1.25 1.25 0 0 1 8 4.75h3.75V9.5a.76.76 0 0 0 .75.75h4.75V18A1.25 1.25 0 0 1 16 19.25'/%3E%3Cpath fill='%233d3d3d' d='M13.49 14.85a3.15 3.15 0 0 1-1.31-1.66a4.44 4.44 0 0 0 .19-2a.8.8 0 0 0-1.52-.19a5 5 0 0 0 .25 2.4A29 29 0 0 1 9.83 16c-.71.4-1.68 1-1.83 1.69c-.12.56.93 2 2.72-1.12a19 19 0 0 1 2.44-.72a4.7 4.7 0 0 0 2 .61a.82.82 0 0 0 .62-1.38c-.42-.43-1.67-.31-2.29-.23m-4.78 3a4.3 4.3 0 0 1 1.09-1.24c-.68 1.08-1.09 1.27-1.09 1.25Zm2.92-6.81c.26 0 .24 1.15.06 1.46a3.1 3.1 0 0 1-.06-1.45Zm-.87 4.88a15 15 0 0 0 .88-1.92a3.9 3.9 0 0 0 1.08 1.26a12.4 12.4 0 0 0-1.96.67Zm4.7-.18s-.18.22-1.33-.28c1.25-.08 1.46.21 1.33.29Z'/%3E%3C/svg%3E");
}

.pdf-wrap p {
    color: #000;
    font-size: 16px;
    text-decoration: underline;
    margin-left: 0.5em; /* Add spacing between the icon and text */
}

/* for img wrap thumbnail */
.img-wrap{
    position: relative;
    overflow: hidden;
}

.img-wrap span {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 15px;
    color: white;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background for better visibility */
    padding: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.img-wrap img{
    transition: filter 0.3s ease;
    display: block;
    height: 70px;
}

.img-wrap:hover img {
    filter: brightness(50%);
}

.img-wrap:hover span {
    opacity: 1;
}

/* ================= Services ================= */

.services-container {
    display: flex;
    width: 80%;
    margin: auto;
    /* background: salmon; */
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
    padding: 100px 0;
}

.services-item {
    text-align: center;
    width: calc(33.33% - 20px);
    /* Setiap item menempati 33.33% lebar dengan jarak 20px antara item */
    padding: 40px 20px;
    border: 2px solid #3D3D3D;
    border-radius: 8px;
    /* Sudut melengkung pada item */
}

.services-item img {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
}

.services-item h4 {
    margin-top: 30px;
    font-size: 20px;
}

.services-item p {
    margin-top: 10px;
    font-size: 16px;
    color: #666;
}

/* Project Section */   
/* #projects {
    padding: 40px 0;
} */

.project-container {
    padding: 100px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 80%;
    margin: auto;
}

.project-item {
    flex-basis: calc(33.33% - 20px); /* Setiap item menempati 33.33% lebar dengan jarak 20px antara item */
    padding: 20px;
    border: 2px solid #3D3D3D;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.project-item .project-tags {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    flex-direction: row;
    margin: 10px 0 20px 0;
}

.project-tags span{
    padding: 3px 10px;
    background: #ccc;
    border-radius: 8px;
    text-transform: uppercase;
}

/* .project-item .project-image{
    height
} */

.project-item img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
}

.project-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 500;
    color: #313638;
}

.project-item .project-link{
    margin: 20px 0 0 0;
    display: flex;
}

.project-item .project-link a{
    color: #fff;
    background: #3d3d3d;
    width: full;
    padding: 8px 4px;
    flex-basis: 100%;
}


/* contact section */

/* #contact{
    padding: 100px 0;
} */

.form-title {
    text-align: center;
    margin: 60px 0 40px 0;
}
.form-container {
    padding: 30px 100px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 700px;
    width: 100%;
    border: 2px solid #333;
    margin: auto;
    margin-bottom: 60px;
}
.form-title h3 {
    margin: 0;
    font-size: 24px;
    font-weight: normal;
    color: #333;
}
.form-title h4 {
    margin-top: 10px;
    font-size: 18px;
    font-weight: normal;
    color: #333;
}
.form-control {
    margin-bottom: 15px;
}
.form-control label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}
.form-control input,
.form-control textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background: #D3D3D3;
}
.form-control textarea {
    resize: none;
    height: 100px;
}
button {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}
button:hover {
    background: #555;
}





/* Footer Styles */
.footer {
    background-color: #B8B8B8;
    padding: 20px 0 0 0;
    color: #333;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}
.footer-column {
    flex: 1;
    min-width: 200px;
    margin: 10px;
}
.footer-column h3 {
    font-size: 18px;
    margin-bottom: 15px;
}
.footer-column ul {
    list-style: none;
    padding: 0;
}
.footer-column ul li {
    margin-bottom: 10px;
}
.footer-column ul li a {
    color: #333;
    text-decoration: none;
    cursor: pointer;

}
.footer-column ul li a:hover {
    color: #555;
}
.footer-bottom {
    background-color: #666666;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

.footer-column h3{
    font-weight: 600;
}



/* others */
#toTopBtn {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed/sticky position */
    bottom: 20px; /* Place the button at the bottom of the page */
    right: 30px; /* Place the button 30px from the right */
    z-index: 99; /* Make sure it does not overlap */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color: #555; /* Set a background color */
    color: white; /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 15px; /* Some padding */
    border-radius: 10px; /* Rounded corners */
    font-size: 18px; /* Increase font size */
}

#toTopBtn:hover {
    background-color: #333; /* Add a dark-grey background on hover */
}


/* Animation styles */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.kiri,
.kanan {
    opacity: 0;
}

.kiri.visible {
    animation: slideInLeft 1s forwards;
}

.kanan.visible {
    animation: slideInRight 1s forwards;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}


/* =============================================================== */


/* Responsive Breakpoint */


/* tablet */

@media screen and (max-width: 768px) {
    nav ul {
        width: 70%;
    }
    .intro {
        /* background: rosybrown; */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .intro h3 {
        font-size: 30px;
        margin: 20px;
    }
    .intro h2 {
        font-size: 35px;
    }
    .intro h2 span {
        font-size: 30px;
    }
    .intro span {
        font-size: 20px;
    }
    .intro p {
        font-size: 25px;
        margin: 20px;
    }
    .mybtn {
        width: 210px;
    }
    .footer-container {
        flex-direction: column;
        align-items: center;
    }
    .footer-column {
        margin: 10px 0;
        text-align: center;
    }

}


/* mobile */

@media screen and (max-width: 576px) {
    html {
        overflow-x: hidden;
    }
    .menu-toggle {
        display: flex;
        z-index: 3;
    }
    nav ul {
        /*display: none;
        */
        position: absolute;
        top: 0;
        right: 0;
        width: 70%;
        height: 100vh;
        flex-direction: column;
        background-color: #B8B8B8;
        align-items: center;
        justify-content: space-evenly;
        z-index: 2;
        transform: translateX(100%);
        -webkit-transform: translateX(100%);
        -moz-transform: translateX(100%);
        -ms-transform: translateX(100%);
        -o-transform: translateX(100%);
        transition: all 1s;
        -webkit-transition: all 1s;
        -moz-transition: all 1s;
        -ms-transition: all 1s;
        -o-transition: all 1s;
        opacity: 0;
    }
    nav ul.slide {
        opacity: 1;
        transform: translateX(0);
        -webkit-transform: translateX(0);
        -moz-transform: translateX(0);
        -ms-transform: translateX(0);
        -o-transform: translateX(0);
    }
    .main-header-wrapper {
        width: 90%;
        flex-direction: column;
    }
    .intro {
        /* background: rosybrown; */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .intro h3 {
        font-size: 30px;
        margin: 20px;
    }
    .intro h2 {
        font-size: 35px;
    }
    .intro h2 span {
        font-size: 30px;
    }
    .intro span {
        font-size: 20px;
    }
    .intro p {
        font-size: 25px;
        margin: 20px;
    }
    .mybtn {
        width: 210px;
    }
    .header-container header {
        flex-basis: 100%;
    }
    #about .content {
        width: 90%;
    }
    #about .content .more-me {
        flex-direction: column;
    }
    .services-container {
        display: flex;
        flex-direction: column;
        margin: auto;
        padding: 40px 0;
    }
    .services-item {
        width: auto;
    }

    .project-container {
    flex-direction: column;
    padding: 40px 0;
    }

    .project-item {
    flex-basis: 100%;
    margin-bottom: 20px;
    }

    .form-container{
        padding: 30px 50px;
        width: 90%;
    }

    

    footer {
        padding: 10px 0;
    }
}


    
    