:root {
    --primary-color: #fffd37;
    --background-color: black;
    --hover-color: #fffd37;
    --text-color: white;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--background-color);
    color: var(--text-color);
}

header {
    background: var(--primary-color);
    color: black;
    padding: 1rem 0;
    text-align: center;
    position: relative;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.info-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    padding: 2rem;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
}

.info-row section {
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 20px;
    border-radius: 10px;
    flex: 1;
    max-width: 300px;
    min-width: 250px;
    box-sizing: border-box;
    text-align: center;
}

.circle-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s;
}

#bio,
#text,
#tools-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Typing list */
#typing-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 10px;
    text-align: left;
}

#typing-list li {
    color: white;
    font-size: 18px;
    line-height: 1.6;
}

#typing-list li span::after {
    content: "|";
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}

/* Tools Section */
#tools-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#tools-section li {
    background: #111;
    padding: 0.6rem 1rem;
    margin: 0.5rem 0;
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#tools-section li i {
    margin-right: 0.6rem;
    color: var(--primary-color);
    min-width: 20px;
    text-align: center;
}

/* Repo Section */
#github-section {
    text-align: center;
    background-color: var(--background-color);
}

.repo-lists {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 10px;
}

#repo-list-1,
#repo-list-2 {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#repo-list-1 li,
#repo-list-2 li {
    text-align: center;
}

#repo-list-1 a,
#repo-list-2 a {
    display: inline-block;
    background-color: white;
    color: black;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

#repo-list-1 a:hover,
#repo-list-2 a:hover {
    background-color: var(--background-color);
    color: var(--primary-color);
    transform: scale(1.05);
}

/* Commit dropdown in header */
.commit-dropdown {
    position: absolute;
    top: 15px;
    right: 20px;
}

.dropbtn {
    background-color: black;
    color: var(--primary-color);
    padding: 10px 14px;
    font-size: 14px;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #1c1c1c;
    min-width: 250px;
    max-width: 300px;
    overflow-wrap: break-word;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    border-radius: 6px;
    padding: 10px;
}

.dropdown-content a {
    color: white;
    padding: 8px 10px;
    text-decoration: none;
    display: block;
    font-size: 13px;
    border-bottom: 1px solid #333;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content small {
    font-size: 11px;
    color: #aaa;
}

.commit-dropdown:hover .dropdown-content {
    display: block;
}

/* Friends section */
#friends-section {
    text-align: center;
    margin-top: 2rem;
    color: var(--primary-color);
}

#friends-section img {
    max-width: 100%;
    height: auto;
}

/* Iframe (webring) */
iframe {
    width: 300px;
    height: 100px;
    display: block;
    margin: 0 auto;
    border: none;
}

/* Responsive layout */
@media (max-width: 768px) {
    .info-row {
        flex-direction: column;
        align-items: center;
    }

    .info-row section {
        max-width: 90%;
        min-width: unset;
    }

    #repo-list-1 a,
    #repo-list-2 a {
        width: 100%;
        max-width: 250px;
    }
}
