/* Products Page Styles */

/* Page Header */
.page-header {
    background-color: var(--hero-bg);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Products Overview */
.products-overview {
    padding: 80px 0;
    background-color: var(--secondary-bg);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.category-icon {
    margin-bottom: 20px;
}

.category-icon img {
    width: 120px;
    height: auto;
    transition: transform 0.3s ease;
}

.category-icon img:hover {
    transform: scale(1.1);
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.category-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Featured Products */
.featured-products {
    padding: 80px 0;
}

.product-list {
    margin-top: 50px;
}

.product-item {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .product-item {
        flex-direction: row;
    }
}

.product-image {
    flex: 0 0 30%;
    background-color: #f0f8ff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.molecular-structure {
    max-width: 100%;
    transition: transform 0.3s ease;
}

.molecular-structure img {
    width: 180px;
    height: auto;
    transition: transform 0.3s ease;
}

.molecular-structure img:hover {
    transform: scale(1.05);
}

.product-item:hover .molecular-structure img {
    transform: rotate(15deg);
}

.product-details {
    flex: 1;
    padding: 30px;
}

.product-details h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.product-properties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.product-item:hover .product-properties {
    background-color: rgba(0, 105, 92, 0.05);
}

@media (max-width: 992px) {
    .product-properties {
        grid-template-columns: 1fr;
    }
}

.property {
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 5px;
}

.property-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.property-value {
    font-weight: 500;
    color: #333;
}

.product-description {
    margin-bottom: 25px;
}

.product-description p {
    line-height: 1.6;
    color: var(--text-secondary);
}

.product-applications h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.product-applications ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 25px;
}

.product-applications li {
    margin-bottom: 5px;
    color: var(--text-secondary);
}

.product-cta {
    margin-top: 10px;
}

/* Custom Solutions Section */
.custom-solutions {
    padding: 80px 0;
    background-color: #fff;
}

.solutions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.solutions-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.content-box {
    margin-bottom: 30px;
}

.content-box p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.features-container {
    margin-bottom: 30px;
}

.features-container h3 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature h4 {
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.feature p {
    color: #555;
    line-height: 1.5;
    font-size: 1rem;
}

.solutions-cta {
    margin-top: 20px;
}

.solutions-cta .btn {
    padding: 12px 25px;
    font-weight: 600;
}

.solutions-image {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: #f5f5f5;
    height: 100%;
}

.solutions-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.5s ease;
}

.solutions-image img:hover {
    transform: scale(1.03);
}

@media (max-width: 992px) {
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    .solutions-image {
        margin-top: 30px;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .solutions-image {
        height: 300px;
    }
}

/* Quality Assurance */
.quality-assurance {
    background-color: var(--light-bg);
    padding: 80px 0;
}

.quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.quality-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quality-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.quality-icon {
    margin-bottom: 20px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quality-icon img {
    width: 120px;
    height: auto;
    transition: transform 0.3s ease;
}

.quality-icon img:hover {
    transform: scale(1.1);
}

.quality-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.quality-card p {
    color: var(--text-color);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .quality-grid {
        grid-template-columns: 1fr;
    }
    
    .quality-icon img {
        width: 100px;
    }
}

/* Contact Banner */
.contact-banner {
    background: url('../images/lab-background.jpg') center center/cover no-repeat;
    padding: 80px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.contact-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 53, 128, 0.9) 0%, rgba(0, 103, 184, 0.8) 100%);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.banner-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.6;
}

.banner-content .btn {
    font-size: 1.1rem;
    padding: 12px 30px;
    background-color: #fff;
    color: var(--primary-color);
    border: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.banner-content .btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .page-header {
        padding: 40px 0;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .product-properties {
        grid-template-columns: 1fr;
    }
    
    .solutions-image {
        order: -1;
    }
}
