﻿@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap");

/* ==========================
   DIGITAL CARD TEMPLATE 6
   ========================== */

/* ===== Base ===== */
html, body {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    overflow-x: hidden;
    color: #2a2a2a;
    background: linear-gradient(180deg, #eaf1ff 0%, #f3eaff 40%, #ffffff 100%);
    background-attachment: fixed;
    scroll-behavior: smooth;
}

/* ===== Theme Colors ===== */
:root {
    --accent: #5b48e0; /* Primary Violet */
    --accent-light: #7e6aff; /* Hover / Glow */
    --text-dark: #2b2b2b;
    --text-gray: #666;
    --light: #fff;
}

/* ===== Wrapper ===== */
.card-wrapper {
    width: 100%;
    max-width: 420px;
    margin: 0 auto 80px;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===== Universal ===== */
a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

div, h1, h2, h3, h4, p, i, a {
    transition: 0.3s;
}

/* ===== Card Containers ===== */
.card,
.card2,
.qr-section,
.share-section {
    width: 100%;
    max-width: 420px;
    margin: 18px auto;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(91,72,224,0.15);
    box-shadow: 0 4px 14px rgba(91,72,224,0.1);
    transition: all 0.3s ease;
    padding: 20px 15px;
}

    .card:hover,
    .card2:hover,
    .qr-section:hover,
    .share-section:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 22px rgba(91,72,224,0.25);
    }

/* ===== Header ===== */
.card {
    text-align: center;
    position: relative;
}

.view_counter {
    position: absolute;
    top: 12px;
    right: 14px;
    background: rgba(91,72,224,0.08);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 13px;
    color: var(--text-gray);
}

.profile img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    background: #fff;
}

.profile h2 {
    font-size: 22px;
    margin: 12px 0 4px;
    font-weight: 600;
    color: var(--text-dark);
}

.tagline {
    font-size: 15px;
    color: var(--text-gray);
}

/* ===== Contact Details ===== */
.contact_details a {
    display: block;
    background: rgba(91,72,224,0.07);
    color: var(--text-dark);
    font-weight: 500;
    border-radius: 8px;
    margin: 6px auto;
    padding: 10px;
    width: 90%;
}

    .contact_details a:hover {
        background: rgba(91,72,224,0.18);
    }

.contact_details i {
    color: var(--accent);
    margin-right: 8px;
}

/* ===== Share Section ===== */
.share-section {
    text-align: center;
    box-shadow: 0 0 12px rgba(91,72,224,0.1);
}

    .share-section h3 {
        color: var(--accent);
        font-size: 18px;
        margin-bottom: 6px;
    }

.share-subtext {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 14px;
}

/* WhatsApp Share */
.whatsapp-share-box .input-group {
    display: flex;
    align-items: center;
    background: rgba(91,72,224,0.08);
    border-radius: 8px;
    overflow: hidden;
}

.prefix {
    background: rgba(91,72,224,0.1);
    padding: 10px 8px;
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
}

.whatsapp-share-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px;
    font-size: 14px;
    background: transparent;
}

.btn-whatsapp {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 12px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 600;
}

    .btn-whatsapp:hover {
        background: var(--accent-light);
    }

/* Share Buttons */
.share-btn-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 600;
    cursor: pointer;
}

    .btn-outline:hover {
        background: var(--accent);
        color: #fff;
    }

/* ===== QR Section ===== */
.qr-section {
    text-align: center;
}

.qr-header {
    font-size: 17px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 10px;
}

.qr-img {
    background: #fff;
    border-radius: 10px;
    padding: 6px;
    width: 150px;
    height: 150px;
    margin: 10px auto;
    box-shadow: 0 0 20px rgba(91,72,224,0.25);
}

.qr-download-btn, .copy-link-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    margin: 5px;
    text-decoration: none;
}

    .qr-download-btn:hover, .copy-link-btn:hover {
        background: var(--accent-light);
    }

/* ===== Product / Service ===== */
.product-card {
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
    text-align: center;
    box-shadow: 0 0 10px rgba(91,72,224,0.1);
}

    .product-card img {
        width: 100%;
        height: 160px;
        object-fit: cover;
        border-radius: 6px;
    }

    .product-card h4 {
        color: var(--text-dark);
        margin: 6px 0;
        font-size: 15px;
    }

.product-enquiry-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border-radius: 6px;
    padding: 6px 12px;
    margin-top: 5px;
    font-size: 13px;
    text-decoration: none;
}

    .product-enquiry-btn:hover {
        background: var(--accent-light);
    }

/* ===== Gallery ===== */
.gallery_row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    padding: 10px;
    justify-items: center;
}

.gallery_img {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(91,72,224,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .gallery_img:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 18px rgba(91,72,224,0.3);
    }

/* ===== Gallery Modal ===== */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    text-align: center;
}

.gallery-modal-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(91,72,224,0.4);
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
}

    .gallery-close:hover {
        color: var(--accent-light);
    }

.gallery-caption {
    color: #fff;
    margin-top: 15px;
    font-size: 14px;
}

/* ===== Feedback & Enquiry ===== */
#feedback, #enquiry {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(91,72,224,0.1);
    width: 100%;
    max-width: 420px;
    margin: 15px auto;
    overflow: hidden;
}

    #feedback h3, #enquiry h3 {
        background: var(--accent);
        color: #fff;
        font-weight: 600;
        text-align: center;
        font-size: 18px;
        padding: 10px 0;
        border-bottom: 3px solid var(--accent-light);
        margin: 0 0 15px;
    }

    .feedback_form, #enquiry form {
        padding: 15px 20px 25px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

        .feedback_form input,
        .feedback_form textarea,
        .feedback_form select,
        #enquiry form input,
        #enquiry form textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid rgba(91,72,224,0.2);
            border-radius: 8px;
            background: #f8f8ff;
            font-size: 14px;
            transition: 0.3s;
        }

            .feedback_form input:focus,
            .feedback_form textarea:focus,
            .feedback_form select:focus,
            #enquiry form input:focus,
            #enquiry form textarea:focus {
                outline: none;
                border-color: var(--accent);
                box-shadow: 0 0 5px rgba(91,72,224,0.3);
            }

        .feedback_form button,
        #enquiry form button {
            background: var(--accent);
            color: #fff;
            border: none;
            padding: 10px;
            font-weight: 600;
            border-radius: 6px;
            cursor: pointer;
        }

            .feedback_form button:hover,
            #enquiry form button:hover {
                background: var(--accent-light);
            }

/* ===== Payment Options (Table Format) ===== */
#payment {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(91,72,224,0.15);
    padding: 15px;
    margin: 18px auto;
}

    #payment h3 {
        text-align: center;
        color: var(--accent);
        font-weight: 600;
        font-size: 18px;
        text-transform: uppercase;
        margin-bottom: 15px;
    }

.payment-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
    background: rgba(248,248,255,0.8);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 8px rgba(91,72,224,0.1);
}

    .payment-table th,
    .payment-table td {
        padding: 10px 8px;
        font-size: 13.5px;
        color: #333;
        text-align: left;
        border-bottom: 1px solid rgba(91,72,224,0.1);
    }

    .payment-table th {
        background: rgba(91,72,224,0.07);
        color: var(--accent);
        font-weight: 600;
    }

    .payment-table tr:last-child td {
        border-bottom: none;
    }

    .payment-table td:first-child {
        font-weight: 500;
        color: var(--text-dark);
        width: 38%;
    }

/* QR Codes */
.payment-qr-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.payment-qr {
    width: 120px;
    height: 120px;
    border: 1px solid rgba(91,72,224,0.2);
    border-radius: 10px;
    background: #fff;
    object-fit: contain;
    box-shadow: 0 3px 10px rgba(91,72,224,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .payment-qr:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(91,72,224,0.25);
    }

.payment-qr-label {
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    margin-top: 6px;
}

/* ===== Copyright ===== */
.copyright {
    width: 100%;
    background: var(--accent);
    color: #fff;
    padding: 12px 0;
    text-align: center;
    font-size: 14px;
}

/* ===== Bottom Menu ===== */
.menu_bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 2px solid var(--accent);
    box-shadow: 0 -2px 6px rgba(91,72,224,0.15);
    z-index: 99;
}

.menu_container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
}

.menu_item {
    color: var(--accent);
    font-size: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    min-width: 60px;
    text-transform: uppercase;
    font-weight: 600;
    transition: 0.3s;
}

    .menu_item i {
        font-size: 18px;
    }

    .menu_item:hover {
        color: var(--accent-light);
        transform: translateY(-2px);
    }

/* ===== Responsive ===== */
@media (max-width:700px) {
    .card-wrapper {
        max-width: 95%;
    }

    .gallery_row {
        grid-template-columns: repeat(2,1fr);
    }

    .menu_item {
        font-size: 11px;
    }

    .payment-table th, .payment-table td {
        font-size: 12.5px;
        padding: 8px 6px;
    }

    .payment-qr {
        width: 100px;
        height: 100px;
    }
}
/* ==========================
   FINAL VISUAL TUNING
   ========================== */

/* --- Consistent section gap --- */
.card,
.card2,
.qr-section,
.share-section,
#payment,
#feedback,
#enquiry {
    margin: 7px auto; /* increased gap between cards */
}

/* --- Enhance uniform card shadow and rounding --- */
.card,
.card2,
.qr-section,
.share-section,
#payment,
#feedback,
#enquiry {
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(91,72,224,0.12);
}

    /* --- Section headings --- */
    .card2 h3 {
        text-align: center;
        font-size: 19px;
        font-weight: 600;
        color: var(--accent);
        margin-bottom: 10px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
/* ===== Product / Service Card ===== */
/* ===== Product / Service Card (Equal Padding Both Sides) ===== */
.product-card {
    background: #fff;
    border-radius: 14px;
    margin: 14px auto;
    padding: 16px; /* equal padding on all sides */
    box-shadow: 0 4px 10px rgba(91,72,224,0.1);
    text-align: center;
    overflow: hidden;
    position: relative;
    width:90%
}

    /* Product image full width within padding */
    .product-card img {
        width: calc(100% + 32px); /* stretch image beyond padding to fill edges */
        margin: -16px -16px 12px -16px; /* offset padding so image touches edges */
        height: 170px;
        object-fit: cover;
        border-top-left-radius: 14px;
        border-top-right-radius: 14px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

        .product-card img:hover {
            transform: scale(1.02);
            box-shadow: 0 4px 12px rgba(91,72,224,0.25);
        }

    /* Product Title */
    .product-card h4 {
        color: var(--text-dark);
        font-size: 15px;
        font-weight: 600;
        margin: 6px 0;
    }

    /* Product Description */
    .product-card p {
        color: var(--text-gray);
        font-size: 14px;
        text-align: justify;
        line-height: 1.5;
        margin: 8px 0 12px;
        padding: 0 2px;
    }

/* Enquiry Button */
.product-enquiry-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

    .product-enquiry-btn:hover {
        background: var(--accent-light);
    }



/* --- Light gradient top highlight --- */
.card::before,
.card2::before,
.qr-section::before,
.share-section::before,
#payment::before,
#feedback::before,
#enquiry::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 5px;
    width: 100%;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

/* --- Maintain proper stacking context --- */
.card, .card2, .qr-section, .share-section, #payment, #feedback, #enquiry {
    position: relative;
    overflow: hidden;
}
    /* ==========================
   PREMIUM ANIMATED TOP GLOW
   ========================== */

    /* Animated gradient shimmer for each card */
    .card::before,
    .card2::before,
    .qr-section::before,
    .share-section::before,
    #payment::before,
    #feedback::before,
    #enquiry::before {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        height: 2px; /* thinner top line */
        width: 100%;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
        background-size: 300%;
        animation: cardGlow 4s linear infinite;
    }

/* Animation for soft shimmer */
@keyframes cardGlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Slight inner glow around edges */
.card,
.card2,
.qr-section,
.share-section,
#payment,
#feedback,
#enquiry {
    box-shadow: 0 6px 20px rgba(91,72,224,0.15), inset 0 0 10px rgba(91,72,224,0.05);
}
