@font-face {
    font-family: 'Gilroy';
    src: url('fonts/Gilroy-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy';
    src: url('fonts/Gilroy-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

:root {
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #1a1a1a;
    --accent-color: #007AFF;
    --btn-color: #000000;
}

body {
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color);
}

header {
    margin-bottom: 50px;
    animation: fadeInDown 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo {
    max-width: 280px;
    height: auto;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    width: 100%;
}

.card {
    background: var(--card-bg);
    padding: 35px 20px;
    border-radius: 24px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.qr-placeholder {
    margin-bottom: 20px;
    padding: 12px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
}

.resource-name {
    font-weight: bold; 
    font-size: 1.3rem;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--btn-color);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.download-btn:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.download-btn svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    width: 16px;
    height: 16px;
}

@media (max-width: 600px) {
    .grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    body {
        padding: 20px;
    }

    .logo {
        max-width: 200px;
    }
}

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

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