/* =========================================================
   NIVOLIFY PUBLIC DIGITAL CARD
   MODERN GLASS / GLOSSY THEME
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body.nivolify-public-body {
    margin: 0;
    padding: 30px 15px;
    min-height: 100vh;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background:
        radial-gradient(
            circle at top,
            #eaf2ff 0%,
            #f5f7fb 45%,
            #eef1f6 100%
        );

    color: #182230;
}

/* =========================================================
   MAIN CONTAINER
========================================================= */

.niv-preview {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.phone-frame {
    width: 100%;
    max-width: 460px;
    min-height: 700px;

    overflow: hidden;

    background:
        rgba(255, 255, 255, 0.94);

    border: 1px solid rgba(255, 255, 255, 0.9);

    border-radius: 28px;

    box-shadow:
        0 30px 80px rgba(15, 23, 42, 0.18),
        0 8px 25px rgba(15, 23, 42, 0.08);

    position: relative;
}

/* =========================================================
   COVER
========================================================= */

.card-cover {
    width: 100%;
    height: 190px;
    position: relative;
    overflow: hidden;
    background: #e8edf5;
}

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.02),
            rgba(0, 0, 0, 0.16)
        );

    pointer-events: none;
}

.card-cover img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    transition: transform 0.5s ease;
}

.phone-frame:hover .card-cover img {
    transform: scale(1.025);
}

/* =========================================================
   PROFILE
========================================================= */

.profile-wrapper {
    width: 116px;
    height: 116px;

    margin: -58px auto 0;

    position: relative;
    z-index: 5;

    border-radius: 50%;

    padding: 5px;

    background: #ffffff;

    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.18);
}

.profile-wrapper img {
    width: 100%;
    height: 100%;

    display: block;

    border-radius: 50%;

    object-fit: cover;

    border: 2px solid #f1f5f9;
}

.profile-verified {
    position: absolute;

    right: 2px;
    bottom: 4px;

    width: 30px;
    height: 30px;

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

    background: #2563eb;

    color: #ffffff;

    border: 3px solid #ffffff;

    border-radius: 50%;

    font-size: 14px;

    box-shadow:
        0 5px 15px rgba(37, 99, 235, 0.35);
}

/* =========================================================
   CARD INFORMATION
========================================================= */

.card-info {
    text-align: center;

    padding:
        18px
        25px
        8px;
}

.card-info h2 {
    margin: 0;

    font-size: 28px;
    line-height: 1.2;

    font-weight: 800;

    letter-spacing: -0.5px;

    color: #111827;
}

.card-info h4 {
    margin: 7px 0 0;

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

    font-weight: 600;

    color: #2563eb;
}

.card-info p {
    margin: 5px 0 0;

    font-size: 14px;
    line-height: 1.5;

    color: #64748b;
}

/* =========================================================
   DIVIDER
========================================================= */

.divider {
    width: calc(100% - 48px);
    height: 1px;

    margin: 20px auto;

    background:
        linear-gradient(
            90deg,
            transparent,
            #e2e8f0,
            transparent
        );
}

/* =========================================================
   QUICK ACTIONS
========================================================= */

.action-grid {
    width: calc(100% - 40px);

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 10px;
}

.action-btn {
    min-height: 78px;

    display: flex;
    flex-direction: column;

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

    gap: 8px;

    text-decoration: none;

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f1f5f9
        );

    border: 1px solid #e2e8f0;

    color: #334155;

    box-shadow:
        0 8px 20px rgba(15, 23, 42, 0.07);

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

.action-btn:hover {
    transform: translateY(-3px);

    box-shadow:
        0 14px 28px rgba(15, 23, 42, 0.13);

    border-color: #cbd5e1;
}

.action-btn i {
    font-size: 22px;
}

.action-btn span {
    font-size: 12px;
    font-weight: 700;
}

/* Individual action colors */

.call-btn i {
    color: #2563eb;
}

.whatsapp-btn i {
    color: #16a34a;
}

.email-btn i {
    color: #ea580c;
}

.website-btn i {
    color: #7c3aed;
}

/* =========================================================
   SAVE CONTACT
   SMALL + CENTERED + GLOSSY
========================================================= */

.save-contact-btn {
    width: auto;
    min-width: 175px;
    max-width: 220px;

    margin: 22px auto 0;

    padding: 13px 22px;

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

    gap: 9px;

    text-decoration: none;

    border-radius: 999px;

    color: #ffffff;

    font-size: 14px;
    font-weight: 800;

    background:
        linear-gradient(
            135deg,
            #2563eb 0%,
            #4f46e5 50%,
            #7c3aed 100%
        );

    border: 1px solid rgba(255, 255, 255, 0.45);

    box-shadow:
        0 10px 25px rgba(79, 70, 229, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);

    position: relative;
    overflow: hidden;

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

.save-contact-btn::before {
    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 70%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.45),
            transparent
        );

    transform: skewX(-20deg);

    transition: left 0.6s ease;
}

.save-contact-btn:hover::before {
    left: 140%;
}

.save-contact-btn:hover {
    transform: translateY(-3px);

    box-shadow:
        0 15px 32px rgba(79, 70, 229, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.save-contact-btn i {
    font-size: 16px;
}

/* =========================================================
   SECTION TITLE
========================================================= */

.section-title {
    margin: 0 0 14px;

    display: flex;

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

    gap: 8px;

    font-size: 18px;

    font-weight: 800;

    color: #172033;

    text-align: center;
}

.section-title i {
    color: #2563eb;
    font-size: 16px;
}

/* =========================================================
   ABOUT
========================================================= */

.about-section {
    padding: 0 25px;

    text-align: center;
}

.about-section p {
    margin: 0;

    font-size: 14px;

    line-height: 1.75;

    color: #64748b;

    white-space: normal;

    overflow-wrap: anywhere;
}

/* =========================================================
   SERVICES
========================================================= */

.services {
    padding: 0 25px;
}

.service-buttons {
    display: flex;

    flex-direction: column;

    gap: 11px;
}

.service-btn {
    width: 100%;

    min-height: 48px;

    padding: 13px 18px;

    display: flex;

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

    text-align: center;

    text-decoration: none;

    border-radius: 15px;

    color: #1e293b;

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

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f8fafc
        );

    border: 1px solid #e2e8f0;

    box-shadow:
        0 7px 18px rgba(15, 23, 42, 0.06);

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

.service-btn:hover {
    transform: translateY(-2px);

    border-color: #bfdbfe;

    box-shadow:
        0 12px 25px rgba(37, 99, 235, 0.12);
}

/* =========================================================
   GALLERY
========================================================= */

.gallery-section {
    width: 100%;

    padding: 0 20px;

    text-align: center;
}

.gallery-section img {
    max-width: 100%;
}

/* =========================================================
   MAP
========================================================= */

.map-section {
    padding: 0 25px;

    text-align: center;
}

.map-section .service-btn {
    margin: 0 auto;
}

/* =========================================================
   SOCIAL
========================================================= */

.social-section {
    padding: 0 25px;

    text-align: center;
}

.social-icons {
    display: flex;

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

    flex-wrap: wrap;

    gap: 12px;
}

.social-icons a {
    width: 44px;
    height: 44px;

    display: flex;

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

    border-radius: 50%;

    text-decoration: none;

    color: #334155;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f1f5f9
        );

    border: 1px solid #e2e8f0;

    box-shadow:
        0 7px 18px rgba(15, 23, 42, 0.08);

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

.social-icons a:hover {
    transform: translateY(-3px);

    box-shadow:
        0 12px 25px rgba(15, 23, 42, 0.14);
}

.social-icons i {
    font-size: 17px;
}

/* =========================================================
   FOOTER
========================================================= */

.card-footer {
    padding: 20px 20px 25px;

    text-align: center;

    font-size: 12px;

    color: #94a3b8;
}

.card-footer strong {
    color: #2563eb;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 520px) {

    body.nivolify-public-body {
        padding: 0;
        background: #f4f7fb;
    }

    .phone-frame {
        max-width: 100%;

        min-height: 100vh;

        border-radius: 0;

        box-shadow: none;

        border: 0;
    }

    .card-cover {
        height: 200px;
    }

    .profile-wrapper {
        width: 112px;
        height: 112px;

        margin-top: -56px;
    }

    .card-info h2 {
        font-size: 26px;
    }

    .action-grid {
        width: calc(100% - 30px);

        gap: 8px;
    }

    .action-btn {
        min-height: 72px;

        border-radius: 16px;
    }

    .save-contact-btn {
        min-width: 165px;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 360px) {

    .action-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-btn {
        min-height: 68px;
    }

    .card-info h2 {
        font-size: 23px;
    }
}/* =========================================================
   NIVOLIFY GALLERY — SMOOTH MODERN CAROUSEL
   ========================================================= */

.gallery-section {
    width: 100%;
    margin: 0 auto;
    padding: 10px 0 5px;
    overflow: hidden;
}

.gallery-section .section-title {
    text-align: center;
    margin-bottom: 22px;
}


/* Main Gallery */
.gallery-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 310px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


/* Gallery Track */
.gallery-track {
    position: relative;
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Gallery Card */
.gallery-card {
    position: absolute;
    width: 190px;
    height: 255px;

    border-radius: 20px;
    overflow: hidden;

    background: #ffffff;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.18);

    opacity: 0;
    visibility: hidden;

    transform:
        translateX(0)
        scale(0.72);

    transition:
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.5s ease,
        filter 0.5s ease,
        visibility 0.5s ease;

    pointer-events: none;
}


/* Image */
.gallery-card img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: 20px;

    user-select: none;
    -webkit-user-drag: none;

    transition:
        transform 0.65s ease,
        filter 0.5s ease;
}


/* =========================================================
   CENTER IMAGE
   ========================================================= */

.gallery-card.center {
    z-index: 10;

    opacity: 1;
    visibility: visible;

    transform:
        translateX(0)
        scale(1);

    filter: none;

    pointer-events: auto;

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.24);
}


.gallery-card.center img {
    filter: none;
}


/* =========================================================
   LEFT IMAGE
   ========================================================= */

.gallery-card.left-1 {
    z-index: 7;

    opacity: 0.72;
    visibility: visible;

    transform:
        translateX(-135px)
        scale(0.82);

    filter: grayscale(20%);

    pointer-events: auto;
}


.gallery-card.left-1 img {
    filter: brightness(0.88);
}


/* =========================================================
   LEFT FAR IMAGE
   ========================================================= */

.gallery-card.left-2 {
    z-index: 5;

    opacity: 0.40;
    visibility: visible;

    transform:
        translateX(-245px)
        scale(0.68);

    filter: grayscale(40%);

    pointer-events: auto;
}


.gallery-card.left-2 img {
    filter: brightness(0.78);
}


/* =========================================================
   RIGHT IMAGE
   ========================================================= */

.gallery-card.right-1 {
    z-index: 7;

    opacity: 0.72;
    visibility: visible;

    transform:
        translateX(135px)
        scale(0.82);

    filter: grayscale(20%);

    pointer-events: auto;
}


.gallery-card.right-1 img {
    filter: brightness(0.88);
}


/* =========================================================
   RIGHT FAR IMAGE
   ========================================================= */

.gallery-card.right-2 {
    z-index: 5;

    opacity: 0.40;
    visibility: visible;

    transform:
        translateX(245px)
        scale(0.68);

    filter: grayscale(40%);

    pointer-events: auto;
}


.gallery-card.right-2 img {
    filter: brightness(0.78);
}


/* =========================================================
   HIDDEN IMAGES
   ========================================================= */

.gallery-card.hidden {
    opacity: 0;
    visibility: hidden;

    transform:
        translateX(0)
        scale(0.55);

    pointer-events: none;
}


/* =========================================================
   ARROWS
   ========================================================= */

.gallery-arrow {
    position: absolute;

    top: 50%;

    width: 40px;
    height: 40px;

    transform: translateY(-50%);

    border: none;
    border-radius: 50%;

    background: rgba(23, 105, 224, 0.95);

    color: #ffffff;

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

    cursor: pointer;

    z-index: 20;

    font-size: 15px;

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

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}


.gallery-arrow:hover {
    background: #0d58c7;

    transform:
        translateY(-50%)
        scale(1.08);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.24);
}


.gallery-arrow:active {
    transform:
        translateY(-50%)
        scale(0.94);
}


/* Left arrow */
.gallery-arrow-left {
    left: 8px;
}


/* Right arrow */
.gallery-arrow-right {
    right: 8px;
}


/* =========================================================
   DOTS
   ========================================================= */

.gallery-dots {
    width: 100%;

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

    gap: 7px;

    margin-top: 8px;
}


.gallery-dot {
    width: 8px;
    height: 8px;

    padding: 0;

    border: none;
    border-radius: 50%;

    background: #cbd5e1;

    cursor: pointer;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        width 0.3s ease;
}


.gallery-dot:hover {
    transform: scale(1.2);
}


.gallery-dot.active {
    width: 22px;

    border-radius: 10px;

    background: #1769e0;

    transform: none;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .gallery-carousel {
        height: 285px;
    }

    .gallery-track {
        height: 260px;
    }

    .gallery-card {
        width: 170px;
        height: 225px;
    }


    .gallery-card.left-1 {
        transform:
            translateX(-105px)
            scale(0.78);
    }


    .gallery-card.right-1 {
        transform:
            translateX(105px)
            scale(0.78);
    }


    .gallery-card.left-2 {
        transform:
            translateX(-185px)
            scale(0.62);
    }


    .gallery-card.right-2 {
        transform:
            translateX(185px)
            scale(0.62);
    }


    .gallery-arrow {
        width: 36px;
        height: 36px;

        font-size: 13px;
    }


    .gallery-arrow-left {
        left: 5px;
    }


    .gallery-arrow-right {
        right: 5px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .gallery-card {
        width: 155px;
        height: 210px;
    }


    .gallery-card.left-1 {
        transform:
            translateX(-90px)
            scale(0.76);
    }


    .gallery-card.right-1 {
        transform:
            translateX(90px)
            scale(0.76);
    }


    .gallery-card.left-2 {
        transform:
            translateX(-155px)
            scale(0.58);
    }


    .gallery-card.right-2 {
        transform:
            translateX(155px)
            scale(0.58);
    }
}


/* =====================================================
   SOCIAL ICONS
===================================================== */

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0 24px;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #ffffff !important;
    background: #1769e0;
    font-size: 20px;
    visibility: visible !important;
    opacity: 1 !important;
    transition: transform .2s ease, box-shadow .2s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}


/* =====================================================
   SHARE PROFILE
===================================================== */

.share-section {
    text-align: center;
    margin: 24px 0;
}

.share-profile-btn {
    width: auto !important;
    min-width: 190px;
    max-width: 240px;
    margin: 10px auto 0 !important;
    padding: 13px 24px !important;
    border: none !important;
    border-radius: 30px !important;
    background: linear-gradient(
        135deg,
        #1769e0,
        #6c4cff
    ) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(23,105,224,0.25);
    transition: transform .2s ease, box-shadow .2s ease;
}

.share-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(23,105,224,0.32);
}

.share-profile-btn:active {
    transform: scale(.97);
}


/* Mobile */

@media (max-width: 480px) {

    .niv-gallery-stage {
        width: 210px;
        height: 280px;
    }

    .niv-gallery-arrow {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .social-link {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

}