/* Main Content */
.main-content {
    margin-top: 90px;
    padding: 60px 0;
}

/* Page Header */
.page-header {
    text-align: center;
    /* margin-bottom: 80px; */
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.page-title {
    font-size: 4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.1;
}

.page-subtitle {
    font-size: 16px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: center;
}

/* Product Tabs */
.product-tabs {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tab-navigation {
    background: #f8f9fa;
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: center;
}

.tab-nav-item {
    padding: 20px 30px;
    background: transparent;
    border: none;
    font-weight: 600;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tab-nav-item:hover {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.05);
}

.tab-nav-item.active {
    color: #d4af37;
    background: white;
}

.tab-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #d4af37;
}

.tab-content {
    padding: 60px;
    min-height: 600px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
    -webkit-animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.product-card {
    background: white;
    border-radius: 15px;
    padding: 30px 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15);
    border-color: #d4af37;
}

.product-number {
    width: 60px;
    height: 60px;
    background: #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 25px;
}

.product-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-features {
    list-style: none;
    padding: 0;
}

.product-features li {
    padding: 8px 0;
    color: #555;
    position: relative;
    padding-left: 25px;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #d4af37;
    font-weight: bold;
}

/* Materials Section */
.materials-showcase {
    /* background: #f8f9fa; */
    padding: 0px;
    border-radius: 15px;
    padding-top: 0px;
    /* margin-top: 40px; */
}

.materials-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
    text-align: center;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.material-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.material-item:hover {
    transform: translateY(-5px);
    border-color: #d4af37;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.1);
}

.material-name {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.material-desc {
    color: #666;
    font-size: 0.9rem;
}

/* Special Highlight */
.highlight-section {
    background: linear-gradient(135deg, #d4af37, #b8860b);
    color: white;
    padding: 50px;
    border-radius: 15px;
    text-align: center;
    margin: 40px 0;
}

.highlight-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.highlight-text {
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.7;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .nav-pills-container {
        background: transparent;
        border: none;
        padding: 0;
        margin-top: 20px;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }

    .nav-link {
        margin: 2px 0;
        text-align: center;
        width: 100%;
    }

    .header-actions {
        margin-top: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .phone-info {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    .tab-navigation {
        flex-direction: column;
    }

    .tab-content {
        padding: 40px 30px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }

    .tab-content {
        padding: 30px 20px;
    }

    .product-card {
        padding: 30px 25px;
    }

    .materials-showcase {
        padding: 30px 0px;
    }

    .highlight-section {
        padding: 40px 30px;
    }

    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-btn,
    .scroll-top-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 2rem;
    }

    .tab-content {
        padding: 25px 15px;
    }

    .product-card {
        padding: 25px 20px;
    }
}

/* New unique classes for modern gallery */
.modern-gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.modern-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 20px;
    margin-bottom: 0px;
}

.modern-product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid #f0f0f0;
    /* height: 420px; */
    position: relative;
}

.modern-product-card:hover {
    transform: translateY(-7px) scale(1.02);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.25);
    border-color: #d4af37;
}

.modern-image-section {
    height: 250px;
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
    position: relative;
    overflow: hidden;
}

.modern-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.modern-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    background-size: cover;
    background-position: center;
    border-bottom: 3px solid #d4af37;
}

/* MARBLE TAB SPECIFIC IMAGES - Using tab ID for specificity */
#sculpture .modern-product-card[data-product="white-sparkle-marble"] .modern-image-placeholder {
    background-image: url('img/2.jpg');
    background-size: cover;
    background-position: center;
}

#sculpture .modern-product-card[data-product="hermes-grey"] .modern-image-placeholder {
    background-image: url('img/Stone_Texture.jpg');
    background-size: cover;
    background-position: center;
}

#sculpture .modern-product-card[data-product="van-gogh-grey"] .modern-image-placeholder {
    background-image: url('img/van_gogh_marble.webp');
    background-size: cover;
    background-position: center;
}

#sculpture .modern-product-card[data-product="blue-pearl"] .modern-image-placeholder {
    background-image: url('img/Blue_Pearl_Marble.jpg');
    background-size: cover;
    background-position: center;
}

#sculpture .modern-product-card[data-product="travertine"] .modern-image-placeholder {
    background-image: url('img/background-marble-texture.jpg');
    background-size: cover;
    background-position: center;
}

#sculpture .modern-product-card[data-product="bookmatched-marble"] .modern-image-placeholder {
    background-image: url('img/Book_Match_Marble.webp');
    background-size: cover;
    background-position: center;
}

#sculpture .modern-product-card[data-product="esmeralda-onyx"] .modern-image-placeholder {
    background-image: url('img/esm.webp');
    background-size: cover;
    background-position: center;
}

#sculpture .modern-product-card[data-product="pink-onyx"] .modern-image-placeholder {
    background-image: url('img/pink-onyx.jpg');
    background-size: cover;
    background-position: center;
}

#sculpture .modern-product-card[data-product="calacatta-gold"] .modern-image-placeholder {
    background-image: url('img/calacatta-gold.jpg');
    background-size: cover;
    background-position: center;
}

#sculpture .modern-product-card[data-product="armani-beige"] .modern-image-placeholder {
    background-image: url('img/abm.jpg');
    background-size: cover;
    background-position: center;
}

#sculpture .modern-product-card[data-product="swiss-white"] .modern-image-placeholder {
    background-image: url('img/swiss.jpg');
    background-size: cover;
    background-position: center;
}

/* GRANITE TAB SPECIFIC IMAGES - Using tab ID for specificity */
#granites .modern-product-card[data-product="kuppam-green"] .modern-image-placeholder {
    background-image: url('img/Kuppam Green Granite (1).jpg');
    background-size: cover;
    background-position: center;
}

#granites .modern-product-card[data-product="absolute-black"] .modern-image-placeholder {
    background-image: url('img/Black Galaxy Granite (1).jpg');
    background-size: cover;
    background-position: center;
}

#granites .modern-product-card[data-product="viscount-white"] .modern-image-placeholder {
    background-image: url('img/Viscount White Granite (1).jpg');
    background-size: cover;
    background-position: center;
}

#granites .modern-product-card[data-product="black-galaxy"] .modern-image-placeholder {
    background-image: url('img/Black Galaxy Granite (1).jpg');
    background-size: cover;
    background-position: center;
}

#granites .modern-product-card[data-product="black-marquina"] .modern-image-placeholder {
    background-image: url('img/bmm.webp');
    background-size: cover;
    background-position: center;
}

#granites .modern-product-card[data-product="himalayan-blue"] .modern-image-placeholder {
    background-image: url('img/hbb.webp');
    background-size: cover;
    background-position: center;
}

#granites .modern-product-card[data-product="kuppam-grey"] .modern-image-placeholder {
    background-image: url('img/kgg.jpg');
    background-size: cover;
    background-position: center;
}

#granites .modern-product-card[data-product="kuppam-white"] .modern-image-placeholder {
    background-image: url('img/kbw.webp');
    background-size: cover;
    background-position: center;
}

/* Modal Images - Product-specific classes for each product */

/* Marble Product Images for Modals */
.modal-image-section.product-white-sparkle-marble {
    background-image: url('img/2.jpg');
    background-size: cover;
    background-position: center;
}

.modal-image-section.product-hermes-grey {
    background-image: url('img/Stone_Texture.jpg');
    background-size: cover;
    background-position: center;
}

.modal-image-section.product-van-gogh-grey {
    background-image: url('img/van_gogh_marble.webp');
    background-size: cover;
    background-position: center;
}

.modal-image-section.product-blue-pearl {
    background-image: url('img/Blue_Pearl_Marble.jpg');
    background-size: cover;
    background-position: center;
}

.modal-image-section.product-travertine {
    background-image: url('img/background-marble-texture.jpg');
    background-size: cover;
    background-position: center;
}

.modal-image-section.product-bookmatched-marble {
    background-image: url('img/Book_Match_Marble.webp');
    background-size: cover;
    background-position: center;
}

.modal-image-section.product-esmeralda-onyx {
    background-image: url('img/esm.webp');
    background-size: cover;
    background-position: center;
}

.modal-image-section.product-pink-onyx {
    background-image: url('img/pink-onyx.jpg');
    background-size: cover;
    background-position: center;
}

.modal-image-section.product-calacatta-gold {
    background-image: url('img/calacatta-gold.jpg');
    background-size: cover;
    background-position: center;
}

.modal-image-section.product-armani-beige {
    background-image: url('img/abm.jpg');
    background-size: cover;
    background-position: center;
}

.modal-image-section.product-swiss-white {
    background-image: url('img/swiss.jpg');
    background-size: cover;
    background-position: center;
}

/* Granite Product Images for Modals */
.modal-image-section.product-kuppam-green {
    background-image: url('img/Kuppam Green Granite (1).jpg');
    background-size: cover;
    background-position: center;
}

.modal-image-section.product-absolute-black {
    background-image: url('img/Black Galaxy Granite (1).jpg');
    background-size: cover;
    background-position: center;
}

.modal-image-section.product-viscount-white {
    background-image: url('img/Viscount White Granite (1).jpg');
    background-size: cover;
    background-position: center;
}

.modal-image-section.product-black-galaxy {
    background-image: url('img/Black Galaxy Granite (1).jpg');
    background-size: cover;
    background-position: center;
}

.modal-image-section.product-black-marquina {
    background-image: url('img/bmm.webp');
    background-size: cover;
    background-position: center;
}

.modal-image-section.product-himalayan-blue {
    background-image: url('img/hbb.webp');
    background-size: cover;
    background-position: center;
}

.modal-image-section.product-kuppam-grey {
    background-image: url('img/kgg.jpg');
    background-size: cover;
    background-position: center;
}

.modal-image-section.product-kuppam-white {
    background-image: url('img/kbw.webp');
    background-size: cover;
    background-position: center;
}

.modern-product-card:hover .modern-product-image {
    transform: scale(1.1);
}

.modern-product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #d4af37;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modern-content-section {
    padding: 25px;
    /* height: 170px; */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modern-product-title {
    font-size: 22px!important;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.modern-product-subtitle {
    color: #d4af37;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.modern-product-description {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1;
}

.modern-product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.modern-action-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-primary-btn {
    background: #d4af37;
    color: white;
}

.modern-primary-btn:hover {
    background: #b8860b;
    transform: translateY(-2px);
}

.modern-stats-section {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin-top: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.modern-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.modern-stat-item {
    padding: 20px;
}

.modern-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 10px;
}

.modern-stat-label {
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.modern-featured-badge {
    background: linear-gradient(135deg, #d4af37, #b8860b);
}

/* Modal Styles */
.product-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.7) translateY(-50px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 30px 40px 20px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #d4af37;
    color: white;
    transform: rotate(90deg);
}

.modal-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
}

.modal-subtitle {
    color: #d4af37;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.modal-body {
    padding: 30px 40px;
}

.modal-image-section {
    height: 300px;
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 18px;
    font-weight: 500;
    background-size: cover;
    background-position: center;
}

.modal-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.modal-detail-section h4 {
    color: #1a1a1a;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.modal-detail-list {
    list-style: none;
    padding: 0;
}

.modal-detail-list li {
    padding: 8px 0;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
}

.modal-detail-list li:last-child {
    border-bottom: none;
}

.modal-detail-label {
    font-weight: 600;
    color: #333;
}

.modal-applications {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin-top: 20px;
}

.modal-applications h4 {
    color: #1a1a1a;
    margin-bottom: 15px;
}

.application-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.application-tag {
    background: #d4af37;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile responsive */
@media (max-width: 1200px) {
    .modern-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }

    .materials-showcase {
        padding: 30px 25px;
    }

    .modern-products-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .modern-product-card {
        height: auto;
        min-height: 400px;
    }

    .modern-image-section {
        height: 200px;
    }

    .modern-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .modal-details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .modal-body {
        padding: 20px 25px;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 2rem;
    }

    .modern-product-card {
        min-height: 380px;
    }

    .modern-content-section {
        padding: 20px;
        height: auto;
    }

    .modern-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Floating buttons styles */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.whatsapp-btn, .scroll-top-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-btn {
    background: #25D366;
    color: white;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: scale(1.1);
}

.scroll-top-btn {
    background: #d4af37;
    color: white;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: #b8860b;
    transform: scale(1.1);
}