/* ================================
   Products Page Styles (Reusable)
   ================================ */

/* Page Hero */
.page-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../../assets/images/cta-bg.jpg') center/cover no-repeat;
    color: white;
    padding: 120px 0 80px 0;
    text-align: center;
}

.page-hero h1 {
    color: white;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-sm);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto;
}

/* Content Wrapper */
.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

/* Section Title */
.section-title {
    color: var(--text-primary);
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.section-title:first-child {
    margin-top: 0;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0 var(--spacing-xl) 0;
}

.feature-box {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

[data-theme="dark"] .feature-box {
    background: var(--bg-primary);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .feature-box:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    color: white;
    font-size: 1.75rem;
}

.feature-box h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.feature-box p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Carousel Section */
.carousel-section {
    margin: var(--spacing-xl) 0;
}

.carousel-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: var(--spacing-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Larger Project Carousel */
.carousel-container.project-carousel {
    max-width: 900px;
    padding: var(--spacing-xl);
}

[data-theme="dark"] .carousel-container {
    background: var(--bg-primary);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.carousel-track {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-carousel .carousel-track {
    min-height: 500px;
}

.carousel-slide {
    display: none;
    text-align: center;
    animation: fadeIn 0.5s ease-in;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.project-carousel .carousel-slide img {
    max-height: 450px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-caption {
    margin-top: var(--spacing-sm);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.project-carousel .carousel-caption {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .project-carousel .carousel-caption {
    background: var(--bg-secondary);
}

.carousel-caption h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
}

.carousel-caption p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: var(--spacing-sm);
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

[data-theme="dark"] .carousel-btn {
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.carousel-dots {
    text-align: center;
    padding-top: var(--spacing-md);
    display: flex;
    gap: var(--spacing-xs);
    justify-content: center;
}

.dot {
    height: 10px;
    width: 10px;
    background-color: var(--border-color);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background-color: var(--text-secondary);
}

.dot.active {
    background-color: var(--primary-color);
    width: 24px;
    border-radius: 5px;
}

/* Product Images Section */
.product-images-section {
    margin: var(--spacing-xl) 0;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.image-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.image-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

[data-theme="dark"] .image-item {
    background: var(--bg-primary);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .image-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.image-item img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.image-label {
    text-align: center;
    margin-top: var(--spacing-sm);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(315px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.product-card {
    background: var(--bg-secondary);
    padding: var(--spacing-md);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

[data-theme="dark"] .product-card {
    background: var(--bg-primary);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .product-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.product-card .product-image {
    width: 100%;
    margin-top: var(--spacing-md);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.product-card .product-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

[data-theme="dark"] .product-card .product-image {
    background: var(--bg-secondary);
}

.product-card h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
}

.product-card h3 i {
    color: var(--primary-color);
}

.product-card p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Specs List */
.specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.specs-list li {
    padding: 0.4rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.specs-list li:last-child {
    border-bottom: none;
}

.specs-list li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Info Box */
.info-box {
    background: var(--bg-secondary);
    padding: var(--spacing-lg);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    margin: var(--spacing-xl) 0;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .info-box {
    background: var(--bg-primary);
    border-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.info-box h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.info-box h3 i {
    color: var(--primary-color);
}

.info-box p {
    color: var(--text-secondary);
    margin: 0;
}

.info-box .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    width: 100%;
}

.info-box .btn i {
    flex-shrink: 0;
    display: inline;
}

/* Benefits List */
.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0 var(--spacing-xl) 0;
}

.benefit-item {
    display: flex;
    align-items: start;
    gap: var(--spacing-sm);
}

.benefit-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.benefit-item div h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.benefit-item div p {
    color: var(--text-secondary);
    margin: 0;
}

/* Video Container */
.video-container {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .video-container {
    background: var(--bg-primary);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.video-container h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.video-container h3 i {
    color: var(--primary-color);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Image Showcase */
.image-showcase {
    margin: var(--spacing-xl) 0;
    text-align: center;
}

.image-showcase .product-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    display: block;
    margin: 0 auto;
}

.clickable-image {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.image-caption {
    margin-top: var(--spacing-sm);
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.95rem;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
}

.lightbox-content {
    max-width: 95%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    line-height: 1;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #f44336;
    transform: scale(1.2);
}

.lightbox-caption {
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 1.1rem;
    max-width: 800px;
}

[data-theme="dark"] .lightbox {
    background-color: rgba(0, 0, 0, 0.97);
}

/* Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.image-grid .image-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.image-grid .image-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

[data-theme="dark"] .image-grid .image-item {
    background: var(--bg-primary);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .image-grid .image-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.gallery-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

/* Product Card Images */
.product-image-wrapper {
    width: 100%;
    margin-bottom: var(--spacing-md);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

[data-theme="dark"] .product-image-wrapper {
    background: var(--bg-secondary);
}

.product-card-image {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card-image {
    transform: scale(1.05);
}

/* CTA Box */
.cta-box {
    background: var(--bg-secondary);
    padding: var(--spacing-lg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin: var(--spacing-xl) 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .cta-box {
    background: var(--bg-primary);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cta-box h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.cta-box h3 i {
    color: var(--primary-color);
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
}

.contact-buttons .btn {
    flex: 1 1 auto;
    min-width: 180px;
    max-width: 220px;
    margin-bottom: var(--spacing-sm);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.85) 0%, rgba(0, 191, 255, 0.85) 100%), url('../../assets/images/cta-bg.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: var(--spacing-xl) 0;
}

[data-theme="dark"] .cta-section {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 76, 153, 0.9) 100%), url('../../assets/images/cta-bg.jpg') center/cover no-repeat;
}

.cta-section h2 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
}

.cta-section .btn {
    background: white;
    color: var(--primary-color);
}

.cta-section .btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-buttons .btn {
        min-width: 160px;
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 100px 0 60px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-container {
        max-width: 100%;
        padding: var(--spacing-md);
    }
    
    .carousel-container.project-carousel {
        padding: var(--spacing-md);
    }
    
    .carousel-track {
        min-height: 200px;
    }
    
    .project-carousel .carousel-track {
        min-height: 350px;
    }
    
    .carousel-slide img {
        max-height: 180px;
    }
    
    .project-carousel .carousel-slide img {
        max-height: 300px;
    }
    
    .carousel-caption h3 {
        font-size: 1.1rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        padding: var(--spacing-xs);
    }
    
    .images-grid {
        grid-template-columns: 1fr;
    }
    
    .image-item img {
        max-height: 300px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card .product-image {
        min-height: 150px;
    }
    
    .product-card .product-image img {
        max-height: 220px;
    }
    
    .product-image-wrapper {
        min-height: 150px;
    }
    
    .product-card-image {
        max-height: 200px;
    }
    
    .benefits-list {
        grid-template-columns: 1fr;
    }
    
    .video-container {
        padding: var(--spacing-md);
    }
    
    .image-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .gallery-image {
        max-height: 250px;
    }
    
    .image-showcase .product-image {
        max-width: 100%;
    }
    
    .lightbox {
        padding: 10px;
    }
    
    .lightbox-content {
        max-width: 98%;
        max-height: 80vh;
    }
    
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 40px;
    }
    
    .lightbox-caption {
        font-size: 0.95rem;
        padding: 15px 10px;
    }
    
    .contact-buttons {
        flex-direction: column;
    }
    
    .contact-buttons .btn {
        min-width: 100%;
        max-width: 100%;
        margin-bottom: var(--spacing-xxs);
    }
    
    .contact-buttons .btn:last-child {
        margin-bottom: 0;
    }
}
