@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    /* Base Theme Variables */
    --primary-color: #3a4a58;
    --secondary-color: #e8c897;
    --border-radius: 10px;
    
    /* Light Mode (Default) */
    --theme-bg: #f8f9fa;
    --theme-card-bg: #ffffff;
    --theme-text-primary: #2c3e50;
    --theme-text-secondary: #6c757d;
    --theme-accent: #c8a97e;
    --theme-border: #e9ecef;
    --theme-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.dark {
    /* Dark Mode Overrides */
    --theme-bg: #0f1113;
    --theme-card-bg: #1a1d21;
    --theme-text-primary: #f0f2f5;
    --theme-text-secondary: #9da3ae;
    --theme-accent: #daba85;
    --theme-border: #2d3238;
    --theme-shadow: 0 16px 48px rgba(0, 0, 0, 0.5); /* Deeper shadow for dark mode */
}

.theme-toggle-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--theme-card-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--theme-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1100; /* Increased z-index */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--theme-text-primary);
    font-size: 1.1rem;
}

.dark .theme-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Modals & Forms Dark Mode Overrides */
.dark .modal-content {
    background-color: var(--theme-card-bg) !important;
    border: 1px solid var(--theme-border) !important;
    color: var(--theme-text-primary) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8) !important;
}

.dark .modal-header {
    border-bottom: 1px solid var(--theme-border) !important;
}

.dark .modal-footer {
    border-top: 1px solid var(--theme-border) !important;
}

.dark .modal-title {
    color: var(--theme-text-primary) !important;
}

.dark .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
}

.dark .btn-close:hover {
    opacity: 1;
}

.dark .form-control,
.dark .form-select {
    background-color: #2a2d32 !important;
    border: 1px solid var(--theme-border) !important;
    color: var(--theme-text-primary) !important;
    transition: all 0.3s ease;
}

.dark .form-control:focus,
.dark .form-select:focus {
    background-color: #31353b !important;
    border-color: var(--theme-accent) !important;
    box-shadow: 0 0 0 0.25rem rgba(218, 186, 133, 0.25) !important;
    color: #ffffff !important;
}

.dark .form-control::placeholder {
    color: #6c757d !important;
}

.dark .form-label {
    color: var(--theme-text-secondary) !important;
}

.dark .input-group-text {
    background-color: var(--theme-border) !important;
    border-color: var(--theme-border) !important;
    color: var(--theme-text-primary) !important;
}

.theme-toggle-btn:hover {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.dark-icon, .light-icon {
    display: none;
}

html:not(.dark) .dark-icon {
    display: block;
}

html.dark .light-icon {
    display: block;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--theme-bg);
    color: var(--theme-text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.card {
    background: var(--theme-card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--theme-shadow);
    margin: 20px auto;
    max-width: 500px;
    position: relative;
    border: 1px solid var(--theme-border) !important; /* Proper border added */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-title {
    color: var(--theme-text-primary) !important;
}

.card-text {
    color: var(--theme-text-primary);
}

.text-muted {
    color: var(--theme-text-secondary) !important;
}

.card-body {
    background: transparent !important;
}

/* Header */
.header {
    position: relative;
    padding: 40px 20px 20px;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Ye bottom curve effect waise ka waise rehne de */
.header:after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--theme-card-bg);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    transition: background-color 0.3s ease;
}


.profile-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid var(--theme-accent);
    object-fit: cover;
    margin: 0 auto 15px;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.company-title {
    font-family: 'Playfair Display', serif;
    letter-spacing: 3px;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.profile-views {
    font-size: 18px;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    color: var(--theme-text-secondary);
    margin-bottom: 10px;
}

.keyword-label {
    color: var(--theme-text-primary);
}

/* Details */
.detail-description-business {
    padding: 30px 20px 10px;
    text-align: center;
}

.detail-name {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--theme-text-primary);
}

.detail-company-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--theme-accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}


.tab-navigation {
    display: flex;
    justify-content: space-between;
    padding: 0 20px 15px;
    border-bottom: 1px solid var(--theme-border);
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tab-navigation::-webkit-scrollbar {
    display: none;
}

.tab-navigation div {
    position: relative;
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--theme-text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    flex: 0 0 auto;
}

.tab-navigation div.active {
    color: var(--theme-text-primary);
    font-weight: 600;
}

.tab-navigation div.active:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--theme-accent);
    border-radius: 10px;
}


/* Content */
.content {
    display: none;
    padding: 10px 25px 30px;
}

.content.show {
    display: block;
}

.tab-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--theme-text-primary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.tab-title:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 70%;
    height: 2px;
    background: var(--theme-accent);
}

/* Social links */
.social-icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background-color: var(--theme-card-bg);
    border-radius: 8px;
    box-shadow: var(--theme-shadow);
    height: 100%;
    transition: all 0.3s ease;
}

.social-icon-box:hover {
    transform: translateY(-5px);
}

.icon-container {
    margin-bottom: 10px;
}

.icon-name {
    font-weight: 500;
    text-align: center;
    color: var(--theme-text-primary);
}

@media (min-width: 768px) {
    .social-col {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (max-width: 767px) {
    .social-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}


/* Info content */
.about {
    background: var(--theme-border);
    padding: 20px;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
}

.about p {
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--theme-text-primary);
}

.about b {
    display: block;
    font-size: 12px;
    color: var(--theme-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

/* Gallery */
.carousel {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.carousel-item img {
    border-radius: var(--border-radius);
}

.carousel-control-prev,
.carousel-control-next {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    height: 40px;
    width: 40px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    opacity: 0.9;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(25%) sepia(11%) saturate(1164%) hue-rotate(182deg) brightness(95%) contrast(87%);
}

.no-images {
    color: var(--text-secondary);
    text-align: center;
}

/* QR */
.qr-wrapper {
    text-align: center;
    padding: 10px;
}

.qr-image {
    padding: 10px;
    background: #fff; /* QR codes always need white background for scanning */
    box-shadow: var(--theme-shadow);
    border-radius: 10px;
}

/* Footer */
.footer {
    margin-bottom: 30px;
}

.footer-containt {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 0 20px;
}

.btn {
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:first-child {
    background: var(--primary-color);
    color: white;
    border: none;
}

.btn:first-child:hover {
    background: #2d3a45;
    transform: translateY(-2px);
}

.btn:last-child {
    background: var(--theme-accent);
    color: #1a1d21;
    border: none;
}

.dark .btn:last-child {
    color: #ffffff;
}

.btn:last-child:hover {
    background: #daba85;
    transform: translateY(-2px);
}


/* body background Animation start */

@keyframes move {
    100% {
        transform: translate3d(0, 0, 1px) rotate(360deg);
    }
}

.background {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    background: var(--theme-bg);
    overflow: hidden;
    z-index: -1;
}

.background span {
    width: 15vmin;
    height: 15vmin;
    border-radius: 15vmin;
    backface-visibility: hidden;
    position: absolute;
    animation: move;
    animation-duration: 45;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    opacity: 0.6;
}

.dark .background span {
    opacity: 0.15; /* More subtle in dark mode */
}


.background span:nth-child(0) {
    color: #a39cb0;
    top: 34%;
    left: 68%;
    animation-duration: 28s;
    animation-delay: -14s;
    transform-origin: 2vw -1vh;
    box-shadow: 30vmin 0 4.146366308637345vmin currentColor;
}

.background span:nth-child(1) {
    color: #a39cb0;
    top: 25%;
    left: 95%;
    animation-duration: 16s;
    animation-delay: -49s;
    transform-origin: -23vw -1vh;
    box-shadow: 30vmin 0 4.138744607243871vmin currentColor;
}

.background span:nth-child(2) {
    color: #a39cb0;
    top: 45%;
    left: 51%;
    animation-duration: 23s;
    animation-delay: -26s;
    transform-origin: -9vw -18vh;
    box-shadow: -30vmin 0 4.634962624992564vmin currentColor;
}

.background span:nth-child(3) {
    color: #FFACAC;
    top: 29%;
    left: 28%;
    animation-duration: 29s;
    animation-delay: -2s;
    transform-origin: -9vw 22vh;
    box-shadow: -30vmin 0 4.692623890877321vmin currentColor;
}

.background span:nth-child(4) {
    color: #FFACAC;
    top: 61%;
    left: 79%;
    animation-duration: 13s;
    animation-delay: -49s;
    transform-origin: 7vw -9vh;
    box-shadow: 30vmin 0 4.653841260929108vmin currentColor;
}

.background span:nth-child(5) {
    color: #b1919a;
    top: 80%;
    left: 38%;
    animation-duration: 46s;
    animation-delay: -7s;
    transform-origin: 18vw -13vh;
    box-shadow: -30vmin 0 4.14521652771149vmin currentColor;
}

.background span:nth-child(6) {
    color: #b1919a;
    top: 96%;
    left: 12%;
    animation-duration: 18s;
    animation-delay: -48s;
    transform-origin: 25vw 7vh;
    box-shadow: 30vmin 0 4.58483642756416vmin currentColor;
}

.background span:nth-child(7) {
    color: #FFACAC;
    top: 31%;
    left: 22%;
    animation-duration: 15s;
    animation-delay: -31s;
    transform-origin: 16vw -21vh;
    box-shadow: 30vmin 0 4.597169997723943vmin currentColor;
}

.background span:nth-child(8) {
    color: #FFACAC;
    top: 56%;
    left: 69%;
    animation-duration: 13s;
    animation-delay: -42s;
    transform-origin: 14vw -23vh;
    box-shadow: -30vmin 0 3.962131017527292vmin currentColor;
}

.background span:nth-child(9) {
    color: #b1919a;
    top: 89%;
    left: 88%;
    animation-duration: 24s;
    animation-delay: -43s;
    transform-origin: -14vw 22vh;
    box-shadow: 30vmin 0 4.6793325195358575vmin currentColor;
}

.background span:nth-child(10) {
    color: #a39cb0;
    top: 15%;
    left: 89%;
    animation-duration: 39s;
    animation-delay: -48s;
    transform-origin: 6vw 5vh;
    box-shadow: 30vmin 0 4.099218763425698vmin currentColor;
}

.background span:nth-child(11) {
    color: #a39cb0;
    top: 73%;
    left: 94%;
    animation-duration: 52s;
    animation-delay: -2s;
    transform-origin: -1vw 8vh;
    box-shadow: 30vmin 0 4.14641865739477vmin currentColor;
}

.background span:nth-child(12) {
    color: #b1919a;
    top: 55%;
    left: 18%;
    animation-duration: 24s;
    animation-delay: -5s;
    transform-origin: 3vw 12vh;
    box-shadow: 30vmin 0 3.8657255359643545vmin currentColor;
}

.background span:nth-child(13) {
    color: #FFACAC;
    top: 50%;
    left: 85%;
    animation-duration: 33s;
    animation-delay: -4s;
    transform-origin: 20vw 1vh;
    box-shadow: -30vmin 0 3.9834117117308274vmin currentColor;
}

.background span:nth-child(14) {
    color: #FFACAC;
    top: 56%;
    left: 11%;
    animation-duration: 22s;
    animation-delay: -9s;
    transform-origin: 7vw -15vh;
    box-shadow: -30vmin 0 4.006721236390043vmin currentColor;
}

.background span:nth-child(15) {
    color: #FFACAC;
    top: 20%;
    left: 42%;
    animation-duration: 53s;
    animation-delay: -2s;
    transform-origin: 14vw 6vh;
    box-shadow: -30vmin 0 3.8684405408543303vmin currentColor;
}

.background span:nth-child(16) {
    color: #b1919a;
    top: 86%;
    left: 19%;
    animation-duration: 38s;
    animation-delay: -35s;
    transform-origin: -12vw -10vh;
    box-shadow: -30vmin 0 3.9812422048632987vmin currentColor;
}

.background span:nth-child(17) {
    color: #a39cb0;
    top: 50%;
    left: 90%;
    animation-duration: 47s;
    animation-delay: -46s;
    transform-origin: -6vw -21vh;
    box-shadow: -30vmin 0 4.170390861745465vmin currentColor;
}

.background span:nth-child(18) {
    color: #b1919a;
    top: 91%;
    left: 69%;
    animation-duration: 41s;
    animation-delay: -14s;
    transform-origin: -20vw 7vh;
    box-shadow: -30vmin 0 4.417948730691757vmin currentColor;
}

.background span:nth-child(19) {
    color: #FFACAC;
    top: 38%;
    left: 87%;
    animation-duration: 50s;
    animation-delay: -5s;
    transform-origin: -2vw -3vh;
    box-shadow: -30vmin 0 4.396173207242518vmin currentColor;
}
/* Offers Swiper Custom Navigation */
.offersSwiper {
    position: relative;
    padding: 10px 5px 40px;
}

.offers-next,
.offers-prev {
    width: 45px !important;
    height: 45px !important;
    background-color: var(--theme-accent) !important;
    border-radius: 50%;
    color: white !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.offers-next:after,
.offers-prev:after {
    font-size: 18px !important;
    font-weight: bold;
}

.offers-next {
    right: 5px !important;
}

.offers-prev {
    left: 5px !important;
}

.offers-next:hover,
.offers-prev:hover {
    background-color: #daba85 !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.offersSwiper .swiper-pagination-bullet-active {
    background: var(--theme-accent) !important;
}

@media (max-width: 576px) {
    .offers-next,
    .offers-prev {
        width: 35px !important;
        height: 35px !important;
    }
    
    .offers-next:after,
    .offers-prev:after {
        font-size: 14px !important;
    }
}

/* Premium Show More Badge */
.theme7-show-more-btn {
    display: none;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    color: var(--theme-accent) !important;
    background-color: var(--theme-bg) !important;
    border: 1px solid var(--theme-accent) !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-top: 10px !important;
    cursor: pointer !important;
    box-shadow: var(--theme-shadow) !important;
}

.theme7-show-more-btn:hover {
    background-color: #c8a97e !important;
    color: #ffffff !important;
    box-shadow: 0 4px 8px rgba(200, 169, 126, 0.2) !important;
    transform: translateY(-1px);
}

.theme7-show-more-btn i {
    font-size: 0.65rem !important;
    transition: transform 0.3s ease !important;
}

/* Theme-aware Image Background */
.theme7-img-wrapper {
    background-color: var(--theme-card-bg) !important;
    transition: background-color 0.3s ease;
}
