/* Background */
body {
    background: url("../../images/background.png") center center / cover no-repeat;
}

#background {
    position: fixed;
    top: -12.5%;
    left: -12.5%;
    min-width: 125%;
    min-height: 125%;
    z-index: -1;
    object-fit: cover;

    transition: transform 0.5s ease-out;
    will-change: transform;
}

#canvas {
    position: fixed;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease-out;

    &.show {
        opacity: 1;
    }
}

/* Home Section */
#home {
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.avatar-container {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 3px solid #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    color: #eee;
}

.title {
    font-size: 1.2rem;
    opacity: 0.9;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: #eee;
}

.field {
    font-size: 1.1rem;
    opacity: 0.85;
    color: #eee;
}

/* About Section */
#about .section-content {
    text-align: left;
}

#about p {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: center;
}

@media (max-width: 768px) {
    .nav-timeline {
        left: 1rem;
    }

    .section-content {
        padding: 2rem;
    }

    .name {
        font-size: 2.2rem;
    }
}

/* Journey Section */
#journey {
    position: relative;
    color: white;
}

#journey p {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: center;
}

.footprint {

    .item {
        padding: 2rem 0;
        .header {
            padding-bottom: 2rem;

            p {
                font-size: 1.2rem;
                font-style: italic;
            }
        }
    }
}

/* Projects Section */
.main-projects {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-bottom: 6rem;
}

.project-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: transform 0.3s ease;
}

.project-card.left {
    flex-direction: row;
}

.project-card.right {
    flex-direction: row-reverse;
    text-align: right;
}

.project-card .inner-container {
    width: 480px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-card .img-container {
    display: flex;
    overflow: hidden;
    height: 300px;
}

.project-card .img-container img {
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card .img-container:hover img {
    transform: scale(1.05);
}

.project-card.right .img-container {
    justify-self: flex-end;
    justify-content: flex-end;
}

.project-card.right .project-info {
    text-align: left;
}

.project-info {
    width: 80%;
    padding: 1rem;
}

.project-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
}

.project-info p {
    opacity: 0.9;
    color: #fff;
    margin-bottom: 1rem;
}

.other-projects {
    margin-top: 4rem;
}

.other-projects h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #fff;
}

.small-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.small-project {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.small-project img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 0.8rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.small-project span {
    opacity: 0.9;
    font-size: 0.95rem;
    color: #fff;
}

@media (max-width: 768px) {
    .project-card {
        flex-direction: column !important;
    }

    .project-card .img-container,
    .project-info {
        width: 100%;
    }

    .small-projects-grid {
        grid-template-columns: 1fr;
    }
}
