:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --link-color: #0066cc;
    --link-hover-color: #004499;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --toggle-bg: #e0e0e0;
    --toggle-icon: #f39c12;
    /* Sun color */
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #f0f0f0;
    --link-color: #66b3ff;
    --link-hover-color: #99ccff;
    --toggle-bg: #333333;
    --toggle-icon: #f1c40f;
    /* Moon/Sun color in dark mode */
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-color: #1a1a1a;
        --text-color: #f0f0f0;
        --link-color: #66b3ff;
        --link-hover-color: #99ccff;
        --toggle-bg: #333333;
        --toggle-icon: #f1c40f;
    }
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    text-align: center;
    max-width: 600px;
    width: 100%;
    position: relative;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 2rem;
}

.links {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.links li {
    display: block;
}

.links a {
    text-decoration: none;
    color: var(--link-color);
    font-size: 1.1rem;
    transition: all 0.2s ease;
    padding: 12px 24px;
    border: 1px solid var(--link-color);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 160px;
    white-space: nowrap;
}

.links a:hover {
    color: var(--bg-color);
    background-color: var(--link-color);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}



.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    background-color: var(--toggle-bg);
    color: var(--toggle-icon);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 100;
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

@media (min-width: 600px) {
    .links {
        flex-direction: row;
        justify-content: center;
    }
}