
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: 0.2s linear;
}

.title-container {
    text-align: left;
    padding: 0;
}

.title-container h1 {
    color: #333;
    font-size: 2.5rem;
    font-family: 'Josefin Sans', sans-serif;
    margin: 0;
}

#nav-buttons {
    display: flex;
    gap: 15px;
}

.nav-btn {
    text-decoration: none;
    color: #000;
    background-color: #fff;
    padding: 10px 25px;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid black;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.2s;
}

.nav-btn:hover {
    transform: scale(1.05);
}

/* #contact {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
    color: #000000;
    background-color: #fff;
    padding: 10px;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 0;
    border: 1px solid black;
}

#contact img {
    width: 40px;
    height: 40px;
}

#contact span {
    font-size: 14px;
    margin-left: 5px;
} */

@media screen and (max-width: 768px) {
    #nav-buttons {
        top: 10px;
        right: 10px;
    }

    .nav-btn {
        padding: 15px 15px;
        font-size: 14px;
    }

    /* #contact {
        bottom: 10px;
        right: 10px;
    } */

    #scroll-to-top {
        bottom: 10px;
        right: 10px;
    }
}

/* scroll-to-top button */
#scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #e4e4e4;
    background-color: #686868;
    padding: 10px 25px;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(177, 177, 177, 0.48);
    margin: 0;
    border: 1px solid black;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.2s;
}

#scroll-to-top img {
    width: 40px;
    height: 40px;
}

#scroll-to-top span {
    font-size: 16px;
    margin-left: 0;
}

#scroll-to-top:hover {
    transform: scale(1.05);
}


#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(255, 255, 255, 0);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0);
}

@media screen and (max-width: 768px) {
    #main-header {
        top: 10px;
    }
}

@media screen and (max-width: 768px) {
    .projects h2 {
        margin-top: 40px;
    }
}

@media screen and (max-width: 768px) {
    .projects .container {
        min-height: auto;
        justify-content: flex-start;
    }

    #proj {
        scroll-margin-top: 40px;
    }
}

/* 1st Container - Welcome */
body {
    margin: 0;
    font-family: 'Josefin Sans', sans-serif;
    padding-top: 100px;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.text-container {
    margin-bottom: 50px;
}

.text-container p {
    font-size: 36px;
    position: relative;
    display: inline-block;
    text-align: center;
}

.blinking-cursor {
    font-family: "Inconsolata", monospace;
    font-weight: 250;
    font-size: 40px;
    animation: blink 1.25s infinite;
    visibility: hidden;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}
.image-container {
    text-align: center;
}
.image-container img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease-in-out;
    transform-origin: center center;
}

.image-container:hover img:not(.rocket-fly) {
    animation: shake 0.4s infinite;
}

.rocket-fly {
    animation: rocketFly 0.7s ease-in forwards !important;
}

@keyframes rocketFly {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-400px);
        opacity: 0;
    }
}
.image-container span {
    display: block;
    font-size: 14px;
    margin-top: 5px;
}

@keyframes shake {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-2px, -2px);
    }
    50% {
        transform: translate(2px, 2px);
    }
    75% {
        transform: translate(-2px, 2px);
    }
}

@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
        min-height: 90vh;
    }
    .text-container {
        margin-bottom: 30px;
        text-align: center;

    }
    .text-container p {
        font-size: 32px;
    }
}

/* ABOUT */
.about {
    background-color: #f9f9f9;
    padding: 40px;
    text-align: center;
}

.about h2 {
    font-size: 36px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.about p {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 30px;
}

.about p:last-child {
    margin-bottom: 0;
}

.scroll-button {
    display: inline-block;
    margin-top: 20px;
    cursor: pointer;
}

.scroll-button img {
    width: 30%;
    height: auto;
}

.text-image-container {
    display: flex;
    justify-content: space-between;
    margin-right: 15%;
    margin-left: 15%;
}
.text-container {
    max-width: 50%;
}

.image-container-vertical {
    max-width: 400px;
    width: 40%;
}

.image-container-vertical img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

@media screen and (max-width: 768px) {
    .text-image-container {
        flex-direction: column;
        align-items: center;
        margin-right: 5%;
        margin-left: 5%;
    }

    .text-container,
    .image-container-vertical {
        max-width: 100%;
        margin-bottom: 20px;
        width: 100%;
    }
}

/* Project */
.projects {
    background-color: #ffffff;
    padding: 40px 0 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.projects h2 {
    font-size: 36px;
    margin-top: 90px;
    margin-bottom: 50px;
}

.projects-done {
    background-color: #f2f2f2;
}

/* More */
.more {
    background-color: #ffffff;
    padding: 40px 0 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.more .container {
    min-height: auto;
    justify-content: flex-start;
}

.more h2 {
    font-size: 36px;
    margin-top: 50px;
    margin-bottom: 50px;
}

 /*Project BLOCKS*/
.project-container {
    width: 100%;
    max-width: 800px;
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 28px;
    border: 1px solid #eee;
}

.project-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    display: block;
    background-color: #f5f5f5;
}

.project-details {
    padding: 24px 28px;
}

.project-link {
    text-decoration: none;
    color: inherit;
}

.project-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #1a1a1a;
}

.project-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
}

.project-description {
    margin-top: 8px;
    margin-bottom: 16px;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    list-style-type: disc;
    padding-left: 20px;
}

.project-description li {
    margin-bottom: 4px;
    padding-left: 0;
}

.project-languages {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.project-language {
    background-color: #eef4ff;
    border: 1px solid #c5d8f8;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #4285f4;
}

/* Buttons in Me Section */
.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.contact-buttons a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    text-decoration: none;
    color: #000000;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-buttons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(52, 168, 83, 0.2);
    border-color: rgba(52, 168, 83, 0.5);
}

.contact-buttons img {
    width: 22px;
    height: 22px;
    transition: none;
}

.project-type {
    display: inline-block;
    background-color: #edf7ef;
    color: #34a853;
    border: 1px solid #b6dfc2;
    border-radius: 20px;
    padding: 4px 12px;
    margin-right: 6px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 6px;
}

.scroll-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    text-decoration: none !important;
    color: #000000;
}

.scroll-button img {
    width: 50px;
}

.scroll-button span {
    font-size: 14px;
    margin-top: 5px;
}


@media screen and (max-width: 768px) {
    .projects h2 {
        margin-bottom: 20px;
    }
    .project-container {
        width: 100%;
        max-width: none;
    }
}


#proj {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

#more {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* FOOTER */
.footer-container {
    background-color: #fff;
    color: #151414;
    text-align: center;
    padding: 0.5rem;
    display: flex;
    justify-content: center;
    font-family: 'Josefin Sans', sans-serif;
}

.footer-container .copyright-container{
    margin-top: 10px;
}

.footer-container a {
    text-decoration: none;
    color: #000;
}

.footer-container a:hover {
    text-decoration: underline;
}

/* Project hover effects */
.project-link {
    display: block;
    border-radius: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-link:hover {
    transform: translateY(-4px);
}

.project-link:hover .project-container {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.project-link-placeholder {
    display: block;
}
