/* =========================================================
   ROOT VARIABLES
   ========================================================= */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;

    --secondary: #14b8a0;
    --secondary-dark: #0f9f8b;

    --gold: #e1b000;
    --gold-dark: #c99d00;

    --text: #111827;
    --muted: #64748b;

    --border: #e2e8f0;
    --light-blue: #f5f8ff;
    --light-teal: #f2fbf9;

    --white: #ffffff;
    --black: #050505;
}


/* =========================================================
   GLOBAL RESET
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* =========================================================
   BODY
   ========================================================= */

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background: #eef3f8;
    color: var(--text);

    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px 18px;
}


/* =========================================================
   MAIN CARD
   ========================================================= */

.card {
    width: 100%;
    max-width: 920px;

    background: var(--white);

    border: 1px solid #dfe5ec;
    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 16px 40px rgba(15, 23, 42, 0.08);
}


.card-content {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    align-items: stretch;
}


/* =========================================================
   LEFT SIDE
   ========================================================= */

.main-column {
    padding: 42px 42px 38px;
}


/* =========================================================
   PROFILE
   ========================================================= */

.profile {
    text-align: center;
    margin-bottom: 28px;
}


/* =========================================================
   PROFILE IMAGE / LOGO
   ========================================================= */

.profile-image {
    width: 112px;
    height: 112px;

    border-radius: 50%;

    object-fit: cover;

    display: block;
    margin: 0 auto 18px;

    border: 4px solid #ffffff;

    box-shadow:
        0 5px 18px rgba(15, 23, 42, 0.12);
}


/* =========================================================
   PROFILE NAME
   ---------------------------------------------------------
   Premium heading typography.
   Uses Montserrat for a stronger business identity.
   ========================================================= */

.profile h1 {
    font-family:
        "Montserrat",
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size: 31px;

    line-height: 1.15;

    font-weight: 800;

    letter-spacing: -0.6px;

    color: var(--text);

    margin-bottom: 8px;
}


/* =========================================================
   MANAGING DIRECTOR
   ---------------------------------------------------------
   Gold is used as the accent color.
   ========================================================= */

.position {
    font-family:
        "Montserrat",
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size: 15px;

    line-height: 1.4;

    font-weight: 700;

    letter-spacing: 0.2px;

    color: var(--gold);

    margin-bottom: 5px;
}


/* =========================================================
   COMPANY NAME
   ========================================================= */

.company {
    font-family:
        "Montserrat",
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size: 14px;

    line-height: 1.4;

    font-weight: 600;

    letter-spacing: 0.1px;

    color: var(--muted);
}


/* =========================================================
   CONTACT INFORMATION
   ========================================================= */

.contact-list {
    margin-top: 28px;
}


.contact-item {
    display: flex;
    align-items: center;

    gap: 13px;

    padding: 9px 0;

    text-decoration: none;
    color: var(--text);

    transition: color 0.2s ease;
}


.contact-item:hover {
    color: var(--primary);
}


.contact-icon {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    background: var(--black);
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 17px;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.contact-item:hover .contact-icon {
    background: var(--primary);

    transform: translateY(-1px);
}


.contact-text {
    min-width: 0;
}


.contact-label {
    display: block;

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.7px;

    color: #94a3b8;

    margin-bottom: 2px;
}


.contact-value {
    display: block;

    font-size: 14px;

    line-height: 1.4;

    overflow-wrap: anywhere;
}


/* =========================================================
   SOCIAL MEDIA
   ========================================================= */

.social-section {
    margin-top: 27px;

    padding-top: 24px;

    border-top: 1px solid var(--border);
}


.social-section h2 {
    font-size: 15px;

    line-height: 1.3;

    font-weight: 700;

    margin-bottom: 15px;
}


.social-icons {
    display: flex;

    flex-wrap: wrap;

    gap: 11px;
}


.social-icons a {
    width: 39px;
    height: 39px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: var(--primary);

    background: #eff5ff;

    text-decoration: none;

    font-size: 17px;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/* =========================================================
   SOCIAL MEDIA HOVER
   ---------------------------------------------------------
   Blue background + white icon.
   ========================================================= */

.social-icons a:hover {
    color: #ffffff;

    background: var(--primary);

    transform: translateY(-2px);

    box-shadow:
        0 5px 12px rgba(37, 99, 235, 0.20);
}


/* =========================================================
   RIGHT QR SIDE
   ========================================================= */

.qr-section {
    background: var(--light-blue);

    border-left: 1px solid var(--border);

    padding: 42px 42px 38px;

    display: flex;

    flex-direction: column;

    min-height: 100%;
}


/* =========================================================
   QR HEADER
   ========================================================= */

.qr-header {
    text-align: center;
}


.qr-header h2 {
    font-size: 23px;

    line-height: 1.2;

    font-weight: 750;

    letter-spacing: -0.25px;

    margin-bottom: 8px;
}


.qr-header p {
    max-width: 330px;

    margin: 0 auto;

    font-size: 14px;

    line-height: 1.55;

    color: var(--muted);
}


.brand-line {
    width: 48px;

    height: 4px;

    background: var(--primary);

    border-radius: 10px;

    margin: 17px auto 23px;
}


/* =========================================================
   QR CODE
   ========================================================= */

.qr-wrapper {
    display: flex;

    align-items: center;

    justify-content: center;

    padding: 18px 0 24px;
}


#qrcode {
    width: 230px;

    height: 230px;

    background: white;

    padding: 10px;

    border: 1px solid #dbe3ee;

    box-shadow:
        0 8px 22px rgba(15, 23, 42, 0.08);
}


#qrcode img,
#qrcode canvas {
    display: block;

    width: 210px !important;

    height: 210px !important;
}


/* =========================================================
   ACTION BUTTONS
   ========================================================= */

.qr-actions {
    margin-top: auto;
}


.whatsapp-button,
.save-button {
    width: 100%;

    min-height: 48px;

    border: none;

    border-radius: 10px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    padding: 12px 16px;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/* =========================================================
   WHATSAPP BUTTON
   ========================================================= */

.whatsapp-button {
    background: #25d366;

    color: white;

    margin-bottom: 10px;
}


.whatsapp-button:hover {
    background: #1fb957;

    transform: translateY(-1px);

    box-shadow:
        0 7px 15px rgba(37, 211, 102, 0.2);
}


/* =========================================================
   SAVE CONTACT BUTTON
   ========================================================= */

.save-button {
    background: var(--primary);

    color: white;
}


.save-button:hover {
    background: var(--primary-dark);

    transform: translateY(-1px);

    box-shadow:
        0 7px 15px rgba(37, 99, 235, 0.2);
}


.save-button i {
    font-size: 15px;
}


/* =========================================================
   SAVE CONTACT DESCRIPTION
   ========================================================= */

.save-description {
    text-align: center;

    margin: 11px auto 0;

    max-width: 350px;

    color: #64748b;

    font-size: 12px;

    line-height: 1.55;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    border-top: 1px solid var(--border);

    background: white;

    text-align: center;

    padding: 15px 20px;

    font-size: 12px;

    color: #94a3b8;
}


.footer strong {
    color: var(--primary);

    font-weight: 700;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 760px) {

    body {
        padding: 18px 12px;

        align-items: flex-start;
    }


    .card {
        max-width: 520px;

        border-radius: 18px;
    }


    .card-content {
        grid-template-columns: 1fr;
    }


    .main-column {
        padding: 34px 26px 30px;
    }


    .qr-section {
        border-left: none;

        border-top: 1px solid var(--border);

        padding: 34px 26px 32px;

        min-height: auto;
    }


    .qr-actions {
        margin-top: 0;
    }


    /* =====================================================
       CENTER SOCIAL MEDIA ON MOBILE
       ===================================================== */

    .social-section {
        text-align: center;
    }


    .social-icons {
        justify-content: center;
    }


    .footer {
        padding: 14px 18px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 500px) {

    body {
        padding: 12px 9px;
    }


    .card {
        border-radius: 16px;
    }


    .main-column {
        padding: 28px 20px 25px;
    }


    .qr-section {
        padding: 28px 20px 27px;
    }


    .profile {
        margin-bottom: 23px;
    }


    .profile-image {
        width: 98px;

        height: 98px;

        margin-bottom: 15px;
    }


    /* =====================================================
       MOBILE PROFILE NAME
       ===================================================== */

    .profile h1 {
        font-size: 27px;

        line-height: 1.15;

        letter-spacing: -0.45px;
    }


    /* =====================================================
       MOBILE POSITION
       ===================================================== */

    .position {
        font-size: 14px;

        font-weight: 700;

        letter-spacing: 0.15px;
    }


    /* =====================================================
       MOBILE COMPANY
       ===================================================== */

    .company {
        font-size: 13px;

        font-weight: 600;
    }


    .contact-list {
        margin-top: 23px;
    }


    .contact-item {
        gap: 11px;

        padding: 8px 0;
    }


    .contact-icon {
        width: 40px;

        height: 40px;

        flex-basis: 40px;

        font-size: 16px;
    }


    .contact-value {
        font-size: 13.5px;
    }


    /* =====================================================
       MOBILE SOCIAL MEDIA
       ===================================================== */

    .social-section {
        margin-top: 23px;

        padding-top: 21px;

        text-align: center;
    }


    .social-section h2 {
        font-size: 14px;

        text-align: center;
    }


    .social-icons {
        display: flex;

        justify-content: center;

        align-items: center;

        gap: 9px;

        width: 100%;
    }


    .social-icons a {
        width: 37px;

        height: 37px;

        font-size: 16px;
    }


    .qr-header h2 {
        font-size: 21px;
    }


    .qr-header p {
        font-size: 13px;
    }


    #qrcode {
        width: 220px;

        height: 220px;
    }


    #qrcode img,
    #qrcode canvas {
        width: 200px !important;

        height: 200px !important;
    }


    .qr-wrapper {
        padding: 15px 0 22px;
    }


    .whatsapp-button,
    .save-button {
        min-height: 47px;

        font-size: 13.5px;
    }


    .save-description {
        font-size: 11.5px;
    }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 370px) {

    .main-column,
    .qr-section {
        padding-left: 16px;

        padding-right: 16px;
    }


    .profile h1 {
        font-size: 24px;
    }


    .position {
        font-size: 13.5px;
    }


    .company {
        font-size: 12.5px;
    }


    .contact-value {
        font-size: 13px;
    }


    .qr-header h2 {
        font-size: 20px;
    }


    #qrcode {
        width: 205px;

        height: 205px;
    }


    #qrcode img,
    #qrcode canvas {
        width: 185px !important;

        height: 185px !important;
    }
}