/* ===== PORTFOLIO PAGE STYLES ===== */

/* Portfolio Section */
.portfolio {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--wine-red-900, #450a0a);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.25rem;
    color: var(--secondary-600, #4b5563);
    margin: 0;
}

.portfolio-overview {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-overview p {
    font-size: 1.125rem;
    color: var(--secondary-700, #374151);
    line-height: 1.8;
}

/* Equipment Categories */
.equipment-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.equipment-type {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.equipment-type:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.equipment-type h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.equipment-type h5 i {
    color: var(--wine-red-600, #dc2626);
}

.equipment-type ul {
    list-style: none;
    padding: 0;
}

.equipment-type li {
    color: #000000;
    padding: 0.25rem 0;
    border-bottom: 1px solid #e5e7eb;
    line-height: 1.6;
}

.equipment-type li:last-child {
    border-bottom: none;
}

/* Water Treatment Systems */
.treatment-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.treatment-system {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.treatment-system:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.treatment-system h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.treatment-system h5 i {
    color: var(--wine-red-600, #dc2626);
}

.treatment-system ul {
    list-style: none;
    padding: 0;
}

.treatment-system li {
    color: #000000;
    padding: 0.25rem 0;
    border-bottom: 1px solid #e5e7eb;
    line-height: 1.6;
}

.treatment-system li:last-child {
    border-bottom: none;
}

/* Lab Equipment */
.lab-equipment {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.equipment-category {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.equipment-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.equipment-category h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.equipment-category h5 i {
    color: var(--wine-red-600, #dc2626);
}

.equipment-category ul {
    list-style: none;
    padding: 0;
}

.equipment-category li {
    color: #000000;
    padding: 0.25rem 0;
    border-bottom: 1px solid #e5e7eb;
    line-height: 1.6;
}

.equipment-category li:last-child {
    border-bottom: none;
}

/* Winemaking Systems */
.winemaking-systems {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.system-type {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.system-type:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.system-type h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.system-type h5 i {
    color: var(--wine-red-600, #dc2626);
}

.system-type p {
    color: var(--secondary-700, #374151);
    line-height: 1.6;
}

/* Portfolio Vertical List */
.portfolio-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.portfolio-item {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-summary {
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-summary:hover {
    background: #f9fafb;
}

.portfolio-detail-content {
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
}

.summary-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.summary-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--wine-red-600, #dc2626), var(--wine-red-700, #b91c1c));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.summary-icon i {
    font-size: 1.5rem;
    color: #ffffff;
}

.summary-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
}

.summary-count {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--wine-red-600, #dc2626);
    margin-bottom: 0.75rem;
}

.summary-info p {
    color: var(--secondary-700, #374151);
    line-height: 1.6;
    margin: 0;
}

.summary-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.summary-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #059669;
    font-weight: 500;
}

.summary-status i {
    font-size: 1rem;
}

/* Portfolio Detail Sections */
.portfolio-details-container {
    margin-top: 2rem;
}

.portfolio-detail-section {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.detail-header {
    background: linear-gradient(135deg, var(--wine-red-600, #dc2626), var(--wine-red-700, #b91c1c));
    color: #ffffff;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.detail-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
}

.detail-count {
    font-size: 1rem;
    opacity: 0.9;
    color: #ffffff;
}

.close-details {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.close-details:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Portfolio Category Content */
.portfolio-detail-content .detail-header {
    background: linear-gradient(135deg, var(--wine-red-600, #dc2626), var(--wine-red-700, #b91c1c));
    color: #ffffff;
    padding: 1.5rem 2rem;
    margin: 0;
    border-radius: 0;
}

.portfolio-detail-content .detail-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
}

.portfolio-detail-content .detail-count {
    font-size: 0.875rem;
    opacity: 0.9;
    color: #ffffff;
}

.portfolio-detail-content .portfolio-category {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.portfolio-detail-content .category-hero {
    padding: 2rem;
    background: #ffffff;
    margin: 0;
    border-radius: 0;
}

.portfolio-detail-content .portfolio-details {
    padding: 2rem;
    background: #ffffff;
    margin: 0;
    border-radius: 0;
}

/* Category Hero */
.category-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.category-hero.reverse {
    direction: rtl;
}

.category-hero.reverse > * {
    direction: ltr;
}

.category-content {
    display: flex;
    gap: 1.5rem;
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--wine-red-600, #dc2626), var(--wine-red-700, #b91c1c));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-icon i {
    font-size: 1.5rem;
    color: #ffffff;
}

.category-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
}

.category-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--wine-red-600, #dc2626);
    margin-bottom: 0.75rem;
}

.category-info p {
    color: var(--secondary-700, #374151);
    line-height: 1.6;
}

.category-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.category-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Portfolio Details */
.portfolio-details h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.portfolio-details h4 i {
    color: var(--wine-red-600, #dc2626);
}

/* Applications Grid */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.application-item {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.application-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--wine-red-300, #fca5a5);
}

.application-item i {
    font-size: 2rem;
    color: var(--wine-red-600, #dc2626);
    margin-bottom: 1rem;
}

.application-item h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
}

.application-item p {
    color: var(--secondary-700, #374151);
    line-height: 1.6;
    margin: 0;
}

.application-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.application-item ul li {
    color: var(--secondary-700, #374151);
    padding: 0.25rem 0;
    line-height: 1.6;
}

/* Partner Info */
.partner-info {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--wine-red-600, #dc2626);
    margin-top: 2rem;
}

.partner-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.partner-info h4 i {
    color: var(--wine-red-600, #dc2626);
}

.partner-info p {
    color: var(--secondary-700, #374151);
    margin: 0;
    font-weight: 500;
}

/* Portfolio CTA */
.portfolio-cta {
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, var(--wine-red-600, #dc2626), var(--wine-red-700, #b91c1c));
    border-radius: 16px;
    text-align: center;
}

.cta-content h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.cta-content p {
    font-size: 1.125rem;
    color: #ffffff;
    opacity: 0.95;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-overview-cards {
        grid-template-columns: 1fr;
    }
    
    .summary-header {
        flex-direction: column;
        text-align: center;
    }
    
    .summary-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .detail-header {
        flex-direction: column;
        text-align: center;
    }
    
    .portfolio-summary {
        padding: 1.5rem;
    }
    
    .portfolio-detail-content .category-hero {
        padding: 1.5rem;
    }
    
    .portfolio-detail-content .portfolio-details {
        padding: 1.5rem;
    }
    
    .category-hero {
        grid-template-columns: 1fr;
    }
    
    .category-content {
        flex-direction: column;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .applications-grid {
        grid-template-columns: 1fr;
    }
    
    .equipment-categories,
    .treatment-types,
    .lab-equipment {
        grid-template-columns: 1fr;
    }
}
