html {
    scroll-behavior: smooth;
}

body {
    background-color: #F0F8FF;
    color: #002366;
    font-family: 'Source Code Pro', monospace;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

a {
    color: #1E90FF;
    text-decoration: none;
}

a:hover {
    color: #FFFFFF;
}

h1, h2, h3, p {
    margin: 0 0 1em 0;
}

ul {
    list-style: none;
    padding: 0;
}

nav {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1000;
}

nav ul {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.nav-link {
    font-size: 1.5em;
    color: #1E90FF;
    transition: color 0.3s, transform 0.3s;
    text-align: center;
}

.nav-link i {
    display: block;
}

.nav-link.active {
    color: #246092;
}

.nav-link:hover {
    color: #246092;
    transform: scale(1.2);
}

section {
    padding: 10em 6em;
    margin-bottom: 10em;
}

section:not(#about) {
    max-width: 50%;
}

#about {
    text-align: center;
    padding-top: 12em;
}

#about h1 span {
    color: #1E90FF;
}

.experience-item, .project-item {
    margin-bottom: 3em;
}

.duration {
    font-style: italic;
    color: #246092;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-bottom: 1em;
}

.tags li {
    background-color: #1E90FF;
    color: #FFFFFF;
    padding: 0.3em 0.6em;
    border-radius: 3px;
    font-size: 0.9em;
}

.button,
.project-item a,
#right-info .right-info-button,
#right-info .email-button {
    display: inline-block;
    padding: 0.5em 1em;
    color: #FFFFFF;
    background-color: #1E90FF;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    font-size: 1em;
    transition: background-color 0.3s, transform 0.3s;
    text-align: center;
}

.button:hover,
.project-item a:hover,
#right-info .right-info-button:hover,
#right-info .email-button:hover {
    background-color: #246092;
    transform: scale(1.05);
}

.project-item a {
    font-size: 1.1em;
    border-radius: 3px;
}

.social-buttons {
    display: flex;
    gap: 1em;
    margin-top: 1em;
    justify-content: flex-start;
}

.social-buttons a {
    color: #1E90FF;
    font-size: 2.5em;
    transition: color 0.3s, transform 0.3s;
}

.social-buttons a:hover {
    color: #246092;
    transform: scale(1.1);
}

#right-info {
    position: fixed;
    top: 40%;
    right: 10%;
    background-color: rgba(240, 248, 255, 0.9);
    padding: 1em;
    border-radius: 10px;
    text-align: center;
    display: none;
    visibility: hidden;
    max-width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#right-info .profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1em;
}

#right-info .info-text {
    margin-bottom: 1em;
}

#right-info .right-info-name {
    font-size: 1.5em;
    margin: 0;
}

#right-info .right-info-description {
    font-size: 1em;
    color: #246092;
    margin: 0;
}

#right-info .right-info-social-buttons {
    display: flex;
    gap: 1em;
    justify-content: center;
    margin-bottom: 1em;
}

#right-info .right-info-social-buttons a {
    color: #1E90FF;
    font-size: 1.5em;
    transition: color 0.3s, transform 0.3s;
}

#right-info .right-info-social-buttons a:hover {
    color: #246092;
    transform: scale(1.1);
}

#right-info .right-info-action-buttons {
    display: flex;
    gap: 1em;
    width: 100%;
    justify-content: center;
    margin-top: 1em;
}

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

.fade-out {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease-in, transform 0.25s ease-out;
}

.fade-out.appear {
    opacity: 0;
    transform: translateY(0);
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    nav {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background-color: rgba(240, 248, 255, 0.9);
        padding: 0;
    }

    nav ul {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        height: 100%;
        margin: 0;
    }

    .nav-link {
        font-size: 1.5em;
        padding: 0;
    }

    section {
        padding: 8em 1em;
        margin: 0 auto;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
    }

    .social-buttons a {
        font-size: 2em;
    }

    #right-info {
        display: none;
        pointer-events: none;
    }
}

body, a {
    cursor: default;
}

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