/* Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #333333, #1e1e1e);
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

.magic-curve {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#star {
    animation: twinkle 5s infinite alternate;
}

@keyframes twinkle {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 0.5;
        transform: scale(1);
    }
}

/* Navigointivalikon asettelu */
nav {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 1000;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

nav ul li {
    margin: 5px 0;
}

nav ul li a {
    text-decoration: none;
    color: #0098ff;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 0 30px 30px 0;
    background-color: rgba(37, 37, 37, 0.3);
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: block;
    width: 100%;
    box-shadow: 2px 2px 8px rgba(255, 255, 255, 0.2);
}

nav ul li a:hover {
    background-color: #0065a9;
    transform: translateX(10px);
}

main {
    margin-left: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

section {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background-color: rgba(51, 51, 51, 0.8);
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(30, 30, 30, 0.2);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

h1, h2 {
    color: #0098ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 20px;
}

.project h4 {
    letter-spacing: 2px;
    text-align: center;
}

p, ul {
    text-align: center;
    line-height: 1.6;
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.skill-item {
    display: flex;
    align-items: center;
    background-color: rgba(37, 37, 37, 0.9);
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(30, 30, 30, 0.2);
    transition: transform 0.3s ease;
}

.skill-item img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.skill-item:hover {
    transform: translateY(-5px);
}

.duration, .company, .job-title {
    font-weight: bold;
    color: #0098ff;
    margin: 5px 0;
}

.job-description {
    text-align: center;
    margin-top: 10px;
    line-height: 1.6;
}

hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, rgba(0, 152, 255, 0), rgba(0, 152, 255, 0.75), rgba(0, 152, 255, 0));
    margin: 40px 0;
}

.job-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0));
    margin: 20px 0;
}

ul li a {
    color: #0098ff;
    text-decoration: none;
}

ul li a:hover {
    text-decoration: underline;
}

#github_link {
    display: flex;
    justify-content: center;
    align-items: center;
}

.project {
    background-color: rgba(37, 37, 37, 0.9);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 8px 16px rgba(30, 30, 30, 0.2);
}

.project h2 {
    margin-top: 0;
}

.project a {
    color: #0098ff;
    text-decoration: none;
    font-weight: bold;
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: 4px solid #0098ff;
    transition: transform 0.3s ease;
    object-fit: cover;
}

.profile-picture:hover {
    transform: scale(1.1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    nav {
        position: static;
        transform: none;
        top: 0;
        left: 0;
        width: 100%;
    }

    nav ul {
        flex-direction: row;
        justify-content: space-around;
    }

    nav ul li a {
        border-radius: 30px;
    }

    main {
        margin-left: 0;
        padding: 20px;
    }

    section {
        padding: 20px;
        margin: 20px 10px;
    }

    .profile-picture {
        width: 100px;
        height: 100px;
    }

    .skill-item {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    nav ul li a {
        padding: 5px 10px;
        font-size: 14px;
        border-radius: 20px;
    }

    section {
        padding: 10px;
        margin: 10px 5px;
    }

    h1, h2 {
        font-size: 1.5em;
    }

    .profile-picture {
        width: 80px;
        height: 80px;
    }
}
