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

:root {
    --primary-color: #4a6645;
    --secondary-color: #80ab79;
    --bg-gradient-start: #f8f9fa;
    --bg-gradient-end: #e9ecef;
    --card-bg: #ffffff;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --border-radius: 16px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-primary);
}

.container {
    max-width: 680px;
    margin: 0 auto;
    animation: fadeIn 0.6s ease-out;
}

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

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

.profile-section {
    text-align: center;
    margin-bottom: 40px;
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.profile-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.profile-bio {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 20px;
}

.profile-handle,
.profile-handle a {
    font-size: 14px;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.links-grid {
    display: grid;
    gap: 16px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.link-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    overflow: hidden;
    min-height: 110px;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.link-card:hover::before {
    opacity: 0.05;
}

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

.link-icon {
    width: 180px;
    height: 120px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.link-icon.has-image {
    font-size: 0;
}

.link-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.link-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.link-description {
    font-size: 14px;
    color: var(--text-secondary);
}

.link-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.featured-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.featured-card .link-title,
.featured-card .link-description {
    color: white;
}

.featured-card .link-icon {
    background: rgba(255, 255, 255, 0.2);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.social-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.social-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.social-icon {
    font-size: 32px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.social-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.social-stats {
    font-size: 12px;
    color: var(--text-secondary);
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

@media (max-width: 576px) {
    .container {
        padding: 10px;
    }

    .profile-name {
        font-size: 28px;
    }

    .profile-bio {
        font-size: 14px;
    }

    .link-card {
        padding: 20px;
    }

    .link-title {
        font-size: 16px;
    }

    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}