/* Product Ecosystem */
.product-ecosystem {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 30px 0;
    background-color: rgba(26, 26, 38, 0.5);
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.ecosystem-center {
    width: 120px;
    height: 120px;
    background-color: rgba(0, 163, 255, 0.2);
    border: 2px solid rgba(0, 163, 255, 0.5);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Orbitron', sans-serif;
    color: var(--text-primary);
    box-shadow: 0 0 20px rgba(0, 163, 255, 0.3);
    z-index: 10;
    position: relative;
}

.center-icon {
    width: 40px;
    height: 40px;
    background-image: url('../images/warkai_logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 10px;
}

.center-label {
    font-size: 0.9rem;
    text-align: center;
}

.ecosystem-item {
    position: absolute;
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    background-color: rgba(18, 18, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    transition: all 0.3s ease;
}

.ecosystem-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 163, 255, 0.5);
}

.item-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.os-icon {
    background-image: url('../images/os_icon.png');
}

.hardware-icon {
    background-image: url('../images/hardware_icon.png');
}

.solutions-icon {
    background-image: url('../images/solutions_icon.png');
}

.item-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 5px;
    text-align: center;
}

.item-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

.ecosystem-item.os {
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
}

.ecosystem-item.hardware {
    bottom: 50px;
    left: 100px;
}

.ecosystem-item.solutions {
    bottom: 50px;
    right: 100px;
}

.ecosystem-connection {
    position: absolute;
    background-color: rgba(0, 163, 255, 0.3);
    z-index: 5;
}

.ecosystem-connection.os-hardware {
    width: 2px;
    height: 150px;
    top: 125px;
    left: calc(50% - 100px);
    transform: rotate(45deg);
}

.ecosystem-connection.os-solutions {
    width: 2px;
    height: 150px;
    top: 125px;
    right: calc(50% - 100px);
    transform: rotate(-45deg);
}

.ecosystem-connection.hardware-solutions {
    width: 200px;
    height: 2px;
    bottom: 125px;
    left: calc(50% - 100px);
}

/* Product Showcase */
.product-showcase {
    display: flex;
    margin: 30px 0;
    gap: 30px;
}

.product-showcase.reverse {
    flex-direction: row-reverse;
}

.product-image {
    width: 40%;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.product-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

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

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    box-sizing: border-box;
}

.overlay-text {
    font-family: 'Orbitron', sans-serif;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.product-details {
    width: 60%;
}

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

.product-description p {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Product Features */
.product-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    background-color: rgba(26, 26, 38, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 163, 255, 0.5);
}

.feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    background-color: rgba(0, 163, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(0, 163, 255, 0.3);
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
}

.realtime-icon {
    background-image: url('../images/realtime_icon.png');
}

.decision-icon {
    background-image: url('../images/decision_icon.png');
}

.training-icon {
    background-image: url('../images/training_icon.png');
}

.matching-icon {
    background-image: url('../images/matching_icon.png');
}

.fortune-icon {
    background-image: url('../images/fortune_icon.png');
}

.companion-icon {
    background-image: url('../images/companion_icon.png');
}

.social-icon {
    background-image: url('../images/social_icon.png');
}

.personalize-icon {
    background-image: url('../images/personalize_icon.png');
}

.feature-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Tech Specs */
.tech-specs {
    margin: 30px 0;
    background-color: rgba(26, 26, 38, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 20px;
}

.tech-specs.compact {
    margin: 20px 0 0 0;
}

.specs-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--accent-blue);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.specs-item {
    padding: 10px;
    border-left: 3px solid var(--accent-blue);
    background-color: rgba(0, 163, 255, 0.05);
}

.specs-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.specs-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
}

/* Hardware Tabs */
.hardware-tabs {
    margin: 30px 0;
}

.tab-buttons {
    display: flex;
    margin-bottom: 20px;
}

.tab-button {
    background-color: rgba(26, 26, 38, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px 5px 0 0;
    padding: 10px 20px;
    margin-right: 5px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background-color: rgba(0, 163, 255, 0.1);
    color: var(--text-primary);
}

.tab-button.active {
    background-color: rgba(0, 163, 255, 0.2);
    border-bottom: 3px solid var(--accent-blue);
    color: var(--text-primary);
}

.tab-content {
    position: relative;
    min-height: 400px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Industry Solutions */
.industry-solutions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.solution-card {
    background-color: rgba(26, 26, 38, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.solution-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 163, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 163, 255, 0.5);
}

.solution-card:hover::after {
    opacity: 1;
}

.solution-card.primary {
    border: 1px solid rgba(0, 163, 255, 0.3);
    background-color: rgba(0, 163, 255, 0.05);
}

.solution-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    background-color: rgba(0, 163, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(0, 163, 255, 0.3);
    background-size: 30px;
    background-repeat: no-repeat;
    background-position: center;
}

.textile-icon {
    background-image: url('../images/textile_icon.png');
}

.coldchain-icon {
    background-image: url('../images/coldchain_icon.png');
}

.disability-icon {
    background-image: url('../images/disability_icon.png');
}

.elderly-icon {
    background-image: url('../images/elderly_icon.png');
}

.solution-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.solution-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 15px;
}

.solution-more {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    color: var(--accent-blue);
    padding: 5px 15px;
    border: 1px solid var(--accent-blue);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.solution-card:hover .solution-more {
    background-color: var(--accent-blue);
    color: var(--bg-primary);
}

/* Solution Detail Modal */
.solution-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    background-color: rgba(18, 18, 26, 0.95);
    border: 1px solid rgba(0, 163, 255, 0.3);
    border-radius: 5px;
    padding: 20px;
    overflow-y: auto;
    box-shadow: 0 0 30px rgba(0, 163, 255, 0.5);
    animation: modalAppear 0.5s ease forwards;
}

@keyframes modalAppear {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #ff3c3c;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-showcase {
        flex-direction: column;
    }
    
    .product-showcase.reverse {
        flex-direction: column;
    }
    
    .product-image, .product-details {
        width: 100%;
    }
    
    .product-features {
        grid-template-columns: 1fr;
    }
    
    .ecosystem-item.os, .ecosystem-item.hardware, .ecosystem-item.solutions {
        position: static;
        margin: 10px;
    }
    
    .product-ecosystem {
        height: auto;
        flex-direction: column;
        padding: 20px;
    }
    
    .ecosystem-connection {
        display: none;
    }
}
