@font-face {
    font-family: 'Baloo Da 2';
    src: url('/assets/balooda2.woff2') format('woff2');
    font-weight: 100 700;
    font-display: swap;
}

:root {
    --primary-color: #6366F1;
    --background-dark: #111827;
    --background-light: #F9FAFB;
    --card-bg-dark: rgba(30, 41, 59, 0.8);
    --card-bg-light: rgba(255, 255, 255, 0.8);
    --footer-bg-dark: rgba(30, 41, 59, 0.6);
    --footer-bg-light: rgba(255, 255, 255, 0.6);
    --text-dark: #F9FAFB;
    --text-light: #111827;
    --border-dark: rgba(255, 255, 255, 0.1);
    --border-light: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Baloo Da 2', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}


body {
    min-height: 100vh;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--background-dark);
    color: var(--text-dark);
}

.container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.profile-card {
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out;
    position: relative;
    background-color: var(--card-bg-dark);
    border: 1px solid var(--border-dark);
}

.profile-image {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary-color);
    transition: transform 0.3s ease;
    animation: fadeIn 0.5s ease-out;
}

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

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.profile-bio {
    text-align: center;
    margin-bottom: 1.5rem;
    max-width: 100%;
    animation: fadeIn 0.5s ease-out 0.1s both;
}

.links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: stretch;
    width: 100%;
}

.link-item {
    display: flex;
    flex: 1 1 45%;
    min-width: 160px;
    max-width: 220px;
    height: 48px;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-dark);
    background-color: rgba(30, 41, 59, 0.9);
    animation: fadeIn 0.5s ease-out;
    animation-fill-mode: both;
}

.link-item:hover {
    transform: scale(1.03);
}

.link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    min-width: 48px;
    height: 48px;
}

.link-title {
    flex: 1;
    padding: 0 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    height: 48px;
}

.photo-credit {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 1rem;
    text-align: center;
}

.page-footer {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    text-align: center;
    opacity: 0.8;
    backdrop-filter: blur(8px);
    margin-top: 1.5rem;
    background-color: var(--footer-bg-dark);
    border: 1px solid var(--border-dark);
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

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

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

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

.link-item:nth-child(1) {
    animation-delay: 0.2s;
}

.link-item:nth-child(2) {
    animation-delay: 0.3s;
}

.link-item:nth-child(3) {
    animation-delay: 0.4s;
}

.link-item:nth-child(4) {
    animation-delay: 0.5s;
}

[dir="rtl"] .link-icon {
    order: 2;
}

[dir="rtl"] .link-title {
    order: 1;
}

.first-letter {
    font-weight: bold;
    font-size: 1.1em;
}

@media (max-width: 640px) {
    .container {
        padding: 1rem 0.5rem;
    }

    .profile-card {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .link-item {
        flex: 1 1 100%;
    }
}