html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #131313;
    overflow: auto;
}

#starfield {
    position: fixed;
    top: 0;
    left: 0;
    display: block;
    z-index: 0;
    pointer-events: none;
}

.links a,
.links-projects a {
    background: rgba(0, 0, 0, 0);
    color: #a5a5a5;
    font-family: Arial, Helvetica, sans-serif;
    padding: clamp(8px, 3vw, 16px) clamp(16px, 4vw, 32px);
    font-size: clamp(14px, 2.5vw, 28px);
    cursor: pointer;
    border-radius: 15px 30px;
    transition: all 1s ease;
    outline: none;
    position: relative;
    overflow: hidden;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    animation: glow-border 7s infinite alternate, bob 5s infinite ease-in-out alternate;
    animation-fill-mode: both;
    border: 1px solid transparent;
    line-height: 1.2;
}

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

.links a::after,
.links-projects a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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;
    pointer-events: none;
}

.links a:hover::after,
.links-projects a:hover::after { transform: scale(3); }

.links a:hover,
.links-projects a:hover {
    border-color: #666666;
    background: #292929;
}

.links a:nth-child(1),
.links-projects a:nth-child(1) { animation-delay: 0s, 0.4s; }
.links a:nth-child(2),
.links-projects a:nth-child(2) { animation-delay: 0s, 0.1s; }
.links a:nth-child(3),
.links-projects a:nth-child(3) { animation-delay: 0s, 0.3s; }
.links a:nth-child(4),
.links-projects a:nth-child(4) { animation-delay: 0s, 0.7s; }

@keyframes draw {
    to { stroke-dashoffset: 0; }
}

@keyframes glow-border {
    0% { border-color: #616161; filter: drop-shadow(0 0 3px rgba(106, 106, 106, 0.7)); }
    50% { border-color: #aaa; filter: drop-shadow(0 0 8px rgba(151, 151, 151, 0.8)); }
    100% { border-color: #656565; filter: drop-shadow(0 0 4px rgba(96, 96, 96, 0.6)); }
}

@keyframes bob {
    0%   { transform: translateY(-5px); }
    50%  { transform: translateY(5px); }
    100% { transform: translateY(-5px); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(300px, 80vw, 1000px);
    max-height: 80vh;
    background-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    padding: clamp(10px, 3vw, 20px);
    border-radius: 15px;
    overflow: auto;
    z-index: 1000;
    backdrop-filter: blur(10px);
    animation: glow-border 7s infinite alternate;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
    z-index: 999;
    backdrop-filter: blur(5px);
}

.modal h2 {
    text-align: center;
    color: rgba(0, 0, 0, 0.75);
    margin-top: 20px;
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 50px;
    font-family: Arial, Helvetica, sans-serif;
}

.event-img {
    width: 150px;
    height: auto;
}

.close-button {
    float: right;
    cursor: pointer;
    font-size: clamp(12px, 3vw, 30px);
    font-weight: bold;
    color: #3a3a3a;
}

hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, #a5a5a5, #3a3a3a, #a5a5a5);
    margin: 20px 0;
    border-radius: 50%;
}

.githubButton {
    background: rgba(0, 0, 0, 0);
    z-index: 210;
    font-family: Arial, Helvetica, sans-serif;
    padding: clamp(8px, 2vw, 15px);
    font-size: clamp(9px, 3vw, 18px);
    cursor: pointer;
    border-radius: 15px;
    transition: all 1s ease;
    outline: none;
    position: relative;
    overflow: hidden;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    color: rgba(0, 0, 0, 0.7);
    border: 1.5px solid rgba(0, 0, 0, 0.7);
    animation: glow-border 7s infinite alternate;
 }

.githubButton::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;
}


.githubButton:hover::before,
.githubButton:focus::before {
    transform: scale(2);
}

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

.footer-text-exp,
.footer-text {
    font-size: 20px;
    color: rgba(165, 165, 165, 0.76);
    overflow-wrap: break-word;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    min-width: 240px;
    word-wrap: break-word;
    position: fixed;
    left: 0;
    right: 0;
    user-select: text;
    -webkit-user-select: text;/
    -moz-user-select: text;
    pointer-events: auto;
    z-index: 310;
}

.footer-text {
    bottom: 5%;
}

.footer-text-exp {
    bottom: 3%;
}