﻿/* ==========================================
   Template 1 – Optimized Clean Version
   Author: MyDigiCard
   ========================================== */
@import url("https://fonts.googleapis.com/css?family=Montserrat:100,200,300,400,500,600,700");

/* ===== BASE ===== */
html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    height: auto;
    min-height: 100vh;
}

body {
    margin: 0;
    padding: 0 0 70px 0;
    font-family: Montserrat, sans-serif;
    background: repeating-linear-gradient(45deg, #000, #3b383f 100px);
    background-size: 108px 108px;
    background-position: center;
    background-attachment: fixed;
    background-repeat: repeat;
}

/* ===== GLOBAL ===== */
a {
    text-decoration: none;
    color: inherit;
}

div, h1, h2, h3, h4, p, i, a {
    transition: 0.4s;
}

form, input, textarea, select {
    font-family: Montserrat, sans-serif;
}

:root {
    --primary: #0077c8;
    --accent: #49a6d6;
    --success: #25D366;
    --text: #333;
}

/* ===== ALERTS ===== */
.alert {
    padding: 12px 20px;
    margin: 10px auto;
    font-size: 13px;
    border-radius: 6px;
    width: fit-content;
    text-align: center;
    font-weight: 500;
}

    .alert.danger {
        background: #ffd0d082;
        color: #d45050;
    }

    .alert.info {
        background: #d0deff82;
        color: #5097d4;
    }

    .alert.success {
        background: #90ff6c82;
        color: #1aab2c;
    }

/* ===== VIEW COUNTER ===== */
.view_counter {
    width: fit-content;
    margin: 0 auto;
    background: #000;
    color: #fff;
    font-size: 10px;
    padding: 2px 10px;
    border-radius: 4px;
}

/* ===== WRAPPER ===== */
.card-wrapper {
    width: 100%;
    max-width: 480px;
    margin: 20px auto 100px auto;
    padding: 0 10px;
}

/* ===== MAIN CARD STYLES ===== */
.card, .card2, .share-section, .qr-section {
    width: 95%;
    max-width: 460px;
    margin: 15px auto;
    border-radius: 12px;
    box-sizing: border-box;
}

.card, .card2 {
    background: #fff;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    padding: 18px;
}

.card {
    background: #fff3db url('card_images/bg2.png') center/cover no-repeat;
    color: #fff;
}

/* ===== PROFILE HEADER ===== */
.card_content {
    text-align: center;
    margin: 40px auto 12px;
}

    .card_content img {
        height: 100px;
        border-radius: 12px;
        border: 3px solid #fff;
        background: #fff;
        padding: 3px;
    }

.card_content2 {
    text-align: center;
}

    .card_content2 h2 {
        font-weight: 500;
        text-transform: capitalize;
        font-size: 20px;
        border-bottom: 3px solid #f9aa79;
        display: inline-block;
        margin-bottom: 5px;
    }

    .card_content2 p {
        text-transform: uppercase;
        font-size: 12px;
        font-weight: 600;
        color: #555;
        margin: 4px 0;
    }

/* ===== CONTACT DETAILS ===== */
.contact_details {
    padding: 18px 22px;
}

.contact_d {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #fff;
}

    .contact_d i {
        background: var(--primary);
        color: #fff;
        border-radius: 50%;
        font-size: 15px;
        padding: 8px;
    }

    .contact_d p {
        margin-left: 12px;
        font-size: 13px;
        font-weight: 500;
        text-shadow: 0 0 4px #000;
    }

/* ===== SHARE & CONNECT ===== */
.share-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    padding: 20px;
    text-align: center;
}

/* WhatsApp share form */
.share_wtsp input {
    font-size: 13px;
    border: 1px solid #ccc;
    padding: 8px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    width: 180px;
    text-align: center;
}

.wtsp_share_btn {
    background: var(--success);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* ===== PRODUCTS / SERVICES ===== */
.product-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 10px;
}

.product-img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 8px;
}

.product-enquiry-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.product-enquiry-btn {
    background: var(--success);
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
}

    .product-enquiry-btn:hover {
        background: #1ebe5c;
    }

/* ===== PAYMENT ===== */
.payment_block img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin: 10px auto;
    display: block;
}

/* ===== GALLERY ===== */
.gallery_img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 6px;
}

@media (min-width:768px) {
    .gallery_img {
        width: 140px;
        height: 140px;
    }
}

/* ===== QR SECTION ===== */
.qr-section {
    text-align: center;
    margin-top: 20px;
}

.qr-header {
    background: var(--primary);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 8px;
    border-radius: 4px 4px 0 0;
}

.qr-body {
    border: 1px solid #ddd;
    border-top: none;
    padding: 20px;
    background: #fff;
}

.qr-img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin: 0 auto;
}

.qr-download-btn {
    background: var(--primary);
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

    .qr-download-btn:hover {
        background: #005fa3;
    }

/* ===== FEEDBACK / ENQUIRY FORM ===== */
form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin: 0 auto;
}

    form input, form select, form textarea {
        width: 100%;
        box-sizing: border-box;
        padding: 8px 10px;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-size: 13px;
        outline: none;
    }

    form textarea {
        resize: vertical;
        min-height: 60px;
    }

    form button, .btn-feedback {
        align-self: flex-start;
        background: var(--primary);
        color: #fff;
        padding: 8px 14px;
        border: none;
        border-radius: 4px;
        font-weight: 600;
        cursor: pointer;
        font-size: 13px;
    }

        form button:hover, .btn-feedback:hover {
            opacity: 0.9;
        }

/* ===== FEEDBACK DISPLAY ===== */
#feedback-list {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin: 20px auto;
}

    #feedback-list h3 {
        font-size: 18px;
        font-weight: 600;
        color: var(--primary);
        margin-bottom: 12px;
        text-align: center;
        border-bottom: 2px solid var(--accent);
        padding-bottom: 5px;
    }

.feedback_block {
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fafafa;
    padding: 12px 15px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

    .feedback_block .star {
        font-size: 16px;
        color: #ffc107;
        margin-bottom: 6px;
        letter-spacing: 2px;
    }

    .feedback_block .comment {
        font-size: 14px;
        color: #333;
        margin: 6px 0;
        font-style: italic;
    }

    .feedback_block .byline {
        font-size: 12px;
        color: #666;
        text-align: right;
    }

/* ===== FOOTER ===== */
.copyright {
    background: var(--primary);
    color: #fff;
    text-align: center;
    font-size: 13px;
    padding: 14px 0;
    width: 100%;
    border-top: 2px solid #005fa3;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.2);
    font-weight: 500;
}

/* ===== BOTTOM MENU ===== */
.menu_bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 58px;
    background: var(--primary);
    border-top: 2px solid #005fa3;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.25);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.menu_container {
    display: inline-flex;
    justify-content: space-around;
    gap: 8px;
    padding: 0 8px;
    width: 100%;
    max-width: 600px;
}

.menu_item {
    flex: 0 0 auto;
    color: #fff;
    text-align: center;
    font-size: 12px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: 0.3s;
}

    .menu_item i {
        display: block;
        font-size: 18px;
        margin-bottom: 2px;
    }

    .menu_item:hover, .menu_item.active {
        background: rgba(255,255,255,0.2);
    }

/* ===== BACKGROUND OVERLAY ===== */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 100%);
    z-index: -1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .card-wrapper {
        max-width: 100%;
        padding: 10px;
    }

    .card, .card2, .share-section, .qr-section {
        width: 96%;
        max-width: none;
    }

    .gallery_img {
        width: 110px;
        height: 110px;
    }

    form input, form select, form textarea {
        font-size: 12px;
    }
}

@media (min-width: 1024px) {
    .card-wrapper {
        max-width: 500px;
    }
}
/* ===== SHARE & CONNECT ALIGNMENT FIX ===== */
.share-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    padding: 20px;
    width: 95%;
    max-width: 460px;
    margin: 20px auto 25px;
    text-align: center;
    box-sizing: border-box;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.big_btns {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

    .big_btns:hover {
        opacity: 0.9;
    }
/* ===== GLASS SHARE SECTION ===== */
.glass-share {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 22px;
    padding: 30px 22px;
    margin: 30px auto;
    text-align: center;
    color: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    animation: fadeUp 0.7s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-share .share-header {
    margin-bottom: 18px;
}

.glass-share .icon-circle {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

    .glass-share .icon-circle i {
        color: #fff;
        font-size: 24px;
    }

.glass-share h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #fff;
}

.glass-share p {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 4px;
}

/* Buttons */
.glass-share .share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.share-btn {
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.3s;
}

    .share-btn.filled {
        background: linear-gradient(135deg, var(--primary), var(--accent));
        color: #fff;
    }

    .share-btn.outline {
        background: transparent;
        border: 2px solid var(--accent);
        color: #fff;
    }

    .share-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }

/* Divider */
.glass-share .divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 18px 0;
    color: #ddd;
    font-size: 12px;
}

    .glass-share .divider::before,
    .glass-share .divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: rgba(255,255,255,0.3);
        margin: 0 10px;
    }

/* WhatsApp Form */
.whatsapp-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

    .whatsapp-form input {
        background: rgba(255,255,255,0.1);
        border: 1px solid rgba(255,255,255,0.4);
        color: #fff;
        padding: 10px 14px;
        border-radius: 10px;
        width: 80%;
        max-width: 260px;
        text-align: center;
        font-size: 14px;
    }

        .whatsapp-form input::placeholder {
            color: rgba(255,255,255,0.7);
        }

.whatsapp-send {
    background: var(--success);
    border: none;
    color: #fff;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s;
}

    .whatsapp-send:hover {
        background: #1ebe5c;
        transform: scale(1.05);
    }
    /* ===== SHARE SECTION (Template7 style adapted for Template1) ===== */
.share-style-t7 {
    background: #fff;
    border: 2px solid var(--primary);
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0,0,0,0.25);
    width: 95%;
    max-width: 460px;
    margin: 25px auto;
    text-align: center;
    padding: 20px 15px 25px;
}

.share-style-t7 h3 {
    background: linear-gradient(45deg, var(--primary) 80%, var(--accent) 20%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 -15px 10px;
    padding: 12px 0;
    border-radius: 6px 6px 0 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-style-t7 .share-subtext {
    font-size: 12px;
    color: #555;
    margin-bottom: 12px;
}

.share-btn-box {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.share-btn {
    border: none;
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    width: 135px;
    box-shadow: 0 0 8px rgba(0,0,0,0.25);
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.share-btn.main {
    background: linear-gradient(45deg, var(--primary) 80%, var(--accent) 20%);
    color: #fff;
}
.share-btn.alt {
    background: #fff;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 12px rgba(0,0,0,0.4);
}

/* WhatsApp box like template7 */
.share_wtsp form {
    display: flex;
    justify-content: center;
    margin: 10px auto 0;
    border: 1.5px solid var(--primary);
    width: fit-content;
    border-radius: 6px;
    overflow: hidden;
}

.share_wtsp input {
    border: 0;
    padding: 10px 12px;
    font-size: 13px;
    background: #fff;
    width: 160px;
}

.wtsp_share_btn {
    background: var(--success);
    color: #fff;
    border: none;
    padding: 10px 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.wtsp_share_btn:hover {
    background: #1ebe5c;
    transform: scale(1.05);
}
/* =========================================
   MODERN SHARE SECTION – flat, red-accent
   ========================================= */
.modern-share {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    width: 95%;
    max-width: 460px;
    margin: 25px auto;
    padding: 20px 15px 28px;
    text-align: center;
}

    .modern-share h3 {
        color: var(--primary);
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 4px;
    }

    .modern-share .share-subtext {
        font-size: 12px;
        color: #555;
        margin-bottom: 14px;
    }

/* WhatsApp Input + Button */
.whatsapp-share-box {
    margin-bottom: 16px;
}

.input-group {
    display: flex;
    justify-content: center;
    border: 1.5px solid var(--primary);
    border-radius: 6px;
    overflow: hidden;
    width: 90%;
    max-width: 360px;
    margin: 0 auto;
}

.prefix {
    background: #f7f7f7;
    padding: 10px 8px;
    font-size: 13px;
    border-right: 1px solid #ddd;
    color: #555;
}

.input-group input {
    border: none;
    outline: none;
    flex: 1;
    padding: 10px 12px;
    font-size: 13px;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    border: none;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .btn-whatsapp:hover {
        background: #1ebe5c;
    }

/* Outline Buttons */
.share-btn-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.btn-outline {
    background: #fff;
    border: 1.8px solid var(--primary);
    color: var(--primary);
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 14px;
    min-width: 150px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: 0.3s;
}

    .btn-outline:hover {
        background: var(--primary);
        color: #fff;
    }
/* ================================
   FOOTER MENU (ConnectIt style)
   ================================ */
.footer-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #ddd;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    z-index: 9999;
    padding: 6px 0;
}

    .footer-menu .menu-item {
        flex: 1;
        text-align: center;
        font-size: 11px;
        color: #444;
        cursor: pointer;
        transition: 0.3s;
        font-weight: 600;
    }

        .footer-menu .menu-item i {
            display: block;
            font-size: 18px;
            margin-bottom: 4px;
            color: var(--primary);
            transition: 0.3s;
        }

        .footer-menu .menu-item span {
            display: block;
            line-height: 1;
            text-transform: uppercase;
            font-size: 11px;
        }

        .footer-menu .menu-item:hover i {
            transform: scale(1.2);
        }

        .footer-menu .menu-item.active i {
            color: var(--primary);
        }

@media screen and (max-width: 700px) {
    .footer-menu .menu-item i {
        font-size: 16px;
    }

    .footer-menu .menu-item span {
        font-size: 10px;
    }
}
/* ==========================================
   SECTION BORDERS & DEPTH EFFECTS
   ========================================== */
.card2,
.qr-section,
.share-section,
.feedback_block,
.product-card,
.payment_block {
    border: 1.8px solid rgba(0,0,0,0.08);
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

    .card2:hover,
    .qr-section:hover,
    .share-section:hover,
    .product-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    }

    .card2 h3,
    .qr-section h3,
    .share-section h3 {
        border-bottom: 2px solid var(--accent);
        padding-bottom: 5px;
        color: var(--primary);
        font-weight: 700;
        margin-bottom: 10px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
/* ==========================================
   MODERN GALLERY ENHANCEMENT
   ========================================== */
.gallery_row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.gallery_img {
    width: 110px;
    height: 110px;
    border-radius: 8px;
    border: 2px solid transparent;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: 0.35s ease;
    cursor: pointer;
}

    .gallery_img:hover {
        transform: scale(1.08);
        border-color: var(--primary);
        box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    }

/* Optional subtle animation */
@keyframes galleryPop {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.gallery_img {
    animation: galleryPop 0.5s ease;
}

/* ==========================================
   ENHANCED QR SECTION – CENTERED ACTIONS
   ========================================== */
.qr-section {
    text-align: center;
    margin: 25px auto;
    border: 2px solid var(--primary);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(0,0,0,0.08);
    max-width: 460px;
}

.qr-header {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    padding: 10px 0;
    border-radius: 10px 10px 0 0;
    text-transform: uppercase;
}

.qr-body {
    padding: 20px 0 25px;
}

.qr-img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin: 10px auto;
    display: block;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Buttons area */
.qr-actions {
    text-align: center;
    margin-bottom: 10px;
}

.copy-link-btn, .qr-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.copy-link-btn {
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--primary);
}

    .copy-link-btn:hover {
        background: var(--primary);
        color: #fff;
    }

.qr-download-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    margin-top: 10px;
}

    .qr-download-btn:hover {
        background: #005fa3;
    }
