/* =========================================================
   SMARTCARD79 - DESIGN 4
   ABS / Blue + Yellow Theme
   ========================================================= */

/* Import Cinzel (Header/Display Serif) and Inter (Card Details Sans-Serif) */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Inter:wght@400;500;600;700&display=swap');

/* ---------------------------------------------------------
   DESIGN VARIABLES
   --------------------------------------------------------- */

.design4 {
    --design-white: #ffffff;
    --design-light: #F5FBFE;
    --design-text: #772a77;
    --design-main-color : #772a77;
    --design-alternate-color : #F7F7F7;
    --design-yellow: #FFD400;
    --design-yellow-light : #FFDA61;
    --design-black : #5A5A5A;
    --design-heading-font-family : 'Cinzel', serif;
    --design-body-font-family : 'Inter', sans-serif;

    font-family: var(--design-body-font-family);
    background: var(--design-blue);
    color: var(--design-text);
}


/* ---------------------------------------------------------
   PAGE
   --------------------------------------------------------- */

.design4 .page-wrapper {
    min-height: 100vh;
    padding: 25px 15px;
    background: var(--design-blue);
}


/* ---------------------------------------------------------
   MAIN CARD
   --------------------------------------------------------- */

.design4 .profile-card {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    overflow: hidden;

    background: var(--design-white);

    border-radius: 28px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.18);
}


/* ---------------------------------------------------------
   BANNER
   Hidden for now
   --------------------------------------------------------- */

.design4 .card-banner {
    display: block;
    /*background: linear-gradient(180deg, #00ADEF 0%, #013775 100%);*/
    background: radial-gradient(circle at center, #00ADEF 20%, #1D43B5 100%);
    background : var(--design-main-color);
    /*background: radial-gradient(circle at center, #E0F7FF 20%, #013775 100%);
    background: linear-gradient(180deg, #00ADEF 0%, #E0F7FF 100%);*/
    color: var(--design-white); /* Dark navy text for header label */
    padding-bottom: 60px;

}

.design4 .logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}


/* ---------------------------------------------------------
   LOGO
   --------------------------------------------------------- */

.design4 .logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 45px 25px;

    background: #ffffff;
    width: 70%;
    box-shadow: none;
    margin: 0 auto;
}

.design4 .logo-wrapper img {
    display: block;

    width: auto;
    max-width: 220px;
    max-height: 100px;

    object-fit: contain;
}


/* ---------------------------------------------------------
   PROFILE AREA
   --------------------------------------------------------- */

.design4 .profile-area {
    text-align: center;

    padding: 10px 25px 25px;

    background: #DBF3FD;
    background: radial-gradient(circle at center, #00ADEF 20%, #1D43B5 100%);
    background : var(--design-alternate-color);
}


/* Profile image hidden for now */

.design4 .profile-image-wrapper {
    background: var(--design-yellow-light);
    display: block;
}

/* ---------------------------------------------------------
   NAME
   --------------------------------------------------------- */

.design4 .profile-name {
    margin: 0;

    font-family: var(--design-heading-font-family);
    font-size: 28px;
    line-height: 1.05;
    font-weight: 400;

    color: var(--design-dark-blue);

    letter-spacing: 2px;
    margin-top : 30px;
}


/* ---------------------------------------------------------
   DESIGNATION
   --------------------------------------------------------- */

.design4 .profile-designation {
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--design-black);
    margin-bottom: 10px;
    margin-top: 0px;
    text-transform: uppercase;
    font-family: var(--design-body-font-family);
}

.design4 .profile-designation em{
    font-style: normal;
    font-size: 12px;
    font-weight: 300;
    color: var(--design-black);
}


/* ---------------------------------------------------------
   COMPANY
   --------------------------------------------------------- */

.design4 .profile-company {
    margin-top: 30px;

    font-size: 16px;
    line-height: 1.4;

    color: var(--design-light);
    opacity: 0.9;
    text-transform: uppercase;
    font-family: var(--design-body-font-family);
    text-align: center;
}

.profile-placeholder{
    font-family: var(--design-heading-font-family);
}


/* ---------------------------------------------------------
   ACTION BUTTONS
   --------------------------------------------------------- */

.design4 .action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    justify-content: space-evenly;
    background: radial-gradient(circle at center, #00ADEF 20%, #1D43B5 100%);
    background : var(--design-alternate-color);
}

.design4 .action-button {
    box-sizing: border-box;

    /* 2 buttons per row */
    flex: 0 0 calc(33% - 6px);

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0px;

    min-height: 46px;
    padding: 1px 14px 10px;

    border: 0px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;

    background: #ffffff;
    color: #ffffff;

    text-decoration: none;

    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);

    cursor: pointer;
    

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

/* Odd number of buttons:
   Last button becomes full width */
.design4 .action-button:last-child:nth-child(odd) {
    flex-basis: 100%;
}

/* Icon container */
.design4 .action-icon {
    width: 42px;
    height: 42px;

    min-width: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: transparent;
    color: #ffffff;

    font-size: 17px;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

/* Text */
.design4 .action-label {
    line-height: 1.2;
}

/* Hover */
.design4 .action-button:hover {
    transform: translateY(-2px);

    border-color: var(--design-dark-blue);

    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
}

.design4 .action-button:hover .action-icon {
    transform: scale(1.08);
}

/* Active / click */
.design4 .action-button:active {
    transform: translateY(0);
}

.design4 .action-button{
    border-top: 3px solid var(--design-yellow-light) !important;
}

.design4 .btn-call,
.design4 .btn-whatsapp,
.design4 .btn-location,
.design4 .btn-save_contact,
.design4 .btn-share {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    color: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    
}

/* Normal gradient */
.design4 .btn-call {
    background: linear-gradient(
        135deg,
        oklch(72% .18 148),
        oklch(35% .13 150)
    );
    background: var(--design-main-color);
}

.design4 .btn-whatsapp {
    background: linear-gradient(
        135deg,
        oklch(72% .20 150),
        oklch(38% .16 150)
    );
    background: var(--design-main-color);
}

.design4 .btn-location {
    background: linear-gradient(
        135deg,
        oklch(70% .20 25),
        oklch(38% .16 25)
    );
    background: var(--design-main-color);
}

.design4 .btn-save_contact {
    background: linear-gradient(
        135deg,
        oklch(70% .18 275),
        oklch(38% .14 275)
    );
    background: var(--design-main-color);
}

.design4 .btn-share {
    background: linear-gradient(
        135deg,
        oklch(78% .18 75),
        oklch(42% .16 75)
    );
    background: var(--design-main-color);
}


/* Reversed gradient layer */
.design4 .btn-call::after,
.design4 .btn-whatsapp::after,
.design4 .btn-location::after,
.design4 .btn-save_contact::after,
.design4 .btn-share::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    opacity: 0;
    transition: opacity 0.4s ease;
}


/* Individual reversed gradients */
.design4 .btn-call::after {
    background: linear-gradient(
        315deg,
        oklch(72% .18 148),
        oklch(35% .13 150)
    );
}

.design4 .btn-whatsapp::after {
    background: linear-gradient(
        315deg,
        oklch(72% .20 150),
        oklch(38% .16 150)
    );
}

.design4 .btn-location::after {
    background: linear-gradient(
        315deg,
        oklch(70% .20 25),
        oklch(38% .16 25)
    );
}

.design4 .btn-save_contact::after {
    background: linear-gradient(
        315deg,
        oklch(70% .18 275),
        oklch(38% .14 275)
    );
}

.design4 .btn-share::after {
    background: linear-gradient(
        315deg,
        oklch(78% .18 75),
        oklch(42% .16 75)
    );
}


/* Hover */
.design4 .btn-call:hover::after,
.design4 .btn-whatsapp:hover::after,
.design4 .btn-location:hover::after,
.design4 .btn-save_contact:hover::after,
.design4 .btn-share:hover::after {
    opacity: 1;
}

.design4 .btn-call:hover,
.design4 .btn-whatsapp:hover,
.design4 .btn-location:hover,
.design4 .btn-save_contact:hover,
.design4 .btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.18);
}


/* ---------------------------------------------------------
   CONTACT SECTION
   --------------------------------------------------------- */

.design4 .contact-section {
    padding: 25px;

    background: var(--design-white);
    background: radial-gradient(circle at center, #00ADEF 20%, #1D43B5 100%);
    background : var(--design-main-color);
}

.profile-image-wrapper img{
    object-position: top;
}


.design4 .section-title {
    margin: 0 0 15px;

    font-family: 'Instrument Serif', serif;

    font-size: 32px;
    font-weight: 400;

    color: var(--design-dark-blue);
    letter-spacing: 2px;
}


/* ---------------------------------------------------------
   CONTACT ITEM
   --------------------------------------------------------- */

.design4 .contact-item {
    display: flex;
    align-items: center;

    gap: 14px;

    padding: 10px;

    border-bottom: 0px solid rgba(46, 49, 146, 0.12);
    background: var(--design-alternate-color);
    border-radius: 5px;
    margin-bottom: 3px;
}


.design4 .contact-item:last-child {
    border-bottom: 0;
}


.design4 .contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    border-radius: 5px;

    background: var(--design-main-color);
    color: var(--design-white);

    font-size: 16px;
    font-weight: 700;
}


.design4 .contact-content {
    min-width: 0;
}


.design4 .contact-label {
    margin-bottom: 2px;

    font-size: 11px;
    font-weight: 700;

    color: var(--design-dark-blue);

    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.design4 .contact-value {
    font-size: 14px;
    line-height: 1.45;

    color: var(--design-text);

    word-break: break-word;
}


.design4 .contact-value a {
    color: inherit;
    text-decoration: none;
}


.design4 a.contact-value:hover {
    color: var(--design-yellow);
}


/* ---------------------------------------------------------
   SOCIAL SECTION
   --------------------------------------------------------- */

.design4 .social-section {
    padding: 25px;

    text-align: center;

    background: var(--design-white);
    background: radial-gradient(circle at center, #00ADEF 20%, #1D43B5 100%);
    background : #1D43B5;
}


.design4 .social-title {
    margin: 0 0 15px;

    font-family: 'Instrument Serif', serif;

    font-size: 32px;
    font-weight: 400;

    color: var(--design-dark-blue);
    letter-spacing: 2px;
}


.design4 .social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 10px;
}


.design4 .social-link {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    border-radius: 5px;

    background: var(--design-dark-blue);
    color: var(--design-white);

    text-decoration: none;

    font-size: 16px;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}


.design4 .social-link:hover {
    transform: translateY(-2px);
    color : var(--design-light);
    background: #22256f;
}


/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

.design4 .card-footer {
    padding: 18px 25px;

    text-align: center;

    /*background: linear-gradient(180deg, #E0F7FF 0%, #00ADEF 100%);*/
    background: radial-gradient(circle at center, #00ADEF 20%, #1D43B5 100%);
    background : var(--design-main-color);
    color: var(--design-yellow-light); /* Deep blue text for header label */

    font-size: 12px;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 480px) {

    .design4 .page-wrapper {
        padding: 0;
    }

    .design4 .profile-card {
        max-width: none;

        border-radius: 0;
        box-shadow: none;
    }

    .design4 .logo-wrapper {
        padding-top: 45px;
    }

    .design4 .profile-name {
        font-size: 28px;
    }

    .design4 .action-buttons {
        padding: 12px;

        gap: 6px;
    }

    .design4 .action-button {
        min-height: 46px;
        font-size: 12px;
    }

    .design4 .contact-section,
    .design4 .social-section {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.card-footer a{
  color : var(--design-yellow-light);
}

.card-footer a:hover{
  color : var(--design-alternate-color);
}

.qr-title{
    color: var(--design-yellow-light);
}

.qr-text{
    color : var(--design-alternate-color);
}