/* ==========================================
   SOLUTIONS SECTION STYLES - ULTRA MODERN
   ========================================== */

/* Solutions Grid - Main Categories */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 0rem;
}

.solution-card {
    position: relative;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    min-height: 250px;
    display: flex;
    flex-direction: column;
    border: 1px solid #bbb;
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Solution Card Image */
.solution-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.solution-image img {
    width: 100%;
    height: 100%;
    object-fit:fill;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.solution-card:hover .solution-image img {
    transform: scale(1.1);
}

/* Image Overlay */
.solution-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.1) 0%,
        rgba(0,0,0,0.3) 100%
    );
    transition: background 0.3s ease;
}

.solution-card:hover .solution-image::after {
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.2) 0%,
        rgba(0,0,0,0.5) 100%
    );
}

/* Solution Content */
.solution-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #eee;
}

.solution-content p{
    font-size: 0.85rem;
    text-align: left;
}

.solution-title {
    font-family: 'Open Runde', 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.solution-description {
    font-size: 0.5rem;
    color: #333;
    line-height: 1;
    margin-bottom: .5rem;
    flex: 1;
}

/* Sub-solutions Badges */
.solution-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: auto;
}

.solution-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.25rem;
    background: #ddd;
    border: 1px solid #aaa;
    border-radius: 0.75rem;
    font-size: 0.55rem;
    font-weight: 700;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.solution-badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.solution-card:hover .solution-badge {
    background: #1a1a1a;
    border-color: #a1a1a1;
    color: white;
}

.solution-card:hover .solution-badge svg {
    stroke: white;
}

/* Expand Button */
.solution-expand {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.solution-expand:hover {
    background: #1a1a1a;
    transform: rotate(90deg) scale(1.1);
}

.solution-expand:hover svg {
    stroke: white;
}

.solution-expand svg {
    width: 24px;
    height: 24px;
    transition: stroke 0.3s ease;
}

/* Modal Overlay */
.solution-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.solution-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Content */
.solution-modal-content {
    background: white;
    border-radius: 24px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.solution-modal.active .solution-modal-content {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.solution-modal-header {
    position: relative;
    padding: 3rem 3rem 2rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: white;
}

.solution-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.solution-modal-close:hover {
    background: white;
    border-color: white;
    transform: rotate(90deg);
}

.solution-modal-close:hover svg {
    stroke: #1a1a1a;
}

.solution-modal-close svg {
    stroke: white;
    transition: stroke 0.3s ease;
}

.solution-modal-title {
    font-family: 'Open Runde', 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.solution-modal-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Modal Body */
.solution-modal-body {
    padding: 3rem;
    overflow-y: auto;
    flex: 1;
}

/* Sub-solutions Grid in Modal */
.subsolutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.subsolution-card {
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.subsolution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.subsolution-card:hover {
    background: white;
    border-color: #1a1a1a;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.subsolution-card:hover::before {
    transform: scaleX(1);
}

.subsolution-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.subsolution-card:hover .subsolution-icon {
    transform: rotate(5deg) scale(1.1);
}

.subsolution-icon svg {
    width: 30px;
    height: 30px;
    stroke: white;
}

.subsolution-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subsolution-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* Category Tag */
.solution-category {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* Active State Indicator */
.solution-card.active {
    border: 3px solid #667eea;
}

/* ==========================================
   RESPONSIVE STYLES
   ========================================== */

@media (max-width: 1024px) {
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .subsolutions-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .solution-card {
        min-height: 350px;
    }
    
    .solution-image {
        height: 200px;
    }
    
    .solution-content {
        padding: 1.5rem;
    }
    
    .solution-title {
        font-size: 1.5rem;
    }
    
    .solution-badges {
        gap: 0.4rem;
    }
    
    .solution-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
    
    .solution-modal-header {
        padding: 2rem 2rem 1.5rem;
    }
    
    .solution-modal-title {
        font-size: 1.8rem;
    }
    
    .solution-modal-subtitle {
        font-size: 0.95rem;
    }
    
    .solution-modal-body {
        padding: 2rem;
    }
    
    .subsolutions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .subsolution-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .solution-card {
        min-height: 320px;
    }
    
    .solution-image {
        height: 180px;
    }
    
    .solution-title {
        font-size: 1.3rem;
    }
    
    .solution-description {
        font-size: 0.9rem;
    }
    
    .solution-expand {
        width: 44px;
        height: 44px;
    }
    
    .solution-modal {
        padding: 1rem;
    }
    
    .solution-modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .solution-modal-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
    
    .solution-modal-title {
        font-size: 1.5rem;
    }
    
    .solution-modal-body {
        padding: 1.5rem;
    }
    
    .subsolution-icon {
        width: 50px;
        height: 50px;
    }
    
    .subsolution-title {
        font-size: 1rem;
    }
}

/* Scroll Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.solution-card {
    animation: fadeInUp 0.6s ease backwards;
}

.solution-card:nth-child(1) { animation-delay: 0.1s; }
.solution-card:nth-child(2) { animation-delay: 0.2s; }
.solution-card:nth-child(3) { animation-delay: 0.3s; }
.solution-card:nth-child(4) { animation-delay: 0.4s; }
.solution-card:nth-child(5) { animation-delay: 0.5s; }
.solution-card:nth-child(6) { animation-delay: 0.6s; }