/* Self-hosted Poppins fonts for better performance */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.woff2') format('woff2'),
         url('../fonts/Poppins-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Medium.woff2') format('woff2'),
         url('../fonts/Poppins-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Bold.woff2') format('woff2'),
         url('../fonts/Poppins-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Colors */
    --color-bg-primary: #f8fafc;
    --color-bg-secondary: #ffffff;
    --color-text-primary: #1a202c;
    --color-text-secondary: rgba(26, 32, 44, 0.8);
    --color-text-tertiary: rgba(26, 32, 44, 0.7);
    --color-accent: #12811E;
    --color-accent-hover: #0f7a1a;
    --color-accent-shadow: rgba(19, 146, 31, 0.3);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    
    /* Typography */
    --font-family: 'Poppins', Arial, sans-serif;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 2.5rem;
    --font-size-2xl: 3rem;
    --font-size-3xl: 4rem;
    
    /* Border radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 4px 12px var(--color-accent-shadow);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    
    /* Animation timing */
    --animation-duration: 0.3s;
    --animation-delay: 0.1s;
}

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

@keyframes fadeInUpBlur {
    from {
        opacity: 0.01;
        transform: translateY(30px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0.01;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0.01;
        transform: scale(0.3);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.profile-svg {
    animation: scaleIn var(--animation-duration) ease-out forwards;
    animation-delay: 0ms;
    opacity: 0.01;
}

.profile-photo {
    animation: scaleIn var(--animation-duration) ease-out forwards;
    animation-delay: 50ms;
    opacity: 0.01;
}

.heading {
    animation: fadeInUpBlur var(--animation-duration) ease-out forwards;
    animation-delay: 100ms;
    opacity: 0.01;
}

.text:not(.text--small) {
    animation: fadeInUpBlur var(--animation-duration) ease-out forwards;
    animation-delay: 200ms;
    opacity: 0.01;
}

.button-group {
    animation: fadeInUpBlur var(--animation-duration) ease-out forwards;
    animation-delay: 300ms;
    opacity: 0.01;
}

.location {
    animation: fadeInUpBlur var(--animation-duration) ease-out forwards;
    animation-delay: 400ms;
    opacity: 0.01;
}

.page {
    margin: 0;
    padding: 0;
    background-color: var(--color-bg-primary);
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-family);
}

.card {
    background-color: var(--color-bg-secondary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    width: calc(100% - 3.6rem);
    min-height: calc(100dvh - 3.6rem);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    box-shadow: var(--shadow-md);
}

.card__content {
    text-align: center;
}

.profile-svg {
    width: 44px;
    height: 44px;
    fill: var(--color-accent);
    margin-bottom: var(--spacing-sm);
}

.profile-photo {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    margin: 0 auto var(--spacing-sm) auto;
    display: block;
    border: 3px solid var(--color-accent);
    box-shadow: 0 4px 12px rgba(19, 146, 31, 0.2);
    aspect-ratio: 1/1;
}

.heading {
    font-size: var(--font-size-3xl);
    font-weight: bold;
    color: var(--color-text-primary);
    margin: 0;
    text-transform: uppercase;
    line-height: 1.1;
}

.heading__accent {
    color: var(--color-accent);
    vertical-align: sub;
}

.text {
    color: var(--color-text-secondary);
    font-size: var(--font-size-lg);
    font-weight: 400;
    margin-top: var(--spacing-sm);
    max-width: 40rem;
    margin-inline: auto;
    line-height: 1.5;
}

.text__accent {
    color: var(--color-accent);
    font-weight: 600;
}

.text--small {
    color: var(--color-text-tertiary);
    font-size: var(--font-size-sm);
    font-weight: 400;
    margin-top: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.location {
    color: var(--color-text-tertiary);
    font-size: var(--font-size-sm);
    font-weight: 400;
    margin-top: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.flag {
    width: 24px;
    height: 16px;
    display: inline-block;
    border-radius: 0.125rem;
    vertical-align: middle;
}

.button-group {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-top: var(--spacing-lg);
}

@media (max-width: 768px) {
    .button-group {
        gap: 0.5rem;
    }
}

.button {
    padding: 0.75rem var(--spacing-md);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: all 0.3s ease;
    cursor: pointer;
}

.button--primary {
    background-color: var(--color-accent);
    color: var(--color-bg-primary);
}

.button--primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.button--secondary {
    background-color: transparent;
    color: var(--color-text-primary);
    border: 2px solid var(--color-accent);
}

.button--secondary:hover {
    background-color: var(--color-accent);
    color: var(--color-bg-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .card {
        width: calc(100% - 2rem);
        min-height: calc(100dvh - 2rem);
        padding: var(--spacing-sm);
    }
    
    .heading {
        font-size: var(--font-size-2xl);
    }
    
    .text {
        font-size: var(--font-size-base);
    }

    .button-group {
        gap: 0.5rem;
    }
    
    .profile-svg {
        width: 56px;
        height: 56px;
    }
    
    .profile-photo {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .profile-svg {
        width: 36px;
        height: 36px;
    }
    
    .profile-photo {
        width: 80px;
        height: 80px;
    }
    
    .heading {
        font-size: var(--font-size-xl);
    }
    
    .text {
        font-size: var(--font-size-sm);
    }
    
    .location {
        font-size: 0.75rem;
    }
    
    .flag {
        width: 18px;
        height: 12px;
    }
}
