.links-projects {
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(10px, 2vw, 20px);
}

.welcome-box,
.about-box {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    max-width: clamp(600px, 70%, 1500px);
    z-index: 100;
    line-height: 1.2;
    white-space: pre-wrap;
    color: #a5a5a5;
    font-family: Arial, sans-serif;
    display: block;
    padding: clamp(5px, 2vw, 40px);
}

.welcome-box {
    top: clamp(20%, 20%, 40%);
    font-size: clamp(13px, 3.5vh, 40px);
}

.about-box {
    bottom: clamp(40%, 55%, 40%);
    font-size: clamp(10px, 2.5vh, 30px);
}

.button-container {
    position: fixed;
    bottom: 10vh;
    left: 50%;
    transform: translateX(-50%);
    max-width: clamp(50px, 50%, 800px);
    z-index: 100;
    color: #a5a5a5;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(6px, 5%, 30px);
    justify-content: center;
}

.about-button {
    position: relative;
    display: flex;
    justify-content: center;
    align-content: center;
    text-align: center;
    flex: 1 1 clamp(50px, 30%, 300px);
    padding: clamp(5px, 4vw, 60px) clamp(5px, 4vw, 60px);
    font-size: clamp(5px, 2vw, 24px);
    cursor: pointer;
    background: transparent;
    border: 2px solid #a5a5a5;
    color: #a5a5a5;
    transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease;
    animation: glow-border 7s infinite alternate, bob 5s infinite ease-in-out alternate;
    overflow: hidden;
}

.about-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 70%);
    transform: scale(0);
    transition: transform 0.5s ease;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

.about-button:hover::before,
.about-button:focus::before {
    transform: scale(1.8);
}

.about-button:hover,
.about-button:focus {
    border-color: #666;
    background-color: #292929;
    color: #fff;
    z-index: 1;
}

.about-button:first-child {
    border-radius: 30px 0 0 30px;
}

.about-button:nth-child(2) {
    border-radius: 0;
}

.about-button:last-child {
    border-radius: 0 30px 30px 0;
}

#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

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

.letter {
    will-change: transform, color, text-shadow;
    display: inline-block;
    animation: shake 0.2s ease;
}

.profile-img {
    width: clamp(50px, 40%, 280px);
    height: auto;
    border-radius: 15px;
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

.journey-img {
    width: clamp(100px, 60%, 800px);
    display: block;
    margin: 40px auto 0 auto;
    position: relative;
    transform: none;
    align-self: flex-end;
    max-width: 100%;
    clear: both;
}

.journey-modal-box {
    overflow: hidden;
    color: rgba(0, 0, 0, 0.75);
    font-size: clamp(9px, 2vh, 15px);
    line-height: 1.5;
    margin-top: 20px;
    font-family: Arial, Helvetica, sans-serif;
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    justify-items: center;
}

.hobby-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hobby-img {
    width: 100%;
    max-height: 300px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.hobby-item p {
    font-size: 20px;
    color: rgba(0, 0, 0, 0.7);
    max-width: 250px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
}

.event-item {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    margin: 20px 0;
}

.event-item:not(.reverse) .event-image {
    margin-right: 20px;
}

.event-item.reverse .event-image {
    margin-left: 20px;
}

.event-item.reverse {
    flex-direction: row-reverse;
}

.event-img {
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.event-text {
    font-size: 20px;
    color: rgba(0, 0, 0, 0.7);
    overflow-wrap: break-word;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    flex: 1;
    min-width: 150px;
    word-wrap: break-word;
}

.skipButton-main {
    bottom: clamp(30%, 55%, 30%);
    left: 50%;
    transform: translateX(-50%);
    color: #a5a5a5;
    border: 1px solid #a5a5a5;
    animation: glow-border 7s infinite alternate;
}

.skipButton {
    top: 20px;
    left: 20px;
    color: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.7);
    animation: glow-border 7s infinite alternate;
}

.skipButton-main,
.skipButton {
    background: rgba(0, 0, 0, 0);
    z-index: 210;
    font-family: Arial, Helvetica, sans-serif;
    padding: clamp(8px, 2vw, 20px);
    font-size: clamp(9px, 3vw, 22px);
    cursor: pointer;
    border-radius: 15px;
    transition: all 1s ease;
    outline: none;
    position: fixed;
    overflow: hidden;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

.skipButton-main::before,
.skipButton::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 70%);
    transform: scale(0);
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

.skipButton-main:hover::before,
.skipButton-main:focus::before,
.skipButton:hover::before,
.skipButton:focus::before {
    transform: scale(2);
}

.skipButton-main:hover,
.skipButton-main:focus,
.skipButton:hover,
.skipButton:focus {
    border-color: #666;
    background-color: #292929;
    color: #fff;
    z-index: 1;
}