:root {
    --comprend-blue: rgb(0, 67, 196);
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: var(--comprend-blue);
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-link {
    margin: 2rem 0;
    width: 150px;
    display: block;
}

.logo-link:hover {
    opacity: 0.9;
}

main {
    width: 100%;
    display: flex;
    justify-content: center;
}

.contact-card {
    background: white;
    padding: 2rem;
    max-width: 600px;
    width: calc(100% - 2rem);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0 1rem;
    box-sizing: border-box;
    z-index: 1;
}

.contact-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.contact-info {
    flex: 1;
    min-width: 0;
}

.contact-info h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    color: var(--comprend-blue);
    word-wrap: break-word;
}

.contact-info p {
    margin: 0.5rem 0;
    color: #333;
}

.contact-details {
    border-top: 1px solid #eee;
    padding-top: 1rem;
    margin-top: 1rem;
}

.contact-details p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    word-break: break-all;
}

.contact-details svg {
    flex-shrink: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    width: 90%;
}

.contact-card-small {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s;
    text-decoration: none;
    color: inherit;
}

.contact-card-small:hover {
    transform: translateY(-2px);
}

a {
    color: black;
    text-decoration: none;
}

.vcard-download {
    margin-top: 1.5rem !important;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.vcard-download a {
    color: var(--comprend-blue);
    font-weight: 500;
}

.vcard-download:hover a {
    text-decoration: underline;
}

/* Corner Grids */
@media (min-width: 601px) {
    .corner-grid {
        position: fixed;
        width: 25vw;
        max-width: 400px;
        aspect-ratio: 1;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(4, 1fr);
        pointer-events: none;
    }

    .corner-grid .grid-cell {
        background-color: transparent;
        transition: background-color 0.3s ease;
    }

    .corner-grid .grid-cell.white {
        background-color: rgba(255, 255, 255, 1);
    }

    .top-left {
        top: 0;
        left: 0;
    }

    .top-right {
        top: 0;
        right: 0;
    }

    .bottom-left {
        bottom: 0;
        left: 0;
    }

    .bottom-right {
        bottom: 0;
        right: 0;
    }
}

/* Responsive styles */
@media (max-width: 600px) {
    .contact-card {
        padding: 1rem;
        margin: 0 auto;
    }

    .contact-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .contact-image {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }

    .contact-info h1 {
        font-size: 1.5rem;
    }

    .contact-details p {
        font-size: 0.9rem;
    }
}