body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f4f8;
    color: #1e293b;
}

.diagram-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 2rem;
}

.tier {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    width: 100%;
}

.component {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 220px;
}

.component:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.1);
    border-color: #3b82f6;
}

.component h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.component p {
    font-size: 0.875rem;
    color: #64748b;
}

.arrow {
    font-size: 2.5rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.arrow-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    margin-top: -0.5rem;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-content {
    background-color: white;
    padding: 2.5rem;
    border-radius: 0.75rem;
    max-width: 650px;
    width: 90%;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

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

.modal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #3b82f6;
}

.modal-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #334155;
}

.modal-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    color: #475569;
}

.close-button {
    background-color: #e2e8f0;
    color: #475569;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    margin-top: 2rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.close-button:hover {
    background-color: #cbd5e1;
}

.tech-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    align-items: center;
    justify-content: center;
}

.tech-icons svg,
.tech-icons img {
    width: 32px;
    height: 32px;
}
