:root {
    --text-color: #2d3436;
    --text-muted: #636e72;
    --bg-overlay: rgba(255, 255, 255, 0.4);
    --card-bg: #1e272e;
    --card-text: #ffffff;
    --card-hover: #2f3640;

    --primary-font: 'Outfit', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;

    --border-radius: 50px;
    /* Pill shape */
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Button specific colors */
    --btn-blue-dark: #003380;
    --btn-blue-medium: #2774ae;
    --btn-blue-light: #1877f2;
}

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

body {
    font-family: var(--primary-font);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    background-color: #fdf6e4;
    /* Fallback */
    background-image: url('assets/background_texture.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md);
}

/* Overlay to ensure text readability if texture is too busy */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.0) 0%, rgba(255, 255, 255, 0.5) 100%);
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    animation: fadeIn 0.8s ease-out;
}

/* Header */
.profile-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    width: 100%;
}

.profile-pic-wrapper {
    width: 250px;
    height: 250px;
    margin: 0 auto var(--spacing-sm);
    border-radius: 50%;
    padding: 4px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}

.profile-pic-wrapper:hover {
    transform: scale(1.05);
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: #2d3436;
    letter-spacing: -0.5px;
}

.bio {
    font-size: 25px;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 90%;
    margin: 0 auto;
}

/* Links Container */
.links-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

/* Link Cards */
.link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center text by default */
    position: relative;
    padding: 1.25rem 2rem;
    background-color: var(--card-bg);
    color: var(--card-text);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 300;
    font-size: 24px;
    overflow: hidden;
}

.link-card.primary {
    background-color: #2d3436;
}

/* Hover Effects */
.link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
    background-color: transparent;
    border: 2px solid #000000;
    color: #000000;
}

.link-card:active {
    transform: translateY(-1px);
}

/* Button variants */
.link-card.secondary {
    color: white;
}

.link-card.blue-dark {
    background-color: var(--btn-blue-dark);
}

.link-card.blue-dark:hover {
    background-color: transparent;
    border: 2px solid #000000;
    color: #000000;
}

.link-card.blue-medium {
    background-color: var(--btn-blue-medium);
}

.link-card.blue-medium:hover {
    background-color: transparent;
    border: 2px solid #000000;
    color: #000000;
}

.link-card.blue-light {
    background-color: var(--btn-blue-light);
}

.link-card.blue-light:hover {
    background-color: transparent;
    border: 2px solid #000000;
    color: #000000;
}

/* Icons */
.link-icon {
    position: absolute;
    right: 1.5rem;
    font-size: 1.1em;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.link-card:hover .link-icon {
    transform: translateX(3px);
    opacity: 1;
}

.link-icon-left {
    position: absolute;
    left: 1.5rem;
    font-size: 1.3em;
}

/* Section Title */
.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    margin: var(--spacing-md) 0 var(--spacing-xs);
    color: #2d3436;
}

/* Footer */
.footer {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    opacity: 0.7;
}

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

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

/* Responsiveness */
@media (max-width: 480px) {
    .container {
        padding-top: var(--spacing-md);
    }

    .name {
        font-size: 1.5rem;
    }

    .link-card {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }

    .link-icon,
    .link-icon-left {
        font-size: 1em;
    }
}

/* Social Icons Support */
.social-icons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--card-bg);
    color: var(--card-text);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--card-hover-shadow);
    background-color: transparent;
    border: 2px solid #000000;
    color: #000000;
}