:root {
    --primary-color: #0000FF;
    --secondary-color: #0000FF;
    --bg-dark: #000000;
    --bg-card: rgba(0, 0, 0, 0.9);
    --text-light: #F5F6F5;
    --text-muted: #D1D5DB;
}

.back-button {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
    padding: 10px;
    background: var(--bg-card);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.back-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.icon-back {
    display: inline-block;
    width: 28px;
    height: 28px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2300f0ff" stroke-width="2"><path d="M15 18l-6-6 6-6"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.solutions {
    padding: 80px 20px;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    border: 1px solid rgba(0, 240, 255, 0.1);
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 25px rgba(0, 240, 255, 0.25);
}

.service-toggle {
    background: none;
    border: none;
    width: 100%;
    padding: 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: var(--text-light);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease, color 0.3s ease;
}

.service-toggle:hover {
    background: rgba(0, 240, 255, 0.15);
    color: var(--primary-color);
}

.toggle-icon {
    font-size: 1.3rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.service-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(45deg);
}

.service-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.6;
}

.service-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background: var(--bg-card);
    padding: 0 20px;
}

.service-content.active {
    max-height: 500px;
    padding: 20px;
}

.service-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.service-content ul li {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
    opacity: 0;
    transform: translateY(10px);
}

.service-content ul li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.service-content.active ul li {
    animation: slideUp 0.3s ease forwards;
    animation-delay: calc(var(--index) * 0.1s);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-content .cta-button {
    display: block;
    text-align: center;
    margin-top: 20px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.service-content .cta-button:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: scale(1.05);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.modal-content p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.modal-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.modal-content ul li {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.modal-content ul li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.modal-content .cta-button {
    display: block;
    text-align: center;
    margin-top: 20px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .solutions {
        padding: 60px 15px;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-toggle {
        font-size: 1.2rem;
        padding: 15px;
    }

    .service-description {
        font-size: 0.9rem;
    }

    .service-content.active {
        padding: 15px;
        max-height: 600px;
    }

    .service-content ul li {
        font-size: 0.9rem;
    }

    .modal-content {
        padding: 20px;
        max-width: 90%;
    }

    .modal-content h3 {
        font-size: 1.5rem;
    }

    .modal-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .solutions {
        padding: 40px 10px;
    }

    .solutions-grid {
        gap: 15px;
    }

    .service-toggle {
        font-size: 1.1rem;
        padding: 12px;
    }

    .service-description {
        font-size: 0.85rem;
    }

    .service-content.active {
        padding: 12px;
        max-height: 700px;
    }

    .service-content ul li {
        font-size: 0.85rem;
    }

    .modal-content {
        padding: 15px;
    }

    .modal-content h3 {
        font-size: 1.3rem;
    }

    .modal-content p {
        font-size: 0.9rem;
    }

    .modal-content ul li {
        font-size: 0.85rem;
    }
}