/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0055aa;
    --primary-dark: #004488;
    --secondary: #e74c3c;
    --dark: #333;
    --light: #f8f9fa;
    --gray: #6c757d;
    --border: #e9ecef;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #fff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: #c0392b;
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: white;
}

/* Header */
.header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--dark);
    position: relative;
    padding: 5px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

/* Enhanced Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--dark);
    font-weight: 500;
    padding: 5px 0;
    transition: var(--transition);
}

.dropdown-toggle:hover {
    color: var(--primary);
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: var(--transition);
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    min-width: 240px;
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 1px solid var(--border);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(8px);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover, 
.dropdown-menu a.active {
    background-color: rgba(0, 85, 170, 0.08);
    color: var(--primary);
    border-left-color: var(--primary);
    padding-left: 25px;
}

.dropdown-menu a::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    margin-right: 12px;
    opacity: 0;
    transition: var(--transition);
}

.dropdown-menu a:hover::before,
.dropdown-menu a.active::before {
    opacity: 1;
}

/* Quartz Pages Navigation */
.page-nav {
    background-color: #f8f9fa;
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
}

.quartz-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.quartz-nav a {
    color: var(--dark);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: var(--transition);
    position: relative;
}

.quartz-nav a:hover {
    color: var(--primary);
    background-color: rgba(0, 85, 170, 0.1);
}

.quartz-nav a.active {
    color: var(--primary);
    background-color: rgba(0, 85, 170, 0.1);
}

.quartz-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

/* Text Center Utility */
.text-center {
    text-align: center;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 21px;
    justify-content: space-between;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--dark);
    border-radius: 10px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('../images/quartz-hero-bg.webp') center/cover no-repeat;
    color: white;
    padding: 120px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Styling */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    display: block;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.section-title {
    position: relative;
    margin-bottom: 1.5rem;
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    margin: 0 auto 20px;
}

.section-description {
    max-width: 700px;
    margin: 0 auto;
    color: var(--gray);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-image {
    height: 200px;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.feature-card:hover .feature-image img {
    transform: scale(1.05);
}

.feature-content {
    padding: 20px;
}

.feature-content h3 {
    margin-bottom: 10px;
}

/* Applications Grid */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.application-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.application-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.app-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.application-card h3 {
    margin-bottom: 15px;
}

.application-card ul {
    list-style: none;
    text-align: left;
}

.application-card li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.application-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Properties Section */
.properties-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.properties-text h2 {
    margin-bottom: 20px;
}

.property-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.property {
    text-align: center;
}

.property i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.property h4 {
    margin-bottom: 10px;
}

.properties-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Highlight Slider */
.highlight-slider {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.highlight-slide {
    display: none;
    position: relative;
    height: 500px;
}

.highlight-slide.active {
    display: block;
}

.highlight-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 30px;
}

.slide-content h3 {
    margin-bottom: 10px;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.slider-prev, .slider-next {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.slider-prev:hover, .slider-next:hover {
    background: white;
}

.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: white;
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.step-number {
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 10px;
}

/* Manufacturing Gallery */
.manufacturing-gallery {
    margin-top: 60px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Quality Grid */
.quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.quality-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.quality-item:hover {
    transform: translateY(-5px);
}

.quality-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.quality-item h3 {
    margin-bottom: 15px;
}

/* Material Tabs */
.material-tabs {
    margin-top: 40px;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 25px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.material-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.spec-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.spec-table th, .spec-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.spec-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Comparison Table */
.comparison-table {
    overflow-x: auto;
    margin-top: 30px;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th, .comparison-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid var(--border);
}

.comparison-table th {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
}

.comparison-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Product Gallery - UPDATED FOR BETTER IMAGE DISPLAY */
.product-gallery {
    margin-top: 40px;
}

.product-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background: white;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
    background-color: #f8f9fa; /* Fallback background */
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures images fill the container properly */
    transition: var(--transition);
}

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

.product-details {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
}

.product-details h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.product-details p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form, .contact-info {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 85, 170, 0.1);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 5px;
}

.info-item h3 {
    margin-bottom: 5px;
}

/* Map Section */
.map-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 30px;
}

/* CTA Section */
.cta {
    background: linear-gradient(rgba(0, 85, 170, 0.9), rgba(0, 85, 170, 0.9)), 
                url('../images/cta-bg.webp') center/cover no-repeat;
    color: white;
    text-align: center;
}

.cta-content h2 {
    margin-bottom: 20px;
}

.cta-content p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about p {
    color: #bdc3c7;
    margin-top: 15px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact-info {
    list-style: none;
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: #bdc3c7;
}

.footer-contact-info i {
    margin-top: 5px;
    color: var(--primary);
}

.footer-contact-info a {
    color: #bdc3c7;
}

.footer-contact-info a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: #bdc3c7;
}

.footer-legal a:hover {
    color: white;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    color: white;
}

/* Floating Contact Icons */
.floating-contact {
    position: fixed;
    right: 30px;
    z-index: 99;
}

.floating-contact.bottom {
    bottom: 100px;
}

.floating-contact.bottom-second {
    bottom: 170px;
}

.floating-contact.bottom-third {
    bottom: 240px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

.whatsapp-icon {
    background: #25D366;
}

.email-icon {
    background: var(--primary);
}

.phone-icon {
    background: var(--secondary);
}

.contact-icon:hover {
    transform: scale(1.1);
}

/* Breadcrumb Styles */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 10px;
    flex-wrap: wrap;
}

.breadcrumb-item a {
    color: var(--gray);
}

.breadcrumb-item.active {
    color: var(--primary);
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin-left: 10px;
    color: var(--gray);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .properties-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .property-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .material-specs {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        box-shadow: var(--shadow);
        transition: var(--transition);
        gap: 20px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8f9fa;
        border-radius: 4px;
        margin-top: 10px;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .highlight-slide {
        height: 400px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .floating-contact {
        right: 15px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .floating-contact.bottom {
        bottom: 80px;
    }
    
    .floating-contact.bottom-second {
        bottom: 140px;
    }
    
    .floating-contact.bottom-third {
        bottom: 200px;
    }
    
    .quartz-nav ul {
        gap: 15px;
    }
    
    .product-showcase {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-buttons, .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid, .applications-grid {
        grid-template-columns: 1fr;
    }
    
    .highlight-slide {
        height: 300px;
    }
    
    .product-showcase {
        grid-template-columns: 1fr;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: left;
    }
}

/* Print Styles */
@media print {
    .header, .footer, .back-to-top, .floating-contact {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}