/*
 * Copyright (c) 2026 AbuKaram01
 * Licensed under the MIT License.
 * See the LICENSE file in the project root for full license details.
 */

/* Self-hosted Inter font — no Google Fonts request, works offline, no third-party tracking */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-bg: rgba(255, 255, 255, 0.92);
    --card-border: rgba(255, 255, 255, 0.15);
    --text: #1f2937;
    --text-muted: #6b7280;
    --shadow: 0 10px 30px rgba(0,0,0,0.15);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
        --card-bg: rgba(30, 41, 59, 0.95);
        --card-border: rgba(255, 255, 255, 0.08);
        --text: #f1f5f9;
        --text-muted: #94a3b8;
        --shadow: 0 10px 30px rgba(0,0,0,0.4);
    }
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: var(--text);
}

.container {
    width: 100%;
    max-width: 28rem;
}

.profile {
    text-align: center;
    margin-bottom: 2rem;
}

.avatar-wrapper {
    position: relative;
    width: 7rem;
    height: 7rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.3);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.title {
    color: rgba(255,255,255,0.85);
    font-size: 0.875rem;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.social-link svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }

.social-link:hover, .social-link:focus {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    outline: 2px solid rgba(255,255,255,0.5);
    outline-offset: 2px;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 0.75rem;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.link-card:hover::before, .link-card:focus::before {
    transform: translateX(100%);
}

.link-card:hover, .link-card:focus {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

.link-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.link-icon svg { width: 1.35rem; height: 1.35rem; fill: currentColor; }

.link-content {
    flex: 1;
    min-width: 0;
}

.link-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.125rem;
}

.link-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.link-arrow {
    color: #9ca3af;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.link-arrow svg { width: 1rem; height: 1rem; fill: currentColor; display: block; }

.link-card:hover .link-arrow {
    transform: translateX(4px);
}

.footer {
    text-align: center;
    margin-top: 2rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
}

.footer svg { width: 0.85rem; height: 0.85rem; fill: #fb7185; vertical-align: -1px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}
