﻿@import url("https://fonts.googleapis.com/css?family=Montserrat:300,400,500,600,700");

:root {
    --color: #848484;
    --color2: #64af35;
    --bg: #ffffff;
}

/* ===== BASE ===== */
html, body {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    overflow-x: hidden;
    background: repeating-linear-gradient(45deg, #000, #3a3535 120px);
    background-size: 100px 100px;
    background-attachment: fixed;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

    a:hover {
        color: var(--color2);
    }

.card-wrapper {
    max-width: 420px;
    width: 100%;
    margin: 0 auto 80px;
    padding: 10px 0;
    display: block;
}

/* ===== CARD CORE ===== */
.card,
.card2,
.share-section,
.qr-section {
  /*  width: 400px;*/
    max-width: 100%;
    margin: 15px auto;
    border-left: 12px solid var(--color2);
    border-right: 12px solid var(--color2);
    border-radius: 12px;
    box-shadow: 0 6px 16px #00000025;
    background: #fff;
    overflow: hidden;
}

    .card:before,
    .card:after {
        content: "";
        position: absolute;
        width: 0;
        height: 0;
    }

    .card:before {
        border-top: 80px solid var(--color2);
        border-right: 150px solid transparent;
        top: 0;
    }

    .card:after {
        border-bottom: 80px solid var(--color2);
        border-left: 150px solid transparent;
        bottom: 0;
        right: 0;
    }

/* ===== PROFILE ===== */
.card_content {
    z-index: 2;
    width: 120px;
    height: 120px;
    margin: 40px auto 15px;
    border-radius: 50%;
    border: 6px solid var(--color2);
    overflow: hidden;
}

    .card_content img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        background: #fff;
        border-radius: 50%;
    }

.card_content2 {
    text-align: center;
    color: #444;
}

    .card_content2 h2 {
        margin: 10px 0 4px;
        font-size: 22px;
        font-weight: 600;
        text-transform: capitalize;
    }

    .card_content2 p {
        font-size: 14px;
        font-weight: 500;
        margin: 3px 0;
        color: var(--color);
    }

/* ===== VIEW COUNTER ===== */
.view_counter {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--color2);
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 8px;
    line-height: 1.2;
    text-align: center;
    box-shadow: 0 2px 6px #0003;
}

/* ===== CONTACT ===== */
.contact_details {
    padding: 0 24px 20px;
}

.contact_d {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f9f9f9;
    margin: 6px 0;
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 1px 4px #00000020;
}

    .contact_d i {
        background: var(--color2);
        color: #fff;
        padding: 8px;
        border-radius: 50%;
        font-size: 15px;
        min-width: 32px;
        text-align: center;
    }

    .contact_d p {
        margin: 0;
        font-size: 14px;
        font-weight: 500;
        word-break: break-word;
    }

/* ===== SHARE SECTION ===== */
.share-section {
    text-align: center;
    padding: 20px 15px;
    border-radius: 14px;
}

    .share-section .input-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 6px;
        margin-bottom: 10px;
    }

    .share-section input {
        border: 1px solid #ccc;
        padding: 8px;
        border-radius: 6px;
        font-size: 14px;
        width: 160px;
    }

.whatsapp-btn {
    background: #25d366;
    color: white;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.shadow-btn a {
    background: var(--color2);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    display: inline-block;
    margin-top: 10px;
}

.share-toggle {
    margin-top: 10px;
}

.share-main-btn {
    background: #2e2c41;
    color: white;
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.share-btn {
    display: none;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}

    .share-btn li {
        list-style: none;
    }

    .share-btn i {
        color: #fff;
        padding: 10px;
        border-radius: 50%;
        width: 38px;
        height: 38px;
        text-align: center;
    }

.fa-facebook {
    background: #3b5998;
}

.fa-twitter {
    background: #1da1f2;
}

.fa-instagram {
    background: #e1306c;
}

.fa-linkedin {
    background: #0077b5;
}

/* ===== QR SECTION ===== */
.qr-section {
    text-align: center;
    padding: 20px 15px;
}

.qr-header {
    font-weight: 600;
    color: var(--color2);
    margin-bottom: 10px;
}

.qr-img {
    width: 160px;
    border-radius: 10px;
    margin: 10px 0;
}

.qr-download-btn {
    display: inline-block;
    padding: 8px 14px;
    background: var(--color2);
    color: white;
    border-radius: 6px;
    font-size: 13px;
}

/* ===== GENERIC CARD2 ===== */
.card2 h3 {
    text-align: center;
    font-size: 20px;
    color: var(--color2);
    margin-bottom: 12px;
    font-weight: 600;
}

/* ===== PRODUCT / SERVICES ===== */
.product_s {
    display: inline-block;
    width: 45%;
    margin: 6px;
    padding: 10px;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 3px 10px #00000015;
    vertical-align: top;
}

    .product_s img {
        width: 100%;
        border-radius: 8px;
        max-height: 180px;
        object-fit: cover;
    }

    .product_s h4 {
        margin: 6px 0;
        font-size: 14px;
        font-weight: 600;
    }

    .product_s p {
        font-size: 12px;
        color: var(--color);
        height: 48px;
        overflow: hidden;
    }

.big_btns {
    display: inline-block;
    margin-top: 6px;
    background: var(--color2);
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

/* ===== PAYMENT ===== */
.payment_block {
    text-align: center;
    margin: 10px auto;
}

.payment_qr_section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.qr-box {
    text-align: center;
}

    .qr-box img {
        width: 110px;
        border-radius: 10px;
        box-shadow: 0 2px 6px #0002;
    }

    .qr-box p {
        font-size: 13px;
        font-weight: 500;
        margin: 5px 0 0;
    }

.account_details {
    margin: 10px auto;
    width: 90%;
}

.account_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

    .account_table th {
        text-align: left;
        width: 45%;
        color: #333;
        font-weight: 600;
    }

    .account_table td {
        text-align: left;
        color: #666;
    }

/* ===== GALLERY ===== */
.img_gall {
    text-align: center;
}

    .img_gall img {
        width: 100%;
        max-width: 360px;
        border-radius: 10px;
        margin: 6px 0;
        box-shadow: 0 4px 12px #00000020;
        cursor: pointer;
    }

/* ===== ACHIEVEMENTS ===== */
.achievement-item {
    text-align: center;
    padding: 10px;
}

    .achievement-item img {
        width: 100%;
        max-width: 340px;
        border-radius: 10px;
        margin-bottom: 8px;
    }

    .achievement-item h4 {
        margin: 5px 0;
        color: var(--color2);
        font-weight: 600;
    }

    .achievement-item p {
        font-size: 13px;
        color: #555;
    }

/* ===== VIDEO GALLERY ===== */
.video-item {
    text-align: center;
    margin: 10px 0;
}

    .video-item iframe,
    .video-item video {
        width: 100%;
        max-width: 360px;
        height: 200px;
        border-radius: 10px;
        box-shadow: 0 3px 10px #0002;
    }

.video-title {
    font-size: 14px;
    color: #444;
    margin-top: 5px;
}

/* ===== FEEDBACK & ENQUIRY ===== */
.feedback_block {
    background: #fafafa;
    padding: 10px;
    border-radius: 8px;
    margin: 8px auto;
    box-shadow: 0 1px 5px #0001;
}

    .feedback_block .star {
        color: #ffb400;
        font-size: 16px;
        margin-bottom: 4px;
    }

.feedback_form, .enquiry_form {
    text-align: center;
}

    .feedback_form select, .feedback_form input,
    .feedback_form textarea, #enquiryForm input, #enquiryForm textarea {
        width: 85%;
        margin: 5px auto;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-size: 13px;
        display: block;
    }

.btn-feedback {
    background: var(--color2);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 6px;
}

/* ===== COPYRIGHT ===== */
.copyright {
    text-align: center;
    color: #aaa;
    font-size: 12px;
    margin: 25px 0 80px;
}

    .copyright a {
        color: var(--color2);
        font-weight: 600;
    }

/* ===== GALLERY POPUP ===== */
#galleryModal {
    display: none;
    position: fixed;
    z-index: 100;
    padding-top: 80px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.4s ease;
}

#galleryModalImg {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}

#galleryCaption {
    margin: 20px auto;
    text-align: center;
    color: #fff;
    font-size: 15px;
    max-width: 80%;
}

.closeGallery {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

    .closeGallery:hover {
        color: var(--color2);
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===== BOTTOM MENU ===== */
.menu_bottom {
    background: var(--color2);
    position: fixed;
    bottom: 0;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    z-index: 20;
    border-top: 3px solid #fff;
}

.menu_container {
    display: inline-flex;
    justify-content: center;
    gap: 10px;
    padding: 8px 0;
}

.menu_item {
    color: #fff;
    text-align: center;
    font-size: 12px;
    min-width: 70px;
}

    .menu_item i {
        font-size: 18px;
        display: block;
        margin-bottom: 2px;
    }

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 400px) {
    .card, .card2, .share-section, .qr-section {
        width: 94%;
        margin: 12px auto;
        border-left: 6px solid var(--color2);
        border-right: 6px solid var(--color2);
    }

    .product_s {
        width: 90%;
    }

    .menu_item {
        font-size: 11px;
        padding: 0 10px;
    }
}
/* ===== PRODUCT & SERVICES ===== */
#products {
    text-align: center;
}

.product_grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.product_s {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    width: 380px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .product_s:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 16px rgba(100, 175, 53, 0.25);
    }

.product_img img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
}

.product_info {
    padding: 10px;
}

    .product_info h4 {
        margin: 8px 0 4px;
        font-size: 14px;
        font-weight: 600;
        color: #333;
        text-transform: capitalize;
    }

    .product_info p {
        font-size: 12px;
        color: #555;
        min-height: 38px;
        line-height: 1.4;
        overflow: hidden;
    }

.big_btns {
    background: var(--color2);
    color: #fff !important;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    margin: 8px auto 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s;
}

    .big_btns:hover {
        background: #58c335;
        transform: scale(1.05);
    }

/* Responsive fix */
@media screen and (max-width: 400px) {
    .product_grid {
        flex-direction: column;
        align-items: center;
    }

    .product_s {
        width: 90%;
    }
}
/* ===== ACHIEVEMENTS ===== */
#achievements {
    text-align: center;
}

.achievement-item {
    margin: 10px auto;
    padding: 10px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: 90%;
    max-width: 360px;
    transition: 0.3s;
}

    .achievement-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 14px rgba(100, 175, 53, 0.25);
    }

    .achievement-item img {
        width: 100%;
        border-radius: 10px;
        object-fit: cover;
        max-height: 240px;
    }

    .achievement-item h4 {
        color: var(--color2);
        font-weight: 600;
        margin: 8px 0 4px;
        font-size: 15px;
    }

    .achievement-item p {
        font-size: 13px;
        color: #555;
        margin: 0 8px 8px;
        white-space: pre-line;
        line-height: 1.4;
    }

/* ===== VIDEO GALLERY ===== */
#videogallery {
    text-align: center;
}

.video-item {
    margin: 10px auto;
    padding: 10px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #eaeaea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 360px;
    transition: all 0.3s ease;
}

    .video-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 14px rgba(100, 175, 53, 0.25);
    }

    .video-item iframe,
    .video-item video {
        width: 100%;
        border-radius: 10px;
        height: 200px;
        border: none;
    }

.video-title {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    margin-top: 6px;
    text-transform: capitalize;
}

/* ===== FOOTER MENU (BOTTOM NAV) ===== */
.menu_bottom {
    background: var(--color2);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    z-index: 50;
    border-top: 3px solid #fff;
}

.menu_container {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 10px 12px;
}

.menu_item {
    flex: 0 0 auto;
    color: #fff;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
    padding: 0 8px;
}

    .menu_item i {
        display: block;
        font-size: 18px;
        margin-bottom: 2px;
    }

    .menu_item:hover {
        color: #fff;
        transform: translateY(-3px);
    }

/* ===== MOBILE OPTIMIZATION ===== */
@media screen and (max-width: 700px) {
    .achievement-item, .video-item {
        width: 94%;
    }

    .menu_item {
        font-size: 11px;
        padding: 0 10px;
    }

    .menu_container {
        gap: 10px;
    }
}
/* ===== PAYMENT OPTIONS ===== */
#payment {
    text-align: center;
}

.payment_block {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin: 15px auto;
    padding: 15px;
    width: 90%;
    max-width: 380px;
    transition: 0.3s;
}

    .payment_block:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(100,175,53,0.25);
    }

/* QR Codes column layout */
.payment_qr_column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.qr-box {
    background: #fafafa;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #eee;
    width: 180px;
    transition: 0.3s;
}

    .qr-box:hover {
        transform: scale(1.05);
    }

    .qr-box img {
        width: 100%;
        max-width: 160px;
        height: 160px;
        object-fit: contain;
        border-radius: 8px;
        margin-bottom: 6px;
    }

    .qr-box p {
        font-size: 13px;
        color: #333;
        margin: 0;
        font-weight: 600;
    }

/* Account Details */
.account_details {
    margin-top: 15px;
    text-align: left;
    background: #f9f9f9;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #eee;
}

    .account_details h4 {
        font-size: 14px;
        font-weight: 600;
        color: var(--color2);
        margin-bottom: 8px;
        text-transform: uppercase;
        display: flex;
        align-items: center;
        gap: 6px;
    }

.account_table {
    width: 100%;
    border-collapse: collapse;
}

    .account_table th,
    .account_table td {
        font-size: 13px;
        padding: 6px 4px;
        border-bottom: 1px solid #e0e0e0;
    }

    .account_table th {
        text-align: left;
        color: #555;
        width: 45%;
        font-weight: 600;
    }

    .account_table td {
        color: #333;
        text-align: right;
        font-weight: 500;
    }

/* Responsive */
@media screen and (max-width: 700px) {
    .qr-box {
        width: 70%;
    }

    .account_table th,
    .account_table td {
        font-size: 12px;
    }
}
/* =======================================================
   SHARE & QR SECTION FIX  – mydigicard v4 layout
   ======================================================= */

/* ---------- SHARE SECTION ---------- */
.share-section {
    background: #fff;
    border: 2px solid var(--primary, #25d366);
    border-radius: 12px;
    margin: 20px 0;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

    .share-section h3 {
        color: var(--primary, #25d366);
        font-weight: 700;
        margin-bottom: 5px;
    }

    .share-section .share-subtext {
        color: #777;
        font-size: 13px;
        margin-bottom: 15px;
    }

.whatsapp-share-box .input-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.whatsapp-share-box .prefix {
    background: #f3f3f3;
    border: 1px solid #ccc;
    padding: 8px 10px;
    border-radius: 6px 0 0 6px;
    font-weight: 600;
}

.whatsapp-share-box input[type="text"] {
    width: 120px;
    padding: 8px;
    border: 1px solid #ccc;
    outline: none;
    border-radius: 0 6px 6px 0;
}

.btn-whatsapp {
    background: #25d366;
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    padding: 8px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .btn-whatsapp i {
        font-size: 16px;
    }

    .btn-whatsapp:hover {
        background: #1da955;
    }

.share-btn-row {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.btn-outline {
    border: 1.5px solid var(--primary, #25d366);
    color: var(--primary, #25d366);
    background: #fff;
    border-radius: 6px;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

    .btn-outline:hover {
        background: var(--primary, #25d366);
        color: #fff;
    }

/* ---------- QR SECTION ---------- */
.qr-section {
    background: #fff;
    border: 2px solid var(--primary, #25d366);
    border-radius: 12px;
    margin: 20px 0;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

    .qr-section .qr-header {
        font-weight: 700;
        color: var(--primary, #25d366);
        margin-bottom: 10px;
        font-size: 16px;
    }

    .qr-section .qr-body {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

.qr-img {
    width: 130px;
    height: 130px;
    border: 2px solid var(--primary, #25d366);
    border-radius: 10px;
    background: #fff;
    padding: 5px;
}

.copy-link-btn,
.qr-download-btn {
    display: inline-block;
    border: 1.5px solid var(--primary, #25d366);
    color: var(--primary, #25d366);
    background: #fff;
    padding: 7px 14px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

    .copy-link-btn i,
    .qr-download-btn i {
        margin-right: 5px;
    }

    .copy-link-btn:hover,
    .qr-download-btn:hover {
        background: var(--primary, #25d366);
        color: #fff;
    }

/* ---------- MENU FIX ---------- */
.menu_bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--primary, #25d366);
    box-shadow: 0 -2px 6px rgba(0,0,0,0.2);
    z-index: 99;
}

.menu_container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 8px 0;
    scroll-behavior: smooth;
}

.menu_item {
    color: #fff;
    font-size: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    min-width: 60px;
    text-transform: uppercase;
    transition: 0.3s;
}

    .menu_item i {
        font-size: 18px;
    }

    .menu_item:hover {
        opacity: 0.9;
        transform: translateY(-2px);
    }

body {
    padding-bottom: 70px; /* prevent overlap by bottom menu */
}
