.products-section {
    background-color: #000;
    padding: 3rem 0 0; /* tighten vertical spacing */
    color: #fff;
}

.products-header {
    text-align: center;
    margin-bottom: 3rem;
}

.products-subtitle {
    color: #666;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.products-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: 'Inclusive Sans', sans-serif;
}

.products-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #999;
    line-height: 1.6;
}

.products-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 0 2rem;
}

.product-card {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    background-color: #111;
    transition: all 0.3s ease;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.product-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

/* Hover Effects */
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.product-card:hover .product-image {
    opacity: 0.9;
    transform: scale(1.05);
}

.product-card:hover .product-content {
    transform: translateY(-5px);
}

/* Documentation Section */
.documentation-section {
    text-align: center;
    margin-top: 4rem;
    padding: 4rem 0;
    background: linear-gradient(to right, #111, #000, #111);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.documentation-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
    font-family: 'Inclusive Sans', sans-serif;
}

.documentation-description {
    color: #999;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-size: 1.1rem;
}

.documentation-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.documentation-button:hover {
    background-color: #fff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.1);
}

.documentation-button i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.documentation-button:hover i {
    transform: translate(3px, -3px);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .products-section {
        padding: 3rem 0;
    }

    .products-title {
        font-size: 2.2rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .documentation-section {
        padding: 3rem 1rem;
    }

    .documentation-title {
        font-size: 1.8rem;
    }

    .documentation-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* Stats Section */
.stats-section {
    background-color: #000;
    padding: 5rem 0;
    text-align: center;
    color: #fff;
}

.stats-subtitle {
    color: #fff;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.stats-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #fff;
    font-family: 'Inclusive Sans', sans-serif;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    font-family: 'Inclusive Sans', sans-serif;
}

.stat-label {
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stats-title {
        font-size: 2.2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .products-title {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stats-title {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Projects Section */
.projects-section {
    background-color: #000;
    padding: 4rem 0;
    color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    color: #666;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Inclusive Sans', sans-serif;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.project-card {
    background-color: #111;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.project-description {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* News Section */
.news-section {
    background-color: #111;
    padding: 4rem 0 2rem; /* reduce bottom padding to blend with footer */
    color: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.news-card {
    background-color: #000;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.3);
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.news-excerpt {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.news-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.news-link:hover {
    border-bottom-color: #fff;
}

/* Responsive for Projects and News */
@media (max-width: 768px) {
    .projects-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .projects-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .project-content,
    .news-card {
        padding: 1rem;
    }
}