/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --link-bg: #f5f5f5;
    --link-hover: #e8e8e8;
    --border-color: #e0e0e0;
    --accent-color: #0066cc;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #0a0a0a;
        --text-color: #ffffff;
        --link-bg: #1a1a1a;
        --link-hover: #2a2a2a;
        --border-color: #2a2a2a;
        --accent-color: #4d9fff;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 3rem;
}

header h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Profile Image */
.profile-image {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
}

/* Main Content */
main {
    flex: 1;
}

/* Links */
.links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.links li {
    width: 50%;
    text-align: center;
}

.links a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background-color: var(--link-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s ease;
    font-size: 1.05rem;
}

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

.links a:active {
    transform: translateY(0);
}

.links .icon {
    font-size: 1.5rem;
    min-width: 1.5rem;
    text-align: center;
}

.links .text {
    flex: 1;
    font-weight: 500;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
}

footer a {
    color: var(--text-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 1.5rem 1rem;
    }

    header h1 {
        font-size: 1.75rem;
    }

    .links a {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }

    .links .icon {
        font-size: 1.25rem;
    }

    .profile-image img {
        width: 100px;
        height: 100px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.links li {
    animation: fadeIn 0.3s ease forwards;
}

.links li:nth-child(1) { animation-delay: 0.05s; }
.links li:nth-child(2) { animation-delay: 0.1s; }
.links li:nth-child(3) { animation-delay: 0.15s; }
.links li:nth-child(4) { animation-delay: 0.2s; }
.links li:nth-child(5) { animation-delay: 0.25s; }
.links li:nth-child(6) { animation-delay: 0.3s; }
.links li:nth-child(7) { animation-delay: 0.35s; }
.links li:nth-child(8) { animation-delay: 0.4s; }
