/* Google Fonts - Fira Code */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;700&display=swap');

/* CSS Reset and Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --background-color: #1e1f26;
    --text-color: #ffffff;
    --text-secondary: #b0b0b0;
    --button-bg: rgba(255, 255, 255, 0.1);
    --button-hover-bg: rgba(255, 255, 255, 0.2);
    --button-shadow: rgba(0, 0, 0, 0.2);
    --button-shadow-hover: rgba(0, 0, 0, 0.3);
    --avatar-border: rgba(255, 255, 255, 0.2);
    --button-radius: 12px;
    --avatar-size: 256px;
    --max-width: 480px;
}

html {
    font-size: 16px;
}

body {
    min-height: 100vh;
    font-family: 'Fira Code', monospace;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Particles canvas background */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Profile Section */
.profile {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: var(--avatar-size);
    height: var(--avatar-size);
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--avatar-border);
    box-shadow: 0 4px 20px var(--button-shadow);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.name {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-color);
    opacity: 0.9;
}

.description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 400px;
    line-height: 1.5;
    transition: color 0.3s ease;
}

/* Links Section */
.links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: var(--button-radius);
    text-decoration: none;
    color: var(--text-color);
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    font-weight: 400;
    background-image: linear-gradient(90deg, rgba(255,255,255,0.12) 0%, rgba(0,0,0,0.15) 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
    box-shadow: 0 2px 10px var(--button-shadow);
}

.link-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--button-shadow-hover);
}

.link-button:active {
    transform: translateY(0);
}

.link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.link-icon-img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
}

/* Larger icons for section buttons */
.section .link-icon-img {
    width: 32px;
    height: 32px;
}

/* Section buttons: gradient starts after the icon area */
.section .link-button {
    background-image: linear-gradient(90deg, transparent 0%, transparent 60px, rgba(0,0,0,0.35) 100%);
}

.link-title {
    flex: 1;
    text-align: center;
    margin-right: 24px; /* Balance the icon on the left */
}

/* Section Headings */
.section {
    width: 100%;
    margin-top: 1rem;
}

.section-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    text-align: center;
}

/* Social Icons Section */
.socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.2rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--button-bg);
    color: var(--text-color);
    transition: background 0.2s ease, transform 0.2s ease;
}

.social-icon:hover {
    background: var(--button-hover-bg);
    transform: scale(1.1);
}

.social-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Footer */
.footer {
    margin-top: -0.5rem;
    padding: 1rem 0;
    text-align: center;
}

.footer p {
    font-size: 1rem;
    color: var(--text-secondary);
}

.footer a {
    color: #ee7125;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer a:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 480px) {
    :root {
        --avatar-size: 100px;
    }

    .name {
        font-size: 1.5rem;
    }

    .description {
        font-size: 0.9rem;
    }

    .link-button {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }
}
