* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #0f0f10;
    color: #e6e6e6;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Header / Nav --- */
header {
    position: relative;
    padding: 18px 40px;
    width: 100%;
    max-width: none;
    margin: 0;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-size: 13px;
    color: #cfcfcf;
}

.top-nav a {
    margin: 0 12px;
    display: inline-block;
    color: #9ad2ff;
}

.top-nav a:hover {
    color: #d7f4ff;
    transform: translateY(-4px) scale(1.06);
}

.theme-toggle {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: linear-gradient(#222, #121212);
    border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
}

/* --- Main Content --- */
main {
    flex: 1;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 120px 24px 120px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Profile Section */
.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    margin-bottom: 60px;
    position: relative;
}

.avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    margin-bottom: 24px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.avatar:hover {
    transform: scale(1.05) rotate(2deg);
}

h1 {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 18px;
    text-transform: lowercase;
    letter-spacing: 1px;
}

.second_title {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.5px;
    margin-top: 0;
    margin-bottom: 40px;
    text-align: center;
    width: 100%;
}

.description {
    font-size: 15px;
    color: #b0b0b0;
    max-width: 480px;
    margin: 0 auto 32px auto;
    padding: 0 16px;
    text-align: center;
}

/* Fix for pre-formatted text */
pre {
    font-family: inherit;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #cfcfcf;
    text-align: center;
    max-width: 100%;
}

/* --- Action Links (Grid Layout) --- */
.links {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 16px;
    width: 100%;
    margin-top: 40px;
    padding: 0 16px;
}

.link_item {
    flex: 1;
    display: flex;
    justify-content: center;
}

.link_item a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 28px;
    width: 100%;
    min-height: 60px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: #9ad2ff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Hover effects */
.link_item a:hover {
    transform: translateY(-3px);
    background: rgba(154, 210, 255, 0.08);
    border-color: rgba(154, 210, 255, 0.3);
    color: #d7f4ff;
    box-shadow: 0 10px 20px -10px rgba(0,0,0,0.5);
}

/* --- Inline Text Links (in bio) --- */
p a {
    color: #9ad2ff;
    text-decoration: underline;
    text-underline-offset: 4px;
    margin: 0 4px;
}

p a:hover {
    color: #d7f4ff;
}

strong, b {
    color: #fff;
    font-weight: 700;
}

/* --- Footer --- */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 20px 40px;
    text-align: center;
    color: #bfbfbf;
}

/* --- Utilities --- */
.spacer { 
    height: 20px; 
}

lb { 
    display: block; 
    margin-bottom: 16px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    h1 { 
        font-size: 32px;
        position: static;
        margin-bottom: 16px;
    }
    
    .second_title {
        font-size: 22px;
    }
    
    header {
        padding: 16px 20px;
    }
    
    main { 
        padding: 100px 20px 100px 20px;
        max-width: 100%;
    }
    
    .profile {
        margin-bottom: 40px;
    }
    
    .avatar {
        width: 90px;
        height: 90px;
        margin-bottom: 20px;
    }
    
    /* Make links stack vertically on small screens */
    .links {
        flex-direction: column;
        gap: 12px;
        margin-top: 32px;
    }
    
    .link_item {
        width: 100%;
    }
    
    .link_item a {
        padding: 16px 20px;
        font-size: 15px;
    }
    
    .top-nav { 
        gap: 16px;
        font-size: 12px;
    }
    
    .description {
        font-size: 14px;
        padding: 0 8px;
    }
    
    footer {
        padding: 16px 20px;
        font-size: 13px;
    }
}