*{
    padding: 0;
    margin: 0;
    font-family: 'Raleway', 'Heebo', 'Source Code Pro', sans-serif;
    box-sizing: border-box;
    scroll-behavior: smooth;
    text-decoration: none;
}

body {
    height: 100vh;
    width: 100%;
    background-image: url(/images/background-hd.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.4s;
}

.hamburger-menu.active .bar1 {
    transform: rotate(-45deg) translate(-9px, 10px);
}

.hamburger-menu.active .bar2 {
    opacity: 0;
}

.hamburger-menu.active .bar3 {
    transform: rotate(45deg) translate(-8px, -9px);
}

.logo {
    color: white;
    font-size: 40px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;    
    text-transform: uppercase;
    transition: ease .5s;
}

.logo span {
    color: rgb(175, 0, 99);
}

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

.hamburger-menu {
    display: none;
}

.nav {
    width: 100%;
    position: absolute;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 25px 0 25px;
    transform: translateZ(0);
    height: 60px;
}

.nav-menu {
    display: flex;    
}

.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-menu ul li {
    padding: 10px 20px;
}

.nav-menu ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;    
    text-transform: uppercase;
    display: inline-block;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu ul li a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: rgb(175, 0, 99);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.nav-menu ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.nav-menu ul li a span {
    color: rgb(175, 0, 99);
    transition: color 0.3s ease;
}

.nav-menu ul li a:hover {
    color: rgb(175, 0, 99);
}

.nav-menu ul li a:hover span {
    color: white;
}

#myBtn {
    position: fixed;
    bottom: 20px;
    right: 30px;
    border: none;
    outline: none;
    background-color: rgb(85, 85, 85, 0.5);
    cursor: pointer;
    font-size: 1em;
    padding: 15px;
    border-radius: 50% 50% 5% 5%;
    z-index: 9;
}
  
#myBtn:hover {
    background-color: rgb(175, 0, 99);
}

.hero-text {
    align-items: left;
    max-width: 90%;
}

.hero-text p {
    color: #000;
    font-weight: 500;
    font-size: 4rem;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.2), 0 0 20px rgba(255,255,255, .4),0 0 10px rgba(255,255,255, 0.6);
}

.hero-text .first span {
    color: rgb(230, 200, 30);
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(230, 200, 30, 0.2), 0 0 10px rgba(230, 200, 30, .4),0 0 5px rgba(230, 200, 30, 0.6);
}

.hero-text .second span {    
    color: rgb(160, 20, 20);
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(110, 10, 10, 0.2), 0 0 10px rgba(110, 10, 10, 0.4),0 0 5px rgba(110, 10, 10, 0.6);
}
.hero-text .third span {
    color: rgb(130, 120, 255);
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(130, 120, 255, 0.2), 0 0 10px rgba(130, 120, 255, 0.4), 0 0 5px rgba(130, 120, 255, 0.6);
}

.hero-text {
    color: #e5e5e5;
    font-size: 4rem;
    font-weight: 300;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animation {
    height: 76px;
    overflow: hidden;
    margin-left: 2rem;
}

.animation > div > div {
    padding: 0 20px;
    height: 76px;
    margin-bottom: 64px;
    display: inline-block;
}

.animation div:first-child {
    animation: text-animation 9s infinite;
}

.first div {
    background-color:rgba(30, 100, 135, 0.7);
}

.second div {
    background-color:rgba(230, 200, 30, 0.7);
}

.third div {
    background-color:rgba(125, 20, 40, 0.7);
}

@keyframes text-animation {
    0% {margin-top: 0;}
    10% {margin-top: 0;}
    20% {margin-top: -140px;}
    30% {margin-top: -140px;}
    40% {margin-top: -280px;}
    60% {margin-top: -280px;}
    70% {margin-top: -140px;}
    80% {margin-top: -140px;}
    90% {margin-top: 0;}
    100% {margin-top: 0;}
}

@keyframes arrow-animation {
    0% {
        transform: translateY(-40);
    }
    50% {
        transform: translateY(-60px);
    }
    100% {
        transform: translateY(-40);
    }
}

.arrow-down {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 20px solid #ffffff;
    margin: 0 auto;
    animation: arrow-animation 5s infinite;
    cursor: pointer;
    pointer-events: auto;
}


.about {
    width: 100%;
    padding: 100px 0;
    background-color: rgba(0, 30, 30, 0.5);
}


.about img {
    height: auto;
    width: 30%;
    border-radius: 1rem;
}

.about-text {
    width: 550px;
}

.about-text a {
    text-transform: uppercase;
    color: #f1f1f1;
}

.about-content {
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.about-text h2 {
    color: white;
    font-size: 75px;
    font-weight: 300;
    text-transform: capitalize;
    margin-bottom: 20px;
}

.about-text h3 {
    color: white;
    font-weight: 400;
    letter-spacing:  2px;
    margin-bottom: 25px;
    text-transform: capitalize;
}

.about-text span {
    color: rgb(150, 0, 100);
}

.about-text p {
    color: lightgrey;
    letter-spacing: 1px;
    line-height: 28px;
    font-size: 18px;
    margin-bottom: 45px;
}
#readMoreBtn:hover {
    text-decoration: overline;
    font-style: oblique;
}

#read-more {
    display: none;
}

button {
    background-color: rgb(150, 0, 100);
    color: white;
    text-decoration: none;
    border: 2px solid transparent;
    font-weight: bold;
    padding: 13px 30px;
    border-radius: 30px;
    transition: .4s;
}

button:hover {
    background-color: transparent;
    border: 2px solid rgb(150, 0, 100);
    cursor: pointer;
}

#toggleButton {
    margin-top: 1rem;
    cursor: pointer;
}

.portfolio {
    background-color: rgb(16, 16, 16, 0.8);
    margin: 0;
    padding: 1rem 3rem;
}

.portfolio h2 {
    padding: 5rem 1rem;
    text-align: center;
    color: white;
    font-size: 3rem;
    font-weight: 300;
    text-transform: uppercase;
}

.portfolio p {
    width: 90%;
    margin: 0 auto;
    text-align: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 500;
}

.portofolio-content {
    width: 90%;
    margin: 0 auto;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.project {
    border: 1px solid grey;
    border-radius: 1rem;
    text-align: center;
    overflow: hidden;
}

.project-image {
    width: 90%;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
    margin: 1.3rem;
}

.project:hover .project-image {
    transform: scale(1.12);
}

.project-hidden {
    display: none;
}

#background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    backdrop-filter: blur(2rem);
    z-index: 998;
}

#popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    transition: opacity 0.5s, transform 0.5s;
}

#popup.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.popup.zoom-in {
    transition: width 0.3s, height 0.3s;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    overflow: auto;
}

.popup-content {
    position: relative;
    background: #fff;
    margin: 5rem auto;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 80%;
    box-sizing: border-box;
    border: 2px solid #333;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: rgb(255, 255, 255);
    color: purple;
    box-shadow: 0 0 5px rgba(128, 0, 128, 0.3);
    font-family: 'Times New Roman', Times, serif;
    font-size: 42px;
    font-weight: 200;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: background-color 0.3s ease;
    border: 1px solid purple;
}

.close:hover {
    background-color: rgb(128, 0, 128);
    color: whitesmoke;
    border: 1px solid white;
}

/* .close-bottom {
    position: absolute;
    bottom: 2rem;
    right: 1rem;
    font-size: 1rem;
    cursor: pointer;
} */

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 70%;
}

#popup-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.first-link {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem;
}

.first-link a {
    width: fit-content;
    padding: 0.5rem 1rem;
    background-color: purple;
    border: 1px solid white;
    border-radius: 0.5rem;
    color: white;
    font-weight: 600;
    transition: background-color 0.3s, border 0.3s, color 0.3s, font-weight 0.3s;
}

.first-link a:hover {
    background-color: white;
    border: 1px solid purple;
    color: purple;
    font-weight: 600;
}

.popup-text h3{
    font-size: 3rem;
    font-weight: 400;
    text-align: center;
    padding-top: 5rem;
}

.popup-text p{
    color: #555;
    font-size: 1.2rem;
    font-weight: 500;
}

.mobile-view {
    display: flex;
    padding: 1rem;
    align-items: center;
    justify-content: center;

}

.mobile-view img{
    width: 30%;
    padding: 1rem;
}

.popup-subtitle h3 {
    text-align: center;
    font-size: 3rem;
}

.popup-subtitle {
    padding: 1rem;
}

.description-section {
    margin-bottom: 2rem;
}

.image-and-text {
    padding-block: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.image-and-text img {
    border-radius: 10px solid black;
}

.text-container {
    padding: 0.5rem;
    max-width: 40%;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.text-container h3{
    font-size: 1.8rem;
}

.text-container p{
    font-size: 1rem;
    color: #555;
}

.description-image {
    max-width: 60%;
    border-radius: 1rem;
    border: 0.5rem double grey;
}

.description-section:nth-child(even) .image-and-text {
    flex-direction: row-reverse;
}

.description-section:nth-child(even) .text-container {
    margin-left: 0;
    margin-right: 1rem;
}

.description-section:nth-child(even) .description-image {
    margin-right: 0;
    margin-left: 1rem;
}

#project-slider {
    margin-top: 3rem;
    overflow: hidden;
    width: 100%;
    display: flex;
}

.slide {
    flex: 0 0 100%;
}

.slide img {
    width: 100%;
    height: auto;
}

.more-projects {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 2rem;
}

#bottom-popup-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bottom-text {
    flex: 1;
    text-align: left;
    padding: 2rem;
    max-width: 50%;
}

.bottom-text h4 {
    font-size: 1.3rem;
    color: #000;
}

.bottom-text h4 span {
        color: #555;
}

.bottom-text h5 {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: #333;
    text-align: left;
}

.second-link span{
    padding-right: 1rem;
    color: #555;
}

.second-link span:hover{
    color: #333;
}

.second-link a {
    width: fit-content;
    padding: 0.5rem 1rem;
    background-color: purple;
    border: 1px solid white;
    border-radius: 0.5rem;
    color: white;
    font-weight: 600;
    transition: background-color 0.3s, border 0.3s, color 0.3s, font-weight 0.3s;
}

.second-link a:hover {
    background-color: white;
    border: 1px solid purple;
    color: purple;
    font-weight: 600;
}

.skills {
    background-color: #191919;
}

.skills .title h2{
    font-size: 3rem;
    font-weight: 300;
}

.skill-box {
    max-width: 90%;
    margin-inline: auto;
    display: flex;
    padding: 2rem 1rem;
}

.skills-container {
    width: 30%;
    margin: 50px auto;
    background-color: #f1f1f1;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.skill-item {
    margin-bottom: 20px;
}

.skill-label {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 5px;
}

.skill-bar {
    height: 20px;
    background-color: #101010;
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    width: 0;
    background-color: #20a7d8;
    border-radius: 5px;
}

.resume {
    width: 90%;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-inline: auto;
}

.resume h2 {
    padding: 2rem;
    font-size: 3rem;
    font-weight: 500;
}

.resume p {
    padding: 1rem;
    font-size: 1.3rem;
    font-weight: 500;
}

.resume a {
    text-decoration: none;
    color: #20a7d8;
}

.resume a:hover {
    text-decoration: underline;
    color: #96e2fd;
}


.service {
    background: #101010;
    /* width: 100%; */
    padding: 3rem;
}

.title h2 {
    padding: 5rem;
    color: white;
    font-size: 3rem;
    margin-inline: auto;
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;
}

.box {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.card {
    width: 25rem;
    padding: 2rem;
    background: rgb(100, 100, 100);
    border-radius: 1rem;
    margin: 1rem;
    text-align: center;
    transition: transform 1s ease;
}

.card img {
    max-width: 50%;
    padding: 1rem;
}

@keyframes imageAnimation {
    to {
        transform: scale(1.2);
    }
}

.card:hover {
    transform: scale(1.05);
}

.card:hover img {
    animation: imageAnimation 1s infinite alternate;
}

h5 {
    color: white;
    font-size: 1.8rem;
    padding-bottom: 1rem;
}

.card-text {
    color: lightgray;
    font-size: 1rem;
    line-height: 1.5rem;
}

.card-text p {
    padding: 0.5rem;
}

.contact-me {
    min-height: 100vh;
    background-color: #191919;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.contact-me p {
    color: white;
    font-size: 2rem;
    font-weight: 300;
    padding: 2rem;
}

form {
    background-color: rgb(200, 200, 200);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

label {
    color: white;
    display: block;
    margin-bottom: 0.5rem;
}

input, textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid lightgray;
    border-radius: 0.5rem;
    box-sizing: border-box;
}

textarea {
    height: 10rem;
}

.success {
    text-align: center;
}

.error {
    padding-top: 10%;
    min-height: fit-content;
    text-align: center;
}

.contact-me .hire-button {
    background-color: rgb(150, 0, 100);
    color: white;
    text-decoration: none;
    border: 2px solid transparent;
    font-weight: bold;
    padding: 8px 20px;
    border-radius: 30px;
    transition: .4s;
    justify-content: center;
    align-items: center;
}

.contact-me .hire-button:hover {
    background-color: transparent;
    border: 2px solid rgb(150, 0, 100);
    cursor: pointer;
}

footer {
    background: #101010;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

footer h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 300;
}

footer p {
    color: white;
    font-size: 1.5rem;
    text-align: center;
    padding: 2rem;
    width: 36rem;
}

.social {
    width: 350px;
    display: flex;
    justify-content: space-between;
}

.social a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: rgb(150, 0, 100);
    border-radius: 50%;
    margin-right: 22px 10px;
    color:  white;
    text-decoration: none;
    font-size: 20px;
    transition: ease .5s ;
}

.social img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.social a:hover {
    transform: scale(1.3);
}

.copyright {
    padding: 2rem 0 0 0;
    font-size: 1rem;
}







/* ///////////////////////////////////////      MEDIA         /////////////////////////////////////// */





@media screen and (max-width: 1440px) {
    .error {
        padding-top: 20%;
    }
    .logo {
        font-size: 34px;
    }
    
    .nav {
        padding: 10px 10px 0 10px;
        height: 53px;
    }
    
    .nav-menu ul li {
        padding: 10px 15px;
    }
    
    .nav-menu ul li a {
        font-size: 24px;
    }
    
    .hero-text p {
        font-size: 3rem;
    }
    
    .hero-text {
        font-size: 3rem;
    }
    
    .animation {
        height: 56px;
        margin-left: 2rem;
    }
    
    .animation > div > div {
        height: 56px;
    }
    
    @keyframes text-animation {
        0% {margin-top: 0;}
        10% {margin-top: 0;}
        20% {margin-top: -120px;}
        30% {margin-top: -120px;}
        40% {margin-top: -240px;}
        60% {margin-top: -240px;}
        70% {margin-top: -120px;}
        80% {margin-top: -120px;}
        90% {margin-top: 0;}
        100% {margin-top: 0;}
    }
    
    .about {
        padding: 30px 0;
    }
    
    .about-text {
        width: 600px;
    }

    .about-text h2 {
        font-size: 3rem;
    }
    
    .portfolio h2 {
        font-size: 2.5rem;
    }
    
    .portfolio p {
        font-size: 1.2rem;
    }
    
    .portofolio-content {
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }
    
    .project-image {
        margin: 1rem;
    }
    
    .popup-content {
        margin: 3rem auto;
        padding: 1rem;
    }
    
    .close {
        font-size: 30px;
    }

    .popup-text h3{
        font-size: 2.5rem;
        padding-top: 2rem;
    }
    
    .popup-text p{
        font-size: 1rem;
        padding-top: 1rem;
    }
    
    .mobile-view img{
        width: 40%;
    }
    
    .popup-subtitle h3 {
        font-size: 2rem;
    }
    
    .description-section {
        margin-bottom: 3rem;
    }
    
    .text-container {
        max-width: 40%;
    }
    
    .text-container h3{
        font-size: 1.5rem;
    }
    
    .text-container p{
        font-size: 1.1rem;
    }
    
    .description-image {
        max-width: 60%;
    }

    .bottom-text h4 {
        font-size: 1.3rem;
    }
    
    .bottom-text h5 {
        font-size: 0.9rem;
    }

    .skills .title h2{
        font-size: 2.5rem;
    }
    
    .skill-box {
        width: 100%;
        padding: 0.5rem;
    }
    
    .skills-container {
        width: 30%;
        margin: 1rem auto;
        padding: 10px;
    }
    
    .resume h2 {
        font-size: 2rem;
    }
    
    .resume p {
        font-size: 1.3rem;
    }
 
    .title h2 {
        padding: 3rem;
        font-size: 2.5rem;
    }
    
    .box {
        margin: 0 auto;
    }
    
    .card {
        width: 95%;
    }
    
    .card img {
        max-width: 40%;
    }
    
    footer h3 {
        font-size: 2rem;
    }
    
    footer p {
        font-size: 1.2rem;
        width: 30rem;
    }
    
    .social {
        width: 300px;
    }
    
    .copyright {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 1280px) {
    .logo {
        font-size: 30px;
    }
    
    .nav {
        padding: 10px 10px 0 10px;
        height: 50px;
    }
    
    .nav-menu ul li {
        padding: 10px 15px;
    }
    
    .nav-menu ul li a {
        font-size: 20px;
    }
    
    .hero-text p {
        font-size: 2.5rem;
    }
    
    .hero-text {
        font-size: 2.5rem;
    }
    
    .animation {
        height: 48px;
        margin-left: 2rem;
    }
    
    .animation > div > div {
        height: 48px;
    }
    
    @keyframes text-animation {
        0% {margin-top: 0;}
        10% {margin-top: 0;}
        20% {margin-top: -112px;}
        30% {margin-top: -112px;}
        40% {margin-top: -224px;}
        60% {margin-top: -224px;}
        70% {margin-top: -112px;}
        80% {margin-top: -112px;}
        90% {margin-top: 0;}
        100% {margin-top: 0;}
    }
    
    .about {
        padding: 30px 0;
    }
    
    .about-text {
        width: 500px;
    }

    .about img {
        width: 40%;
    }

    .about-text h2 {
        font-size: 2.5rem;
    }
    
    .portfolio h2 {
        font-size: 2rem;
    }
    
    .portofolio-content {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        margin: 1rem;
    }
    
    .popup-content {
        margin: 2rem auto;
        padding: 10px;
    }

    .popup-text h3{
        font-size: 2.5rem;
        padding-top: 2rem;
    }
    
    .popup-text p{
        font-size: 1.2rem;
        padding-top: 1rem;
    }
    
    .mobile-view img{
        width: 45%;
    }
    
    .popup-subtitle h3 {
        font-size: 2rem;
    }
    
    .description-section {
        margin-bottom: 3rem;
    }
    
    .text-container {
        max-width: 45%;
    }
    
    .text-container h3{
        font-size: 1.6rem;
    }
    
    .text-container p{
        font-size: 1.2rem;
    }
    
    .description-image {
        max-width: 55%;
    }

    .skills .title h2{
        font-size: 2rem;
    }
    
    .skill-box {
        display: grid;
        padding: 2rem;
    }
    
    .skills-container {
        width: 80%;
        margin: 30px auto;
        padding: 20px;
    }
    
    .resume h2 {
        font-size: 2rem;
    }
    
    .resume p {
        font-size: 1.2rem;
    }
 
    .title h2 {
        padding: 3rem;
        font-size: 2rem;
    }
    
    .box {
        display: grid;
        margin: 0 auto;
    }
    
    .card {
        width: 80%;
        justify-content: center;
        margin-inline: auto;
    }
    
    .card img {
        max-width: 40%;
    }
}

@media screen and (max-width: 1024px) {
    .error {
        padding-top: 40%;
    }

    .logo {
        font-size: 26px;
    }
    
    .nav {
        padding: 8px 8px 0 8px;
        height: 50px;
    }
    
    .nav-menu ul li {
        padding: 8px 10px;
    }
    
    .nav-menu ul li a {
        font-size: 16px;
    }
    
    .hero-text {
        align-items: center;
    }
    
    .hero-text p {
        font-size: 2rem;
    }
    
    .hero-text {
        font-size: 2rem;
    }
    
    .animation {
        height: 38px;
        margin-left: 2rem;
    }
    
    .animation > div > div {
        height: 38px;
    }
    
    @keyframes text-animation {
        0% {margin-top: 0;}
        10% {margin-top: 0;}
        20% {margin-top: -102px;}
        30% {margin-top: -102px;}
        40% {margin-top: -204px;}
        60% {margin-top: -204px;}
        70% {margin-top: -102px;}
        80% {margin-top: -102px;}
        90% {margin-top: 0;}
        100% {margin-top: 0;}
    }
    
    .about {
        padding: 30px 0;
    }
    
    .about-text {
        width: 58%;
    }
    
    .about img {
        width: 40%;
    }

    .portfolio {
        padding: 0.5rem 2rem;
    }
    
    .portfolio h2 {
        padding: 3rem 1rem;
        font-size: 2rem;
    }
    
    .portfolio p {
        font-size: 1.2rem;
    }
    
    .portofolio-content {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        margin: 1rem;
    }
    
    .popup-content {
        margin: 3rem auto;
        padding: 10px;
    }
    
    .popup-text h3{
        font-size: 2rem;
        padding-top: 1.5rem;
    }
    
    .popup-text p{
        font-size: 1.2rem;
        padding-top: 1rem;
    }
    
    .mobile-view img{
        width: 40%;
    }
    
    .popup-subtitle h3 {
        font-size: 2rem;
    }
    
    .description-section {
        margin-bottom: 3rem;
    }
    
    .text-container {
        max-width: 45%;
    }
    
    .text-container h3{
        font-size: 1.5rem;
    }
    
    .text-container p{
        font-size: 1.1rem;
    }
    
    .description-image {
        max-width: 55%;
    }

    .bottom-text h4 {
        font-size: 1.2rem;
    }
    
    .bottom-text h5 {
        font-size: 0.8rem;
    }

    .skills .title h2{
        font-size: 2rem;
    }
    
    .skill-box {
        display: grid;
        padding: 1rem;
    }
    
    .skills-container {
        width: 80%;
        margin: 30px auto;
        padding: 20px;
    }
    
    .resume h2 {
        font-size: 2rem;
    }
    
    .resume p {
        font-size: 1rem;
    }
 
    .title h2 {
        padding: 3rem;
        font-size: 2rem;
    }
    
    .box {
        display: grid;
        margin: 0 auto;
    }
    
    .card {
        width: 80%;
    }
    
    .card img {
        max-width: 35%;
    }

    form {
        margin: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: rgba(85, 85, 85, 0.99);
        z-index: 1;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-menu ul {
        flex-direction: column;
    }
    
    .nav-menu li {
        margin: 0;
        text-align: right;
        margin: 1em;
        border-bottom: 1px solid #333;
    }

    .hamburger-menu {
        display: flex;
    }

    .logo {
        font-size: 36px;
    }
        
    .nav-menu ul li {
        padding: 0 20px;
    }
    
    .nav-menu ul li a {
        font-size: 26px;
        font-weight: 300;
    }
 
    .hero-text p {
        font-size: 5rem;
    }
    
    .hero-text {
        padding-top: 40vh;
        text-align: center;        
        font-size: 2rem;
        display: block;
    }
    
    .animation {
        height: 38px;
        margin-left: 2rem;
    }
    
    .animation > div > div {
        height: 38px;
    }
    
    @keyframes text-animation {
        0% {margin-top: 0;}
        10% {margin-top: 0;}
        20% {margin-top: -102px;}
        30% {margin-top: -102px;}
        40% {margin-top: -204px;}
        60% {margin-top: -204px;}
        70% {margin-top: -102px;}
        80% {margin-top: -102px;}
        90% {margin-top: 0;}
        100% {margin-top: 0;}
    }
   
    .about-content {
        max-width: 90%;
        text-align: center;
        padding: 2rem 0;
        flex-direction: column;
    }

    .about-text {
        padding: 1rem;
        width: 100%;
    }
    
    .about img {
        width: 50%;
    }

    .portfolio {
        padding: 0.5rem 1rem;
    }
    
    .portfolio h2 {
        padding: 2rem 1rem;
        font-size: 2.5rem;
    }
    
    .portfolio p {
        font-size: 1.3rem;
    }
    
    .popup-content {
        margin: 1rem auto;
        padding: 1rem;
    }
    
    .mobile-view img{
        width: 60%;
    }
    
    .popup-subtitle h3 {
        font-size: 2rem;
    }
    
    .description-section {
        margin-bottom: 2rem;
    }
    
    .text-container {
        max-width: 50%;
    }
    
    .text-container h3{
        font-size: 1.5rem;
    }
    
    .text-container p{
        font-size: 1rem;
        padding: 1rem 0;
    }
    
    .description-image {
        max-width: 50%;
    }
    .description-section:nth-child(even) .description-image {
        margin: 0;
    }
    .description-section:nth-child(even) .text-container {
        margin: 0;
    }

    .bottom-text h4 {
        font-size: 1.1rem;
    }
    
    .bottom-text h5 {
        font-size: 0.7rem;
    }

    .bottom-text {
        padding-bottom: 0;
    }
}

@media screen and (max-width: 640px) {
    .hero-text p {
        font-size: 4rem;
        text-transform: uppercase;
    }
    
    .hero-text {
        margin-inline: auto;
        padding-top: 30vh;
        font-size: 4rem;
        display: block;
    }
       
    .animation {
        max-width: 440px;
        height: 280px;
        overflow: hidden;
        margin-inline: auto;
    }
    
    .animation > div > div {
        padding: 0 10px;
        height: 240px;
        margin-bottom: 240px;
        display: inline-block;
    }
    
    .animation div:first-child {
        animation: text-animation 9s infinite;
    }
    
    @keyframes text-animation {
        0% {margin-top: 0;}
        10% {margin-top: 0;}
        20% {margin-top: -180px;}
        30% {margin-top: -180px;}
        40% {margin-top: -510px;}
        60% {margin-top: -510px;}
        70% {margin-top: -180px;}
        80% {margin-top: -180px;}
        90% {margin-top: 0;}
        100% {margin-top: 0;}
    }
   
    .about-content {
        max-width: 95%;
    }
  
    .portfolio {
        padding: 0.5rem 1rem;
    }
    
    .portfolio h2 {
        padding: 2rem 1rem;
        font-size: 2.5rem;
    }
    
    .portfolio p {
        font-size: 1.2rem;
    }
    
    .popup-content {
        margin: 0.5rem auto;
        padding: 0.5rem;
        width: 90%;
    }
    
    .popup-text h3{
        font-size: 2rem;
        padding-top: 1.5rem;
    }
    
    .popup-text p{
        font-size: 1.2rem;
    }
    
    .mobile-view img{
        width: 50%;
    }
    
    .popup-subtitle h3 {
        font-size: 1.8rem;
    }
    
    .description-section {
        margin-bottom: 2rem;
        margin-inline: auto;
    }

    .image-and-text {
        display: block;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .text-container {
        max-width: 90%;
    }
    
    .text-container h3{
        font-size: 1.5rem;
    }
    
    .text-container p{
        font-size: 1rem;
        padding: 1rem 0;
    }
    
    .description-image {
        max-width: 90%;
    }

    .description-section:nth-child(even) .description-image {
        margin: 0 auto;
    }
    .description-section:nth-child(even) .text-container {
        margin: 0 auto;
    }

    .bottom-text h4 {
        font-size: 1.1rem;
    }
    
    .bottom-text h5 {
        font-size: 0.7rem;
    }

    .bottom-text {
        padding-bottom: 0;
    }

    .skills .title h2{
        font-size: 2rem;
    }
    
    .skill-box {
        display: grid;
        padding: 1rem;
    }
    
    .skills-container {
        width: 90%;
        margin: 1rem auto;
        padding: 1rem;
    }
    
    .resume h2 {
        font-size: 2rem;
    }
    
    .resume p {
        font-size: 1.2rem;
    }

    .service {
        padding: 1rem;
    }
 
    .title h2 {
        padding: 2rem;
        font-size: 2rem;
    }
    
    .box {
        display: grid;
        margin: 0 auto;
    }
    
    .card {
        width: 80%;
    }
    
    .card img {
        max-width: 45%;
    }

    form {
        margin: 1rem;
    }

    footer h3 {
        font-size: 1.5rem;
    }

    footer p {
        font-size: 1.2rem;
        width: 80%;
    }

    .social {
        width: 60%;
    }

    .copyright {
        padding: 2rem 0;
        font-size: 0.6rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-text {
        padding-top: 20vh;
        font-size: 3.3rem;
        display: block;
    }

    .hero-text p {
        font-size: 3.3rem;
    }

    .animation {
        max-width: 330px;
        height: 200px;
        overflow: hidden;
    }
    
    .animation > div > div {
        padding: 0 10px;
        height: 200px;
        margin-bottom: 200px;
        display: inline-block;
    }
    
    .animation div:first-child {
        animation: text-animation 9s infinite;
    }
    
    @keyframes text-animation {
        0% {margin-top: 0;}
        10% {margin-top: 0;}
        20% {margin-top: -150px;}
        30% {margin-top: -150px;}
        40% {margin-top: -420px;}
        60% {margin-top: -420px;}
        70% {margin-top: -150px;}
        80% {margin-top: -150px;}
        90% {margin-top: 0;}
        100% {margin-top: 0;}
    }
   
    .about-content {
        max-width: 95%;
    }

    .portofolio-content {
        padding: 1.5rem;
    }

    .popup-content {
        margin: 0.5rem auto;
        padding: 0.5rem;
        width: 90%;
    }
    
    .popup-text h3{
        font-size: 2rem;
        padding-top: 1.5rem;
    }
    
    .popup-text p{
        font-size: 1rem;
    }
    
    .popup-subtitle h3 {
        font-size: 1.3rem;
    }
    
    .description-section {
        margin-bottom: 1rem;
        margin-inline: auto;
    }
    
    .text-container {
        max-width: 90%;
        margin-inline: auto;
    }
    
    #bottom-popup-section {
        display: inline-block;
        text-align: center;
        align-items: center;
    }

    .bottom-text h4 {
        font-size: 1rem;
        padding: 0;
        text-align: center;
    }
    
    .bottom-text h5 {
        font-size: 1rem;
        font-weight: 300;
        padding: 0;
        text-align: center;
    }

    .bottom-text {
        padding: 1rem;
        text-align: center;
        display: inline-flex;
        max-width: 100%;
    }

    .second-link {
        display: flex;
        flex-direction: column;

    }

    .second-link a {
        margin: 0.5rem auto;
    }

    
    .skill-box {
        display: grid;
        padding: 0.5rem;
    }
    
    .skills-container {
        width: 95%;
        margin: 0.8rem auto;
        padding: 0.8rem;
    }
    
    .resume h2 {
        font-size: 1.6rem;
    }
    
    .resume p {
        font-size: 1.1rem;
    }

    .service {
        padding: 1rem;
    }
 
    .title h2 {
        padding: 2rem;
        font-size: 2rem;
    }
    
    .box {
        display: grid;
        margin: 0 auto;
    }
    
    .card {
        width: 90%;
        padding: 1rem;
    }
    
    .card img {
        max-width: 60%;
    }

    .contact-me p {
        padding: 1rem;
    }

    form {
        margin: 1rem;
    }

    footer h3 {
        font-size: 1.5rem;
    }

    footer p {
        font-size: 1.2rem;
        width: 80%;
    }

    .social {
        width: 60%;
    }

    .copyright {
        padding: 2rem 0;
        font-size: 0.6rem;
    }
}

@media screen and (max-width: 360px) {
    .logo {
        font-size: 30px;
    }

    .nav-menu ul li a {
        font-size: 20px;
    }

    .hero-text {
        padding-top: 20vh;
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 3rem;
    }

    .animation {
        max-width: 250px;
        height: 200px;
        overflow: hidden;
    }
    
    .animation > div > div {
        padding: 0 10px;
        height: 140px;
        margin-bottom: 200px;
        display: inline-block;
    }
    
    .animation div:first-child {
        animation: text-animation 9s infinite;
    }
    
    @keyframes text-animation {
        0% {margin-top: 0;}
        10% {margin-top: 0;}
        20% {margin-top: -150px;}
        30% {margin-top: -150px;}
        40% {margin-top: -400px;}
        60% {margin-top: -400px;}
        70% {margin-top: -150px;}
        80% {margin-top: -150px;}
        90% {margin-top: 0;}
        100% {margin-top: 0;}
    }
   
    .portfolio p {
        font-size: 1rem;
    }

    .portofolio-content {
        padding: 1rem;
    }
    
    .skill-box {
        display: grid;
        padding: 0.5rem;
    }
    
    .skills-container {
        width: 95%;
        margin: 0.8rem auto;
        padding: 0.8rem;
    }

    .skill-item {
        margin-bottom: 10px;
    }

    .skill-bar {
        height: 15px;
    }
    
    .resume h2 {
        font-size: 1.5rem;
    }
    
    .resume p {
        font-size: 1rem;
    }
    
    .box {
        display: grid;
        margin: 0 auto;
    }
    
    .card {
        width: 90%;
        padding: 0.5rem;
    }
    
    .card img {
        max-width: 50%;
    }

    .card h5 {
        font-size: 1.3rem;
    }

    .contact-me p {
        padding: 1.2rem;
        text-align: center;
    }

    form {
        margin: 0.5rem;
    }

    footer h3 {
        font-size: 1.2rem;
    }

    footer p {
        font-size: 1rem;
        width: 90%;
    }

    .social {
        width: 80%;
    }

    .copyright {
        padding: 2rem 0;
        font-size: 0.8rem;
    }
}

